以下是通达信勿忘主力进场副图指标公式源码(无源码的请下载附件导入)
XA_1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
XA_2:=SMA(ABS(LOW-XA_1),13,1)/SMA(MAX(LOW-XA_1,0),10,1);
XA_3:=EMA(XA_2,10);
XA_4:=LLV(LOW,33);
XA_5:=EMA(IF(LOW<=XA_4,XA_3,0),3);
警戒线:22.5,DOTLINE,COLORWHITE;
分水岭:47.5,COLORMAGENTA;
主力进场:XA_5>REF(XA_5,1);
洗盘:XA_5<REF(XA_5,1);
XA_6:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XG:REF(主力进场,1) AND REF(主力进场,2) AND 洗盘;
STICKLINE(主力进场,0,XA_5,6,0),COLORRED;
STICKLINE(洗盘,0,XA_5,6,0),COLORGREEN;
DRAWICON(XG,51,9);
142411397.jpg
|