StephanePaulus wrote:
I think this is because when the OnStart method is called by the tester there isn't yet a chart. Is there a way to make the Onstart method wait until the tester opens the chart?
If this really the case, then as a possible workaround consider waiting until
IChart.priceMax >0.
StephanePaulus wrote:
Another question: is there a way to change parameters when testing? I made a check box "goLive" so when I am dragging the lines they don't accidentally open a trade until they are placed correctly. Then I change the parameter goLive too "true" in the strategies tab, but this doesn't exist in the historical tester.
You can't change paramaters during the historical tester. Consider putting a checkbox either in your own tab or in a dialog, see:
https://www.dukascopy.com/wiki/#Extending_User_Interface/Bottom_tab_with_a_tick_counter