if barInterval <> 5 and barfreq <> "Min" then raiseRunTimeError("請使用5分鐘頻率");
if getfielddate("Date") <> getfielddate("Date")[1] then
begin //如果是開盤第一根的話
value1 = low; //value2紀錄第一根最低價
end;
if Position = 0 and filled = 0 then
begin
if close[1] < value1 then
begin
setposition(-1);
Value5=GetField("high")[1];
print("",value5);
end;
end;
if Position = -1 and filled = -1 then begin
if Close > value5 then
begin
SetPosition(0);
end;
end;
if currenttime >= 130000 and filled <> 0 then setposition(0, market);
如標題,實際跑的時候Value5會隨著k棒變動,但是我不是有設條件 if Position = 0 and filled = 0才會執行了嗎
有沒有方法能夠紀錄進場當根高點 不要讓它變呢 謝謝
3 評論