hlv3[0] = (Close_buf[0] > exitHigh_buffer[0]) ? 1 : ((Close_buf[0] < exitLow_buffer[0]) ? -1 : hlv3[1]);You only populate index zero, why do you think index one has any value, ever?
Fiscal_Dev #: how can I auto shift that array at every new bar?
Indicators have buffers which automatically shift. Arrays do not automatically do anything. You must do it in EA.
Array indexing and resizing an AS_SERIES array - MQL4 programming forum #2 (2017)

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
Hey,I've been trying to create a dynamic array in which i have to store the calculation of data from the indicator and use it for different calculation but its not working. Can anyone suggest me how should initialize the array.
Code: