分时主图指标 开收盘价和最高低处画
先建
{1引用}
昨开:REF(O,1);
昨高:REF(H,1);
昨低:REF(L,1);
再建指标
昨开:"1引用.昨开#DAY";
昨高:"1引用.昨高#DAY";
昨低:"1引用.昨低#DAY";
昨收:DYNAINFO(3);
A:=CROSS(C,昨高);
B:=CROSS(昨高,C);
DRAWICON(A,昨高,7);
DRAWICON(B,昨高*1.01,8);
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;
739388783.jpg
|