Summary

Accessor to the trading operations API.

Example

Trade.Close(position)
Trade.CreateBuyLimitOrder(Symbol,100000,Symbol.Bid,Symbol.Bid-20*Symbol.PipSize,
Symbol.Ask+30*Symbol.PipSize,null);
Trade.CreateBuyMarketOrder(Symbol,100000);
Trade.CreateBuyStopOrder(Symbol,100000,Symbol.Ask+5*Symbol.PipSize,Symbol.Ask-20*Symbol.PipSize,
Symbol.Ask+30*Symbol.PipSize,null);
Trade.CreateMarketOrder(TradeType.Buy,Symbol,100000);
Trade.CreateSellLimitOrder(Symbol,100000,Symbol.Ask,Symbol.Ask+20*Symbol.PipSize,
Symbol.Ask-30*Symbol.PipSize,null);
Trade.CreateSellMarketOrder(Symbol,100000);
Trade.CreateSellStopOrder(Symbol,100000,Symbol.Bid-5*Symbol.PipSize,Symbol.Ask+20*Symbol.PipSize,
Symbol.Ask-30*Symbol.PipSize,null);
Trade.DeletePendingOrder(Account.PendingOrders[i]);