Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
how to get session's end hour without SessionIterator
Collapse
X
-
Maybe by reading the XML file corresponding to your desired trading hours template in...
C:\Users\Username\Documents\NinjaTrader 8\templates\TradingHours\
-
You can read the XML file within your code but you need to create the function to do it but why not use the SessionIterator ? or you could also use a plain text file and enter the end of the day for a year and read it using ninjascript commands.
Check this video which explains how to use the sessionIterator:
Last edited by trendisyourfriend; 07-22-2023, 09:01 AM.
Comment
-
Hello dadarara,
Thanks for your post.
SessionIterator should be used in your script to get the ActualSessionEnd.
ActualSessionEnd return the session's end date and end time converted to the user's configured Time Zone.
See the help guide documentation below for more information.
SessionIterator: https://ninjatrader.com/support/help...oniterator.htm
ActualSessionEnd: https://ninjatrader.com/support/help...sessionend.htm<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
13 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
59 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
41 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
47 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
38 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|

Comment