Support Board
Date/Time: Fri, 13 Jun 2025 08:01:48 +0000
Post From: Time-based stop
[2022-11-06 23:13:48] |
Sawtooth - Posts: 4225 |
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
|