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


Sampler - indicator for MetaTrader 5

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

votes: 39
2012.06.01 09:55
2016.11.22 07:32
i_sampler.mq5 (7.06 KB)view

The indicator (i_Sampler.mq5) calculates perfect market entry signals, which can be used for neural network training.

It has two buffers:

  • buffer 0 (green line) - analog signal, calculated as a ratio of the positive/negative price change (normalized to range [-1, +1]) during bars_future bars forward;
  • buffer 1 (two-color histogram) discrete signal, the values are: -1(sell), 0(wait), +1(buy).

The discrete signal can be calculated 2 different methods:

  • method 1: the signal appears when analog signal became greater than threshold, specified by porog input parameter;
  • method 2: the signal appears when TP/SL conditions are satisfied.

i_Sampler indicator

The e_CheckSampler.mq5 Expert Advisor is created for checking of the indicator values.

The Expert Advisor uses the data from file, created by indicator.

Expert Advisor based on i_Sampler indicator

Translated from Russian by MetaQuotes Software Corp.
Original code:

Pearson correlation indicator Pearson correlation indicator

Pearson correlation indicator shows the correlation between symbols.

Size Highs And Lows Size Highs And Lows

The indicator shows the size of Highs and Lows and their values over the specified period.

sSortTest sSortTest

Comparative study of sorting algorithms.


Adaptive Exponentially Smoothed Moving Average, based on StdDev indicator.