Pay attention to gold and silver EA

 

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. 

 
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.

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