Can someone help me with the syntax error I am getting in line 6(bolded)...any help would be great
------------------------------
variables:
TD_low(0),
TD_high(0),
TD_count(0);
if (high > high[4] and high > high[3] and high > high[2] and high > high[1] and high > high[0]) then
begin
TD_count = 1;
TD_high = high;
TD_low = low[1];
end
else if (low < low[4] and low < low[3] and low < low[2] and low < low[1] and low < low[0]) then
begin
TD_count = -1;
TD_high = high[1];
TD_low = low;
end
else if (TD_count = 1 and low < TD_low) then
begin
TD_low = low;
end
else if (TD_count = -1 and high > TD_high) then
begin
TD_high = high;
end;
plot1(TD_low, "TD Low", green);
plot2(TD_high, "TD High", red);
?
------------------------------
variables:
TD_low(0),
TD_high(0),
TD_count(0);
if (high > high[4] and high > high[3] and high > high[2] and high > high[1] and high > high[0]) then
begin
TD_count = 1;
TD_high = high;
TD_low = low[1];
end
else if (low < low[4] and low < low[3] and low < low[2] and low < low[1] and low < low[0]) then
begin
TD_count = -1;
TD_high = high[1];
TD_low = low;
end
else if (TD_count = 1 and low < TD_low) then
begin
TD_low = low;
end
else if (TD_count = -1 and high > TD_high) then
begin
TD_high = high;
end;
plot1(TD_low, "TD Low", green);
plot2(TD_high, "TD High", red);
?
Comment