同花顺实用主图指标
源码
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),ColorFFFFFF;
L2:EMA(C,34)*2 - EMA(EMA(C,34),34),ColorE4E4E4;
L3:EMA(C,41)*2 - EMA(EMA(C,41),41),ColorC9C9C9;
L4:EMA(C,48)*2 - EMA(EMA(C,48),48),ColorAFAFAF;
L5:EMA(C,55)*2 - EMA(EMA(C,55),55),Color949494;
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),ColorFF15FF;
STICKLINE(N2<N1,REF(MA6,N2),REF(MA6,N2),8,1),ColorFF8B17;
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),Color00FF00;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,10,0),Color009500;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,8,0),Color00AA00;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,6,0),Color00BF00;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,4,0),Color00D500;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,2,0),Color00EA00;//绿
STICKLINE((qs=-2 AND C>O),H,L,0,0),ColorFF00FF;
STICKLINE((qs=-2 AND C>O),O,C,10,0),ColorBB00BB;
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),ColorFF11FF;//桔
STICKLINE((qs=0 AND C<O),H,L,0,0),ColorFFFFFF;
STICKLINE((qs=0 AND C<O),O,C,10,0),ColorCCCCCC;
STICKLINE((qs=0 AND C<O),O,C,8,1),ColorDEDEDE;
STICKLINE((qs=0 AND C<O),O,C,4,0),ColorF6F6F6;
STICKLINE((qs=0 AND C<O),O,C,2,0),ColorFFFFFF;//白
STICKLINE((qs=0 AND C>O),H,L,0,0),Color009FFF;
STICKLINE((qs=0 AND C>O),O,C,10,0),Color009FFF;
STICKLINE((qs=0 AND C>O),O,C,8,1),Color00B5FF;
STICKLINE((qs=0 AND C>O),O,C,4,0),Color00E4FF;
STICKLINE((qs=0 AND C>O),O,C,2,0),Color00FFFF;//黄
STICKLINE((qs=2 AND C<O),H,L,0,0),ColorFFFF00;
STICKLINE((qs=2 AND C<O),O,C,10,0),ColorAAAA00;
STICKLINE((qs=2 AND C<O),O,C,8,1),ColorBFBF00;
STICKLINE((qs=2 AND C<O),O,C,4,0),ColorD5D500;
STICKLINE((qs=2 AND C<O),O,C,2,0),ColorEAEA00;//青
STICKLINE((qs=2 AND C>O),H,L,0,0),Color0000FF;
STICKLINE((qs=2 AND C>O),O,C,10,0),Color0000AA;
STICKLINE((qs=2 AND C>O),O,C,8,0),Color0000BF;
STICKLINE((qs=2 AND C>O),O,C,6,0),Color0000D5;
STICKLINE((qs=2 AND C>O),O,C,4,0),Color0000EA;//红
STICKLINE((qs=2 AND C>O),O,C,2,0),Color0000FF;
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,'▲'),ColorFFFFFF;
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),'▼'),Color00E1E1;