Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 3710
- Rating:
- Published:
- 2018.01.22 09:36
- Updated:
- 2023.03.29 13:48
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The XMA_Divergence indicator with the possibility to change the indicator timeframe from input parameters:
input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4; // Indicator chart period (timeframe)
The indicator requires the XMA_Divergence.mq5 indicator file for operation. Add it to <terminal_data_folder>\MQL5\Indicators.
Fig.1. The XMA_Divergence_HTF indicator.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/19363

The indicator shows a text block with the values of the user defined CCI oscillator period for each timeframe

A trend indicator displaying divergence areas on the price chart.

Closing positions: all, only profitable or only losing positions.

A trend indicator, which receives trade signals from the XMACD histogram.