RobotFX curates the best open-source MetaTrader code to inspire your trading automation.
Author:
Fduch
The indicator is intended for displaying the charts of two currency pairs in a single window.
Smooth out market noise with the Heiken Ashi Expert Advisor for MT4 and MT5. Reliable trend-following automation. Details here.
Input parameters:
symbol - the name of the currency pair that is to be added to the main chart of the other currency pair.
timeFrame - the TF of the currency piar that is to be added to the main chart of the other currency pair.
price - the price used for drawing the chart of the currency pair that is to be added. It can take the following values: Open, Close, Median
Picture:

What I didn't succeed but wanted to add:
I don't know how to draw a chart of the added currency pair using the bars and candlesticks. Drawing it with a line is simple:
SetIndexStyle(0,DRAW_LINE);
But how can I implement its drawing with the bars or candlesticks?
Build better strategies with RobotFX professional tools – check them out.
8519