Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | Trend_Signal

Trend Signal trend-following indicator specifies the change of a trend when Close price breaks through the specified range of bars upwards or downwards.

The Risk parameter allows defining the distance from the extreme price for this period.
We define it as a percentage of the range for this period.

It has two configurable parameters:

  • Period - range calculation period
  • Risk - percentage of range over Period

Calculation:

  • If PrevClose < Max and Close > Max
    Upward breakthrough = Bullish signal
  • If PrevClose > Min and Close < Min
    Downward breakthrough = Bearish signal

where:

Max = max-(max-min) * Risk / 100.0
Min = min+(max-min) * Risk / 100.0
Max, min are the highest and lowest prices within the Period interval

MetaTrader Experts, Indicators, Scripts and Libraries

MetaTrader Experts, Indicators, Scripts and Libraries

22437