Hi

I want to create an ML model that can generate insights and trade in backtesting.

benchmark idea 

  1. suppose I bought equally weighted stocks on the first day of trade, used all my initial amount, and held my portfolio up to the last date of the backtest. (at last, I calculated net return based on dividends, splits, etc) it will be my benchmark.

 

from 2nd Day I want to run an ML model that can trade. but on the first day, I spent all my money. so I can not execute orders due to shortage of cash.

so I need help or suggestion on how can I create a benchmark that can only assume buy not real buy (remember I need dividends, split, etc) or we  just simply create one fake portfolio that represents benchmark data and real one for ML. 

hope I can explain my problem, Coding in python

Thank you in advance