Hey, folks, I wonder how do we compare the strategy to buy & hold?
For instance, we have a certain strategy that involves portfolio management therefore you don't invest all money at once.
It's quite obvious that during the steady uptrend buy&hold most likely to demonstrate better results than strategy that doesn't use all the bank.
So does this mean that b&h will always outperform such strategies during the uptrend? Or the comparison is not that straight forward and we actually compare the respective amounts of money invested?
PAIR = pairs.btc_usd
storage.start_currency = storage.get('start_currency', 0)
storage.start_assets = storage.get('start_assets', 0)
if info.tick ==0:
storage.start_currency = portfolio.btc*data[PAIR].price+porfolio.usd
storage.start_assets = porfolio.btc+porfolio.usd/data[PAIR].price
end_currency = portfolio.btc*data[PAIR].price+porfolio.usd
end_assets = porfolio.btc+porfolio.usd/data[PAIR].price
log('buy and hold assets: %s ROI USD' % (end_currency/storage.start_currency))
log('buy and hold currency: %s ROI BTC' % (end_assets/storage.start_assets))
Thanks, I know how to calculate return on investment =). The question is what people mean when they compare results to b&h, they have 1 value for b&h. I expect it to be the same as assets roi but not sure about that
My calculation of "'buy and hold assets: %s ROI USD'" is what people commonly call "buy and hold"; go all in on day one and make no trades thereafter.