Watch how to download trading robots for free
Find us on Telegram!
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
Indicators

Trend detection index - indicator for MetaTrader 5

Views:
12862
Rating:
(14)
Published:
2018.12.08 17:41
Updated:
2018.12.08 17:41
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Theory :

Based on the "Are You in A Trend" article by M.H.Pee :

The  trend detection index (TDI) is used to detect when a trend has begun and when it has come to an end. The TDI can be used as a stand-alone indicator or combined with others; it will perform well  in  detecting  the  beginning  of trends. However, this does not mean its signals are totally accurate. Protective stops as well as trailing stops† must be incorporated  to  produce  a  complete mechanical  system.  These  stops  are required  to  protect  against  large  losses  when  the  indicator generates  a  losing  trade.  The  T DI is  robust;  it  can  trade  a diverse  portfolio  of  markets  profitably  over  many  years, using the same parameters throughout.

In this version we are adding smoothing option prior to using prices in the calculation. The lag added is small, hence the smoothing can help in filtering out some false signals

Usage :

You can use the color change as signal



Trend continuation factor (of average) Trend continuation factor (of average)

Trend continuation factor - averages pre-smoothed (filtered)

ms-Сandle. Candle direction indicator, gaps in quotes. ms-Сandle. Candle direction indicator, gaps in quotes.

The indicator determines the direction of the bar based not only on the Open/Close prices. Gaps and gaps in quotes are also determined.

Trade signal based on PullBack and Candle (for MQL5 Wizard) Trade signal based on PullBack and Candle (for MQL5 Wizard)

This is the trading signal of PullBack and Candle. The expert code for this strategy is automatically generated by the MQL 5 wizard.

Trend intensity index Trend intensity index

Trend intensity index