I am developing a strategy, and wanting to debug it. I have put break point in the OnBarUpdate event but it is not getting hit.
I then put a break point on the first line in the OnBarUpdate event in the SampleMACrossOver strategy:
if (CurrentBar < BarsRequiredToTrade)
The break point does not get hit. I added Print statement as the first line of the OnBarUpdate event in the SampleMACrossOver strategy:
Print("Test");
Nothing was printed to the Output window.
I would have expected that the OnBarUpdate event would be raised for all historical bars and each tick that came in realtime (I have the calculate property set to On Each Tick).
I have also tried with Calculate set to OnBarClose, but it makes no difference.
I added a clause to the OnStateChange to detect:
if (State == State.Configure) { Print("State.Configure"); }
Also this SampleMACrossOver has the lines:
AddChartIndicator(smaFast); AddChartIndicator(smaSlow);
The chart is a minute chart, on the FDAX 12-17 and I can see price moves as they happen on the chart, but the strategy just does nothing....
I am running a Windows 10 64 bit PC with NT 8.0.9.0 64-bit (Multi-Broker) using the sim account.
What am I doing wrong here?
Thanks for your time.
Comment