if (ToTime(Time[0]) >= 223000 && ToTime(Time[0]) <= 40000)
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Time condition
Collapse
X
-
Use DateTime objects, and lose the vagaries of translation to modulo 60 and modulo 24 integer arithmetic.Originally posted by fiddy View Postwhat do i need to include in this condition if i only want orders between 1030pm and 400am the next day
if (ToTime(Time[0]) >= 223000 && ToTime(Time[0]) <= 40000)
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
142 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
81 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
125 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
120 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
98 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment