手机端
当前位置:爱约股 > 公式技巧 > 分时用的指标【即昨日开收盘价和最高低处画线】

分时用的指标【即昨日开收盘价和最高低处画线】

请老师编写一个通达信分时用的指标: 条件是:在昨日开盘价,昨日收盘价,昨日最高价,昨日最低价处画线

爱约股解答:

先建名为1引用的指标,昨收就是当日的0轴

{1引用}

昨开:REF(O,1);

昨高:REF(H,1);

昨低:REF(L,1);

 

再建指标

昨开:"1引用.昨开#DAY";

昨高:"1引用.昨高#DAY";

昨低:"1引用.昨低#DAY";

昨收:DYNAINFO(3);

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.01,0,STRCAT('昨高: ',CON2STR(昨高,2))),COLORYELLOW;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.06,0,STRCAT('昨低: ',CON2STR(昨低,2))),COLORMAGENTA;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.11,0,STRCAT('昨收: ',CON2STR(昨收,2))),COLORGREEN;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.01,0.16,0,STRCAT('昨开: ',CON2STR(昨开,2))),COLORWHITE;

TAG:
分享至:

相关推荐