請教有條件停損
我要在以下的條件下平倉,不知語法哪裡錯誤,但編譯有通過 , 請教各位先進?謝謝各位1. 距成交k棒大於20根
2. 虧損的狀況之下
3. 收盤在60根k棒的最低點
if marketposition = 1 and barssinceentry > 20 andclose-EntryPrice = -0and close < lowestFC(low,60)
then begin sell next bar at market ; close-EntryPrice = -0要改為close-EntryPrice < 0
then begin sell next bar at market ; { Begin 沒有end 對應 } 應該有錯誤信息
if marketposition = 1 and barssinceentry > 20 andclose-EntryPrice < 0
then sell next bar at lowestFC(low,60) stop;
頁:
[1]