Login Page - Create Account

Support Board


Date/Time: Thu, 12 Jun 2025 08:35:09 +0000



Time-based stop

View Count: 627

[2022-11-04 23:30:41]
User990275 - Posts: 27
Is there a way to implement a time-based stop? Perhaps using Trading System based on Alert Condition, if I can get an alert after X minutes have elapsed from my trade entry.

Thanks
Ajay
[2022-11-06 19:00:58]
gorx1 - Posts: 8
It's not possible, using trading systems based on Alert Condition means that you generate signals and then pass it to Trade Window to be processed there. Trading Window doesn't have this kind of functionality.

If you really want it, you'll need to code it out in ACSIL.
[2022-11-06 19:43:04]
User990275 - Posts: 27
Thank you. Is there a process to submit a feature request? It’d be very useful to be able to set a stop to type = Time-Based and specify the number of minutes/bars until the position is closed.
[2022-11-06 20:49:16]
gorx1 - Posts: 8
After a certain Number of Bars that's what I would've liked to see as well.
[2022-11-06 23:13:48]
Sawtooth - Posts: 4224
Is there a way to implement a time-based stop?
You could do it with the Spreadsheet System for Trading study, with a formula like this in cell J29:
=AND(J8<>0,J41-J42 >= 5/1440)
This will go true 5 minutes after an entry.
J8 is position quantity
J41 is the chart update datetime
J42 is the entry datetime
5/1440 is the serial datetime value for 5 minutes, because there are 1440 minutes in 24 hours.

If you'd rather count bars since the entry, you'd have to identify the row where the entry occurred by comparing J42 with the time in column A.
Then use a variation of these examples for the exit:
Spreadsheet Example Formulas and Usage: Persistent and Incrementing Variables
(This is more complicated so I didn't give specific formulas.)

This might also be useful:
Global Profit/Loss Management
Date Time Of Last Edit: 2022-11-06 23:16:11

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

Login

Login Page - Create Account