Depending on the timeframe selected (H1 or M30,see above) we attach 3 moving averages on the chart:
Also attach the MACD indicator with the following parameters: Fast EMA=15, Slow EMA=26, MACD SMA=1.
All these indicators are available in any MetaTrader 5 client terminal.

The recommended currency pairs and timeframes for use in "Puria method" strategy are listed below:
Use maximal Stop-Loss value is 14 pips.
The recommended value of Take Profit - is dependent on the currency pair (see above).

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/138
The Hodrick-Prescott Filter
The Hodrick-Prescott Filter.
The Moving Average Indicator, based on the Quasi-Digital Filter
The Moving Average indicator, based on the Quasi-Digital Filter. The MACD indicator as example of its use is presented.