Since the names can be completely different in the strategy and the indicator I always assumed the mapping was positional, i.e. the first parameter specified in the call was mapped to the first parameter specified in the indicator, and so on, but this appears to not be the case. Instead it seems the parameters in the call must be listed in the alphabetical order of the parameter names in the indicator. It seems to me this could be a recipe for disaster. If you ever decided to rename any parameters in your indicator, you could inadvertently alter the parameter call sequence, which means (if you noticed it...) you would have to change every call to the indicator in every strategy that uses it.
Wouldn't it be a heck of a lot easier to map the parameters by position than by name? From my limited understanding of programming, I thought that was pretty standard. It might make it a bit easier to list the parameters in the order defined rather than alphabetical in all the other places that people have been complaining about (like the strategy window) rather than having to use \t or adding a prefix to the parameter name.
Thanks,
Ian
Comment