So far with the run() function, the calculation and trades are done on bar close. However, the market would have been closed at this point, and can only be traded when it opens again.
Is there a way to run the calculation as usual on bar close, but make the trades on next bar open? So far I have found 'LifeTime' and 'EntryTime' parameter, but I don't think they solve this problem.