Login Page - Create Account

Support Board


Date/Time: Sat, 15 May 2021 12:13:26 +0000



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

[2021-04-05 20:54:09]
PeaceFrog - Posts: 26 | Ending Date: 2021-05-03 [Expired]
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: https://www.sierrachart.com/index.php?page=doc/AutoTradeManagment.php#UnmanagedAutomatedTrading
, 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]
tomgilb - Posts: 2869 | Ending Date: 2021-10-14
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: 26 | Ending Date: 2021-05-03 [Expired]
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]
tomgilb - Posts: 2869 | Ending Date: 2021-10-14
Try this:

Use Attached Orders, and set the Target's offset in J80. (Note: J80/J81 use offsets in points, not ticks.)
https://www.sierrachart.com/index.php?page=doc/SpreadsheetSystemsAlertsAndAutomatedTrading.php#CellJ80_AttachedOrderTargetOffset

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:
https://www.sierrachart.com/index.php?page=doc/AttachedOrders.html#OCOManagement

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

Login

Login Page - Create Account