Pay attention to gold and silver EA

Back to topics list To post a new topic, please log in or register
avatar
18
24hworker 2016.07.13 12: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. 

 

avatar
2017
gooly 2016.07.13 13: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.

avatar
12983
WHRoeder 2016.07.13 16: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.

Back to topics list  

To add comments, please log in or register