特准抄底
M1:EMA(CLOSE,3);
M2:EMA(CLOSE,5);
M3:EMA(EMA(CLOSE,7),10);
M4:EMA(EMA(CLOSE,10),10);
M5:EMA(EMA(EMA(CLOSE,15),15),30);
VAR6:=EMA(EMA(EMA(CLOSE,5),10),30);
M6:EMA(VAR6,90),COLORMAGENTA;
VAR0:=20;
VAR1:=7;
VAR2:=49;
VAR3:=(CLOSE + HIGH + LOW)/3;
VAR4:=EMA(VAR3,16);
VAR5:=REF(VAR4,1);
W5:DRAWTEXT(REFX(M5,1),(REF(H,1)),'临界高点'),COLORWHITE;
买入:IF(VAR4 > VAR5,VAR4,DRAWNULL),LINETHICK3,COLORYELLOW;
卖出:IF(VAR4 < VAR5,VAR5,DRAWNULL),LINETHICK7,COLORBLUE;
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)
<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,7) ;
DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)
>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.02,8);
DRAWTEXT((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)
<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),L*0.99,'↖特准抄底'),COLORGREEN;
公式有未来函数