通达信——精选指标《中继鉴定》副图指标源码
指标源码:
DRAWTEXT_FIX(ISLASTBAR,0,0,0,',colorred;
VAR1:=(HHV(EMA(EMA(C,5)-EMA(C,13),1),3)+ABS(LLV(EMA(EMA(C,5)-EMA(C,13),1),3)))/2;
VAR1/4*8,colorred,DOTLINE;
VAR1/4*4,colorred,DOTLINE;
VAR1/4*2,colorred,DOTLINE;
VAR1/4*1,colorred,DOTLINE;
0,DOTLINE,colorwhite;
DIF:EMA(EMA(C,5)-EMA(C,13),1),colorwhite;
DRAWICON(CROSS(DIF,0) AND REF(DIF,1)<0,-0.02,1);
DRAWICON(CROSS(VAR1/4*4,DIF) AND REF(DIF,1)>REF(VAR1/4*4,1),VAR1/4*4+0.1,2);
DRAWTEXT(CROSS(DIF,VAR1/4*4) AND REF(DIF,1)DRAWTEXT(CROSS(DIF,VAR1/4*4) AND REF(DIF,1)DRAWTEXT(CROSS(0,DIF) AND REF(DIF,1)>0,-0.01,'绝'),colorgreen;
DRAWTEXT(CROSS(0,DIF) AND REF(DIF,1)>0,-0.15,'卖'),colorgreen;
DRAWTEXT(CROSS(VAR1/4*2,DIF) AND REF(DIF,1)>REF(VAR1/4*2,1),-0.10,'先'),colorgreen;
DRAWTEXT(CROSS(VAR1/4*2,DIF) AND REF(DIF,1)>REF(VAR1/4*2,1),-0.20,'跑'),colorgreen;