I can do this creating an indicator and having
Code: Select all
plot1 (c[1]);
plot2 (c[2])
However this is very inefficient (the example is simple but what I want involves more than 8 days and more complicated calculation than just the close of the day).
What I wanted was something like a loop:
Code: Select all
Array: CloseOfDay[8](0);
Variables: Counter (8);
For Counter = 0 to 8
begin
CloseOfDay [Counter] = C[Counter];
End;
Code: Select all
plot1 (CloseOfDay [1] );
plot2 (CloseOfDay [2] );
What I wanted was something to include in the loop like:
plot [Counter] (CloseOfDay [Counter] );
As far as I know this is not possible. Plot has to be Plot1, Plot2, Plot3, etc.
It's not possible to have Plot linked to a loop, right ?
If anyone has a good idea to turn this more efficiently it would be very much appreciated