Login Page - Create Account

Support Board


Date/Time: Sun, 08 Nov 2026 06:11:39 +0000



Change request: Flatten Positions And Cancel Orders At Set Time

View Count: 301

[2026-09-23 21:14:59]
User512353 - Posts: 197
Flatten Positions And Cancel Orders At Set Time (read/write) [v1:J88, v2:J97]
This cell will not perform a Flatten Positions or Cancel Orders operation when [...] using Allow Trading Only During Time Range and the current time based on the current chart bar time is outside of the specified time range.

This does not make much sense.

When
Time For Flatten Positions And Cancel Orders (read/write) [v1:J89, v2:J98]
is set to e.g. 15:59:58, it will flatten the position but immediately execute another trade if the buy or sell signal is set.

Thus I would want to set
End Time For Allowed Time Range (read/write) [v1:J87, v2:J96]
to e.g. 15:59:55 to prevent this to occur.
But setting
End Time For Allowed Time Range (read/write) [v1:J87, v2:J96]
to a value smaller than
Time For Flatten Positions And Cancel Orders (read/write) [v1:J89, v2:J98]
will suppress the flattening action.

This does not make sense to me.

Flatten Positions And Cancel Orders At Set Time (read/write) [v1:J88, v2:J97]
should be independent of
Allow Trading Only During Time Range (read/write) [v1:J85, v2:J94]
[2026-10-06 13:57:28]
Sierra_Chart Engineering - Posts: 25402
We made a small change to support this but it is untested. It will be out in the next release.
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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2026-10-06 17:46:37]
Sawtooth - Posts: 4360
Flatten Positions And Cancel Orders At Set Time (read/write) [v1:J88, v2:J97]
should be independent of
Allow Trading Only During Time Range (read/write) [v1:J85, v2:J94]
The solution to this is to not use J85-J89, and instead use this example in cell J28 (v1):
Spreadsheet Example Formulas and Usage: Disable Autotrading Outside of Regular Trading Hours
By including J8 in this formula, no new entry can occur outside of the time window, but exits can.

Then in J29 (v1), be sure the time is outside the time window in J28.

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

Login

Login Page - Create Account