Setting Trade Delays


#1

HI everyone, please advise, whether the function SetTradeDelays(1,1,1,1) is only for backtesting purpose or can it be used for setting delaying trade by one, two, etc bars in real trading? or do you recommend using tradedelays by Ref (xxx, -1) ?


#2

It can be used in real trading, though there is a caveat to it. Please check the 'Add artificial future bar' tickbox - and more importantly run few checks to see what it does and get a good understanding of the trade delay 'concept' in general.

'https://www.amibroker.com/guide/w_settings.html