分时用的指标【即昨日开收盘价和最高低处画线】
2020/2/18 18:27:05
公式编写说明:
请老师编写一个通达信分时用的指标:条件是:在昨日开盘价,昨日收盘价,昨日最高价,昨日最低价处画线。
公式源码示例:
先建名为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;
看 股吧公式 www. kanguba.com
其它股票公式列表