OrangeTrading:
string Suffix=StringSubstr(Symbol(),6);
int SymLen = StringLen(_Symbol); string Suffix = StringSubstr(_Symbol,6,SymLen-6);

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?