PendingOrder


Summary

Provides access to properties of pending orders

Syntax

public interface PendingOrder

Members

NameTypeSummary
Cancel MethodShortcut for Robot.CancelPendingOrder method
Comment PropertyUser assigned Order Comment
ExpirationTime PropertyThe order Expiration time
The Timezone used is set in the Robot attribute
HasTrailingStop PropertyWhen HasTrailingStop set to true,
server updates Stop Loss every time position moves in your favor.
Id PropertyUnique order Id.
Label PropertyUser assigned identifier for the order.
ModifyExpirationTime MethodShortcut for Robot.ModifyPendingOrder method to change Expiration Time
ModifyStopLimitRange MethodShortcut for Robot.ModifyPendingOrder method to change Stop Limit Range
ModifyStopLossPips MethodShortcut for Robot.ModifyPendingOrder method to change Stop Loss
ModifyTakeProfitPips MethodShortcut for Robot.ModifyPendingOrder method to change Take Profit
ModifyTargetPrice MethodShortcut for Robot.ModifyPendingOrder method to change Target Price
ModifyVolume MethodShortcut for Robot.ModifyPendingOrder method to change VolumeInUnits
OrderType PropertySpecifies whether this order is Stop or Limit.
Quantity PropertyQuantity (lots) of this order
StopLimitRangePips PropertyMaximum limit from order target price, where order can be executed.
StopLoss PropertyThe order stop loss in price
StopLossPips PropertyThe order stop loss in pips
StopLossTriggerMethod PropertyTrigger method for position's StopLoss
StopOrderTriggerMethod PropertyDetermines how pending order will be triggered in case it's a StopOrder
SymbolCode PropertySymbol code of the order
TakeProfit PropertyThe order take profit in price
TakeProfitPips PropertyThe order take profit in pips
TargetPrice PropertyThe order target price.
TradeType PropertySpecifies whether this order is to buy or sell.
VolumeInUnits PropertyVolume of this order.

Example 1

PlaceLimitOrder(TradeType.Buy, Symbol, 10000,Symbol.Bid);
var order = LastResult.PendingOrder;
Print("The pending order's ID: {0}", order.Id);