同花顺多空追逃主图指标
源码
DRAWGBK(CLOSE>0,STRIP(RGB(100,150,200),RGB(30,20,0),1));
K5:EMA(CLOSE,5),colorred,LINETHICK0,PRECIS2;
K10:EMA(CLOSE,10),LINETHICK0,PRECIS2;
k20:EMA(CLOSE,20),LINETHICK0,PRECIS2 ;
K30:=EMA(CLOSE,30);
k25:=EMA(CLOSE,25) ;
PARTLINE(K5,K5>REF(K5,1),RGB(255,0,0),K5<REF(K5,1),RGB(0,255,0),1),LAYER0;
PARTLINE(K10,K10>REF(K10,1),RGB(255,0,0),K10<REF(K10,1),RGB(0,255,0),1),linethick2,LAYER0;
PARTLINE(k20,k20>REF(k20,1),RGB(155,55,0),k20<REF(k20,1),RGB(0,255,250),1),LAYER0;
PARTLINE(k25,k25>REF(k25,1),RGB(155,55,0),k25<REF(k25,1),RGB(0,255,250),1),LAYER0;
PARTLINE(K30,K30>REF(K30,1),RGB(155,55,0),K30<REF(K30,1),RGB(0,255,250),1),LAYER0;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),OPEN,CLOSE,7,0),colorred;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorcyan;
STICKLINE(CLOSE<OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),OPEN,CLOSE,7,0),colorcyan;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;
BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,coloryellow,POINTDOT,LINETHICK2;
多:BBI+3*STD(BBI,10),coloryellow,POINTDOT,LINETHICK1;
空:BBI-3*STD(BBI,10),coloryellow,POINTDOT,LINETHICK1;
a1:=EMA(CLOSE,3);
a2:=EMA(CLOSE,46);
a3:=(a1 - a2)*3;
a4:=EMA(a3,5);
DRAWTEXT(a4<REF(a4,1),K30,'o'),COLORff0000;
DRAWTEXT(a4>=REF(a4,1),K30,'o'),COLOR0000FF;
追:DRAWTEXT(CROSS(A1,A2),L*0.98,'追'),COLOR0000FF;
逃:DRAWTEXT(CROSS(A2,A1),H*1.02,'逃'),COLOR0000FF;