PendingOrder¶
Summary¶
Provides access to properties of pending orders
Signature
1 |
|
Namespace¶
cAlgo.API
Examples¶
1 2 3 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
Methods¶
ModifyStopLossPips¶
Summary
Shortcut for Robot.ModifyPendingOrder method to change Stop Loss
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
stopLossPips | double? | New Stop Loss value in Pips |
Return Value
TradeResult
ModifyTakeProfitPips¶
Summary
Shortcut for Robot.ModifyPendingOrder method to change Take Profit
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
takeProfitPips | double? | New Take Profit value in Pips |
Return Value
TradeResult
ModifyStopLimitRange¶
Summary
Shortcut for Robot.ModifyPendingOrder method to change Stop Limit Range
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
stopLimitRangePips | double | New Stop Limit Range value in Pips |
Return Value
TradeResult
ModifyExpirationTime¶
Summary
Shortcut for Robot.ModifyPendingOrder method to change Expiration Time
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
expirationTime | DateTime? | New Expiration Time |
Return Value
TradeResult
ModifyVolume¶
Summary
Shortcut for Robot.ModifyPendingOrder method to change VolumeInUnits
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
volume | double | New Volume in Units |
Return Value
TradeResult
ModifyTargetPrice¶
Summary
Shortcut for Robot.ModifyPendingOrder method to change Target Price
Signature
1 |
|
Parameters
Name | Type | Description |
---|---|---|
targetPrice | double | New Target Price |
Return Value
TradeResult
Cancel¶
Summary
Shortcut for Robot.CancelPendingOrder method
Signature
1 |
|
Return Value
TradeResult
Properties¶
TradeType¶
Summary
Specifies whether this order is to buy or sell.
Signature
1 |
|
Return Value
TradeType
Examples
1 2 |
|
VolumeInUnits¶
Summary
Volume of this order.
Signature
1 |
|
Return Value
double
Examples
1 2 3 |
|
Id¶
Summary
Unique order Id.
Signature
1 |
|
Return Value
int
Examples
1 2 3 |
|
OrderType¶
Summary
Specifies whether this order is Stop or Limit.
Signature
1 |
|
Return Value
PendingOrderType
Examples
1 2 3 |
|
TargetPrice¶
Summary
The order target price.
Signature
1 |
|
Return Value
double
Examples
1 2 |
|
ExpirationTime¶
Summary
The order Expiration timeThe Timezone used is set in the Robot attribute
Signature
1 |
|
Return Value
DateTime?
Examples
1 2 3 |
|
StopLoss¶
Summary
The order stop loss in price
Signature
1 |
|
Return Value
double?
Examples
1 2 3 4 |
|
StopLossPips¶
Summary
The order stop loss in pips
Signature
1 |
|
Return Value
double?
Examples
1 2 3 4 |
|
TakeProfit¶
Summary
The order take profit in price
Signature
1 |
|
Return Value
double?
Examples
1 2 3 4 |
|
TakeProfitPips¶
Summary
The order take profit in pips
Signature
1 |
|
Return Value
double?
Examples
1 2 3 4 |
|
Label¶
Summary
User assigned identifier for the order.
Signature
1 |
|
Return Value
string
Examples
1 2 3 4 5 6 7 |
|
Comment¶
Summary
User assigned Order Comment
Signature
1 |
|
Return Value
string
Examples
1 2 3 4 |
|
Quantity¶
Summary
Quantity (lots) of this order
Signature
1 |
|
Return Value
double
HasTrailingStop¶
Summary
When HasTrailingStop set to true,server updates Stop Loss every time position moves in your favor.
Signature
1 |
|
Return Value
bool
Examples
1 2 |
|
StopLossTriggerMethod¶
Summary
Trigger method for position's StopLoss
Signature
1 |
|
Return Value
StopTriggerMethod?
StopOrderTriggerMethod¶
Summary
Determines how pending order will be triggered in case it's a StopOrder
Signature
1 |
|
Return Value
StopTriggerMethod?
StopLimitRangePips¶
Summary
Maximum limit from order target price, where order can be executed.
Signature
1 |
|
Return Value
double?
Examples
1 2 |
|
SymbolName¶
Summary
Gets the symbol name.
Signature
1 |
|
Return Value
string
SymbolCode¶
Signature
1 |
|
Return Value
string
Volume¶
Signature
1 |
|
Return Value
long