By passing data into Buffer [pls Help]

Back to topics list To post a new topic, please log in or register
avatar
157
cashcube 2016.02.07 07:15
 

Hi,

I am making an indicator which will draw planet lines reading from a .csv files. I want the price longitude get drawn like a moving average on chart.

Now how to pass the data into the buffer to draw lines.

Thank you

Regards 

 

 

avatar
Moderator
3413
GumRai 2016.02.07 08:24 #
 
ExtMapBuffer1[100] = L1;
You are assigning values to the same buffer index for every loop.
avatar
157
cashcube 2016.02.07 10:42 #
 
GumRai:
You are assigning values to the same buffer index for every loop.

Thank you for such a quick reply.

I added this line, now it shows same data over and over again.

      for(a = 0; a <= FutureBars; a++)
      ExtMapBuffer1[a] = L1;

How to solve this. 

avatar
Moderator
3413
GumRai 2016.02.07 12:20 #
 

To be honest, I don't know what you are trying to achieve

double j =  iOpen(Symbol(), PERIOD_H1, iBarShift(Symbol(),NULL, Dat_DtTm));

Maybe the iBarShift gives you the index? 

avatar
157
cashcube 2016.02.09 06:04 #
 
I solve the problem with other method using TD.
Back to topics list  

To add comments, please log in or register