Example
{ This System takes advantage of future information! It buys and sells
at the market open on the same bar that it examines closing price! }
var BAR: integer;
for Bar := 1 to BarCount - 1 do
begin
if LastPositionActive then
begin
if PriceClose( Bar ) < PriceClose( Bar - 1 ) then
SellAtMarket( Bar, LastPosition, '');
end
else
begin
if PriceClose( Bar ) > PriceClose( Bar - 1 ) then
BuyAtMarket( Bar, '' );
end;
end;
The Trading System above would give you an idea of how well you could do in the
market if you had access to supernatural abilities. Although the violation is subtle,
you'd be surprised at how much it can impact the bottom line of trading system
evaluation!