------- The documentation below -------------
exitTrade (TRADE* trade, var price, int lots)
Exits a particular trade at market or at a given price limit.
Parameters:
algo Optional algorithm identifier of the trade, or 0 for the current Algo, or "*" for exiting all open trade positions with the current asset regardless of their identifiers.
trade The patricular trade to be closed.
-------------- My question below ------------
Could someone please post an example of code for achieving this?
I have multiple assets and I want to exit a specific asset under specific conditions. Example: Exit USD/JPY of size 1 but keep USD/JPY of size 2 open.

Last edited by mustang; 10/13/14 20:08.