How to display two currency pairs on one chart?

 

Hallo everybody.

I want to know if it is possible to display two currency pairs for example EUR/USD and GBP/USD on one chart. It does not need to be live data or in the metatrader platform, it can be historical data imported into Exel with a custom chart. I just want to study, on the same timeframe, how the two currency pairs follow each other.

Any help in the right direction would be greatly appreciated. Thanks.

 

I had the same question.Did anyone had the solution?

Thx...

 

Hi. No, you cannot display more than one price-series in candle format on the same chart - though there is nothing to stop you displaying multiple pairs as moving averages.

 
omelette:
Hi. No, you cannot display more than one price-series in candle format on the same chart - though there is nothing to stop you displaying multiple pairs as moving averages.

Hi !

Did you mean MA in GBP/USD can be shown in EUR/USD ! Can you mention how ?

B.rgds / Kibria

 

Price indicator (try that)

#property copyright "Copyright"

#property link "http:"

#property indicator_separate_window

#property indicator_buffers 2

#property indicator_color1 Plum

#property indicator_color2 Plum

extern string symbol = "EURUSD";

double EurUsd[],oEurUsd[];

double IdxClose[], IdxOpen[];

int init()

{

RefreshRates();

IndicatorShortName(symbol," price");

SetIndexStyle(0,DRAW_LINE);

SetIndexBuffer(0,IdxClose);

SetIndexStyle(1,DRAW_LINE);

SetIndexBuffer(1,IdxOpen);

IndicatorDigits(4);

return(0);

}

void start()

{

ArrayCopySeries(EurUsd,MODE_HIGH,symbol);

ArrayCopySeries(oEurUsd,MODE_LOW,symbol);

int counted_bars=IndicatorCounted();

double EURUSD, oEURUSD;

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;

int limit=Bars-counted_bars;

for(int i=0; i<limit; i++)

{

if(EurUsd!=0 && oEurUsd!=0)

{

EURUSD = EurUsd;

oEURUSD = oEurUsd;

IdxClose = EURUSD;

IdxOpen = oEURUSD;

}

}

}

 

Thx,Below is my little modified program.

Maybe it will be helpful:

#property copyright "Copyright"

#property link "http:"

#property indicator_separate_window

//#property indicator_chart_window

#property indicator_buffers 2

#property indicator_color1 Aqua

#property indicator_color2 Yellow

extern string symbol = "EURUSD";

double EurUsd[];

double IdxClose[];

double ExtMapBuffer1[];

int init()

{

RefreshRates();

IndicatorShortName(symbol);

SetIndexStyle(0,DRAW_LINE);

SetIndexBuffer(0,IdxClose);

SetIndexStyle(1,DRAW_LINE);

SetIndexBuffer(1,ExtMapBuffer1);

SetIndexLabel(0,symbol+"_ClosePrice");

SetIndexLabel(1,symbol+"_DayClose");

IndicatorDigits(MarketInfo(symbol,MODE_DIGITS)+1);

return(0);

}

void start()

{

int win_idx=WindowFind(symbol);

string sTag = symbol+"PriceTag";

datetime TimeArray[];

ArrayCopySeries(TimeArray,MODE_TIME,symbol,1440);

ArrayCopySeries(EurUsd,MODE_CLOSE,symbol);

int counted_bars=IndicatorCounted();

double EURUSD;

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;

int i,y=0,limit=Bars-counted_bars;

for(i=0,y=0;i<limit;i++)

{

if (Time<TimeArray[y]) y++;

if (TimeDayOfWeek(Time)!=0)

ExtMapBuffer1=iMA(symbol,1440,1,0,0,1,y) ;

else

ExtMapBuffer1=iMA(symbol,1440,1,0,0,1,y+1) ;

}

for(i=0; i<limit; i++)

{

if(EurUsd!=0)

{

EURUSD = EurUsd;

IdxClose = EURUSD;

ObjectDelete(sTag);

ObjectCreate(sTag, OBJ_ARROW, win_idx, CurTime(),IdxClose[0]);

ObjectSet(sTag,OBJPROP_ARROWCODE,SYMBOL_RIGHTPRICE);

ObjectSet(sTag,OBJPROP_COLOR,Aqua);

}

}

}

 
RockyLeexh:
Thx,Below is my little modified program.

Maybe it will be helpful:

Thanks for the replies, not really what I had in mind but thanks anyway.

Excel has a feature to create Forex tick charts and I will use that to display two currency pairs on one chart. I just need to figure out how to get tick data without gaps in .csv format.

 

the best i can suggest is goto http://www.fxstreet.com/rates-charts/forex-charts/ and overlay one chart on another

 

hi

try this one, it displays many pairs on the chart

Files:
 

indicator that shows price of two currency pairs on one chart

Hi,

I would like an indicator that allows prices of two pairs of currencies to be put onto one chart, so when one moves we can see how the other pair moves. And also, the indicator gives the difference in price between the two currencies. is there any indicator like this or can anyone do this for me please? Thanks.

 

Look at this thread for the indicator https://www.mql5.com/en/forum/178052

And this one https://www.mql5.com/en/forum/174781

Reason: