Support Board
Date/Time: Tue, 26 Nov 2024 04:23:03 +0000
Post From: Liquidation ACSIL
[2023-08-10 09:27:00] |
ForgivingComputers.com - Posts: 960 |
Something like this should work. Using SCDateTime persistent variables, save the time when the study begins, and the next time through compare the current time and the previous time with the cutoff time. If the Current Time is equal to or past the cutoff, and the previous time is before the cutoff, then sc.FlattenAndCancelAllOrders(); Converting the cutoff time to a DateTime (i.e. Today's date + Cutoff Time) will make the comparisons simpler.
|