Skip to content
All library documents

TriggerLines Trend Indicator: Weighted Price Smoothing and Signal Line

Article MQL5 code base

Summary

TriggerLines is presented as a trend indicator with two moving-average-style lines whose colors show direction: green for an upward trend and red for a downward trend. Its settings are a calculation period, a smoothing period, and the applied price used in the calculation.

The document defines a weighted price series from values over the selected period, then applies an exponential moving average to produce the signal line. It provides formulas but no chart examples, trading rules, or empirical results. As a result, it explains the indicator’s construction and visual convention, but does not establish how to interpret line crossings or whether the indicator improves trading performance. Users would need to assess its behavior and parameter choices on their own data.

Key ideas

  • TriggerLines displays two lines and uses green and red to indicate upward and downward trend direction.
  • Its inputs are the calculation period, smoothing period, and applied price.
  • The first series weights applied prices over the chosen period, and the second smooths it with an exponential moving average.
  • The document provides no tested entry, exit, or performance rules.

Tags

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