Appendix C - Order Status Value
Appendices > Appendix C - Order Status Value

Glossary Item Box

Appendices > Appendix C - Order State Values

Value

Description

Ready

This state means a new order will be placed if the template is called with a trading custom function from within a formula.  

The “Ready” state can be displayed for the following reasons:

  1. When you add a new Trading Parameter Template to a workbook
  2. When a workbook containing a Trading Parameter Template is first opened
  3. When FXOne is exited and re-launched and startup workbooks are first loaded

Pending

This state means that and order is pending from the template and no new orders can be sent from the template when called with a trading custom function from within a formula. 

The “Pending” state can be displayed for the following reasons:

  1. An order has been sent for the Trading Parameter Template to the broker which has not yet been filled or cancelled

 

The state “Pending” can flash up briefly for any order including immediate orders such as market orders. 

 

Executed

This state means that the order that originated from the template was executed in full and the position filled, and no new orders can be sent from the same template when called with a trading custom function from within a formula.

The “Executed” state can be displayed for the following reasons:

  1. An order has been sent for the Trading Parameter Template to the broker which has been executed and completely filled in the requested amount

PartDone

This state means that the order that originated from the template was executed partially and the position is partially filled, and no new orders can be sent from the same template when called with a trading custom function from within a formula.

The “PartDone” state can be displayed for the following reasons:

  1.  An order amount is only partially filled.

 

This state will generally only be reached with certain order types, large orders and in ECN broker environments.  Orders such as Open at Exact Rate are more susceptible to being partially filled.  

 

You can ignore the “Part Done” status unless it is critical to your trading strategy to always fully fill your amounts, such as might be the case for a strategy that holds positions longer than intra-day.  When the partially filled position is closed by another template’s CloseFirst, the partially filled amount will be closed automatically.

 

The Status field of one Trading Parameter Template can be monitored for a value such as the string “Part Done” from within a formula in an independent cell.   This can be used as a condition for calling a secondary template that can have a variable amount specified with a formula that checks a parameter for your full target amount (such as the amount field of the primary template if static and not itself variable and the actual current position size (e.g., using the POS() custom function) so that an order for the un-filled amount can be placed.

 

Cancelled

This state means that the last order that originated from the template was cancelled, and a new order can now be sent from the same template when called with a trading custom function from within a formula.

The “Cancelled” state can be displayed for the following reasons:

  1. A linked Trading Parameter Template that lists the template in its CancelFirst field gets called while in a state that allows for the template’s order to be generated.
  2. A call to CAN() or CNR() from a formula that cancels the order.
  3. A manual removal of the order via the Orders panel in either FXOne or the broker’s trading platform.

IgnoringConsecutive

This state means that the optional trading setting “Ignore consecutive trades” is enabled and that the last order that originated from the template was in the same direction as the last trade that was executed and so the last order is being ignored.  A new order can not be sent from the template until after a trade in the other direction has taken place first.   Once a trade in the other direction has been executed a subsequent call to the template will result in an order being generated, after which, the “IgnoringConsecutive” state will change to the new state.  

The “IgnoringConsecutive” state can be displayed for the following reasons:

  1. The trading option “Ignore consecutive trades” is enabled and the order is in the same direction as the last executed trade.

Rejected

This state means that the last order that originated from the template was rejected by the broker, and a new order can now be sent from the same template when called with a trading custom function from within a formula.

The “Rejected” state can be displayed for the following reasons:

  1. The Trading Parameter Template is incorrectly parameterized, e.g., a Limit rate is on the wrong side of the Bid or Ask depending on whether the order is a Buy or a Sell.
  2. The price specified in the order is not available, e.g., when using an Open at Exact Rate template.
  3. You have insufficient margin to place the trade.

If your trading strategy uses orders such as Open at Exact Rate, you may frequently experience rejected orders.  When this is expected due to the trading strategy or order types used, it may be appropriate to continuously resubmit the order using the same template without any changes.  However, if this is unexpected, there may be an error in the template parameterization.  In this case, you need to correct the error.

PendingAdd

This state is transitional when moving from one primary state to another as a result of automatically handled interactions with the broker. 

The "PendingAdd" state can be displayed for the following reasons:

  1. A new order has been generated and is in the process of being submitted to the broker.
When Semi-Automated trading is enabled and a new order is generated and visible in the Proposed Trades panel, the Trading Parameter Template that originated the order will display PendingAdd in the Status field until the trade is either accepted or rejected.
PendingModify

This state is transitional when moving from one primary state to another as a result of automatically handled interactions with the broker. 

The "PendingModify" state can be displayed for the following reasons:

  1. An existing order or is being modified and the new modified order is in the process of being submitted to the broker.
PendingCancel

This state is transitional when moving from one primary state to another as a result of automatically handled interactions with the broker. 

The "PendingCancel" state can be displayed for the following reasons:

  1. An existing order or is being cencelled and the cencel request is in the process of being submitted to the broker.

 

 

You can override any state and trade from a Trading Parameter Template with a right click trade in the template.  Any manual trades done using a Trading Parameter Template are associated with that Trading Parameter Template and will be cancelled or closed by other Trading Parameter Template linked using CancelFirst CloseFirst.

 

The prior state is not saved when you shut down FXOne and re-start or close a workbook and reload it.  It is recommended that before you set trading to Fully-Auto, you first check the current pending orders and open positions and cancel and/or close them so that they do not interfere with the automated trading activity.

 

©2016. All Rights Reserved.