HELP! Vertical Line drawn at beginning of indicator calculation

 

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!

Files:
C.JPG  321 kb
 
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.

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.
Reason: