以下是通达信好用的分时线(无源码的请下载附件导入)
STICKLINE(C>0,C,O,2.5,0),COLOR000000;
STICKLINE(C>0,H,L,0.1,0),COLOR000000;
现价:C,LINETHICK2;
均价:SUM(V*C,0)/SUM(V,0),COLORFF00FF;
昨收:DYNAINFO(3),COLORRED,LINETHICK2;
{涨停:REF(C,1)*1.1,NODRAW,COLORRED;
跌停:REF(C,1)*0.9,NODRAW,COLOR00FF00;}
VAR1:=EMA(C,12)-EMA(C,26);
VAR2:=EMA(VAR1,9);
MACD:=2*(VAR1-VAR2)*5;
STICKLINE(MACD>0,昨收,昨收+MACD,0,0),COLORRED;
STICKLINE(MACD<0,昨收,昨收+MACD,0,0),COLOR00FF00;
736477701.gif
|