LEAN is the open source
algorithmic trading engine powering QuantConnect. Founded in 2013 LEAN has been built by a
global community of 80+ engineers and powers more than a dozen hedge funds today.
Alpha League Competition: $1,000 Weekly Prize Pool
Qualifying Alpha Streams Reentered Weekly Learn
more
2) Why is the daily time stamp is at "20:00:00" ? I thought it should be the NY Close, which is at 17:00 in NY, isn't it? "20:00:00" means GMT-1, right?
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.
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.
Alexandre Catarino
100.5k Pro
,
QuantConnect and Oanda aggregate daily data differently. A daily bar for Oanda starts at 5pm NYT and closes 5pm NYT on the following day. At QuantConnect, we aggregate daily data from the same day in the data timezone. Since Forex data from Oanda timezone is UTC, a daily bar will start/close at 8 pm NYT (00 am UTC).
0
Pro
,
Alexandre Catarino hi, How can we consolidate the daily data so that it closes at NY-17:00?
0
Jack Simonson
49.4k Pro
,
Hi Ata,
I've attached a backtest below that demonstrates how you can consolidate daily data from higher-resolution data. The basic idea is to define a function that builds the consolidator and then uses a Scheduled Event to call that function once at 17:00 at the beginning of the algorithm. From then on, it will produce daily bars consolidated at 17:00 NY Time.
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.
Loading...
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!