- mt4 build 1090 dosnt work on win 10
- Frequently Asked Questions about the Signals service
- I have opened many charts with 1 EA(the same magic number) and I want to have only 1 trade per 1 signal at any given time
https://www.mql5.com/en/code/8317. Also you can StringSubstr() the first 6 characters.
OMG, what a horrible way of doing it. Surely somebody has a better way than trying every permutation of all the possible characters and taking >20 minutes to do it?
Well All I did was google search for "all symbols" and provided the links it give me :)
Reading the Op again, seems the first part talks about a tool which cache all symbols regardless of chart it's on.
If the ea however is on the correct chart but the broker's changing the symbol name.
Then a simple if( StringSubstr(Symbol(),0,6)=="EURUSD" ){ ....Then I'm working with EURUSD... } should suffice.
If the ea however is a multi-currency single chart, then more creative thinking is required.
ubzen:
If the ea however is on the correct chart but the broker's changing the symbol name.
Then a simple if( StringSubstr(Symbol(),0,6)=="EURUSD" ){ ....Then I'm working with EURUSD... } should suffice.
Brokers name the pair several ways: EURUSD, EURUSDm, EUR/USD, EUR-USD, EURUSDxxx (I can't remember what the xxx was)
Instead I'd use
string pair = Symbol(); if (StrStringFind(pair, "EUR") >= 0 && (StrStringFind(pair, "USD") >= 0)
Brokers name the pair several ways: EURUSD, EURUSDm, EUR/USD, EUR-USD, EURUSDxxx (I can't remember what the xxx was)
Instead I'd use
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use