通达信抓涨分时主图 源码
{牛牛指标网提供:www.tdx001.com}
MA2:MA(CLOSE,6),LINETHICK3;
MA20:MA(CLOSE,20),LINETHICK3;
均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;
HAO:=IF(C>REF(C,1) AND MA(C,3)>REF(MA(C,3),1),1,0);
HUAI:=IF(C<REF(C,1) AND MA(C,3)<REF(MA(C,3),1),1,0);
HAO1:=IF(C>REF(C,1) AND MA(C,3)<REF(MA(C,3),1),1,0);
HUAI1:=IF(C<REF(C,1) AND MA(C,3)>REF(MA(C,3),1),1,0);
DRAWTEXT(HAO,MA(C,6),'●'),COLORRED;
DRAWTEXT(HUAI,MA(C,6),'●'),COLORGREEN;
DRAWTEXT(HAO1,MA(C,6),'○'),COLORLIRED;
DRAWTEXT(HUAI1,MA(C,6),'○'),COLORLIGREEN;
1746199565.png
|