That is because you set your arrays to zero, but zero is not EMPTY_VALUE, therefor it draws a line from zero to your first value.
William Roeder:
That is because you set your arrays to zero, but zero is not EMPTY_VALUE, therefor it draws a line from zero to your first value.
That is because you set your arrays to zero, but zero is not EMPTY_VALUE, therefor it draws a line from zero to your first value.
THANKS!!!! It was driving me crazy but definitely makes sense. For some reason MQL5 was not having the issue with zero in the array, or maybe it uses zero as EMPTY VALUE.
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I will move your topic to the MQL4 and Metatrader 4 section.

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
I had to convert my indicator from mql5 to mql4 and finally got it working except for having a vertical line drawn at the beginning of the indicator buffer start. Dont think it messes with calculations just looks bad. I am only getting one value on the start index so cannot figure why this is happening please help!