- Test.lua
- (6.42 KiB) Downloaded 881 times
We can not guarantee that the "STRATEGY" paremeter will be always available.
If you choose the MACD for example.
In can only select, "MACD", "SIGNAL", "HISTOGRAM".
Here you are trying to retrieve Strategy parameter.
tmpparams:getString("Strategy"));
We can not guarantee that the "STRATEGY" paremeter will be always at this point.
Here you retrieve Strategy parameter in the traditional way.
Strategy = instance.parameters.Strategy;
U will have to use
tmpparams:setString("Strategy",Strategy);
before referencing Strategy parameter.
tmpparams:getString("Strategy"));