Hi,
It is very clear how to use alphien.data.getHistoryData()
to load all sorts of data that is available. However, when it comes to backtesting, we need to create a Portfolio
object, and it remains perplexing how to use alphien.portfolio.Portfolio()
to generate an aggregated data file that includes (1) ohlcv
and (2) bb_live
for all selected tickers together with a complete set of (3) macro data (indices returned by getTickersSP500Data()
).
If it is not possible, please let us know how can we incorporate all three parts of information during backtesting.
Thank you in advance for answering this.