Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

i-SpectrAnalysis_OsMA - MetaTrader 5 Script - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

i-SpectrAnalysis_OsMA - indicator for MetaTrader 5

This indicator is an example of smoothing the OsMA indicator time series by filtering higher-order harmonics.

This method can be used to smooth the values ​​of any indicator. The main advantage of this method is that there is almost no delay.

Indicator input parameters:

 //+------------------------------------------------------------------------+
//|Indicator input parameters |
//+------------------------------------------------------------------------+
Input unit fast EMA= 12 ; Input unit slow EMA= 26 ; Input unit McDermar= 9 ; Input ENUM_APPLIED_PRICE Average price = PRICE_CLOSE ; Input unit N= 7 ; // Number length
Input unit SS= 20 ; // Smoothing factor
input integer shift = 0 ; // shift indicator in horizontal bar

Where:

Indicator operations require the library: https://www.mql5.com/en/code/7000 .

i-SpectrAnalysis_OsMA - indicator for MetaTrader 5

Figure 1. i-SpectrAnalysis_OsMA indicator


Attachment download

📎dt_fft.mqh (28.84 KB)

📎 i-spectranalysis_osma.mq5 (13.81 KB)

Source: MQL5 #16076

Verification code Refresh