Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Reset variables at beginning/end of US Equities RTH
Collapse
X
-
Hello Lumbeezl,
Bars.IsFirstBarOfSession will be true on the first bar update of a new session of the primary bars.
Try the print in the help guide:
https://ninjatrader.com/support/help...rofsession.htm
If you are using a different trading hours template on the chart or for the data series for the script and you want to reference a different template, this is possible with custom logic that gets a trading hours object with NinjaTrader.Data.TradingHours.Get(string tradingHoursName) and checks the Sessions.
Last edited by NinjaTrader_ChelseaB; 02-17-2019, 09:24 PM.Chelsea B.NinjaTrader Customer Service
- Likes 1
-
The 'session'variables depend on the session template that you are using. Instead, use the exact times that you want to reset the variables.Originally posted by Lumbeezl View PostHow do I reset the variables of a strategy at the beginning/end of these hours? When using IsNewSession, FirstBarOfSession, etc is doesn't seem to yield the desired result.
Thanks
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
39 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
124 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
64 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment