Code Failure

 

Hi!

I have added the following indicator to my chart: https://www.mql5.com/en/articles/83

Normally, only the lines of the current currency lines should be "lines" and have "width 2". 

But at the moment if i open EURUSD for example, EUR and USD are marked. Switching to GBPJPY for example, only GBP and JPY should be marked, but EUR and USD are also.

Can somebody help me to find out the code failure?

 

Thanks in advance!

Creating a Multi-Currency Indicator, Using a Number of Intermediate Indicator Buffers
Creating a Multi-Currency Indicator, Using a Number of Intermediate Indicator Buffers
  • 2010.06.10
  • Alexey Klenov
  • www.mql5.com
There has been a recent rise of interest in the cluster analyses of the FOREX market. MQL5 opens up new possibilities of researching the trends of the movement of currency pairs. A key feature of MQL5, differentiating it from MQL4, is the possibility of using an unlimited amount of indicator buffers. This article describes an example of the creation of a multi-currency indicator.
 
MT5T:

Hi!

I have added the following indicator to my chart: https://www.mql5.com/en/articles/83

Normally, only the lines of the current currency lines should be "lines" and have "width 2". 

But at the moment if i open EURUSD for example, EUR and USD are marked. Switching to GBPJPY for example, only GBP and JPY should be marked, but EUR and USD are also.

Can somebody help me to find out the code failure?

 

Thanks in advance!

Hi,

Try this. ;)

Cheers