I am trying to construct a very simple strategy, but when I use the wizard, as I complete the strategy and attempt to save it, the code of my strategy opens up showing errors in ninja script files that have nothing whatsoever to do with what I have constructed.
To be honest, when I open the wizard, there is an error message 'Unable to retrieve type intos from assembly blah blah' It relates to System.Reflection.ReflectionTypeLoadException. Why would I get this error on just starting the wizard?
Quite simply, all I did once in the strategy wizard was to name my strategy then click next, in Conditions + Actions, I set
HMA(40)[0]>HMA(40)[1] with the actions being ExitShort first and then EnterLong. The reverse for when HMA is <. I added both actions in the 1 box. Is that OK, or could that cause issues?
When I got to the compile step, the code file opened saying "error generating strategy". There were 4 errors, all of them relating to a Ninja Script files that have nothing to do with this new strategy.
The error says code CS1729 and then 'NinjaTrader.Data.Period' does not contain a constructor that takes '2' arguments. The Ninja Script files it mentions are all part of the CMIPivotsDailyV86.cs (including Monthly, Weekly etc). I have never entered anything whatsoever to do with this Pivot indicator, so why is NT generating an error in my newly created script file? The only indicator I am attempting to use in this strategy is NTs native HMA in NT7.
Any help gladly accepted.
cheers

Comment