I created strategy and it works ok on Win7 32 bit, but today I tried it on Win server 2012R2 64 bit (both in 32 and 64 bit Ninjatrader) and I could not enable the strategy on the chart.
After debugging in VisualStudio, I found out that it crashes on the call of SetProfitTarget() method (it's called in OnStateChange as suggested in docs).
The result is System.FormatException in mscorlib.dll, no matter what value I use in the method arguments.
Originally I call it like this:
SetProfitTarget(CalculationMode.Pips, 20);
Do you have any thoughts what is wrong and how to fix it?
Thanks!
Comment