Download MetaTrader 5
To add comments, please log in or register
Have you found an error in our products? Apply to Service Desk!
Davlatjon Kenjayev
171
Davlatjon Kenjayev 2015.10.05 17:10 
Hello everybody. Please can someone help me, I need indicator which draws line calculating EURUSD/USDCHF (EUR/USD divided by USD/CHF). I dont know such indicator exist or not, but I want to check it, will it help or not for hedge trading. Thank you in advance
Alexander Voronkov
17299
Alexander Voronkov 2015.10.05 20:46  
Davlatjon Kenjayev:
Hello everybody. Please can someone help me, I need indicator which draws line calculating EURUSD/USDCHF (EUR/USD divided by USD/CHF). I dont know such indicator exist or not, but I want to check it, will it help or not for hedge trading. Thank you in advance

You repeat the question that many people do not understand.

You can describe in more detail your desire?

David Raine
140
David Raine 2015.10.07 02:23  

You can code such easily .

Here's some tip: Let's say you want the ratio of the highs, for example.

Then you write:

symbol1 = "EURUSD"; symbol2 = "USDCHF",

  double value1=  iHigh(symbol1,0,i);

  double value2= iHigh(symbol2,0,i);

go here: http://docs.mql4.com/series/ihigh  to learn iHigh, iLow, iOpen, iClose.


 then you calc :

double LineValue= value1/value2;

You draw the line you want using the LineValue.

I know , I know, I know you want to say it's not so easy.

But yes it is. Just look around for an indicator that draws lines and gut it out. It's the way you learn.

or look here to learn : https://www.mql5.com/en/articles/1503

iHigh - MQL4 Documentation
  • docs.mql4.com
iHigh - MQL4 Documentation
/
To add comments, please log in or register