Support Board
Date/Time: Mon, 25 Nov 2024 20:46:21 +0000
[User Discussion] - auto trading
View Count: 1063
[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: 4120 |
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: