Login Page - Create Account

Support Board


Date/Time: Mon, 30 Jun 2025 17:30:17 +0000



Trouble with flattening EOD

View Count: 541

[2021-06-10 01:26:37]
owendonk - Posts: 54
Running SC Version 2270

I'm developing an automated system with several "Trade System Based on Alert Condition" studies and I'm trying to do trades from 9:30 to 16:00 only (with evening session data enabled). In the Trade System Alert Conditions I've enabled trade time limitations but I'm having trouble getting all positions to flatten at 16:00:00. This is a Sim account using 2000 tick charts, if that matters. I've gone to Trade>>clear trade sim

Things I've tried:

1. The Global Profit Management flatten setting is checked. Status shows it's enabled and enable replay is checked. It isn't working in standard replay mode (though the documentation says that it should. I have SC Data/routing connected (I know it's Sim but it's connected). It'd be great if it was possible in Accurate Backtest mode but that's beyond the scope of this post.

2. I tried the A tab in Trade Window and set the flatten setting there, no go.

3. Most recently I tried creating a Trade System Based on Alert Condition with a Buy Exit triggered on the Alert Condition "=BARTIME= TIME(16, 00, 00)" but that isn't working either.

What should I be doing that I'm not? I'm stumped.
Date Time Of Last Edit: 2021-06-10 01:41:20
[2021-06-10 02:15:06]
Sierra Chart Engineering - Posts: 104368
1. That functionality is not going to reliably work during a replay.

2. Provide a screenshot of the settings.

3. This definitely will not work because there is not going to be trading at that time.
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
[2021-06-10 02:26:52]
owendonk - Posts: 54
Here's the screenshot. Surely my goal is possible somehow in SC? I've also tried BARTIME with 15:59:00
Date Time Of Last Edit: 2021-06-10 02:27:34
imageScreen Shot 2021-06-09 at 10.25.35 PM.png / V - Attached On 2021-06-10 02:25:48 UTC - Size: 21.29 KB - 194 views
[2021-06-10 04:14:58]
Sierra Chart Engineering - Posts: 104368
Do use an earlier time. Try one minute earlier for the Flatten and Cancel at Set Time functionality on the Trade Window.
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

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

Login

Login Page - Create Account