您好,
我有一段語法要判斷是停利出場還是停損出場,
如下,我不知這樣寫「 FilledAvgPrice - close < 0」是否有誤,因為目前的腳本都會進場但不會出場,是否我這句有所問題呢?
//***停損1:
if Position > 0
and c[2] > o[2] and c[1] > o[1]
and (
(c > o) or ( h>h[1] )
)
and FilledAvgPrice - close < 0
then begin
SetPosition(0, MARKET,label:="空單停損1");
end;
2 評論