咨詢內容:
如何在分鐘 取值前九分鐘高低點然后劃線
如何在分鐘 取值前九分鐘高低點然后劃直線,日盤和夜盤可分開
?
?來源:程序化99網( www.kzuj.com.cn )
博易技術人員:
劃線一直持續到收盤
VARIABLE:HPRICE:=0,LPRICE:=0,HBAR:=0,LBAR:=0;
IFDATACOUNT<9THEN
???RETURN;
HPRICE:=HIGH[DATACOUNT-8];
LPRICE:=LOW[DATACOUNT-8];
HBAR:=DATACOUNT-8;
LBAR:=DATACOUNT-8;
FORI:=DATACOUNT-8TODATACOUNTDO
BEGIN
???IFHPRICE<HIGH[I]THEN
???BEGIN???
??????HPRICE:=HIGH[I];
??????HBAR:=I;
???END
IFLPRICE>LOW[I]THEN
???BEGIN???
??????LPRICE:=LOW[I];
??????LBAR:=I;
???END
END
FLAG1:=0;
FLAG2:=0;
FLAG1[HBAR]:=1;
DRAWSL(FLAG1,H,0,0,0),COLORRED;
FLAG2[LBAR]:=1;
DRAWSL(FLAG2,L,0,0,0),COLORGREEN;
來源 程序化久久網