initial sell order is incorrectly implemented as short sale
Inspect also why Portfolio$calcPL() transforms this to -1 positions only
and moreover, why plot(Account$new(portfolios=list(btportfolio))$performance()) gets plotted as if it was pos = 1, not -1 (see buy-hold SPX shape of plot):
In this example of long-only strategy,
initial sell order is incorrectly implemented as short sale
Inspect also why Portfolio$calcPL() transforms this to -1 positions only
and moreover, why
plot(Account$new(portfolios=list(btportfolio))$performance())
gets plotted as if it was pos = 1, not -1 (see buy-hold SPX shape of plot):