How to call method beforeMarketOpen 10 mins before market open every day
Is below correct way to implement ?
self.Schedule.On(self.DateRules.EveryDay(), self.TimeRules.AfterMarketOpen("SPY", -10) , self.BeforeMarketOpen)
QUANTCONNECT COMMUNITY
How to call method beforeMarketOpen 10 mins before market open every day
Is below correct way to implement ?
self.Schedule.On(self.DateRules.EveryDay(), self.TimeRules.AfterMarketOpen("SPY", -10) , self.BeforeMarketOpen)
I see now what you mean, let me clarify a few things:
As far as I'm aware, there's no way to strictly control the opening and closing times of the bars. A few months ago I made public a time-zoned daily bar consolidator for LEAN which would be helpful to you if you ran LEAN locally. If you don't, you'll have to live with the discrepancy between Tradingview and QuantConnect. Starting your trading week at 22:00 UTC Sunday (midnight Moscow/Madagascar/Saudi Arabia?) seems really arbitrary.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!