qs1:=IF(C>MA(C,5),1,0);
qs2:=IF(C<MA(C,5),-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),Color007900;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,8,1),Color00A200;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,4,0),Color00D600;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,2,0),Color00FF00;
STICKLINE((qs=-2 AND C>O),H,L,0,0),Color53A9FF;
STICKLINE((qs=-2 AND C>O),O,C,10,0),Color003E7B;
STICKLINE((qs=-2 AND C>O),O,C,8,1),Color0053A6;
STICKLINE((qs=-2 AND C>O),O,C,4,0),Color006AD5;
STICKLINE((qs=-2 AND C>O),O,C,2,0),Color2492FF;
STICKLINE((qs=0 AND C<O),H,L,0,0),ColorFFFFFF;
STICKLINE((qs=0 AND C<O),O,C,10,0),ColorBBBBBB;
STICKLINE((qs=0 AND C<O),O,C,8,1),ColorCACACA;
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),Color00FFFF;
STICKLINE((qs=0 AND C>O),O,C,10,0),Color008888;
STICKLINE((qs=0 AND C>O),O,C,8,1),Color00BFBF;
STICKLINE((qs=0 AND C>O),O,C,4,0),Color00DBDB;
STICKLINE((qs=0 AND C>O),O,C,2,0),Color00F0F0;
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),ColorFF66FF;
STICKLINE((qs=2 AND C>O),H,L,0,0),Color0000FF;
STICKLINE((qs=2 AND C>O),O,C,10,0),Color00007B;
STICKLINE((qs=2 AND C>O),O,C,8,1),Color000097;
STICKLINE((qs=2 AND C>O),O,C,4,0),Color0000C4;
STICKLINE((qs=2 AND C>O),O,C,2,0),Color0000EC;
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.99,'▲'),Color00E1E1;
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.08),'▼'),ColorFFFFFF;
同花顺实战均线主图指标
源码
DRAWGBK(DATE>900103,STRIP(RGB(80,10,255),RGB(130,140,255),1));
短线:EMA(C,6),ColorFFFFFF;
工作线:EMA(C,14),ColorFF24FF;
中线1:EMA(C,25),ColorFFFF28;
中线2:EMA(C,43),Color1AFFFF;
黑马线:EMA(C,140),Color44FF44;
疯牛线:EMA(C,453),Color7D00FB;
qs1:=IF(C>MA(C,5),1,0);
qs2:=IF(C<MA(C,5),-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),Color007900;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,8,1),Color00A200;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,4,0),Color00D600;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,2,0),Color00FF00;
STICKLINE((qs=-2 AND C>O),H,L,0,0),Color53A9FF;
STICKLINE((qs=-2 AND C>O),O,C,10,0),Color003E7B;
STICKLINE((qs=-2 AND C>O),O,C,8,1),Color0053A6;
STICKLINE((qs=-2 AND C>O),O,C,4,0),Color006AD5;
STICKLINE((qs=-2 AND C>O),O,C,2,0),Color2492FF;
STICKLINE((qs=0 AND C<O),H,L,0,0),ColorFFFFFF;
STICKLINE((qs=0 AND C<O),O,C,10,0),ColorBBBBBB;
STICKLINE((qs=0 AND C<O),O,C,8,1),ColorCACACA;
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),Color00FFFF;
STICKLINE((qs=0 AND C>O),O,C,10,0),Color008888;
STICKLINE((qs=0 AND C>O),O,C,8,1),Color00BFBF;
STICKLINE((qs=0 AND C>O),O,C,4,0),Color00DBDB;
STICKLINE((qs=0 AND C>O),O,C,2,0),Color00F0F0;
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),ColorFF66FF;
STICKLINE((qs=2 AND C>O),H,L,0,0),Color0000FF;
STICKLINE((qs=2 AND C>O),O,C,10,0),Color00007B;
STICKLINE((qs=2 AND C>O),O,C,8,1),Color000097;
STICKLINE((qs=2 AND C>O),O,C,4,0),Color0000C4;
STICKLINE((qs=2 AND C>O),O,C,2,0),Color0000EC;
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.99,'▲'),Color00E1E1;
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.08),'▼'),ColorFFFFFF;