Difference between EURUSD.s and EURUSD.s
OrangeTrading:
string Suffix=StringSubstr(Symbol(),6);
int SymLen = StringLen(_Symbol); string Suffix = StringSubstr(_Symbol,6,SymLen-6);
string Suffix=StringSubstr(Symbol(),6);
int SymLen = StringLen(_Symbol); string Suffix = StringSubstr(_Symbol,6,SymLen-6);
You agree to website policy and terms of use
I'm trying to pull market data on a EURUSD.s chart.
Option 1)
MarketInfo(Symbol(),MODE_BID);
Option2)
string Suffix=StringSubstr(Symbol(),6);
Print(Suffix); //gives .s
string Pair="EURUSD"+Suffix;
MarketInfo(Pair,MODE_BID);
Option 1 is working fine. Option 2 is not working, it can't use Pair to request this data (returns 0).
Why is this not working?