|
因為使用了 cross over OpenD(0) ,因此出場後 ,若價格還在 OpenD(0) 上 ,會再進場 ,看起來就怪怪的 !
這樣寫試試看
if HighD(0) - OpenD(0) > 100 and Close Cross under OpenD(0) then
buy next bar at OpenD(0) + 10 ;
Sell next bar at OpenD(0) + 30 limit ;
Sell next bar at OpenD(0) stop ;
若價格一直在 OpenD(0) 上下振盪 ,就會一直進出 ,所以可再限制次數
if EntriesToday(date) < N 才進場 (控制在N次 ) |
|