通达信主力行为指标 分时副图 源码
{牛牛指标网提供:www.tdx001.com}
A:=IF(C>REF(C,1) AND MA(C,3)>REF(MA(C,3),1),1,0);
B:=IF(C<REF(C,1) AND MA(C,3)<REF(MA(C,3),1),1,0);
E:=IF(C>REF(C,1) AND MA(C,3)<REF(MA(C,3),1),1,0);
D:=IF(C<REF(C,1) AND MA(C,3)>REF(MA(C,3),1),1,0);
DRAWTEXT(A,MA(C,6),'●'),COLORRED;
DRAWTEXT(B,MA(C,6),'●'),COLORGREEN;
DRAWTEXT(E,MA(C,6),'○'),COLORLIRED;
DRAWTEXT(D,MA(C,6),'○'),COLORLIGREEN;
1751122049.png
|