Skip to content
All library documents

Percentage Thresholds for Updating a Price Channel

Article MQL5 code base

Summary

This indicator draws channel levels from a selected price type and the previous day's value. It updates the levels when the selected price moves far enough to exceed a user-set percentage threshold; otherwise, it retains the existing levels. The two inputs are the threshold percentage and the applied price, so the channel responds to a chosen price series and movement filter.

The document notes that the percentage setting should vary with timeframe: smaller timeframes generally require a lower threshold to register movements as significant. It illustrates settings on H4, H1, and M5 charts, but provides no performance tests, trading rules, or detailed definition of how the channel boundaries are calculated. As a result, it explains the update concept and parameter behavior, but does not establish how well the levels identify breakouts or support and resistance. Traders would need to assess the settings and signals in their own market and timeframe.

Key ideas

  • The channel levels update when the selected price moves beyond a percentage threshold relative to the previous day's value.
  • If the threshold is not exceeded, the existing channel levels remain in place.
  • The indicator lets users choose both the applied price and the threshold percentage.
  • The suggested threshold varies with timeframe, with lower settings for shorter intervals.
  • The document gives no trading rules or performance evidence for the channel.

Tags

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