Hi,
is it possible to set the general setting for start of trading week to e.g. 22:00 UTC on sunday.
and/or start of trading day to everyday 22:00 UTC.
more or less setting an offset to the base time?
thx.
Don't have an account? Join QuantConnect Today
QuantConnect Community Discussions
QUANTCONNECT COMMUNITY
LEAN is the open-source algorithmic trading engine powering QuantConnect. Founded in 2012 LEAN has been built by a global community of 180+ engineers and powers more than 300+ hedge funds today.
Join QuantConnect's Discord server for real-time support, where a vibrant community of traders and developers awaits to help you with any of your QuantConnect needs.
The Open-Quant League is a quarterly competition between universities and investment clubs for the best-performing strategy. The previous quarter's code is open-sourced, and competitors must adapt to survive.
Asking if it's possible to set the start of trading week/day to 22:00 UTC as an offset to the base time.
Continue ReadingRefer to our Research Guidelines for high quality research posts.
Create an account on QuantConnect for the latest community delivered to your inbox.
Sign Up Today
|
|
|||||||
|
|
||||||||
|
Setting "Start of trading day" to 22:00 UTC
Eugene | July 2019
Hi,
is it possible to set the general setting for start of trading week to e.g. 22:00 UTC on sunday.
and/or start of trading day to everyday 22:00 UTC.
more or less setting an offset to the base time?
thx.
QuantConnectâ„¢ 2025. All Rights Reserved
Douglas Stridsberg
Hi,
These times are set manually for each security in the market-hours-database.json file. You could of course edit that file if you're running LEAN locally, but I'd advise against it as those hours are set for a reason.
If you can explain why you want to change the start of trading day, perhaps there's an alternative way we can propose?
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Eugene
Hello Douglas,
the ticker SPX500USD from Oanda starts each day at 22pm for 23 trading hours. Weekly start is on sunday 22pm.
That is how Oanda provides its data to tradingview. So the daily and weekly bars are generated based on this starting times.
As I am using tradingview to validated my strategies, it is not possible/practical for the ticker SPX500USD (and maybe other tickers from Oanda as well) because on quantconnect the trading day starts at 0:00am.
Do you have an idea how to handle that? thx.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Douglas Stridsberg
Hey, would changing the timezone in Tradingview fix your problem? You can change the timezone in the lower right hand corner.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Eugene
Hey,
no, it doesn't change the bar calculation. I discussed that already with the TD Support. According to their support, TD is getting the start of week and start of day directly from Oanda, which is at 22pm UTC.
That leads to different values of indicators and OCHL values, which makes a visual strategy validation almost impossible.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Eugene
Thx Douglas.
At least I know now that there is no "easy" way to solve that. Trapped between systems ;)
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
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!