Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

votes: 8
2018.06.06 14:28
JSmooth_MA.mq5 (9.17 KB)view

The indicator displays on the price chart a moving average with the JSmooth smoothing type (the smoothing type proposed by Mark Jurik).

The indicator has two input parameters:

  • Period - calculation period;
  • Applied price - price used for calculations.


JSmooth[i] = J5[i]


J5[i] = J5[i-1] + J4[i],
J4[i] = (J3[i] - J5[i-1])*(1 - Alpha)*(1 - Alpha) + J4[i-1]*Alpha*Alpha,
J3[i] = J1[i] + J2[i],
J2[i] = (Price[i] - J1[i])*(1 - Alpha) + J2[i-1]*Alpha,
J1[i] = Price[i]*(1 - Alpha) + J1[i-1]*Alpha,
Alpha = 0.45*Period/(0.45*(Period-1)+2)

Translated from Russian by MetaQuotes Software Corp.
Original code:

Important_Extremums Important_Extremums

An indicator of important extremums.

Donchain counter Donchain counter

A trading system based on the Donchian Channel indicator.

Performance_Index Performance_Index

The Performance Index indicator.

Psychology_Index Psychology_Index

The Overbought/Oversold Index