what the problem? first parameter of the OrderSend function is symbol name.
Hi Slawa,
The problem is I use for example:
buy if bid > 20ma
So I use if(OrdersTotal()<1) so it will only set 1 order at market. If I dont do this it will just keep sending orders.
Now this will not allow any other orders to be opened.
What I need is a way to identify the symbol so it opens only 1 trade per cross.
Hope that explains it and thanks.
The problem is I use for example:
buy if bid > 20ma
So I use if(OrdersTotal()<1) so it will only set 1 order at market. If I dont do this it will just keep sending orders.
Now this will not allow any other orders to be opened.
What I need is a way to identify the symbol so it opens only 1 trade per cross.
Hope that explains it and thanks.
in the loop select position using OrderSelect function. than analyze OrderSymbol
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 want to be able to trade the same expert on different crosses on different charts .
So if I am long usd/chf and the gbp/usd gives a sell signal I want it to sell it. Then if Eur gives buy signal for expert to buy that aswell. So i will have 3 orders open...
Thanks