When the code is as follows, it plots the indicator nicely.
Code: Select all
Inputs: NL(500);
vars: MidPS(0);
MidPS = AverageFC((h+l)/2, NL);
plot1(MidPS, "MidPS");
Code: Select all
Inputs: NL(500);
vars: MidP(0), MidPS(0);
MidPS = AverageFC((h+l)/2, NL);
if (Date <> date[1]) then begin
MidP = ((h+l)*0.5) of data2;
end;
plot1(MidPS, "MidPS");
If I set MaxBars to be 600 for instance, it complains about "not enough series length".
If I change NL to be 300, then it only plots a small part of the entire timespan.
Am I missing something here?