Support Board
Date/Time: Sun, 07 Dec 2025 15:11:37 +0000
[User Discussion] - auto trading
View Count: 1200
| [2014-03-11 16:40:01] |
| toews&kane - Posts: 209 |
|
This is my code for disabling auto trading =AND(J8=0,OR(J41-INT(J41)<TIMEVALUE("08:45:00"),J41-INT(J41)>TIMEVALUE("14:30:00"))) Auto trading went into a trade at 1:00am, is this code correct to only enable trading between 845-1430? |
| [2014-03-11 17:45:07] |
| Sawtooth - Posts: 4295 |
|
Yes, this will disable autotrading outside of these times, if flat. If you are in a position, it will allow an exit, or a scale-in, outside of these times. To also disallow exits and scale-ins, remove J8=0, from the formula.
|
To post a message in this thread, you need to log in with your Sierra Chart account:
