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 have already explained
.
I have already explained
.
Ok thanks
All symbols i need are already exist on market watch, i need to select a specified one to make an order on
As GumRai wrote, you don't "select" a pair before using OrderSend... There is no need to use SymbolSelect()
Or if you want to use a variable:
As GumRai wrote, you don't "select" a pair before using OrderSend... There is no need to use SymbolSelect()
Or if you want to use a variable:
Thanks honest
This fails when the chart is not EURUSD. If you are not trading the current chart's pair, you can not use any predefined Variables - MQL4 Documentation
This fails when the chart is not EURUSD. If you are not trading the current chart's pair, you can not use any predefined Variables - MQL4 Documentation
Quite right WHRoeder, I was guilty of a quick reply without giving too much thought to the rest of the code.
or
Mahmood you need to use marketinfo() to get the price data for a pair differnent to the EA attached chart
https://docs.mql4.com/marketinformation/marketinfo
Mahmood you need to use marketinfo() to get the price data for a pair differnent to the EA attached chart
https://docs.mql4.com/marketinformation/marketinfo
Or SymbolInfoDouble()
Or SymbolInfoTick()
Many ways to skin the proverbial cat. Bear in mind that MarketInfo() is restricted to MQL4, whereas the other methods are also compatible with MQL5.
Mahmood you need to use marketinfo() to get the price data for a pair differnent to the EA attached chart
https://docs.mql4.com/marketinformation/marketinfo