Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Problem with premature termination of the session
Collapse
X
-
Problem with premature termination of the session
Good afternoon! Please tell me how I can avoid placing an order if the session ends earlier. How do I determine the end time of a session programmatically? At the moment my robot is working in unmanaged mode and when the session ends before the set settings it tries to place an order until it reaches the deposit limitTags: None
-
Hello Papercut110,
Thanks for your post.
You can access and use the "session Iterator" to pull the next session's Open/close times.
References:
All session iterator methods and properties: https://ninjatrader.com/support/help...oniterator.htm
Actual session begin: https://ninjatrader.com/support/help...ssionbegin.htm
Actual session end: https://ninjatrader.com/support/help...sessionend.htm
- Likes 1
-
-
Hello Papercut110,
Thanks for your reply.
Yes.
All instruments have defined trading hours and all trading days that are "scheduled" to be less than full trading days are also defined in the database. When the session iterator is run it will access that information which you can then create your logic to react to.
- Likes 1
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
46 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
31 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
50 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment