以下是通达信趋势密码主图指标公式源码(无源码的请下载附件导入)
{趋势密码}
VAR1:MA(C,18),COLORRED;
上升:IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),COLORRED;
下降:IF(VAR1<REF(VAR1,1),VAR1,DRAWNULL),COLORBLUE;
涨停:=C/REF(C,1)>=1.099;
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.8,0.1,1,STRCAT(STRCAT(HYBLOCK,' '), STRCAT(STRCAT(DYBLOCK,' '),GNBLOCK))),COLORGREEN;
221755673.jpg
|