Login Page - Create Account

Support Board


Date/Time: Sat, 04 May 2024 03:39:02 +0000



[Programming Help] - Automated Spreadsheet System for Trading: How to exit a trade with a Limit and Stop Order

View Count: 724

[2020-05-06 10:38:54]
rainbow47 - Posts: 68
Hi,

I am using a Automated Spread Sheet Trading System with Buy/Sell Entry and Buy/Sell Exit. An AO Stop order is placed when I enter the trade.

Exasmple
Step 1) Enter Short @ 100 and place an AO Stop at 107
Step 2) Market moves to 103. Sell Exit gets triggered with a limit of 101.

At this point my initial Stop order is gettign cancelled and only the limit order is open. If I reach the limit the trade gets closed and if I dont reach the limit the loss can be indefinite because the inital AO stop order got cancelled.

I would like to exit the trade either at my initial AO STOP and at the Limit which got generated bu the Sell Exit condition. How can I exit the trade where the initial AO Stop remains in place and the Sell Exit Limit at 101 also gets generated once it condition becomes true? The aim is to exit the trade either at 101 or 107.

Thanks
[2020-05-06 14:09:52]
Sawtooth - Posts: 3993
You can use an Attached Order with a target and a stop.

You can use formulas in cells J80 and J81 to assign Attached Orders offsets from the entry price. (Offsets in these cells are in points, not ticks.)
Spreadsheet Systems, Alerts and Automated Trading: Attached Order Target Offset (write only) [J80]

You can use the Trade Management by Study study to move the Attached Orders target or stop to a calculated price in a Formula Column.
Attached Orders: Study Controlled Targets and Stops
Date Time Of Last Edit: 2020-05-06 19:35:28
[2020-05-06 19:34:44]
rainbow47 - Posts: 68
Thank you tomgilb! I will do some testing.

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

Login

Login Page - Create Account