Login Page - Create Account

Support Board


Date/Time: Thu, 28 Mar 2024 17:36:29 +0000



[User Discussion] - Sending Sell Entry and Sell Exit orders at the same time

View Count: 1029

[2021-04-05 20:54:09]
PeaceFrog - Posts: 102
Hello.

Thank you for taking the time to answer my question.

In Spreadsheet System for Trading, Sell Entry Cell M3 and Sell Exit Cell N3 both return 1 or TRUE values but only the J73 Limit Sell Entry order is sent (and remains Open) and not the J74 Limit Sell Exit order.

In Spreadsheet System for Trading, Settings and Inputs I have set:
Allow Multiple Entries in Same Direction: Yes
Allow Entry With Working Orders: Yes
Allow Opposite Entry with Opposing Position or Orders: Yes
Cancel All Orders On Entries And Reversals: No
Maximum Position Allowed: 2

Even though I have set it for Unmanaged Automated Trading, according to: Automated Trading Management: Unmanaged Automated Trading
, settings I don’ think I need to have to achieve what I’m looking to achieve, but I still can’t achieve it even with the Unmanaged settings, so I have no idea what I’m doing wrong.

The Trade Service Log returns: "| SellExit signal is ignored. Short position quantity does not exist or there are already working exit orders that will flatten the position. Current Position with working exit orders: 0. Current Position: 0. Current Position with exit market orders: 0 "


I am looking to have both of the Sell Entry Limit and Sell Exit Limit orders sent at the same time using formulas and entries in Columns J, M and N.


Thank you for taking the time to answer my question. I appreciate it very much.
Date Time Of Last Edit: 2021-04-05 21:33:17
[2021-04-05 23:39:46]
Sawtooth - Posts: 3952
Even with using the Unmanaged AT settings, it's won't place a Sell Exit order unless a sell position exists.

IOW, even with prices in J24 & J25, and order types other than M in J74 & J74, simultaneous signals in M3 & N3 will only place a working sell entry, and the sell exit will be ignored.

Maybe using Attached Orders would work for you.

Please explain further what you are trying to accomplish so I could offer another suggestion.
[2021-04-06 00:49:14]
PeaceFrog - Posts: 102
Hi Tomgilb,

Thanks for taking the time to respond. I really appreciate it.

What I’m trying to accomplish is to have my Sell Exit Limit Order sent at the same time, or as soon as possible after the Sell Entry Limit Order is sent, even if the Sell Entry Limit Order does not fill, in order to get my Sell Exit Limit Order placed in the Bid Queue so I have the best chance of being filled when, presumably, the price goes down to the Limit Price rather than waiting for the Sell Entry Limit Order to fill and risk an increased volume in the Bid Queue at the Sell Exit Limit Order price.

I am under the impression that Attached Orders will not work because I have IF Statements in J25 relating to the time of day the orders are filled, for example, during the overnight (low volume) portion of the day the Sell Exit Limit Order is 50 ticks below the Sell Entry Limit Order and then during the higher volume portion of the day the Sell Exit Limit Order is 100 ticks below the Sell Entry Limit Order.

-- In the case that the Sell Entry Limit Order does not fill before the price goes down to the Sell Exit Limit price, I use J27: Cancel Working Orders (read/write): at a tick above the Sell Exit Limit Order price, for example, in an overnight situation =IF(AND(J3=-1,E3<=(J94-49 ticks)),1,0) –

I hope that helps clarify. And, again, thank you for taking the time.
[2021-04-06 03:19:26]
Sawtooth - Posts: 3952
Try this:

Use Attached Orders, and set the Target's offset in J80. (Note: J80/J81 use offsets in points, not ticks.)
Spreadsheet Systems, Alerts and Automated Trading: Attached Order Target Offset (write only) [J80]

You can have a twconfig with only a Target (no Stop) if you want.

Read this section of the documentation to understand when and where the child orders are sent and how they are managed:
Attached Orders: General Management of Attached Orders
[2023-06-01 22:48:10]
j4ytr4der_ - Posts: 910
I recall a while back I was trying to do something similar. I wanted my sell orders unattached, and placed at the level I wanted before my entry was necessarily filled. It was a while ago but I think I checked to see if the last entry order time was <= 1 second ago, and that would trigger the sell exit to TRUE. I eventually abandoned the idea, don't remember exactly why now but I think this part a least was working.

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

Login

Login Page - Create Account