All i am trying to do is the code below
if Close > close(20) then
begin
SetPlotColor(1, Green);
end;
And i get the error
------ Compiled with error(s): ------
Compile error
line 0, column 0
It seems like i cannot go back on the close?
If i use the code below it compiles fine
if Close > Average(Close, 20) then
begin
SetPlotColor(1, Green);
end;
Compile error line 0, column 0 [SOLVED]
-
- Posts: 742
- Joined: 09 Apr 2010
- Location: Texas
- Has thanked: 483 times
- Been thanked: 274 times
- Contact:
Re: Compile error line 0, column 0 [SOLVED]
Try this: I think you need brackets to reference past values of C .
Code: Select all
if Close > close[20] then
begin
SetPlotColor(1, Green);
end;