Multi-Order Strategy Template with Staggered Stops and Targets
Summary
This educational template demonstrates how a rule-based strategy can manage several distinct entries, each with its own stop-loss and take-profit levels. Bullish and bearish candle patterns trigger long or short orders, while direction controls and an optional date filter limit which signals are eligible. The template assigns successive orders separate percentage-based risk and reward settings, tracks them with arrays, and displays trade and outcome statistics in a chart table.
The script also exposes backtest properties such as initial capital, commission, order processing, and pyramiding, emphasizing that these settings must agree with the platform’s strategy properties for comparable results. It is primarily an implementation example rather than a tested trading edge: no performance results or market-specific validation are supplied. The excerpt is incomplete, so some order-management and statistics details cannot be evaluated from the document alone.
Key ideas
- Bullish and bearish candle patterns provide the template’s long and short entry triggers.
- Separate order slots use progressively configured percentage stops and targets.
- Direction selection and date filtering can restrict which trades the strategy opens.
- Arrays track active orders and their stop and target levels, while a chart table summarizes outcomes.
- Backtest settings such as costs and order processing need to match the platform properties for comparable results.
- The document is an incomplete implementation template and does not establish trading performance.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.