Hi,
I am backtesting a strategy where I need to rescale the trades according to the available equity level. In particular I would like to have my portfolio fully invested at all times, with a reweighing of positions every time I enter (or exit) a new position, in order all positions are always equally weighted. It seems like the PosSizer
SpreadEquityEqually doesn't serve my purpose as I would have to close all positions every time a new position is entered (or exited) and reenter in all the remaining ones, which would cause unneccessary trades and thus too high commissions.
I have been looking through various posts in your forum and it seems like there are two alternatives:
1)
Interacting Dynamically with Portfolio Level Equity2) Manually keep track of the portfolio equity level for each bar (in the script) as explained in the post
Portfolio Equity Tracker.
In the second post above (2), you mention that the 1st method (1) might have inherent problems such as slowness and imprecision. Is this still the case or have these issues (especially imprecision) been adressed?
Also, as an alternative, would it be possible to use a
PosSizer to achieve the above (which would require a potentially different % weight for every bar, which seems not possible)?
So, my questions are:
- Are all three methods I mentioned above feasible?
- Among these three, which is the most robust and which would you recommend?
Thank you in advance for your help.
Best,
Seb