Indicators: TandemInstrument

 

TandemInstrument:

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

EURUSD^GBPUSD

Author: Evgeniy Trofimov

 

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.
 
razoff:

get that warning

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

no idea how to fix it.
It's only a warning, you can probably let it as is.
 

Indi is not usable due to lots of fake gaps (when gaps are actually missing on real chart). 

Any advice please?

Reason: