I am trying to import custom data from csv in this format: date,value
I have implemented the class that inherits from BaseData including the GetSource and overrides.
After setting the Time and EndTime in Reader function, I print the values and it prints out 1/1/0001 12:00:00 AM 1/1/0001 12:00:00 AM which are not the value I have set.
Ofcource the data does not exist in OnData.
I have noticed that Reader function is called many times with the start date of the backtest.
the GetSource function is called based on the resolution
the algo can access the csv file on disk.
HELP ;]
Super Richman
ok the data range is month, each month there is a new value.
Now I get the data on the OnData function but just in the same date as the EndTime property.
I need all of the data before EndTime and until Time in my custom class will be sent for each day in the OnData. (FillForward?) but I couldn't find a way to make lean to activate the FillForward mechanism for my class… How do I do that?
I will buy ice cream for the helper ;]
Super Richman
solved
Super Richman
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!