Automating Pin-Bar Entries with Position Averaging and Trade Management
Summary
The article outlines an MQL5 expert advisor that trades pin-bar patterns and can add positions when price moves against the initial trade. It describes identifying pin bars relative to a support or resistance reference derived from the prior H4 candle’s close, with an optional RSI filter. Additional orders are placed at configured price intervals, subject to a maximum order count and lot-sizing settings. The system includes stop-loss and take-profit controls, trailing stops, breakeven adjustments, and a dashboard showing trade information and key levels.
The implementation discussion covers trade identification, position counting, price normalization, averaging, and chart display. The article states that backtesting was performed and refers to a graph and report, but the excerpt provides no figures or test conditions to assess the results. Averaging into losing positions can increase exposure as adverse movement continues, and the described controls do not by themselves establish a bounded portfolio risk. The method is presented as an educational framework requiring market-specific evaluation.
Key ideas
- The system uses pin-bar patterns near a prior H4 close level to initiate reversal trades.
- It can add positions at predefined adverse price intervals up to a configured limit.
- Trailing stops, breakeven adjustments, and fixed stop and target settings manage open trades.
- An optional RSI filter and dashboard support signal control and monitoring.
- The excerpt reports backtesting without enough results or test details to evaluate performance.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.