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

2016.06.30 13:04

TrendX - indicator for MetaTrader 5

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

votes: 14
trendx.mq5 (9.87 KB)view

Real author:

Victor Chebotarev


TrendX indicator can be used for the market entry/exit. The red line shows the movement direction, while the green one shows trend. Raising green line indicates directional movement, while falling or horizontal one shows correction or flat.

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".

This indicator was first implemented in MQL4 and published in Code Base at on 01.06.2006.


Fig.1. TrendX

Fig.1. TrendX

Translated from Russian by MetaQuotes Software Corp.
Original code:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TypeToBytes TypeToBytes

Byte-wise operation with structures and standard data types.

PriceLines PriceLines

Script for drawing a price markup.