阴阳脸主图通达信指标 副图 源码 测试图

 
X_1:=FROMOPEN<240;
X_2:=X_1<=0;
X_3:=1;
X_4:=1281210;
X_5:=IF(DATE>X_4,X_2,X_3);
X_6:=IF(DATE>X_4,0,1);
X_7:=IF(DATE>X_4,1,0);
CLOSE;
DRAWGBK(OPEN>CLOSE,RGB(1,88,92),RGB(1,22,28),0,7,0);
X_8:=1 AND X_6;
X_9:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25);
X_10:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1;
X_11:=X_8*(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*2.2+XMA(XMA(HIGH,60),60);
X_12:=X_8*XMA(XMA(LOW,60),60)-(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*2.8;
X_13:=X_8*(X_9+X_11)/2;
X_14:=X_8*(X_10+X_12)/2;
DRAWBAND(X_13,RGB(0,100,0),X_11,RGB(0,100,0));
DRAWBAND(X_14,RGB(150,0,150),X_12,RGB(150,0,150));
收盘价:CLOSE,NODRAW,COLORWHITE;
涨跌幅:(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,NODRAW,COLORYELLOW;
最新价:IF(CLOSE,CONST(CLOSE),DRAWNULL),DOTLINE,COLORRED;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
 
X_15:=(HIGH+LOW)/2;
X_16:=X_15;
X_17:=XMA(X_15,3);
X_18:=XMA(X_15,5);
X_19:=XMA(X_15,10);
X_20:=XMA(X_15,15);
X_21:=XMA(X_15,20);
X_22:=XMA(X_15,25);
X_23:=XMA(X_15,30);
X_24:=XMA(X_15,35);
X_25:=XMA(X_15,40);
X_26:=XMA(X_15,45);
X_27:=XMA(X_15,50);
X_28:=XMA(X_15,55);
X_29:=XMA(X_15,60);
X_30:=(X_17+X_18+X_19+X_20+X_21+X_22+X_23+X_24+X_25+X_26+X_27+X_28+X_29)/13;
X_31:=(X_16+X_17+X_18)/3;
X_32:=PLOYLINE(2>1,X_30);
X_33:=X_16>X_17 AND X_16>X_18 AND X_16>X_19 AND X_16>X_20 AND X_16>X_21 AND X_16>X_22 AND X_16>X_23 AND X_16>X_24 AND X_16>X_25 AND X_16>X_26 AND X_16>X_27 AND X_16>X_28 AND X_16>X_29 AND X_17>X_18 AND X_17>X_19 AND X_17>X_20 AND X_17>X_21 AND X_17>X_22 AND X_17>X_23;
X_34:=X_17>X_24 AND X_17>X_25 AND X_17>X_26 AND X_17>X_27 AND X_17>X_28 AND X_17>X_29 AND X_18>X_19 AND X_18>X_20 AND X_18>X_21 AND X_18>X_22 AND X_18>X_23 AND X_18>X_24 AND X_18>X_25 AND X_18>X_26 AND X_18>X_27 AND X_18>X_28 AND X_18>X_29 AND X_19>X_20 AND X_19>X_21 AND X_19>X_22 AND X_19>X_23 AND X_19>X_24 AND X_19>X_25 AND X_19>X_26 AND X_19>X_27 AND X_19>X_28 AND X_19>X_29;
X_35:=X_20>X_21 AND X_20>X_22 AND X_20>X_23 AND X_20>X_24 AND X_20>X_25 AND X_20>X_26 AND X_20>X_27 AND X_20>X_28 AND X_20>X_29 AND X_21>X_22 AND X_21>X_23 AND X_21>X_24 AND X_21>X_25 AND X_21>X_26 AND X_21>X_27 AND X_21>X_28 AND X_21>X_29 AND X_22>X_23 AND X_22>X_24 AND X_22>X_25 AND X_22>X_26 AND X_22>X_27 AND X_22>X_28 AND X_22>X_29 AND X_23>X_24 AND X_23>X_25;
X_36:=X_23>X_26 AND X_23>X_27 AND X_23>X_28 AND X_23>X_29 AND X_24>X_25 AND X_24>X_26 AND X_24>X_27 AND X_24>X_28 AND X_24>X_29 AND X_25>X_26 AND X_25>X_27 AND X_25>X_28 AND X_25>X_29 AND X_26>X_27 AND X_26>X_28 AND X_26>X_29 AND X_27>X_28 AND X_27>X_29 AND X_28>X_29;
X_37:=X_33 AND X_34 AND X_35 AND X_36;
X_38:=X_16<X_17 AND X_16<X_18 AND X_16<X_19 AND X_16<X_20 AND X_16<X_21 AND X_16<X_22 AND X_16<X_23 AND X_16<X_24 AND X_16<X_25 AND X_16<X_26 AND X_16<X_27 AND X_16<X_28 AND X_16<X_29 AND X_17<X_18 AND X_17<X_19 AND X_17<X_20 AND X_17<X_21 AND X_17<X_22 AND X_17<X_23;
X_39:=X_17<X_24 AND X_17<X_25 AND X_17<X_26 AND X_17<X_27 AND X_17<X_28 AND X_17<X_29 AND X_18<X_19 AND X_18<X_20 AND X_18<X_21 AND X_18<X_22 AND X_18<X_23 AND X_18<X_24 AND X_18<X_25 AND X_18<X_26 AND X_18<X_27 AND X_18<X_28 AND X_18<X_29 AND X_19<X_20 AND X_19<X_21;
X_40:=X_19<X_22 AND X_19<X_23 AND X_19<X_24 AND X_19<X_25 AND X_19<X_26 AND X_19<X_27 AND X_19<X_28 AND X_19<X_29 AND X_20<X_21 AND X_20<X_22 AND X_20<X_23 AND X_20<X_24 AND X_20<X_25 AND X_20<X_26 AND X_20<X_27 AND X_20<X_28 AND X_20<X_29 AND X_21<X_22;
X_41:=X_21<X_23 AND X_21<X_24 AND X_21<X_25 AND X_21<X_26 AND X_21<X_27 AND X_21<X_28 AND X_21<X_29 AND X_22<X_23 AND X_22<X_24 AND X_22<X_25 AND X_22<X_26 AND X_22<X_27 AND X_22<X_28 AND X_22<X_29 AND X_23<X_24 AND X_23<X_25 AND X_23<X_26 AND X_23<X_27;
X_42:=X_23<X_28 AND X_23<X_29 AND X_24<X_25 AND X_24<X_26 AND X_24<X_27 AND X_24<X_28 AND X_24<X_29 AND X_25<X_26 AND X_25<X_27 AND X_25<X_28 AND X_25<X_29 AND X_26<X_27 AND X_26<X_28 AND X_26<X_29 AND X_27<X_28 AND X_27<X_29 AND X_28<X_29;
X_43:=X_38 AND X_39 AND X_40 AND X_41 AND X_42;
X_44:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
X_45:=SMA(X_14,3,1);
X_46:=SMA(X_45,3,1);
X_47:=SMA(X_46,3,1);
X_48:=X_46;
X_49:=X_47;
X_50:=X_46<20;
X_51:=X_46>80;
X_52:=X_50 OR X_51;
STICKLINE(X_37 AND CLOSE>=OPEN AND CLOSE<X_13*1.1 AND X_52,HIGH,LOW,0.6,0),COLORRED;
STICKLINE(X_37 AND CLOSE>=OPEN AND CLOSE<X_13*1.1 AND X_52,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(X_43 AND CLOSE>=OPEN AND CLOSE<X_13*1.1 AND X_52,HIGH,LOW,0.6,0),COLORRED;
STICKLINE(X_43 AND CLOSE>=OPEN AND CLOSE<X_13*1.1 AND X_52,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(X_37 AND CLOSE<OPEN AND CLOSE<X_14*1.1 AND X_52,HIGH,LOW,0.6,0),COLORGREEN;
STICKLINE(X_37 AND CLOSE<OPEN AND CLOSE<X_14*1.1 AND X_52,CLOSE,OPEN,3,0),COLORGREEN;
STICKLINE(X_43 AND CLOSE<OPEN AND CLOSE<X_14*1.1 AND X_52,HIGH,LOW,0.6,0),COLORGREEN;
STICKLINE(X_43 AND CLOSE<OPEN AND CLOSE<X_14*1.1 AND X_52,CLOSE,OPEN,3,0),COLORGREEN;
X_53:=(HIGH+XMA(HIGH,3)+XMA(HIGH,5)+XMA(HIGH,10)+XMA(HIGH,15)+XMA(HIGH,20)+XMA(HIGH,25)+XMA(HIGH,30)+XMA(HIGH,35)+XMA(HIGH,40)+XMA(HIGH,45)+XMA(HIGH,50)+XMA(HIGH,55)+XMA(HIGH,60))/14;
X_54:=(LOW+XMA(LOW,3)+XMA(LOW,5)+XMA(LOW,10)+XMA(LOW,15)+XMA(LOW,20)+XMA(LOW,25)+XMA(LOW,30)+XMA(LOW,35)+XMA(LOW,40)+XMA(LOW,45)+XMA(LOW,50)+XMA(LOW,55)+XMA(LOW,60))/14;
X_55:=X_20>X_21 AND X_20>X_22 AND X_20>X_23 AND X_20>X_24 AND X_20>X_25 AND X_20>X_26 AND X_20>X_27 AND X_20>X_28 AND X_20>X_29 AND X_21>X_22 AND X_21>X_23 AND X_21>X_24 AND X_21>X_25 AND X_21>X_26 AND X_21>X_27 AND X_21>X_28 AND X_21>X_29 AND X_22>X_23 AND X_22>X_24 AND X_22>X_25 AND X_22>X_26 AND X_22>X_27 AND X_22>X_28 AND X_22>X_29 AND X_23>X_24 AND X_23>X_25 AND X_23>X_26 AND X_23>X_27 AND X_23>X_28 AND X_23>X_29 AND X_24>X_25 AND X_24>X_26 AND X_24>X_27 AND X_24>X_28 AND X_24>X_29 AND X_25>X_26 AND X_25>X_27 AND X_25>X_28 AND X_25>X_29 AND X_26>X_27 AND X_26>X_28 AND X_26>X_29 AND X_27>X_28 AND X_27>X_29 AND X_28>X_29;
X_56:=X_20<X_21 AND X_20<X_22 AND X_20<X_23 AND X_20<X_24 AND X_20<X_25 AND X_20<X_26 AND X_20<X_27 AND X_20<X_28 AND X_20<X_29 AND X_21<X_22 AND X_21<X_23 AND X_21<X_24 AND X_21<X_25 AND X_21<X_26 AND X_21<X_27 AND X_21<X_28 AND X_21<X_29 AND X_22<X_23 AND X_22<X_24 AND X_22<X_25 AND X_22<X_26 AND X_22<X_27 AND X_22<X_28 AND X_22<X_29 AND X_23<X_24 AND X_23<X_25 AND X_23<X_26 AND X_23<X_27 AND X_23<X_28 AND X_23<X_29 AND X_24<X_25 AND X_24<X_26 AND X_24<X_27 AND X_24<X_28 AND X_24<X_29 AND X_25<X_26 AND X_25<X_27 AND X_25<X_28 AND X_25<X_29 AND X_26<X_27 AND X_26<X_28 AND X_26<X_29 AND X_27<X_28 AND X_27<X_29 AND X_28<X_29;
X_57:=XMA(X_53/X_54*X_30+(X_53/X_54*X_30-X_30),10);
X_58:=XMA(X_54/X_53*X_30-(X_30-X_54/X_53*X_30),10);
X_59:=IF(REF(X_30,1)<X_30 AND NOT(X_55),X_57,DRAWNULL);
X_60:=IF(REF(X_30,1)>X_30 AND NOT(X_56),X_58,DRAWNULL);
X_61:=XMA(X_53/X_54*X_30+(X_53/X_54*X_30-X_30)/2,10);
X_62:=XMA(X_54/X_53*X_30-0.5*(X_30-X_54/X_53*X_30),10);
X_63:=IF(REF(X_30,1)>X_30,X_61,DRAWNULL);
X_64:=IF(REF(X_30,1)<X_30,X_62,DRAWNULL);
X_65:=X_53/X_54*X_30+(X_53/X_54*X_30-X_30)*1.5;
X_66:=X_54/X_53*X_30-1.5*(X_30-X_54/X_53*X_30);
X_67:=PLOYLINE(2>1,X_65);
X_68:=PLOYLINE(2>1,X_66);
X_69:=IF(REF(X_30,1)<X_30 AND X_55,X_65,DRAWNULL);
X_70:=IF(REF(X_30,1)>X_30 AND X_56,X_66,DRAWNULL);
X_71:=IF(X_37,X_65,DRAWNULL);
X_72:=IF(X_43,X_66,DRAWNULL);
交时1:=FROMOPEN<240;
交时2:=交时1<=0;
交时3:=1;
DAYN1:=1281210;
定时1:=IF(DATE>DAYN1,交时2,交时3);
定时2:=IF(DATE>DAYN1,0,1);
定时3:=IF(DATE>DAYN1,1,0);
所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT('【行业】',HYBLOCK),STRCAT('【地域】',DYBLOCK)),STRCAT('【概念】',GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0,0,0,所属板块),COLORYELLOW;
DRAWTEXT_FIX(1,0.30,0.75,0,'股票指标网HTTP://'),COLOR555555;
鬼头鬼脸鬼脚:IF(定时3,0,DRAWNULL),COLORBLUE;
 
KS:=(C-MA(C,13))/MA(C,13)*(-100); 
RKS:=REF(KS,1); 
MLS:=RKS/KS>=1.23 AND RKS>=8 AND C/REF(C,1)>=1.02; 
反弹:STICKLINE(MLS=1,H,L,0,1),COLORMAGENTA,LINETHICK1; 
STICKLINE(MLS=1,O,C,7,1),COLORMAGENTA,LINETHICK1;
顶:COST(98),COLORYELLOW;
拉升:COST(75),COLOR0066CC;
平均成本:COST(50),COLORGREEN;
控盘成本30:COST(30),COLORLIGRAY;
主力成本5:COST(5),COLORCYAN;
底:COST(0.05)COLORBLUE;
 
N:=10;
V1:=ISLASTBAR;
V2:=REF(HIGH,N)=HHV(HIGH,2*N+1);
V3:=FILTER(V2,N);
V4:=BACKSET(V3,N+1);
V5:=FILTER(V4,N);
V6:=V5 OR V1;
V7:=REF(LOW,N)=LLV(LOW,2*N+1);
V8:=FILTER(V7,N);
V9:=BACKSET(V8,N+1);
VA:=FILTER(V9,N);
VB:=VA AND NOT(V5);
VC:=BACKSET(V6,REF(BARSLAST(VB),1)+1);
VD:=VC>REF(VC,1);
VE:=BACKSET(VD,2);
VF:=VE>REF(VE,1);
V10:=BACKSET(VF AND COUNT(V6,REF(BARSLAST(VB),1)+2)=0,REF(BARSLAST(VB),1)+2);
V11:=V10>REF(V10,1);
V12:=BACKSET(V11 AND COUNT(V6,REF(BARSLAST(VB),1)+2)=0,REF(BARSLAST(VB),1)+2);
V13:=V12>REF(V12,1);
V14:=IF(V6,COUNT(VB,REF(BARSLAST(V6),1)+1),0);
V15:=IF(V14=1 AND V6,BARSLAST(VF),0);
V16:=IF(V6 AND REF(LOW,BARSLAST(VF))>=REF(LOW,BARSLAST(V11)),BARSLAST(V11),BARSLAST(VF));
V17:=IF(V14=2 AND V6,V16,0);
V18:=IF(V14>=3 AND V6,IF(V6 AND REF(LOW,V16)>=REF(LOW,BARSLAST(V13)),BARSLAST(V13),V16),0);
V19:=V15+V17+V18;
V1A:=BACKSET(V6,V19);
V1B:=V1A>REF(V1A,1);
V1C:=BACKSET(V1B,2);
V1D:=V1C>REF(V1C,1);
V1E:=V1D OR V1;
V1F:=BACKSET(V1E,REF(BARSLAST(V6),1)+1);
V20:=V1F>REF(V1F,1);
V21:=BACKSET(V20,2);
V22:=V21>REF(V21,1);
V23:=BACKSET(V22 AND COUNT(V1E,REF(BARSLAST(V6),1)+2)=0,REF(BARSLAST(V6),1)+2);
V24:=V23>REF(V23,1);
V25:=BACKSET(V24 AND COUNT(V1E,REF(BARSLAST(V6),1)+2)=0,REF(BARSLAST(V6),1)+2);
V26:=V25>REF(V25,1);
V27:=IF(V1E,COUNT(V5,REF(BARSLAST(V1E),1)+1),0);
V28:=IF(V27=1 AND V1E,BARSLAST(V22),0);
V29:=IF(V1E AND REF(HIGH,BARSLAST(V22))<=REF(HIGH,BARSLAST(V24)),BARSLAST(V24),BARSLAST(V22));
V2A:=IF(V27=2 AND V1E,V29,0);
V2B:=IF(V27>=3 AND V1E,IF(V1E AND REF(HIGH,V29)<=REF(HIGH,BARSLAST(V26)),BARSLAST(V26),V29),0);
V2C:=V28+V2A+V2B;
V2D:=BACKSET(V1E,V2C);
V2E:=V2D>REF(V2D,1);
V2F:=BACKSET(V2E,2);
V30:=V2F>REF(V2F,1);
DRAWLINE(V1D,LOW,V30,HIGH,0),LINETHICK3;
DRAWLINE(V30,HIGH,V1D,LOW,0),LINETHICK3;
V31:=BACKSET(V1,BARSLAST(V1D)+1);
V32:=V31>REF(V31,1);
V33:=BACKSET(V1,BARSLAST(V30)+1);
V34:=V33>REF(V33,1);
V35:=IF(BARSLAST(V32)<BARSLAST(V34),V32,V34);
V36:=IF(BARSLAST(V32)<BARSLAST(V34),LOW,HIGH);
DRAWLINE(V35,V36,V1,CLOSE,0);
V37:=BACKSET(V1,BARSLAST(V1D)+1);
V38:=V37>REF(V37,1);
V39:=BACKSET(V38,REF(BARSLAST(V1D),1)+2);
V3A:=V39>REF(V39,1);
{DRAWLINE(V3A,LOW,V38,LOW,1);}
V3B:=BACKSET(V1,BARSLAST(V30)+1);
V3C:=V3B>REF(V3B,1);
V3D:=BACKSET(V3C,REF(BARSLAST(V30),1)+2);
V3E:=V3D>REF(V3D,1);
DRAWLINE(V3E,HIGH,V3C,HIGH,1);
前一低: REF(LOW,BARSLAST(V38)),COLORCCFF99,DOTLINE;
前二低: REF(LOW,BARSLAST(V3A)),COLORMAGENTA,DOTLINE;
前一高: REF(HIGH,BARSLAST(V3C)),COLORCCFF99;
前二高: REF(HIGH,BARSLAST(V3E)),COLORMAGENTA;
{以下语句是大盘指数显示 股票指标网http://}
A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); B1:=FILTER(A1,3); C1:=BACKSET(B1,3+1); D1:=FILTER(C1,3);{高点}
A2:=REF(LOW,3)=LLV(LOW,2*3+1); B2:=FILTER(A2,3); C2:=BACKSET(B2,3+1); D2:=FILTER(C2,3);{低点}
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1);{过滤后低点}
L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1);{过滤后高点}
UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
常数1:=REF(INDEXC,BARSLAST(VV))/REF(CLOSE,BARSLAST(VV));
常数2:=REF(INDEXC,BARSLAST(XX))/REF(CLOSE,BARSLAST(XX));
{DRAWNUMBER(HD,HIGH*(1+0.002),2),COLORFF00FF;
DRAWNUMBER(LD,LOW*(1.001-0.002),2),COLORFF00FF;}{有未来函数};
ZT:=C>REF(C,1)*1.098 AND C=H AND PERIOD=5;
DT:=C<REF(C,1)*0.902 AND C=L AND PERIOD=5;
STICKLINE(ZT,C,O,3.0,0),COLOR00BBFF;
STICKLINE(ZT,C,O,2.4,0),COLOR00CCFF;
STICKLINE(ZT,C,O,1.8,0),COLOR00DDFF;
STICKLINE(ZT,C,O,1.2,0),COLOR00EEFF;
STICKLINE(ZT,C,O,0.6,0),COLOR00FFFF;
STICKLINE(ZT,H,L,0.0,0),COLOR00FFFF;
STICKLINE(DT,C,O,3.0,0),COLOR00BB00;
STICKLINE(DT,C,O,2.4,0),COLOR00CC00;
STICKLINE(DT,C,O,1.8,0),COLOR00DD00;
STICKLINE(DT,C,O,1.2,0),COLOR00EE00;
STICKLINE(DT,C,O,0.6,0),COLOR00FF00;
STICKLINE(DT,H,L,0.0,0),COLOR00FF00;
STICKLINE(H=ZTPRICE(REF(C,1),0.1) AND C<H AND PERIOD=5,C,O,1,0),COLOR00FFFF;{盘中涨停实体K线上画细黄柱}
STICKLINE(L=DTPRICE(REF(C,1),0.1) AND C>L AND PERIOD=5,C,O,1,0),COLOR00FF00;{盘中跌停实体K线上画细绿柱};
 



来函数检测结果如下
该公式包含未来函数:BACKSET
该公式包含未来函数:COST
该公式包含未来函数:XMA

解密、定制、编写指标公式请联系QQ或微信同号:88652583
置顶指标

相关指标公式

X_1赋值:当前离开盘分钟数<240
X_2赋值:X_1<=0
X_3赋值:1
X_4赋值:1281210
X_5赋值:如果日期>X_4,返回X_2,否则返回X_3
X_6赋值:如果日期>X_4,返回0,否则返回1
X_7赋值:如果日期>X_4,返回1,否则返回0
收盘价
填充背景
X_8赋值:1 AND X_6
X_9赋值:(最高价的25日偏移移动平均的25日偏移移动平均-最低价的25日偏移移动平均的25日偏移移动平均)*1+最高价的25日偏移移动平均的25日偏移移动平均
X_10赋值:最低价的25日偏移移动平均的25日偏移移动平均-(最高价的25日偏移移动平均的25日偏移移动平均-最低价的25日偏移移动平均的25日偏移移动平均)*1
X_11赋值:X_8*(最高价的60日偏移移动平均的60日偏移移动平均-最低价的60日偏移移动平均的60日偏移移动平均)*2.2+最高价的60日偏移移动平均的60日偏移移动平均
X_12赋值:X_8*最低价的60日偏移移动平均的60日偏移移动平均-(最高价的60日偏移移动平均的60日偏移移动平均-最低价的60日偏移移动平均的60日偏移移动平均)*2.8
X_13赋值:X_8*(X_9+X_11)/2
X_14赋值:X_8*(X_10+X_12)/2
画带状线
画带状线
输出收盘价:收盘价,NODRAW,画白色
输出涨跌幅:(收盘价-1日前的收盘价)/1日前的收盘价*100,NODRAW,画黄色
输出最新价:如果收盘价,返回收盘价的最后一日取值设为常数,否则返回无效数,DOTLINE,画红色
K线
X_15赋值:(最高价+最低价)/2
X_16赋值:X_15
X_17赋值:X_15的3日偏移移动平均
X_18赋值:X_15的5日偏移移动平均
X_19赋值:X_15的10日偏移移动平均
X_20赋值:X_15的15日偏移移动平均
X_21赋值:X_15的20日偏移移动平均
X_22赋值:X_15的25日偏移移动平均
X_23赋值:X_15的30日偏移移动平均
X_24赋值:X_15的35日偏移移动平均
X_25赋值:X_15的40日偏移移动平均
X_26赋值:X_15的45日偏移移动平均
X_27赋值:X_15的50日偏移移动平均
X_28赋值:X_15的55日偏移移动平均
X_29赋值:X_15的60日偏移移动平均
X_30赋值:(X_17+X_18+X_19+X_20+X_21+X_22+X_23+X_24+X_25+X_26+X_27+X_28+X_29)/13
X_31赋值:(X_16+X_17+X_18)/3
X_32赋值:当满足条件2>1时以X_30位置为顶点画折线连接
X_33赋值:X_16>X_17 AND X_16>X_18 AND X_16>X_19 AND X_16>X_20 AND X_16>X_21 AND X_16>X_22 AND X_16>X_23 AND X_16>X_24 AND X_16>X_25 AND X_16>X_26 AND X_16>X_27 AND X_16>X_28 AND X_16>X_29 AND X_17>X_18 AND X_17>X_19 AND X_17>X_20 AND X_17>X_21 AND X_17>X_22 AND X_17>X_23
X_34赋值:X_17>X_24 AND X_17>X_25 AND X_17>X_26 AND X_17>X_27 AND X_17>X_28 AND X_17>X_29 AND X_18>X_19 AND X_18>X_20 AND X_18>X_21 AND X_18>X_22 AND X_18>X_23 AND X_18>X_24 AND X_18>X_25 AND X_18>X_26 AND X_18>X_27 AND X_18>X_28 AND X_18>X_29 AND X_19>X_20 AND X_19>X_21 AND X_19>X_22 AND X_19>X_23 AND X_19>X_24 AND X_19>X_25 AND X_19>X_26 AND X_19>X_27 AND X_19>X_28 AND X_19>X_29
X_35赋值:X_20>X_21 AND X_20>X_22 AND X_20>X_23 AND X_20>X_24 AND X_20>X_25 AND X_20>X_26 AND X_20>X_27 AND X_20>X_28 AND X_20>X_29 AND X_21>X_22 AND X_21>X_23 AND X_21>X_24 AND X_21>X_25 AND X_21>X_26 AND X_21>X_27 AND X_21>X_28 AND X_21>X_29 AND X_22>X_23 AND X_22>X_24 AND X_22>X_25 AND X_22>X_26 AND X_22>X_27 AND X_22>X_28 AND X_22>X_29 AND X_23>X_24 AND X_23>X_25
X_36赋值:X_23>X_26 AND X_23>X_27 AND X_23>X_28 AND X_23>X_29 AND X_24>X_25 AND X_24>X_26 AND X_24>X_27 AND X_24>X_28 AND X_24>X_29 AND X_25>X_26 AND X_25>X_27 AND X_25>X_28 AND X_25>X_29 AND X_26>X_27 AND X_26>X_28 AND X_26>X_29 AND X_27>X_28 AND X_27>X_29 AND X_28>X_29
X_37赋值:X_33 AND X_34 AND X_35 AND X_36
X_38赋值:X_16X_39赋值:X_17X_40赋值:X_19X_41赋值:X_21X_42赋值:X_23X_43赋值:X_38 AND X_39 AND X_40 AND X_41 AND X_42
X_44赋值:(收盘价-36日内最低价的最低值)/(36日内最高价的最高值-36日内最低价的最低值)*100
X_45赋值:X_14的3日[1日权重]移动平均
X_46赋值:X_45的3日[1日权重]移动平均
X_47赋值:X_46的3日[1日权重]移动平均
X_48赋值:X_46
X_49赋值:X_47
X_50赋值:X_46<20
X_51赋值:X_46>80
X_52赋值:X_50 OR X_51
当满足条件X_37ANDCLOSE>=OPENANDCLOSE当满足条件X_37ANDCLOSE>=OPENANDCLOSE当满足条件X_43ANDCLOSE>=OPENANDCLOSE当满足条件X_43ANDCLOSE>=OPENANDCLOSE当满足条件X_37ANDCLOSE当满足条件X_37ANDCLOSE当满足条件X_43ANDCLOSE当满足条件X_43ANDCLOSEX_53赋值:(最高价+最高价的3日偏移移动平均+最高价的5日偏移移动平均+最高价的10日偏移移动平均+最高价的15日偏移移动平均+最高价的20日偏移移动平均+最高价的25日偏移移动平均+最高价的30日偏移移动平均+最高价的35日偏移移动平均+最高价的40日偏移移动平均+最高价的45日偏移移动平均+最高价的50日偏移移动平均+最高价的55日偏移移动平均+最高价的60日偏移移动平均)/14
X_54赋值:(最低价+最低价的3日偏移移动平均+最低价的5日偏移移动平均+最低价的10日偏移移动平均+最低价的15日偏移移动平均+最低价的20日偏移移动平均+最低价的25日偏移移动平均+最低价的30日偏移移动平均+最低价的35日偏移移动平均+最低价的40日偏移移动平均+最低价的45日偏移移动平均+最低价的50日偏移移动平均+最低价的55日偏移移动平均+最低价的60日偏移移动平均)/14
X_55赋值:X_20>X_21 AND X_20>X_22 AND X_20>X_23 AND X_20>X_24 AND X_20>X_25 AND X_20>X_26 AND X_20>X_27 AND X_20>X_28 AND X_20>X_29 AND X_21>X_22 AND X_21>X_23 AND X_21>X_24 AND X_21>X_25 AND X_21>X_26 AND X_21>X_27 AND X_21>X_28 AND X_21>X_29 AND X_22>X_23 AND X_22>X_24 AND X_22>X_25 AND X_22>X_26 AND X_22>X_27 AND X_22>X_28 AND X_22>X_29 AND X_23>X_24 AND X_23>X_25 AND X_23>X_26 AND X_23>X_27 AND X_23>X_28 AND X_23>X_29 AND X_24>X_25 AND X_24>X_26 AND X_24>X_27 AND X_24>X_28 AND X_24>X_29 AND X_25>X_26 AND X_25>X_27 AND X_25>X_28 AND X_25>X_29 AND X_26>X_27 AND X_26>X_28 AND X_26>X_29 AND X_27>X_28 AND X_27>X_29 AND X_28>X_29
X_56赋值:X_20X_57赋值:X_53/X_54*X_30+(X_53/X_54*X_30-X_30)的10日偏移移动平均
X_58赋值:X_54/X_53*X_30-(X_30-X_54/X_53*X_30)的10日偏移移动平均
X_59赋值:如果1日前的X_30X_60赋值:如果1日前的X_30>X_30ANDNOT(X_56),返回X_58,否则返回无效数
X_61赋值:X_53/X_54*X_30+(X_53/X_54*X_30-X_30)/2的10日偏移移动平均
X_62赋值:X_54/X_53*X_30-0.5*(X_30-X_54/X_53*X_30)的10日偏移移动平均
X_63赋值:如果1日前的X_30>X_30,返回X_61,否则返回无效数
X_64赋值:如果1日前的X_30X_65赋值:X_53/X_54*X_30+(X_53/X_54*X_30-X_30)*1.5
X_66赋值:X_54/X_53*X_30-1.5*(X_30-X_54/X_53*X_30)
X_67赋值:当满足条件2>1时以X_65位置为顶点画折线连接
X_68赋值:当满足条件2>1时以X_66位置为顶点画折线连接
X_69赋值:如果1日前的X_30X_70赋值:如果1日前的X_30>X_30ANDX_56,返回X_66,否则返回无效数
X_71赋值:如果X_37,返回X_65,否则返回无效数
X_72赋值:如果X_43,返回X_66,否则返回无效数
交时1赋值:当前离开盘分钟数<240
交时2赋值:交时1<=0
交时3赋值:1
DAYN1赋值:1281210
定时1赋值:如果日期>DAYN1,返回交时2,否则返回交时3
定时2赋值:如果日期>DAYN1,返回0,否则返回1
定时3赋值:如果日期>DAYN1,返回1,否则返回0
所属板块赋值:字符串相加
当满足条件是否最后一个周期时,在横轴0纵轴0位置书写文字,画黄色
当满足条件1时,在横轴0.30纵轴0.75位置书写文字,COLOR555555
输出鬼头鬼脸鬼脚:如果定时3,返回0,否则返回无效数,画蓝色
KS赋值:(收盘价-收盘价的13日简单移动平均)/收盘价的13日简单移动平均*(-100)
RKS赋值:1日前的KS
MLS赋值:RKS/KS>=1.23 AND RKS>=8 AND 收盘价/1日前的收盘价>=1.02
输出 反弹:当满足条件MLS=1时,在最高价和最低价位置之间画柱状线,宽度为0,1不为0则画空心柱.,画洋红色,线宽为1
当满足条件MLS=1时,在开盘价和收盘价位置之间画柱状线,宽度为7,1不为0则画空心柱.,画洋红色,线宽为1
输出顶:获利盘为98%的成本分布,画黄色
输出拉升:获利盘为75%的成本分布,COLOR0066CC
输出平均成本:获利盘为50%的成本分布,画绿色
输出控盘成本30:获利盘为30%的成本分布,画淡灰色
输出主力成本5:获利盘为5%的成本分布,画青色
输出底:获利盘为0.05%的成本分布画蓝色
N赋值:10
V1赋值:是否最后一个周期
V2赋值:N日前的最高价=2*N+1日内最高价的最高值
V3赋值:V2的N日过滤
V4赋值:若V3则将最近N+1周期置为1
V5赋值:V4的N日过滤
V6赋值:V5 OR V1
V7赋值:N日前的最低价=2*N+1日内最低价的最低值
V8赋值:V7的N日过滤
V9赋值:若V8则将最近N+1周期置为1
VA赋值:V9的N日过滤
VB赋值:VA AND 取反
VC赋值:若V6则将最近1日前的上次VB距今天数+1周期置为1
VD赋值:VC>1日前的VC
VE赋值:若VD则将最近2周期置为1
VF赋值:VE>1日前的VE
V10赋值:若VFANDCOUNT(V6,1日前的上次VB距今天数+2)=0则将最近1日前的上次VB距今天数+2周期置为1
V11赋值:V10>1日前的V10
V12赋值:若V11ANDCOUNT(V6,1日前的上次VB距今天数+2)=0则将最近1日前的上次VB距今天数+2周期置为1
V13赋值:V12>1日前的V12
V14赋值:如果V6,返回统计1日前的上次V6距今天数+1日中满足VB的天数,否则返回0
V15赋值:如果V14=1ANDV6,返回上次VF距今天数,否则返回0
V16赋值:如果V6ANDREF(最低价,上次VF距今天数)>=上次V11距今天数日前的最低价,返回上次V11距今天数,否则返回上次VF距今天数
V17赋值:如果V14=2ANDV6,返回V16,否则返回0
V18赋值:如果V14>=3ANDV6,返回如果V6ANDREF(最低价,V16)>=上次V13距今天数日前的最低价,返回上次V13距今天数,否则返回V16,否则返回0
V19赋值:V15+V17+V18
V1A赋值:若V6则将最近V19周期置为1
V1B赋值:V1A>1日前的V1A
V1C赋值:若V1B则将最近2周期置为1
V1D赋值:V1C>1日前的V1C
V1E赋值:V1D OR V1
V1F赋值:若V1E则将最近1日前的上次V6距今天数+1周期置为1
V20赋值:V1F>1日前的V1F
V21赋值:若V20则将最近2周期置为1
V22赋值:V21>1日前的V21
V23赋值:若V22ANDCOUNT(V1E,1日前的上次V6距今天数+2)=0则将最近1日前的上次V6距今天数+2周期置为1
V24赋值:V23>1日前的V23
V25赋值:若V24ANDCOUNT(V1E,1日前的上次V6距今天数+2)=0则将最近1日前的上次V6距今天数+2周期置为1
V26赋值:V25>1日前的V25
V27赋值:如果V1E,返回统计1日前的上次V1E距今天数+1日中满足V5的天数,否则返回0
V28赋值:如果V27=1ANDV1E,返回上次V22距今天数,否则返回0
V29赋值:如果V1EANDREF(最高价,上次V22距今天数)<=上次V24距今天数日前的最高价,返回上次V24距今天数,否则返回上次V22距今天数
V2A赋值:如果V27=2ANDV1E,返回V29,否则返回0
V2B赋值:如果V27>=3ANDV1E,返回如果V1EANDREF(最高价,V29)<=上次V26距今天数日前的最高价,返回上次V26距今天数,否则返回V29,否则返回0
V2C赋值:V28+V2A+V2B
V2D赋值:若V1E则将最近V2C周期置为1
V2E赋值:V2D>1日前的V2D
V2F赋值:若V2E则将最近2周期置为1
V30赋值:V2F>1日前的V2F
当满足条件V1D时,在最低价位置画直线起点,当满足条件V30时,在最高价位置画直线终点,0表示是否延长.,线宽为3
当满足条件V30时,在最高价位置画直线起点,当满足条件V1D时,在最低价位置画直线终点,0表示是否延长.,线宽为3
V31赋值:若V1则将最近上次V1D距今天数+1周期置为1
V32赋值:V31>1日前的V31
V33赋值:若V1则将最近上次V30距今天数+1周期置为1
V34赋值:V33>1日前的V33
V35赋值:如果上次V32距今天数<上次V34距今天数,返回V32,否则返回V34
V36赋值:如果上次V32距今天数<上次V34距今天数,返回最低价,否则返回最高价
当满足条件V35时,在V36位置画直线起点,当满足条件V1时,在收盘价位置画直线终点,0表示是否延长.
V37赋值:若V1则将最近上次V1D距今天数+1周期置为1
V38赋值:V37>1日前的V37
V39赋值:若V38则将最近1日前的上次V1D距今天数+2周期置为1
V3A赋值:V39>1日前的V39
V3B赋值:若V1则将最近上次V30距今天数+1周期置为1
V3C赋值:V3B>1日前的V3B
V3D赋值:若V3C则将最近1日前的上次V30距今天数+2周期置为1
V3E赋值:V3D>1日前的V3D
当满足条件V3E时,在最高价位置画直线起点,当满足条件V3C时,在最高价位置画直线终点,1表示是否延长.
输出前一低: 上次V38距今天数日前的最低价,COLORCCFF99,DOTLINE
输出前二低: 上次V3A距今天数日前的最低价,画洋红色,DOTLINE
输出前一高: 上次V3C距今天数日前的最高价,COLORCCFF99
输出前二高: 上次V3E距今天数日前的最高价,画洋红色
A1赋值:3日前的最高价=2*3+1日内最高价的最高值
B1赋值:A1的3日过滤
C1赋值:若B1则将最近3+1周期置为1
D1赋值:C1的3日过滤
A2赋值:3日前的最低价=2*3+1日内最低价的最低值
B2赋值:A2的3日过滤
C2赋值:若B2则将最近3+1周期置为1
D2赋值:C2的3日过滤
E1赋值:(1日前的2*3日内最低价的最低值+1日前的2*3日内最高价的最高值)/2
E2赋值:(最高价+最低价)/2
H1赋值:(D1 AND 取反) OR 是否最后一个周期 OR 收盘价的有效数据周期数=1
L1赋值:(D2 AND 取反)
H2赋值:D1 AND 取反
X1赋值:1日前的上次H1距今天数+1
F1赋值:若H1ANDCOUNT(L1,X1)>0则将最近X1日内如果L1,返回最低价,否则返回10000距今天数周期置为1
G1赋值:F1>1日前的F1
I1赋值:若G1则将最近2周期置为1
LD赋值:I1>1日前的I1
L2赋值:LD OR 是否最后一个周期 OR 收盘价的有效数据周期数=1
X2赋值:1日前的上次L2距今天数+1
F2赋值:若L2ANDCOUNT(H2,X2)>0则将最近X2日内如果H2,返回最高价,否则返回0距今天数周期置为1
G2赋值:F2>1日前的F2
I2赋值:若G2则将最近2周期置为1
HD赋值:I2>1日前的I2
UU赋值:若是否最后一个周期则将最近上次LD距今天数+1周期置为1
VV赋值:UU>1日前的UU
WW赋值:若VV则将最近1日前的上次LD距今天数+2周期置为1
XX赋值:WW>1日前的WW
常数1赋值:上次VV距今天数日前的大盘的收盘价/上次VV距今天数日前的收盘价
常数2赋值:上次XX距今天数日前的大盘的收盘价/上次XX距今天数日前的收盘价

ZT赋值:收盘价>1日前的收盘价*1.098 AND 收盘价=最高价 AND 周期类型=5
DT赋值:收盘价<1日前的收盘价*0.902 AND 收盘价=最低价 AND 周期类型=5
当满足条件ZT时,在收盘价和开盘价位置之间画柱状线,宽度为3.0,0不为0则画空心柱.,COLOR00BBFF
当满足条件ZT时,在收盘价和开盘价位置之间画柱状线,宽度为2.4,0不为0则画空心柱.,COLOR00CCFF
当满足条件ZT时,在收盘价和开盘价位置之间画柱状线,宽度为1.8,0不为0则画空心柱.,COLOR00DDFF
当满足条件ZT时,在收盘价和开盘价位置之间画柱状线,宽度为1.2,0不为0则画空心柱.,COLOR00EEFF
当满足条件ZT时,在收盘价和开盘价位置之间画柱状线,宽度为0.6,0不为0则画空心柱.,COLOR00FFFF
当满足条件ZT时,在最高价和最低价位置之间画柱状线,宽度为0.0,0不为0则画空心柱.,COLOR00FFFF
当满足条件DT时,在收盘价和开盘价位置之间画柱状线,宽度为3.0,0不为0则画空心柱.,COLOR00BB00
当满足条件DT时,在收盘价和开盘价位置之间画柱状线,宽度为2.4,0不为0则画空心柱.,COLOR00CC00
当满足条件DT时,在收盘价和开盘价位置之间画柱状线,宽度为1.8,0不为0则画空心柱.,COLOR00DD00
当满足条件DT时,在收盘价和开盘价位置之间画柱状线,宽度为1.2,0不为0则画空心柱.,COLOR00EE00
当满足条件DT时,在收盘价和开盘价位置之间画柱状线,宽度为0.6,0不为0则画空心柱.,COLOR00FF00
当满足条件DT时,在最高价和最低价位置之间画柱状线,宽度为0.0,0不为0则画空心柱.,COLOR00FF00
当满足条件最高价=计算涨停价ANDC当满足条件最低价=计算跌停价ANDC>LANDPERIOD=5时,在收盘价和开盘价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR00FF00


指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:指标公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图