I have spent days to do this, still not success.
Appreciate for somebody coder guru to point out.
As we attach any MTF (multi time frame) indicator to current chart, says for example, MTF MA (moving average), which will typically show us stairstep line of higher timeframe period MA when it is attached to lower timeframe chart.
In mql4 file, there is ArrayCopySeries() to copy up value array and down value array to Datetime type of array, which will draw this stairstep line on the chart for us. I have read in MQL manual book about applying this group of array functions, played around with, but unsuccessful, may be, possible that I did not proper code.
My intention is to get this MTF array value series as a normal generated array from current chart (think as normal MA indicator, not MTF MA indicator), which will help me to use this data for signal criteria, i.e., when this MA series has reversed then show arrow signal or other type of signal generating concept.
Hope my query also help switching the light on for others. Advance thanks for the experts.
Tutor539
Appreciate for somebody coder guru to point out.
As we attach any MTF (multi time frame) indicator to current chart, says for example, MTF MA (moving average), which will typically show us stairstep line of higher timeframe period MA when it is attached to lower timeframe chart.
In mql4 file, there is ArrayCopySeries() to copy up value array and down value array to Datetime type of array, which will draw this stairstep line on the chart for us. I have read in MQL manual book about applying this group of array functions, played around with, but unsuccessful, may be, possible that I did not proper code.
Inserted Code
ArrayCopySeries(TimeArray,MODE_TIME,Symbol(),TimeFrame);
Hope my query also help switching the light on for others. Advance thanks for the experts.
Tutor539
Attached File(s)
#MTF_MovingAverage.mq4
4 KB
|
651 downloads