I'm having a problem with the Strategy Analyzer results.
I understand Historical Fill Processing and Order Fill Resolution as explained in the help Guide. I've also seen several threads about this topic that offered solutions, but despite the changes I've made in my code, there are still major discrepancies in results.
For more accurate execution on the Strategy Analyzer I've added the following to the strategy code:
if (State == State.SetDefaults) { OrderFillResolution = OrderFillResolution.Standard; Slippage = 0; } else if (State == State.Configure) { AddDataSeries(Data.BarsPeriodType.Tick, 1); } else if (State == State.DataLoaded) { SetProfitTarget("", CalculationMode.Ticks, Target); } protected override void OnBarUpdate() { //Conditions {EnterLong(1,Convert.ToInt32(Quantity), "");} }
What can I do to get results on the Strategy Analyzer that are close to Playback? Any pointers are greatly appreciated.
Comment