quantstrat is a signal-based backtesting system.
Rules for how you hold a position, such as position sizing, or duration, are managed by your trading workflow.
So, no, quantstrat is not the tool you are looking for. quantstrat is the tool you use to test rules for entering and exiting positions (signals).