Login Page - Create Account

Support Board


Date/Time: Mon, 23 Dec 2024 02:19:51 +0000



Post From: Exiting Trade Automatically Before the Close

[2015-01-12 22:28:56]
Sawtooth - Posts: 4141
Use cell J28 to disable autotrading outside of regular hours, like this:
=OR(J41-INT(J41)<TIMEVALUE("09:30:00"),J41-INT(J41)>TIMEVALUE("16:00:00"))

Use cell J29 to flatten at a certain time, like this:
=J41-INT(J41)>TIMEVALUE("16:00:00")

You might want to use an end time of 15:59:00 instead, if you must be flat by 16:00:00.

Here are more examples for additional situations:
http://www.sawtoothtrade.com/example-4.html
Date Time Of Last Edit: 2015-08-14 02:17:39