Login Page - Create Account

Support Board


Date/Time: Sun, 06 Jul 2025 07:13:47 +0000



[Programming Help] - Auto-disabling Automated Advanced Exit Strategies as soon as flat

View Count: 1694

[2019-03-21 09:40:36]
User993113 - Posts: 77
I enter positions manually and sometimes I use a Spreadsheet system for trading to have an automated Position exit as described here Spreadsheet Systems, Alerts and Automated Trading: Automated Advanced Exit Strategies

I would like to know how to auto-disable Automated Advanced Exit Strategies as soon as flat , so I can manually open a new position and be sure that the spreadsheet is not going to close my position.


To be more clear, in case of not fully manual trading my workflow is the following:

1- Open a trade manually

2- I enable "Auto trading enabled - Global"

3- The position is closed by the spreadsheet

4- I manually disable "Auto trading enabled - Global" to avoid automated Position exit of the next manual trade


I would like to automate point n°4 in order to avoid unwanted position exit in the next manual trades.

How can I do that?

Thank You
[2019-03-22 09:01:06]
Sierra Chart Engineering - Posts: 104368
You need to set this cell to true:
Spreadsheet Systems, Alerts and Automated Trading: Disable Auto Trading [J28]

Maybe you could do it based on the number of trades per day:
Spreadsheet Systems, Alerts and Automated Trading: Daily Total Trades [J52]
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
[2019-03-24 08:24:08]
User993113 - Posts: 77
You need to set this cell to true

Yes, it could be an idea but the problem is to write a proper formula because I can't use number of trades, time of the day and other stuff like these not knowing how many manual trades I am going to do in one day


What I'm looking for is to automate the point number 4
Disable either the Trade >> Auto Trading Enabled - Global or the Trade >> Auto Trading Enabled - Chart commands by removing the checkmark from them. Both of these need to be checked/enabled for automated trading to function for the chart.
Enabling and Disabling Automated Trading: Disabling Automated Trading and Halting Order Entry


With the same behaviour of
Main/C >> Menu >> Orders >> Cancel Orders on Flat Position (chart specific)
Basic Trading and the Trade Window: Main/C >> Menu >> Orders >> Cancel Orders on Flat Position (chart specific)
[2019-03-24 15:38:45]
Sawtooth - Posts: 4235
I would like to automate point n°4 in order to avoid unwanted position exit in the next manual trades.

Does this mean you don't do point #2 immediately after a manual entry?
[2019-03-24 18:21:20]
User993113 - Posts: 77
Does this mean you don't do point #2 immediately after a manual entry?
no, I start with a fixed stop loss
point #2 is an occasional discretionary choice
[2019-03-25 01:00:46]
Sawtooth - Posts: 4235
Try this:

Put this in H28:
=AND(OR(H28=1,H2=0),J8<>0)
Put this in J28:
=NOT(H28)
Put a 1 in H2

Directions:
- Keep both 'Auto Trading Enabled - Global' and 'Auto Trading Enabled - Chart' checked
- Your Point 1: Open a trade manually
- Your Point 2: To discretionarily enable autotrading, set H2 to 0, then to back to 1
- Your Point 3: The position is closed by the spreadsheet
- Your Point 4: Autotrading is automatically disabled when the position is closed

This is a variation of this concept:
https://www.sawtoothtrade.com/example-9.html
Spreadsheet Studies Special Tasks: Locking the State of a One Time Condition

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

Login

Login Page - Create Account