Could sombody please change this to from CTL format to one that will work with MT4? I am new to MT4 and having trouble making it work.
Thanks.
strategy cci_147;
input period = 200;
vars lst = 1;
begin
lst := back(close);
if lst < front(close) - 1 + period then return;
commodity_channel(period);
if (commodity_channel.line[lst] > -147) and (commodity_channel.line[lst - 1] <= -147) then buy();
if (commodity_channel.line[lst] < +147) and (commodity_channel.line[lst - 1] >= +147) then sell();
end.
Thanks.
strategy cci_147;
input period = 200;
vars lst = 1;
begin
lst := back(close);
if lst < front(close) - 1 + period then return;
commodity_channel(period);
if (commodity_channel.line[lst] > -147) and (commodity_channel.line[lst - 1] <= -147) then buy();
if (commodity_channel.line[lst] < +147) and (commodity_channel.line[lst - 1] >= +147) then sell();
end.
Could it be Man is trying to be something without knowing they're complete?