Open Order Symbol

 
How do I limit only one trade per cross when using an expert.
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
 
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.
 
in the loop select position using OrderSelect function. than analyze OrderSymbol
Reason: