I trade stocks for a year and I decided to enter into FX trading too. I noticed huge differences between backtest and realtime (simulated through NT and Kinetick realtime) results:
In backtest I always enter at bar's Open. In realtime sometimes I enter higher than High and nowhere near Open. I set up limits like:
if (GetCurrentAsk()<Close[0]) {price_to_buy=Close[0];}
if (GetCurrentAsk()>=Close[0]) {price_to_buy=GetCurrentBid();}
when it comes to EnterShort for example.
1. Is my approach naive or in the right direction when it comes to the above limits definition? I try to be as close as much to previous bar's Close in order to be near next bar's Open.
2. I get no differences when I set up these limits in backtest. I still wait for realtime. Does this mean that in backtest I have no access to the past Bid/Ask values?
3. I guess I should always have now CalculateOnBarClose=false?
Thank you!
Comment