After coding a fairly robust strategy I would like to take this to the next level and run the backtest based on bid/ask to replicate a real live trade scenario taking into account all the wild spikes in spread from my broker FXCM especially on news announcements etc...
So how would I go about building the strategy code for backtesting based on bid/ask for all my entered orders (managed approach) do I need to go down the path of unmanaged approach?
like for instance in the online guide I have the following order entry which uses the bid for the buy order.
[LEFT][COLOR=#808080][FONT=Consolas]entryOrder [/FONT][/COLOR][COLOR=#808080][FONT=Consolas]= [/FONT][/COLOR][COLOR=#808080][FONT=Consolas]SubmitOrderUnmanaged([/FONT][/COLOR][COLOR=#FF6600][FONT=Consolas]0[/FONT][/COLOR][COLOR=#808080][FONT=Consolas],[/FONT][/COLOR][COLOR=#808080][FONT=Consolas]OrderAction.Buy,[/FONT][/COLOR][COLOR=#808080][FONT=Consolas]OrderType.Limit,[/FONT][/COLOR][COLOR=#FF6600][FONT=Consolas]1[/FONT][/COLOR][COLOR=#808080][FONT=Consolas],[/FONT][/COLOR][COLOR=#808080][FONT=Consolas]GetCurrentBid(),[/FONT][/COLOR][COLOR=#FF6600][FONT=Consolas]0[/FONT][/COLOR][COLOR=#808080][FONT=Consolas],[/FONT][/COLOR][COLOR=#800000][FONT=Consolas]""[/FONT][/COLOR][COLOR=#808080][FONT=Consolas],[/FONT][/COLOR][COLOR=#800000][FONT=Consolas]"Long Limit"[/FONT][/COLOR][COLOR=#808080][FONT=Consolas]);[/FONT][/COLOR][/LEFT]
Thanks for your help.

thankyou. All looking so much better now using bid and ask makes more sense. However, just to make sure the tick Replay tickbox is now useless now i have coded this manually and no longer required right? So i can ignore tick replay option?
Comment