【通达信源码分享】精品指标公式-短线精准抄底
VAR1:=(2*CLOSE+HIGH+LOW)/40;
VAR2:=EXPMA(EXPMA(EXPMA(VAR1,4),4),4);
J:(VAR2-REF(VAR2,1))/REF(VAR2,1)*100, COLORSTICK;
D:MA(J,3);
K:MA(J,1);
PW1:=EMA(((VOL*(CLOSE-OPEN)*240/FROMOPEN)/(CLOSE+OPEN)),38);
ME:=EMA(PW1,8)*0.1,COLORSTICK;
MEE:=ABS(J);
V10:=PEAKBARS(3,15,1)<10;
V12:=IF(V10=1,50,0);
头部:=IF(V12=50,100,0);
TOB:=J<=REF(J,1) OR K<=D;
卖:IF(头部>REF(头部,1){ AND TOB},MEE,0),COLORGREEN,LINETHICK3;{逃顶}
V9:=TROUGHBARS(3,15,1)<10;
V11:=IF(V9=1,50,0);
底部:=IF(V11=50,50,0);
买底:IF(底部>REF(底部,1),MEE,0),COLORRED,LINETHICK2;
STICKLINE(买底,0,MEE*0.9,1,0),COLORRED;
STICKLINE(卖,0,MEE*0.9,1,0),COLORBLUE;
STICKLINE(卖,0,MEE*0.9,0.6,0),COLORWHITE;
DRAWTEXT(底部>REF(底部,1),MEE,'★底买'),COLORYELLOW;
DRAWTEXT(头部>REF(头部,1),MEE,'▲顶卖!'),COLORWHITE;
DRAWTEXT(头部>REF(头部,1),MEE*1.04,'▲'),COLORWHITE;
DRAWTEXT(头部>REF(头部,1),MEE*1.08,'▲'),COLORWHITE;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!