I am new to the forums, so greetings to all...
I did my homework and searched the forums for topics related to my problem--although I found a number of topics dealing with the Pivot functions, none were relevant to my problem. So here it goes:
When I compile the following simple code to test it, I get a compiler error that goes :
"is not recognized
line 21, column 75"
Code: Select all
vars: counter(0),
lookbacklength(50),
chartbn(0);
Arrays: HighsArray[4](0), LowsArray[4](0), HighBarsArray[4](0), LowBarsArray[4](0);
chartbn = MaxBarsBack + CurrentBar;
if chartbn > (lookbacklength + 2) then
For counter = 4 downto 1
begin
Value1 = Pivot(high,lookbacklength, 2, 2, (5 - counter), 1, oPivotPrice ,oPivotBar);
HighsArray[counter] = oPivotPrice;
HighBarsArray[counter] = oPivotBar;
plot1(HighsArray[counter]);
end;
This is puzzling because the expression that is not recognized is exactly what is given as a parameter of the Pivot function in EL_FunctionsAndReservedWords_Ref.
I will be grateful if anyone has any suggestions as to what is going on here...
Thanks and regards