Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 13943
- Rating:
- 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 - averages pre-smoothed (filtered)

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

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