Rejects the order and prevents further processing.
This function can only be used in the Unit Size, Can Add Unit, and Can Fill Order scripts.
Syntax: |
---|
order.Reject( message ) |
Parameter: |
Description: |
---|---|
message |
Script reason why the order was rejection, or filtered from available orders. |
Returns: |
---|
Generates a message in the Filtered Log report when software preferences have the log enabled. |
Example: |
---|
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Access to Order Object properties and functions in other scripts is made possible by using the AlternateOrder Object as the prefix ahead of the "." property or function. AlternateOrder Object is discussed below.
Notes: |
---|
Always check to be sure the order is available after a Broker function call using the system.orderExists() function prior to accessing it.
Using the alternateOrder object when orders are not in context will provide the same access as the Order object. However, the alternateOrder object must be brought into context using the system.SetAlternateOrder object function prior to any attempt to use is properties and functions.
Once orders are brought into context their properties and function are available to reference and changes. |
Links: |
---|
See Also: |
Can Add Unit, Can Fill Order, Unit Size, AlternateOrder Object, AlternateSystem Object, Order Functions, Order Object, Order Properties |
Edit Time: 9/21/2020 2:48:32 PM |
Topic ID#: 495 |