年月:= YEAR=2011 AND MONTH=10;
日1017:=年月 AND DAY=17;
日1026:=年月 AND DAY=26;
日1031:=年月 AND DAY=31;
日1101:=YEAR=2011 AND MONTH=11 AND DAY=1;
{日0624:=YEAR=2011 AND MONTH=6 AND DAY=24;}
{画线并显示当值}
A: DRAWLINE(日1026,C,日1031,C,1),COLORMAGENTA;{灯塔线A};
B: DRAWLINE(日1026,C,日1101,O,1),COLORYELLOW; {灯塔线B};
C_: DRAWLINE(日1017,H,日1026,C,1),COLORGREEN; {灯塔线C};
平: REF(C,BARSLAST(日1026)),COLORWHITE;{水平线}
DRAWTEXT(ISLASTBAR,A,'A'),COLORLIRED;
DRAWTEXT(ISLASTBAR,B,'B'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,C_,'C'),COLORGREEN;
DRAWTEXT(ISLASTBAR,平,'平'),COLORWHITE; |