I have created a file that plots a horizontal line from price data in an Excel csv file. Everything works fine but I would like to know if there is a better way to code the plot portion of the code to just plot everything. Right now, if I have 10 rows of data in my Excel file, I would need 10 plot statements in my indicator, incrementing the ref number on every line. For example:
Plot1(Listn.Get(ListID, 1));
Plot2(Listn.Get(ListID, 2));
Plot3(Listn.Get(ListID, 3));
etc
Is there a simple one line method to just plot everything from my Excel file?
Thanks.
Code: Select all
Inputs: File_Directory("C:\Book1.csv");
var: listid(0);
listid = Listn.New;
value1 = Listn.Readfile(listid, File_Directory);
Plot1(Listn.Get(ListID, 1));