retrieving iMA information
Please see:
https://www.mql5.com/en/docs/chart_operations/chartindicatorname
And additionally:
https://www.mql5.com/en/docs/chart_operations/chartindicatorget
And finally:
- www.mql5.com
Please see:
https://www.mql5.com/en/docs/chart_operations/chartindicatorname
And additionally:
https://www.mql5.com/en/docs/chart_operations/chartindicatorget
And finally:
Please see:
https://www.mql5.com/en/docs/chart_operations/chartindicatorname
And additionally:
https://www.mql5.com/en/docs/chart_operations/chartindicatorget
And finally:
MT4 (Ver 4.00 Build 1010) doesn't seem to like the handle=ChartIndicatorGet(0,w,name) call in the example. Is this an MT5 only function or is there an error in the example? It also doesn't like the IndicatorRelease(handle) call. I am assuming they are related issues (especially as they get and then use 'handle'). I can see the periods of the MA in the name, but cannot get the other parameters (Exponential/Smoothed etc, OHLC price used etc), or should I be using the iCustom function to grab the data off the indicator using the returned name? Much appreciate your help. I really like MQL, but it is taking some learning ... Thank you for your patience.
These functions are working with mql5 only.
There is no simple way to do what you want with mql4, you will need to find some workarounds.
I have hunted hi and lo, but I cannot find anywhere that can guide me in how to programatically pull off a chart the MA value of a manually added MA. I can easily get it if I know what the period etc is just using the iMA function, but how can you search a chart for MAs and then check their current values?
Most grateful if anyone can point in the direction of where to find the answer.