Hello karlelias,
The code works as expected on our end using MultiCharts 9.0 Release. Please make sure you are using this version and verify the order generation conditions:
Why an Order Was or Was Not Executed.
If you still have the issue please send us (
support@multicharts.com) the following information for further analysis:
- workspace you are using;
- in QuoteManager select the symbols you are using, make a right click on it->Export data->Export instrument (without data). Send us the QMD export file for analysis;
- in Power Language editor->File->Export->Export with dependent functions the study you are backtesting. Send us the study export file
- specify the version and build number of MultiCharts you are running (in MultiCharts go to Help tab-> About);
- instructions for replicating the error.