Configurable Position Sizing and Multi-Target Exit Controls
Summary
This Pine Script excerpt focuses on configurable trade management rather than a complete entry strategy. It provides inputs for cash allocated per position, the number of positions opened per signal, and three profit targets with separate counts of positions to close at each target. It also offers stop-management choices described as fixed, risk-free, or trailing, alongside pip-based settings and optional long and short take-profit and stop-loss controls that can be expressed by price, currency, percentage, or ATR.
The excerpt includes alert-message inputs and a small display of selected settings, but ends before the entry-step logic is shown. It therefore does not explain what market conditions generate trades, nor does it report a backtest or performance evidence. The configurable partial exits and stop options illustrate implementation choices for managing multiple units, while their effectiveness depends on the omitted entry logic, instrument conventions, execution assumptions, and chosen parameters.
Key ideas
- The script exposes cash-per-position sizing and a configurable number of entries per signal.
- Three profit targets can close separately specified numbers of positions.
- Stop management includes fixed, breakeven-style, and trailing choices.
- Optional long and short stop and target controls support price, currency, percentage, or ATR units.
- The excerpt omits the entry rules and provides no backtest evidence.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.