Login Page - Create Account

Support Board


Date/Time: Tue, 07 May 2024 22:24:21 +0000



Spreadsheet Trading- Open/Close order type (and CancelAllWorkingOrdersOnExit)

View Count: 2292

[2016-05-23 20:15:33]
phaedonk - Posts: 350
Having some issues/questions with orders generated from a spreadsheet system.

1. At Time1 both Buy and Sell entries become True.
2. Stop orders (with attached stops) are sent for both entries (stop price away from current price).
3. At Time2 the Buy order is filled (and its attached child is now working) and the Sell order (and its child) is cancelled via J78. J78 then becomes 0. So, we now have a long position and a sell stop-loss order (pic 1)
4. After a minute, Sell entry becomes True and a Sell stop order (with an attached buy stop) is sent (this too away from current price)
5. The Orders window, instead of showing the newly generated orders as an Open type (for the Parent) and a Close type (for the child), is showing the opposite. (pic 2)

A)Why is this happening? It obviously has to do with the current position being long. However, I have disabled the "Support scale-out" and every order is sent as an independent new one, with its own attached orders. Also, a Close order already exists for the current position. Also, how is it possible that a child order is an Open order and its Parent is a Close order? That just makes no sense.

6. At Time3 the Buy Exit column becomes True and should send a Market order to exit the position. Instead I get this message: "BuyExit signal is ignored. Long position quantity does not exist or there are already working exit orders that will flatten the position. Current Position with working exit orders: -1. Current Position: 1. Current Position with exit market orders: 1 | 2016-05-22 23:02:06"

B) Why is this happening? Also, what does it matter if there exist orders that can flatten the position? The Sell Exit is a market sell, not a stop order as the other working orders.

UPDATE: After reading up on this, I see that 6 is related to CancelAllWorkingOrdersOnExit. However, after setting this to Yes, the problem is that instead of only canceling orders related to the long position, it also cancels the Sell Entry order (and its child) that I want to be live. This may be related to 5, with the Sell parent order being treated as a Close order. I do not know, as I have no way of trying it.

The bottom line is that (if my understanding of how this variable works is correct) it makes no sense for CancelAllWorkingOrdersOnExit to cancel ALL orders. It should only cancel all orders related to the Exit that it is dealing with. And it should leave opposite side Opening working orders unaffected. So if you are long, it should cancel all Sell orders that are related to that position, i.e. attached Targets and Stops. And it should not cancel Sell orders that are working (further down the price) to enter a new position.
imagepic1.png / V - Attached On 2016-05-23 20:08:03 UTC - Size: 23.35 KB - 347 views
imagepic2.png / V - Attached On 2016-05-23 20:08:31 UTC - Size: 28.32 KB - 344 views
[2016-05-24 05:03:34]
Sierra Chart Engineering - Posts: 104368
This support request is not within the scope of our support.

If you require new CancelAllWorkingOrdersOnExit variables, we can see about adding those but those are going to be chargeable. The cost is probably going to be about 100 to 150 USD.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-05-24 09:45:16]
phaedonk - Posts: 350
1) Let me rephrase, as this is not actually related to spreadsheet systems, and is indeed within the scope of your support.
When there is a Long position and an attached stop order (of Close type). And I have disabled the scale-out option. So, a new short order will have its own attached orders (if those are enabled).

Question: shouldn't this new Short order, being an independent new one, have an Open type (in Open/Close column in the Orders window)? That it has the ability to close the first position (if its price is closer than the original attached order) should not matter in my opinion. Otherwise what is the point of disabling scaling out, if not to create fresh independent orders that might Open new opposite positions.

Q2: If I am somehow thinking this wrong, is it logical that the new Short order's (which is regarded by SC as a Close order) attached orders be regarded as Open orders?

2) I agree to pay to have this functionality, even though this will directly benefit all your customers, as it makes total sense to do it this way.
[2016-05-25 10:26:32]
Sierra Chart Engineering - Posts: 104368
We need a little time to follow up on this.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-05-25 14:17:05]
phaedonk - Posts: 350
edit: had written an idea here, but on more careful consideration it will not be good enough.
Date Time Of Last Edit: 2016-05-25 14:19:14
[2016-06-03 14:20:31]
phaedonk - Posts: 350
Is there any update on this? This is a pressing matter for me.
[2016-06-03 18:03:24]
Sierra Chart Engineering - Posts: 104368

Question: shouldn't this new Short order, being an independent new one, have an Open type (in Open/Close column in the Orders window)? That it has the ability to close the first position (if its price is closer than the original attached order) should not matter in my opinion. Otherwise what is the point of disabling scaling out, if not to create fresh independent orders that might Open new opposite positions.

It is not possible to have multiple positions at the same time for the same Symbol and Trade Account.

What the Open/Close is when the order is submitted does not matter in most cases. Why is there a problem with this? When the order actually fills, the Open/Close will be correctly set based upon the current Position at that time.



Q2: If I am somehow thinking this wrong, is it logical that the new Short order's (which is regarded by SC as a Close order) attached orders be regarded as Open orders?
Still this should not matter and the Attached Orders will have a Open/Close of Close always. The correct value will be determined when the order fills.

We could change it so that when there are Attached Orders, the parent order always has a Open/Close of Open. We will look into that. But in most case it is not going to matter one way or the other.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2016-06-03 18:04:55
[2016-06-03 21:28:12]
phaedonk - Posts: 350
Actually I was mostly asking about the CancelAllWorkingOrdersOnExit variables and the need to cancel only orders related to the position being exited.
Date Time Of Last Edit: 2016-06-03 21:29:09
[2016-06-06 18:42:25]
Sierra Chart Engineering - Posts: 104368
We need more time to look into this. Just allow us about another 1 to 2 weeks.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-09-21 09:09:32]
Sierra Chart Engineering - Posts: 104368
We expect to have time to get to this sometime in the next 30 days. Let us know if you still are interested. The cost will be less. But there still be some cost. We will know better once we start working on it.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-09-21 09:18:07]
phaedonk - Posts: 350
At the present time I'm not interested in this, thank you.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account