1.版主.非常感謝你.將BL定義進去就完成了.
2.:請問如果我想將出現過的轉折點記錄固定下來.該如何做呢?
------------------------------------------------------------------------------------------------------
Y:=(H+L)/2;
BLUE:SMA(Y,13,1),shift8,colorcyan;
BL:=ref(BLUE,8);
HH:=H;
LHPOS:=llvbars(H,30);
LHPOS:=datacount-LHPOS[datacount];
CK:=HH>HH[LHPOS] and barpos<LHPOS;
CKSP:=BARSLAST(CK);
B1POS:=datacount-CKSP[datacount];
B1H:=HH[B1POS];
B1:=barpos=B1POS and B1H>BL;
VERTLINE(B1) linedot;
stickline(B1,H,H,100,0),coloryellow;
drawnumber(B1,H,H,2),coloryellow,shift8;
{DRAWSL(B1,H,0,0,3) linedot COLORYELLOW;}
CKSP:=BARSLAST(H>B1H and barpos<B1POS);
B2POS:=datacount-CKSP[datacount];
SB1:=sum(B1,0);
B2:=barpos=B2POS and SB1[datacount]=0;
stickline(B2,H,H,100,0),coloryellow;
drawnumber(B2,H,H,2),coloryellow,shift8;
{DRAWSL(B2,H,0,0,3) linedot COLORYELLOW;}
VERTLINE(B2) linedot;
|