Skip to content
All library documents

Using Close Series to Manage Short-Term Trend Trades

Article MQL5 code base

Summary

This indicator classifies closes by their relationship to the previous bar and tracks the length of each resulting sequence. It describes internal closes as closes within the prior bar’s range, which may reflect sideways or slowly drifting price action; a long sequence is presented as a possible precursor to a breakout, with entries determined using other tools. External closes are defined as closes beyond the prior high or low and are associated with either a continuing range or a reversal. Same-direction closes are treated as a sign that a short-term trend may have ended. Each plotted line represents the count of bars in its category.

The recommendations are to use the indicator on longer timeframes alongside other indicators and to close or defend a position after a run of external closes or a longer series of closes. The descriptions are heuristic: no formal entry rules, tested thresholds beyond the stated counts, performance statistics, or market-specific evidence are provided. The indicator is therefore presented as an aid to exits and trade management, not a standalone signal.

Key ideas

  • The indicator counts consecutive bars in three close categories relative to the previous bar.
  • A prolonged run of internal closes is described as possible consolidation before a breakout.
  • A sequence of external closes may indicate a range continuation or a price reversal.
  • Same-direction closes are interpreted as a possible end to the short-term trend.
  • The recommendations call for using other indicators and considering position defense after specified sequences.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.