杨文峰老师通达信分时MACD主图
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,'牢记以下买卖原则:'),COLORAA00AA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.05,0,'1、方向不明不买,忌贪!'),COLOR008BC8;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.1,0,'2、诱多、出货、高位放量不买。'),COLOR008BC8;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.15,0,'3、坚持底部、分批、趋势的买入原则。'),COLOR008BC8;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.2,0,'4、卖出原则:落袋为安;积少成多;壮士断腕。'),COLOR008BC8;
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))+DYNAINFO(3);
DEA:=EMA(DIF,9);
MACD:=6*(DIF-DEA);
STICKLINE(MACD<0,DYNAINFO(3),MACD+DYNAINFO(3),0,0),COLOR88743A;
STICKLINE(MACD>=0,DYNAINFO(3),MACD+DYNAINFO(3),0,0),COLOR5151A2;
均:SUM(CLOSE*VOL,FROMOPEN)/SUM(VOL,FROMOPEN),COLOR00BFBF;
171200753.jpg
|