|
DIF:=EMA(C,13)-EMA(C,30);
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
C1:=REF(C,1);
ZT:=(C1-C)/C1>=0.03 AND C<O;
A:=(((EXIST(ZT,14) OR (HHV(REF(C,1),4)-LLV(REF(C,1),4))/REF(C,1)<0.04) AND
((C>O AND (O=L OR (C-O)>=10*(O-L)
AND (C-O)>=(H-C)) OR ((C=H OR (C-O)>=10*(H=C)) AND (C-O)>=(O-L)))
AND (C>REF(HHV(H,14),1)))) AND (MACD>0 AND COUNT(CROSS("MACD.MACD",0),16)>=1) AND (MACD/DEA>=0.3 OR MACD>=DEA))
AND C/REF(C,1)>1.03;
STICKLINE(A,C,O,2,30),COLORYELLOW;
DRAWTEXT(ABS(A)>0,C,'——————————————————————————————————————————————————————————————————————————————————————————————'); |
|