EA text cases

 

I have an EA created by a freelancer here.  I don't understand the code, but perhaps someone here can provide some guidance.

The (possible) challenge is this:   The EA not only obtains price history data for its calculations, it also obtains data from an external mysql database.

That db contains daily data for various fx pairs.  The column containing this data is in ALL CAPS.   So if you looked at it, you'd see EURUSD rather than eurusd.

The question is... which case is "read" by metatrader?   Or does it even matter?   If it does matter, is the solution to tweak the EA or the database?


Thanks very much.

 
Nothing is "read by Metatrader." Your EA tells the terminal what to do (e.g. open an order.)
If the DB symbol is all caps and your EA passes it to the terminal, the OrderSend is likely to fail as there is no such symbol.
Broker's use a variety of naming patterns: EURUSD, EURUSDc, EURUSDct, EURUSDi, EURUSDm, EURUSDecn, EURUSDpro, "EUR.USD", "EUR/USD", "EURUSD.", "EURUSD..", "EURUSD.G", "EURUSD.SBe", "EURUSD.stp", "EURUSD+", "EURUSD-sb", etc.
Don't hard code things; just use the predefined _Symbol. Or calculate the adornments
          SymbolName/Symbol. OrderSend - Symbols - MQL4 and MetaTrader 4 - MQL4 programming forum

 
whroeder1:
Nothing is "read by Metatrader." Your EA tells the terminal what to do (e.g. open an order.)
If the DB symbol is all caps and your EA passes it to the terminal, the OrderSend is likely to fail as there is no such symbol.
Broker's use a variety of naming patterns: EURUSD, EURUSDc, EURUSDct, EURUSDi, EURUSDm, EURUSDecn, EURUSDpro, "EUR.USD", "EUR/USD", "EURUSD.", "EURUSD..", "EURUSD.G", "EURUSD.SBe", "EURUSD.stp", "EURUSD+", "EURUSD-sb", etc.
Don't hard code things; just use the predefined _Symbol. Or calculate the adornments
          SymbolName/Symbol. OrderSend - Symbols - MQL4 and MetaTrader 4 - MQL4 programming forum

Got it.   Thank you.
Reason: