Running the following code on daily bars with bar magnification (1 minute, 5 minute, tick etc) switched on gives incredible results.
Code: Select all
If MarketPosition = 0 then begin
Buy("EntryLimit-L") 100 shares next bar at C limit;
end;
If MarketPosition = 1 then begin
If Time >= 2300 then
Sell("ExitMark-L") next bar at market;
end;
Obviously the code does nothing except buy the market on a limit and exit on close. Turn off bar magnification and you see the real results. Am I missing something? Is bar magnification not compatible with daily bars or it's a code issue?
Thanks for any feedback.
A