in the OnData(self, data) function,
How do I log the date and time of the incoming data?
I need a day by day breakdown of what's happening and it's not clear in the logs what is where:
210 | 11:46:09:
ema: 81.33577801909398 TQQQ: 76.4249465025
211 | 11:46:09:
ema: 80.70422972351237 TQQQ: 80.9999433
212 | 11:46:09:
ema: 80.91112504779584 TQQQ: 77.0949460335
213 | 11:46:09:
ema: 80.68042425558335 TQQQ: 83.5849414905
214 | 11:46:09:
ema: 80.20038088871212 TQQQ: 74.349947955
215 | 11:46:09:
ema: 79.83787098860265 TQQQ: 81.175
216 | 11:46:10:
ema: 81.4702583103392 TQQQ: 81.11
217 | 11:46:10:
ema: 65.03404786781616 TQQQ: 65.27
218 | 11:46:10:
ema: 64.2800435161965 TQQQ: 59.24
Fred Painchaud
Hi Etay,
Time of the incoming data is data[symbol].Time (start time) and data[symbol].EndTime.
Fred
Etay Luz
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!