saltminer / Publications
Forum
iMA() has a bug with with price mode; e.g. MODE_OPEN actually uses the CLOSE
Hi, I have an indicator calling iMA() to return a moving average. If I use MODE_CLOSE in the code, it uses the LOW prices. If I use MODE_OPEN in the code, it uses the CLOSE prices . I can tell this by setting the period to 1 and seeing what prices the moving average tracks. Here is the line of code