Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

TDI-2 BARS - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

TDI-2 BARS - indicator for MetaTrader 5

The indicator changes the bar color to the color based on the calculated current trend TDI-2 Custom Indicator. If the trend and candlestick directions match, the color of the bar is light, if they are opposite, the bar is dark.

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

TDI-2 BARS - indicator for MetaTrader 5

Figure 1. Indicator TDI-2_BARS


Attachment download

📎 smoothalgorithms.mqh (134.03 KB)

📎tdi-2.mq5 (8.61 KB)

📎 tdi2_bars.mq5 (7.63 KB)

Source: MQL5 #2102

Verification code Refresh