Watch how to download trading robots for free
Find us on Facebook!
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:
9165
Rating:
(27)
Published:
2014.03.11 13:56
Updated:
2023.03.29 13:47
\MQL5\Include\
tdi-2.mq5 (8.61 KB) view
tdi2_bars.mq5 (7.63 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The indicator changes the bar color to the color of the current trend calculated based on the TDI-2 custom indicator. If the trend and candlestick direction match, the color of the bar is light, if opposite, the bar is dark.

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

Figure 1. Indicator TDI-2_BARS

Figure 1. Indicator TDI-2_BARS

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

DEMA_RLH DEMA_RLH

A system of three Moving Averages.

XDPO XDPO

The indicator is drawn as a colored cloud between a price and its double averaging.

XChannel XChannel

A channel build on the values of two moving averages of High and Low, drawn as a cloud.

Laguerre_ROC Laguerre_ROC

The ROC indicator smoothed by Laguerre filter drawn as a color histogram.