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
-
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 Mountain_cast, 02-10-2025, 11:14 PM
|
3 responses
20 views
0 likes
|
Last Post
![]()
by beobast
Today, 05:30 PM
|
||
Started by defa0009, 12-13-2024, 09:19 AM
|
21 responses
211 views
1 like
|
Last Post
![]()
by marcus2300
Today, 05:08 PM
|
||
Started by ttrader23, Today, 04:48 PM
|
0 responses
8 views
0 likes
|
Last Post
![]()
by ttrader23
Today, 04:48 PM
|
||
Started by wisdomspoon, Today, 03:50 PM
|
3 responses
16 views
0 likes
|
Last Post
![]()
by rockmanx00
Today, 04:33 PM
|
||
Started by Robotman, Today, 01:06 PM
|
2 responses
37 views
0 likes
|
Last Post
![]()
by Robotman
Today, 02:05 PM
|
Comment