以下是同花顺实用主图指标

同花顺实用主图指标

源码

DRAWGBKLAST(C<O,STRIP(RGB(90,0,180),RGB(10,0,20),0));
DRAWGBKLAST(C>O,STRIP(RGB(140,0,70),RGB(20,0,10),0));
S1:=EMA(C,3)*2 – EMA(EMA(C,3),3), coloryellow;
S2:=EMA(C,6)*2 – EMA(EMA(C,6),6), coloryellow;
S3:=EMA(C,9)*2 – EMA(EMA(C,9),9), coloryellow;
S4:=EMA(C,14)*2 – EMA(EMA(C,14),14), coloryellow;
S5:=EMA(C,19)*2 – EMA(EMA(C,19),19), coloryellow;
均线:=(S1+S2+S3+S4+S5)/5;
PARTLINE(均线,均线>REF(均线,1),RGB(250,250,0),均线<=REF(均线,1),RGB(0,250,250)),LINETHICK2;
L1:EMA(C,27)*2 – EMA(EMA(C,27),27),CulorFFFFFF;
L2:EMA(C,34)*2 – EMA(EMA(C,34),34),CulorE4E4E4;
L3:EMA(C,41)*2 – EMA(EMA(C,41),41),CulorC9C9C9;
L4:EMA(C,48)*2 – EMA(EMA(C,48),48),CulorAFAFAF;
L5:EMA(C,55)*2 – EMA(EMA(C,55),55),Culor949494;
MA6:=MA(C,6);
X1:=REF(EMA(C,6),1);
X2:=(EMA(C,6)-X1)/X1*100;
N1:=BARSLAST(CROSS(X2,0));
N2:=BARSLAST(CROSS(0,X2));
X3:=CROSS(X2,0) OR CROSS(0,X2);
STICKLINE(N1<N2,REF(MA6,N1),REF(MA6,N1),8,1),CulorFF15FF;
STICKLINE(N2<N1,REF(MA6,N2),REF(MA6,N2),8,1),CulorFF8B17;
qs1:=IF(C>MA(C,4),1,0);
qs2:=IF(C<MA(C,4),-1,0);
qs3:=IF(MA(C,5)>REF(MA(C,5),1),1,0);
qs4:=IF(MA(C,5)<REF(MA(C,5),1),-1,0);
qs:=qs1+qs2+qs3+qs4;
STICKLINE((qs=-2 AND C<O),H,L,0,0),Culor00FF00;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,10,0),Culor009500;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,8,0),Culor00AA00;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,6,0),Culor00BF00;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,4,0),Culor00D500;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,2,0),Culor00EA00;//绿
STICKLINE((qs=-2 AND C>O),H,L,0,0),CulorFF00FF;
STICKLINE((qs=-2 AND C>O),O,C,10,0),CulorBB00BB;
STICKLINE((qs=-2 AND C>O),O,C,8,1),colorFF5BFF;
STICKLINE((qs=-2 AND C>O),O,C,4,0),colorF900F9;
STICKLINE((qs=-2 AND C>O),O,C,2,0),CulorFF11FF;//桔

STICKLINE((qs=0 AND C<O),H,L,0,0),CulorFFFFFF;
STICKLINE((qs=0 AND C<O),O,C,10,0),CulorCCCCCC;
STICKLINE((qs=0 AND C<O),O,C,8,1),CulorDEDEDE;
STICKLINE((qs=0 AND C<O),O,C,4,0),CulorF6F6F6;
STICKLINE((qs=0 AND C<O),O,C,2,0),CulorFFFFFF;//白

STICKLINE((qs=0 AND C>O),H,L,0,0),Culor009FFF;
STICKLINE((qs=0 AND C>O),O,C,10,0),Culor009FFF;
STICKLINE((qs=0 AND C>O),O,C,8,1),Culor00B5FF;
STICKLINE((qs=0 AND C>O),O,C,4,0),Culor00E4FF;
STICKLINE((qs=0 AND C>O),O,C,2,0),Culor00FFFF;//黄

STICKLINE((qs=2 AND C<O),H,L,0,0),CulorFFFF00;
STICKLINE((qs=2 AND C<O),O,C,10,0),CulorAAAA00;
STICKLINE((qs=2 AND C<O),O,C,8,1),CulorBFBF00;
STICKLINE((qs=2 AND C<O),O,C,4,0),CulorD5D500;
STICKLINE((qs=2 AND C<O),O,C,2,0),CulorEAEA00;//青

STICKLINE((qs=2 AND C>O),H,L,0,0),Culor0000FF;
STICKLINE((qs=2 AND C>O),O,C,10,0),Culor0000AA;
STICKLINE((qs=2 AND C>O),O,C,8,0),Culor0000BF;
STICKLINE((qs=2 AND C>O),O,C,6,0),Culor0000D5;
STICKLINE((qs=2 AND C>O),O,C,4,0),Culor0000EA;//红
STICKLINE((qs=2 AND C>O),O,C,2,0),Culor0000FF;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,4),4)/EMA(EMA(ABS(MTM),4),4);
低吸:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
DRAWTEXT(FILTER(低吸=1,5),LOW-0.19,’▲’),CulorFFFFFF;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE – LC),0),3,1) / SMA(ABS((CLOSE – LC)),3,1)) * 100);
DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),’▼’),Culor00E1E1;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。