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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
87 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
132 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
118 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment