In my EA I tried to use a symbol diffrent from the chart symbol and got an error - 4106 that maens - unknown symbol.
my question is how do I iuse more than 1 symbol() in an ordersend cmnd in an EA ?
- OrderSend from another symbol?
- Using The Same EA To Open Orders On Multiple Symbols
- OrderSend - Using multiple symbols - "unknown symbol name EURUSD for OrderSend function"
mtene10:
In my EA I tried to use a symbol diffrent from the chart symbol and got an error - 4106 that maens - unknown symbol.
my question is how do I iuse more than 1 symbol() in an ordersend cmnd in an EA ?
extern string Pair1="EURUSD"; extern string Pair2="GBPUSD"; ticket=OrderSend(Pair1,OP_SELL,lots,MarketInfo(Pair1,MODE_BID),1,0,0,"My Comment",MagicNr,0,Coral); ticket=OrderSend(Pair2,OP_BUY,lots,MarketInfo(Pair2,MODE_ASK),1,0,0,"My Comment",MagicNr,0,LawnGreen);Cheers
mtene10 wrote >>
In my EA I tried to use a symbol diffrent from the chart symbol and got an error - 4106 that maens - unknown symbol.
my question is how do I iuse more than 1 symbol() in an ordersend cmnd in an EA ?
ggekko,
thanks for your reply, however I get errors when using a pair diffrent form the chart pair.
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