Download MetaTrader 5
To add comments, please log in or register
Manage agents in your profile. It is easy!
Achim Rogalski
61
Achim Rogalski 2016.07.13 10:48 

With my broker I can order gold and silver.

chart 

 

But the Indicators dont work:

long test = iVolume("XAUUSD", PERIOD_H1, 0);    // returns  0

 

You must write:

long test = iVolume("GOLD", PERIOD_H1, 0);     // returns the true value

(iStochastic also returns no value)

 

So commercial EA Dealers will have problems with the sold Indicators and EA's.

Metatrader  must insist that all brokers use the same names for the currencies. 

Carl Schreiber
5938
Carl Schreiber 2016.07.13 11:06  
24hworker:

With my broker I can order gold and silver.

 

 

But the Indicators dont work:

long test = iVolume("XAUUSD", PERIOD_H1, 0);    // returns  0

 

You must write:

long test = iVolume("GOLD", PERIOD_H1, 0);     // returns the true value

(iStochastic also returns no value)

 

So commercial EA Dealers will have problems with the sold Indicators and EA's.

Metatrader  must insist that all brokers use the same names for the currencies. 

 

1) That is not service Metaquotes provides - ask you broker.

2) Realize that all this is like a kindergarten - every broker does what he wants (e.g. servertime, dst, contract size, ...)

3) If you EA isn't able to deal with this - ask the vendor or remove it.

whroeder1
13602
whroeder1 2016.07.13 14:50  
24hworker: Metatrader  must insist that all brokers use the same names for the currencies. 
long test = iVolume("XAUUSD", PERIOD_H1, 0);    // returns  0
Broker's use a variety of naming patterns: EURUSD, EURUSDm, EURUSDi, "EURUSD.", "EURUSD..", "EUR.USD", "EUR/USD", "EURUSD.stp", EURUSDct, "EURUSD.G", "EURUSD+", and EURUSDpro at least. Don't hard code things; just use the predefined _Symbol.
/
To add comments, please log in or register