DRAWTEXT(CURRBARSCOUNT=BC,H,' BC'),COLORWHITE;
可以整个画线指标写完,也可以在已有的基础上续写。
公式模块:
{参数:AC(0,9999,25),BC(0,9999,1)}
{参数:AC(0,9999,25),BC(0,9999,1)}
HH:=REFDATE(HHV(H,AC),DATE);
LL:=REFDATE(LLV(L,AC),DATE);
DRAWTEXT(CURRBARSCOUNT=AC,H,' AC'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=BC,H,' BC'),COLORWHITE;
N:=BARSLAST(L=LL);
A1:=BACKSET(BARSTATUS=2,N+1);
N1:=BARSLAST(A1 REF(A1,1));
L1:REF(L,N1),COLORYELLOW,LINETHICK2;