Compile error line 0, column 0  [SOLVED]

Questions about MultiCharts and user contributed studies.
rkhan
Posts: 65
Joined: 16 Mar 2014
Has thanked: 1 time
Been thanked: 2 times

Compile error line 0, column 0

Postby rkhan » 05 Jun 2014

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;

sptrader
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]

Postby sptrader » 05 Jun 2014

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;

rkhan
Posts: 65
Joined: 16 Mar 2014
Has thanked: 1 time
Been thanked: 2 times

Re: Compile error line 0, column 0

Postby rkhan » 06 Jun 2014

Perfect that worked,


It would be great if MC actually told me a line number of the error, that would have been much more helpful


Return to “MultiCharts”