sheriffonline: Is this possible to open multi orders for different pairs using single EA?
| Yes but don't do it. You can't use any predefined variables and you have to check for ticks on the other chart. Can't assume pair(Time[0]) == chart(Time[0]) etc. It's not necessary. Code it to trade the current part and put it on other charts. Done. |
sheriffonline: Is this possible to open multi orders for different pairs using single EA? | Yes but don't do it. You can't use any predefined variables and you have to check for ticks on the other chart. Can't assume pair(Time[0]) == chart(Time[0]) etc. It's not necessary. Code it to trade the current part and put it on other charts. Done. |
Yes. understood. Thanks.
Hi,
Is this possible to open multi orders for different pairs using single EA?
eg:
I would like to sell all USD pairs so when EA runs it must open Sell/SellStop/SellLimit USDJPY,USDCHF,USDCAD,etc...
if possible please give me suggetions to start coding myself?
I never coded for multi pair orders in single EA!
Please support me.
example:
the last price from the open order that was open and run
- Do exactly that. If it is open it is a OP_BUY or OP_SELL
Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 and MetaTrader 4 - MQL4 programming forum - Don't double post!
General rules and best pratices of the Forum. - General - MQL5 programming forum - Stop hijacking other threads with your off topic posts.
Hi,
Is this possible to open multi orders for different pairs using single EA?
eg:
I would like to sell all USD pairs so when EA runs it must open Sell/SellStop/SellLimit USDJPY,USDCHF,USDCAD,etc...
if possible please give me suggetions to start coding myself?
I never coded for multi pair orders in single EA!
Please support me.
Something like ... that ?
for (int i=0;i<SymbolTotals();i++) { if (StringFind(SymbolName(i,false),"USD",0)>-1) { printf("*** pairs with usd"); } }
It browses the whole marketwatch looking for pairname in which 'USD' is found.
It's then possible to use variants and place orders. If you do so, give worry to the price/point per symbol computed, plus it won't work on MT4's tester.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
Is this possible to open multi orders for different pairs using single EA?
eg:
I would like to sell all USD pairs so when EA runs it must open Sell/SellStop/SellLimit USDJPY,USDCHF,USDCAD,etc...
if possible please give me suggetions to start coding myself?
I never coded for multi pair orders in single EA!
Please support me.