Login Page - Create Account

Support Board


Date/Time: Mon, 30 Jun 2025 18:16:35 +0000



Post From: Trouble with flattening EOD

[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