I encounter a problem when trying to run a strategy that has only a single timeframe - the one of the chart where I want to apply it. I cannot enable the compiled strategy in the Control Center. I get the following message in the output window:
A hosted indicator tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state.
When I simply add a series of the same timeframe to the code, it runs. However it then passes through BarsInProgress 0 and 1 - which is normal but which will produce undesired results.
I cannot understand if this is normal or where my error sits. So I have made a simple code example with the 2 options (adding a series or not) to clarify my problem. By the way, the same thing happens when I try to load the sample strategy SampleBreakoutStrategy.
thank you for your help
Andre
Comment