How to use indicator's buffer in same indicator for another buffer in multi buffer indicator? - page 2

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
You never set your arrays to as-series to match your buffers. ArraySetAsSeries
Arrays must be manually sized. They have no direction. You must move elements if you want a stack/as-series (set non-series, enlarge the array, set as-series).
Buffers are automatically size, are as-series, and elements are moved for you, new elements are set to EMPTY_VALUE (or your designated. They can also draw on the chart automatically.
In MT4, buffers and the predefined arrays are all ordered AsSeries. There is a difference between the arrays passed to OnCalculate (e.g. low[]) and the MT4 predefined variables (e.g. Low[].) The passed arrays have no default direction, just like MT5.
In MT5, you must set the direction.
You are accessing your buffer as non-series, just don't set that.
everything after the first return are irrelevant.
William Roeder #:
THNAK YOU William it works now. wish you the best of the bests.