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 | Price period SMA

To calculate the average price, you can specify the periods H1 and D1. For example, the D1 average price allows you to track whether the price of a certain financial instrument is above or below the average price. The same is with H1, which indicates a price trend reversal much faster.

The indicator has only three calculated input parameters:

input string               _symbolName    ="0";             // Symbol, 0 = take a symbol from the chart input ENUM_USE_SMA         _useSMA        =HOUR_SMA;        // Use moving average input ENUM_APPLIED_PRICE   _appliedPrice  =PRICE_WEIGHTED;  // Price
  1. Symbol for calculations;
  2. The time period for which the average price is calculated;
  3. Applied price.

It is recommended to use from M1 to M30, M1 is the most informative time scale.

MetaTrader Experts, Indicators, Scripts and Libraries

You can also compare different financial instruments on the same price chart.

For example, EURUSD and USDCAD, M15.

MetaTrader Experts, Indicators, Scripts and Libraries

The indicator also allows you to see the resistance / support levels of the daily average price.

MetaTrader Experts, Indicators, Scripts and Libraries

37360