{MACD选股}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
c>=o*1.01
and MACD=llv(MACD,60)
and ref(c,1)
<顶部明确>:
var1:=REF(CLOSE,1);
var2:=((SMA(MAX((CLOSE - var1),0),7,1) / SMA(ABS((CLOSE -var1)),7,1)) * 100);
var3:=CROSS(79,var2);
var4:=FILTER(var3,4);
VAR5:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) *100);
VAR6:=SMA(VAR5,5,1);
VAR7:=SMA(VAR6,8,1);
VAR8:=(CROSS(VAR6,VAR7) AND (VAR7 < 5));
VAR9:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) ANDVAR8);
VAR10:=IF((CLOSE > 1000),VAR8,VAR9);
var11:=VAR10;
DRAWTEXT(var4,(H*1.03),'顶'),COLORyellow;
联系客服