Status: Merged
This status means that a previous trailing order was still active when the next target was reached. When this happens, Cornix merges the two orders instead of creating a new trailing order by merging the amount of the new target that is reached into the trailing order that is already active.
For a simple animation that demonstrated how this works in practice, please watch our Youtube tutorials. The links below include the exact point of the video where the merge behavior is explained.
For Entry targets: https://youtu.be/bYXEykrKHVg?list=PLiTVm0oxEYOE7zv-cod99vsmFVfSk9WKc&t=136
For Take-Profit targets: https://youtu.be/kkYbyJKVCmE?list=PLiTVm0oxEYOE7zv-cod99vsmFVfSk9WKc&t=128
Status: Price is Below Stop Price
This status only applies to Entry orders and will happen when the price of the order is below the stop price due to a change in the entry order price or the stop price. For short positions, this status will occur when the price of the order is above the stop price. The following is an example for a long trade where an entry can be cancelled with this status:
In this example, the first 2 entry targets were filled and then the first take-profit target was reached. When that happened, the stop moved to the breakeven price (0.00000865) which was higher than the price of the 3rd entry target. In that case, the 3rd entry target was cancelled with the status Price is Below Stop Price.
Status: Sell Reached
Entry targets might get cancelled with this status when a Take-Profit is reached before the Entry target was filled. This can happen for two statuss:
1. The trade has more than one Entry targets, and at least one other Entry target was filled before the Take-Profit was reached. In this case, all the remaining Entry orders that are not filled yet will always be cancelled with the status Sell Reached.
2. No Entry target was filled before the first Take-Profit was reached. In this case, all the pending Entry targets will be cancelled with the Sell Reached status ONLY if the trade's configuration is set to close the trade when a Take-Profit is reached before any Entry is filled. For more information about this trade configuration, please see this article.
Status: Stop Reached
When the trade's Stop target is reached, any pending Take-Profit target will be cancelled with the Stop Reached status.
Status: Redistributed
This means you cancelled the order and redistributed the corresponding order amount to other orders of the same type in the trade.
Status: Trade Closed
When a trade is closed while some targets are still pending, all the pending targets will be cancelled with the Trade Closed status. A couple of examples where this might happen are:
1. A trade was manually cancelled. In this case, all the pending targets will be cancelled with the Trade Closed status.
2. A trade was completed because the Stop target was reached, in the case of a regular trade (and not a breakout trade). In this case, any remaining Entry target will be cancelled with the Trade Closed status.
Please note that for a breakout trade, if the stop is reached the pending Entry targets will be cancelled with the Sell Reached status.
Status: Manually Cancelled
This status means that you either manually cancelled a specific order, or you manually cancelled the trade in which the order was included. This will also be the case when cancelling an order directly in the exchange.
Status: Funds used Manually
This means that you had sufficient funds for this order when you opened this trade, but now you do not. This usually happens when you use the funds allocated for this order not through Cornix, for example when directly opening a different order for the same symbol directly in the exchange.
Status: Opposite Direction Opened
Cornix currently doesn't support concurrent long and short positions on the same symbol. If you open a long position all existing short positions will be closed along with associated orders, and vice versa for short trades.
Status: Hedge Mode Not Supported
If a trade is cancelled with this status, make sure to disable Hedge Mode in your exchange account, to continue trading in the exchange using Cornix.
Status: Position Decreased
Margin exchanges usually have a reduce-only instruction which allows us to open orders which can only exit an existing position but not open a new one.
An order might be closed with this status when the position size decreased, either because the amount was used manually or the position was liquidated.
Status: Position Closed
Margin exchanges usually have a reduce-only instruction which allows us to open orders which can only exit an existing position but not open a new one.
An order might be closed with this status when the position size decreased, either because the amount was used manually or the position was liquidated.
Status: Existing Quantity
Entry orders will be tagged with this status when an existing quantity was added when creating (or editing) the trade. The existing quantity represents the asset quantity that was used in the trade to include funds that already existed in the account before the trade was created. For example, when creating a trade on BTC/USDT, the BTC quantity that was used when creating the trade will be tagged
Status: Waiting for Entries
Take-Profit orders will be cancelled with this status when the order amount is lower than the minimum that's allowed in the exchange. The amount that was allocated to orders without enough funds will be redistributed to the other valid pending take-profit orders. For example, if the minimum order size that's allowed in the exchange is 0.0001 BTC so any order with a smaller amount will be cancelled with this status and be redistributed.
Please note that Cornix will only tag orders with this status when none of the take-profit orders were filled. This happens because before the first Take-Profit is reached the trade might be updated such that the order amount is increase and becomes valid. Once the first take-profit target is reached the invalid orders will be cancelled with the "Not Enough Funds Invested" status (add link).
For example, before a take-profit order is reached a trade might be updated when additional Entry orders are filled (which will increase the amount that can be allocated to pending Take-Profit targets) or the trade amount is increased. When a Take-Profit target is reached the amount that's allocated for each Take-Profit target can no longer change, and therefore it is guaranteed that the invalid Take-Profits will stay invalid, so at that point they are cancelled with the Not Enough Funds Invested status.
Status: Not Enough Funds Invested
Take-Profit orders will be cancelled with this status when the order amount is lower than the minimum that's allowed in the exchange. The amount that was allocated to orders without enough funds will be redistributed to the other valid pending take-profit orders. For example, if the minimum order size that's allowed in the exchange is 0.0001 BTC so any order with a smaller amount will be cancelled with this status and be redistributed.
Please note that Cornix will only cancel Take-Profit orders with this status when at least one Take-Profit target is reached. This happens because before the first Take-Profit is reached the trade might be updated such that the order amount is increased and becomes valid. Until then, the invalid take-profit orders will be tagged with the "Waiting for Entries" status (add link).
For example, before a take-profit order is reached a trade might be updated when additional Entry orders are filled (which will increase the amount that can be allocated to pending Take-Profit targets) or the trade amount is increased. When a Take-Profit target is reached the amount that's allocated for each Take-Profit target can no longer change, and therefore it is guaranteed that the invalid Take-Profits will stay invalid, so at that point they are cancelled with the Not Enough Funds Invested status.
Status: Max Allowed Size exceeded
Binance futures currently has a different limitation on the position size for each symbol and leverage. An order might be closed with this status when the order amount is larger than this maximum threshold for the symbol with the selected leverage.
Please note that in some cases the cancelled order might have a valid position size but still be cancelled when the accumulated symbol position surpasses the maximum size that is allowed in the exchange.
For example, if a position size limitation is 50K and we already have 45K of a position in the exchange, opening 10K order will be invalid as it's cross the overall amount allowed for that symbol as 45K + 10K > 50K.
Status: Spam Small Amount
This issue comes up in BitMEX when too many orders are created with an amount smaller than 0.0025 XBT. To avoid this issue, either increase the size of the order to surpass the threshold or decrease the amount of small orders created.
For more information about this error message in BitMEX please visit the following link: bitmex.com/notice-regarding-spam-orders
Status: Risk Limit Exceeded
Each exchange protects your account from large liquidations under different conditions. This happens when you have a margin position that is bigger than the allowed that's defined in the exchange account. To handle this error, you will need to decrease the position size or change the threshold directly from your exchange account.
You can read about risk limit in BitMEX here: https://www.bitmex.com/app/riskLimits
Status: Invalid Price
An order might be cancelled with this status when the order price in invalid and was rejected when trying to create the order in the exchange. This usually happens when the order price is not between the minimum and maximum price that's allowed in the exchange.
Status: Position Liquidated
An order might be cancelled with this status when the position has been liquidated in the exchange. Please note that you can see the trade liquidation price in the trade details page in both the Telegram Bot and Mobile App.
Status: Allowed Num Exchange Stops Exceeded
Each exchange allows a different number conditional order per symbol. In cornix, we use conditional orders in the following cases:
1. Stop-loss orders.
2. Active trailing Entry and trailing Take-Profit orders.
3. Breakout trade entry orders.
Status: Normal Exchange Close
This status only applies to Binance and happens when the order is cancelled by the exchange. This might happen for several statuss, the most common of which is that the position was liquidated or the symbol is no longer supported in Binance.
Status: Cancelled by Channel
An order might be cancelled with this status when the order was included in a trade that was created with auto-trading based on a signal that was cancelled by the channel.