Ok, thanks.
I begin to understand more about zorro's functioning.

Another question:
If I have more than one order opened how Can I close only one particolar order?

I read on the manual the function "exitTrade (TRADE* trade, var price)" but I don't know how to retriev "trade" variable.

I have some like this:

for(open_trades)
if(strstr(TradeAsset,Asset) && TradeIsOpen)
if(TradeIsLong && ((Bid - priceClose(0)) > (PipsProfit*PIP)))
exitLong();
else if(TradeIsShort && ((priceClose(0) - Ask) > (PipsProfit*PIP)))
exitShort();

but I want to close only the order that matches the condition.

Thanks

Last edited by Maruska; 01/17/13 21:45.