九毛八公式指标
这是一个主图代码:macd有参数设定,参数参考图例 DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG); DEA : EMA(DIFF,M); MACD : 2*(DIFF-DEA), COLORSTICK; macd1:=ref(macd,1); 空:=macd1>0.5 and macd公式模块:
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9); macd : 2*(DIFF-DEA), COLORSTICK; MacD1:=REF(MACD,1); 空:=FILTER(MACD1>0.5 AND MACD<MACD1 AND REF(CLOSE<OPEN,1) AND DIFF>MACD,5); 多:=MACD1<-0.5 AND MACD>MACD1 AND REF(CLOSE>OPEN,1) AND DIFF<MACD; DRAWTEXT(空,2,'空'),COLORFFBB66; DRAWTEXT(多,-2,'多'),COLORRED;