年月:= YEAR=2011 AND MONTH=10;
日1026:=年月 AND DAY=26;
日1027:=年月 AND DAY=27;
日1028:=年月 AND DAY=28;
日0624:=YEAR=2011 AND MONTH=6 AND DAY=24;
{画线并显示当值}
A: DRAWLINE(日1026,C,日1028,L,1),COLORMAGENTA;{灯塔线A};
B: DRAWLINE(日1026,C,日1027,O,1),COLORYELLOW; {灯塔线B};
{ _最新股票指标公式}
C_: DRAWLINE(日0624,C,日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;