Target Allocation Rebalancing Using Broker Positions
Matthew Hoffman
Description:
I’d like TradersPost to support target position sizing based on percent_of_equity, using real-time broker-reported positions to calculate and execute the delta automatically.
Use case:
TradingView strategies can’t reliably track positions across sessions (varip resets), but TradersPost already receives broker position data (Alpaca, tastytrade). This makes TradersPost the ideal place to manage allocation logic.
Requested behavior:
Accept percent_of_equity as a target allocation
Compare against current broker position
Automatically calculate the difference
Submit the appropriate order (buy/sell or percent_of_position)
Why this matters:
Currently, percent_of_equity only sizes individual orders, not portfolio rebalancing. This would enable true allocation-based strategies.