Array initalization not working correctly
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)
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: