Hi all, sorry for the very basic question but hopefully it only requires a simple answer.
I am trying to code up a strategy as follows...
Before the days trading starts (US Equities) calculate key entry points based on historical data from the last 3 days
Once these entry points have been calculated execute two limit orders based on the calculated key entry points.
Both of these steps need to occur before the trading session begins.
My question is: Should these steps be handled in the "def before_trading_start(context, data):" as this appears to be executed each morning before the session starts?
Regards
Richard