Difference between revisions of "RejectedOrderCategory"
Jump to navigation
Jump to search
(Created page with "Returns a numerical value, representing the category of the rejected order. ==Usage== <syntaxhighlight>RejectedOrderCategory</syntaxhighlight> The following values can be re...") |
|||
Line 13: | Line 13: | ||
==Notes== | ==Notes== | ||
− | This function can only be used in signals. | + | This function can only be used in signals. <br> |
+ | This function is executed only when the "Order Rejected" event is enabled in Strategy Properties - Auto Trading tab. | ||
==Example== | ==Example== |
Latest revision as of 16:59, 30 June 2017
Returns a numerical value, representing the category of the rejected order.
Usage
RejectedOrderCategory
The following values can be returned:
- 0 - No rejected order event
- 1 - Market
- 2 - Stop
- 3 - Limit
- 4 - Stop-limit
- 5 - Market-range
Notes
This function can only be used in signals.
This function is executed only when the "Order Rejected" event is enabled in Strategy Properties - Auto Trading tab.
Example
Assign a value, indicating the category of the rejected order, to Value1 variable:
Value1= RejectedOrderCategory;