通达信分时图指标源码
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,'牢记以下买卖原则:'),COLORAA00AA;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.035,0,'1、底部放量可关注;高位放量要离场。上涨放量可关注;下跌放量是逃亡。'),COLOR008BC8;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.07,0,'2、弱势行情莫追高;底部分批很重要。止损止盈要牢记;落袋为安利益保。'),COLOR008BC8;
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))+DYNAINFO(3);
DEA:=EMA(DIF,9);
MACD1:=10*(DIF-DEA);
MACD2:=EMA(MACD1,2);
STICKLINE(MACD1>=MACD2 AND MACD1>=0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLOR0000B4;
STICKLINE(MACD1<MACD2 AND MACD1>0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLOR00B400;
STICKLINE(MACD1>=MACD2 AND MACD1<0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLOR5151A2;
STICKLINE(MACD1<MACD2 AND MACD1<0,DYNAINFO(3),MACD1+DYNAINFO(3),0,0),COLOR88743A;
均:SUM(CLOSE*VOL,FROMOPEN)/SUM(VOL,FROMOPEN),COLOR00BFBF;