Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
7062
Rating:
(18)
Published:
2013.01.07 15:45
Updated:
2023.03.29 13:42
\MQL5\Include\
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The XMA_TrendSignal indicator defines three states of the market such as flat, trend and very strong trend.

During a flat, the indicator values are set to either -1 or +1 depending on the direction of the movement. In the moderate trend values are -2 or +2, in the strong trend values are -3 and +3. The indicator bars are colored in the corresponding color depending on the force and direction of the trend. The main instrument to measure the trend force in the indicator is the rate of trend change expressed in points. Input parameters for fixing threshold values of this rate:

input uint MA1_Level=20;   // Flat trigger
input uint MA2_Level=60;   // Trend trigger    

The indicator requires attentive setting for each concrete financial instrument and its timeframe display. For each timeframe it should have own most optimal settings of triggering levels!

The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging price series for intermediate calculations without using additional buffers".

Fig.1 The XMA_TrendSignal indicator

Fig.1 The XMA_TrendSignal indicator

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/1351

PriceChannel Signal PriceChannel Signal

This indicator is the conversion of famous Igorad's indicator namely PriceChannel_Signal_v1 with re-enter feature.

The class to draw MACD using the ring buffer The class to draw MACD using the ring buffer

The class is designed for calculation of the technical indicator Moving Average Convergence/Divergence (Moving Average Convergence/Divergence, MACD) using the algorithm of the ring buffer.

Exp_VininI_Trend Exp_VininI_Trend

The Exp_VininI_Trend trading system is based on change of the trend direction displayed by the VininI_Trend indicator.

The class for drawing the OsCD using the ring buffer The class for drawing the OsCD using the ring buffer

The class is designed for calculation of the technical indicator Moving Average of Oscillator (Moving Average of Oscillator, OsMA) using the algorithm of the ring buffer.