Closed AlgoQ closed 4 years ago
Initial cash is 1000; prices are over 9000. Not a single unit can be bought.
Oow okay, I thought it would buy smaller parts of a single unit. Good to know.
Yeah, few asset classes allow fractional ownership. And buying size=0.1
of something in Backtesting.py already means "spend 10% of available equity". For crypto like Bitcoin, you need to trade in fractional units, e.g. satoshis.
When I'm using another dataframe from a file an try out the backtesting Quick Start strategy I get the message at the parameter '_trades' that the Dataframe empty is, although it isn't. Can someone help me out?
Code:
Output:
Zipped data file: ohlcv_binanceF_BTCUSDT_14days.zip