How to draw indicator partially

 

Hi Folks,

I am adapting an indicator but i am not able to do the following task.

The indicator must be drawn until (rates_total-X) ....what I get is ok but at rates_total-X a vertical line is drown and the folliwing values are 0.
How can I draw the line until (rates_total-X) skipping drawing the following values?
Thanks

 
  1. Do you really expect an answer? We can't see your broken code. There are no mind readers here and our crystal balls are cracked.
  2. See also
              How to do your lookbacks correctly.