Open Order Symbol

Forex Trader
114555
Forex Trader  
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
Forex Trader
114555
Forex Trader  
what the problem? first parameter of the OrderSend function is symbol name.
Forex Trader
114555
Forex Trader  
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.
Forex Trader
114555
Forex Trader  
in the loop select position using OrderSelect function. than analyze OrderSymbol