Download MetaTrader 5

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


The Moving Average Class - library for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 34
2014.04.15 16:40
2016.11.22 07:32
line.mq5 (3.45 KB)view
csmooth.mqh (2.62 KB)view

Uses the idea of ​​the classical moving average smoothing. The class can be used when you want to smooth out any array of type double without using the standard indicator.

The class sample requires the following:

  • Fill in the array double in_mas[];
  • Set the values of the variables int in_period (smoothing period), int in_dim (array size);
  • Perform the procedure ini() to initialize the arrays;
  • Perform the procedure void zap_mas2(), which forms a smoothed array double out_mas[].

An example of using the class is available in the indicator line.mq5

CSmooth class demo MQL5

Translated from Russian by MetaQuotes Software Corp.
Original code:

AroonOscillator_HTF AroonOscillator_HTF

The AroonOscillator indicator with the timeframe selection option available in input parameters.

BlauSMStochastic_Signal BlauSMStochastic_Signal

The BlauSMStochastic_Signal indicator shows information on the current trend using the values of the BlauSMStochastic indicator with a fixed timeframe.

NxBreakout NxBreakout

The indicator draws support and resistance lines, which are defined by the maximum and minimum for the last N bars.

NxBars NxBars

A semaphore signal indicator with a prediction.