Login Page - Create Account

Support Board


Date/Time: Tue, 22 Apr 2025 11:15:06 +0000



Post From: Feature Request: Cancel Last Order with Keyboard Shortcut

[2023-03-02 04:47:37]
User900285 - Posts: 98
Hello,

I will try to provide a few examples of some potential workarounds for your situation.

The first thing to be aware of is that if you are submitting an extra unattached order that is meant to reduce your existing position size, this does pose a small risk.
The risk is that if you lose client side connectivity while you have one of these scale out orders working. The scale out order will be filled and the bracket orders surrounding your position will not adjust their quantities to your new position size. This is because the scale out feature in Sierra Chart is a client side feature, it will not work if you are disconnected.

In a real-life scenario this is probably a very small risk but if you are working with large positions and scaling out sizable chunks at a time. A loss of connectivity could expose you to the potential of a partially reversed position. In the case that your scale out order is filled, the brackets do not adjust their quantity, and the market then moves to fill one of your bracket orders. You will have a partially reversed position that was not originally intended.

Here is one way to get around this if you are working with multiple contracts and scaling out.
1. Disable the Scale In feature in the Chart Trade Window, so that when you enter your positions, you can have multiple target and stop orders all in their own OCO groups.
2. An alternative to this is if you do not scale in to a position, configure your Trade Window Configuration to have multiple separate target orders, each are matched with a stop on the other side. Either way you will now have multiple target orders.

3. The next step will be finding a way to move those individual target or stop orders with 1 button, in order to scale out of your position. There is one solution that already exists which is a custom study shown in this video: https://www.youtube.com/watch?v=dBVuaFOiNt8

With this custom study combined with the use of multiple separate target orders, you can move one target or stop order at a time with 1 press of a button, to the price you desire. However you will need to be hovering your mouse pointer over the price that you want the order to be moved to. This solution is theoretically safer than the one you described, because at any moment if you were to experience a loss of connectivity there will always be an equal number of target and stop OCO orders. If one target is filled, the associated stop will immediately be cancelled off, and vice versa.

Now if you insist that this method is not right for you and you understand the risk associated with your original plan. It is possible to create a study that cancels the most recently submitted unattached limit order, upon pressing an advanced custom study button. I could do this for you.

Regarding this:
If you're able to do this without too much headache, "Last Order Tick Up" and "Last Order Tick Down" in the Trading Keyboard Shortcut list would be equally (and amazingly) helpful.

There is "Non Attached Limit Order Tick Up/Down" which does exactly what you are asking. It only moves the nearest unattached limit order. So if you submit a scale out order not far from the last traded price, using those already existing keyboard shortcuts should do what you are asking.

Hope it helped.
Date Time Of Last Edit: 2023-03-02 04:52:33