通达信MACD空中加油副图源码 选股
DIF:EMA(CLOSE,300)-EMA(CLOSE,900);
DEA:EMA(DIF,200);
MACD:(DIF-DEA)*2,COLORSTICK;
MACD空中加油:=
MACD>=0
AND REF(MACD,1)>=0
AND REF(MACD,2)>=0
AND REF(MACD,3)>=0
AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2)
AND REF(MACD,2)<REF(MACD,3) ;
DRAWICON(MACD空中加油,0.35,1);
STICKLINE(MACD空中加油,0.3,MACD,2,0),COLORYELLOW;
红柱首次放长:=MACD>0 AND REF(MACD,1)<0;
STICKLINE(红柱首次放长,0.3,MACD,2,0),COLORRED;
DRAWICON(红柱首次放长,0.35,1);
绿柱缩短:=MACD<0 AND MACD>REF(MACD ,1) AND REF(MACD ,1)<REF(MACD ,2)
AND REF(MACD ,2)<REF(MACD ,3)
AND REF(MACD ,3)<REF(MACD ,4);
STICKLINE(绿柱缩短,0.1,MACD,2,0),COLORMAGENTA;
红柱首次放长1:0,COLORRED;
空中加油1:0,COLORYELLOW;
绿柱缩短1:0,COLORMAGENTA;
DIF:=EMA(CLOSE,300)-EMA(CLOSE,900);
DEA:=EMA(DIF,200);
MACD:=(DIF-DEA)*2;
首次放长:MACD>0 AND REF(MACD,1)<0;
- 上一篇公式:通达信高度控盘副图源码 开始控盘选股
- 下一篇公式:通达信生命线 安全位低位转强拉升副图源码 选股