Indicators: TandemInstrument

 

TandemInstrument:

The indicator displays the charts of two symbols in one window.

EURUSD^GBPUSD

Author: Evgeniy Trofimov

 
Thanks to the author, added it to my favourites.
 
Again, do a multi-bar sync (fill in the holes).
 
Make a picture. Show me which holes you're talking about. There are vertical breaks on the chart. They appear after periodic retraining of the indicator. This is the approach. Nothing can be done about it. I have no horizontal holes (absence of quotes) at any time interval.
 
EvgeTrofi:
Show me which holes you're talking about.

Probably holes in the story

in different places on different instruments.

 

Write a script like this:

  1. Take any two symbols.
  2. Go(i) from the zero bar (M1 to illustrate) to the beginning of the history.
  3. The script stops and unpaints at the place where Symbol1_Time[i] != Symbol2_Time[i].
 
hrenfx:

Write a script like this:

  1. Take any two symbols.
  2. Go(i) from the zero bar (M1 to illustrate) to the beginning of the history.
  3. The script stops and unpaints in the place where Symbol1_Time[i] != Symbol2_Time[i].
aha. and it can be simpler - count the number of bars on the same interval.
 
А! That's it! I got it. I'll keep it in mind. If I manage to fix the indicator and the owl, I will definitely post the result. Thank you!
 
Tried to upload and it won't load - it doesn't offer to add to the chart (although the file downloads). What is wrong?
 

There is something with the name of mymql_v201.mqh file ... (because of "_" symbol ...) so I changed the name to MyMQLv21.mqh and changed this name inside this indicator too (two files are attached). And it works for now. 

EURUSD and USDCHF on the same chart with positive correlation :

MetaTrader Trading Platform Screenshots

EURUSD, H4, 2013.07.21

MetaQuotes Software Corp., MetaTrader 5, Demo

eurusd usdchf

EURUSD, H4, 2013.07.21, MetaQuotes Software Corp., MetaTrader 5, Demo


EURUSD and GBPUSD on the same chart with positive correlation :

MetaTrader Trading Platform Screenshots

EURUSD, H4, 2013.07.21

MetaQuotes Software Corp., MetaTrader 5, Demo

eurusd gbpusd

EURUSD, H4, 2013.07.21, MetaQuotes Software Corp., MetaTrader 5, Demo


and this is very interesting to me - EURUSD and USDCHF negative correlation :

MetaTrader Trading Platform Screenshots

EURUSD, H4, 2013.07.21

MetaQuotes Software Corp., MetaTrader 5, Demo

eurusd usdchf negative correlation

EURUSD, H4, 2013.07.21, MetaQuotes Software Corp., MetaTrader 5, Demo


Files:
 

get that warning

 possible use of uninitialized variable 'myPoints' MyMQLv21.mqh 146 47

no idea how to fix it.