mx12v 發表於 14-12-25 16:10

請教有條件停損

我要在以下的條件下平倉,不知語法哪裡錯誤,但編譯有通過 , 請教各位先進?謝謝各位

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 ;

easytrader788 發表於 14-12-25 23:22

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]
查看完整版本: 請教有條件停損