how can limited of indicator line show?

 

Hi i have 21 indicator line. I want show entire some of them and 4 of them only show the 0 to 9 of the buffer. how can i do it?

I know for showing entire line we should use this code:

 int bars = rates_total-1;

   if(prev_calculated>0)
     {bars=rates_total-(prev_calculated-1);}


   for(int i=bars; i>=0; i--)
     {}

However for 4 of them I only need show the calculate of 9 last candle on chart. how can I do it?

For example for picture blow i want show entire of black line, But only the last part of the white line I marked.

Files:
zxcvb.png  25 kb
 
justlink: However for 4 of them I only need show the calculate of 9 last candle on chart. how can I do it?

Place EMPTY_VAlUE in the buffer[index+10] as you draw buffer[index]

 
William Roeder:

Place EMPTY_VAlUE in the buffer[index+10] as you draw buffer[index]

problem solved.

thank you