https://github.com/pskucherov/opexflow/pull/15/commits/506e94bdd6be94e20b9329720bf4d2c0cd5e18fc
Set start parameters
balance: 10000
stocks: 0,
maxBuyStocks: 40
lastStockPrice: 0
commission: 0.05
Then we can go over the chart and buy / sell the maximum number of shares available.
He limited only the purchase, it is impossible to short. Let’s try this example to train a robot that can show the maximum result.