+1 888 340 6572

RejectedOrderAction: Difference between revisions

From MultiCharts
No edit summary
No edit summary
Line 11: Line 11:
==Notes==
==Notes==
This function can only be used in signals.
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==
==Example==

Revision as of 16:58, 30 June 2017

Returns a numerical value, representing the action of the rejected order.

Usage

RejectedOrderAction

The following values can be returned:

0 - No rejected order event
1 - Buy
-1 - Sell

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 action of the rejected order, to Value1 variable:

Value1= RejectedOrderAction;