ES trading is stopped between 16:15 and 16:30 ET. Do I receive calls of OnBarUpdate() during this time period?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Question with OnBarUpdate()
Collapse
X
-
Question with OnBarUpdate()
Suppose I have a strategy trading on 1min bar series of ES and my session is set as 12:00-12:00. CalculateOnBarClose is set to true.
ES trading is stopped between 16:15 and 16:30 ET. Do I receive calls of OnBarUpdate() during this time period?Tags: None
-
update frequency when set to FALSE
Hi NT_
.I have a weekly indicator with calculateonbarclose set to FALSE; can i adjust or update the (check) frequency of the times it will update the values? I do not need for it to update on every "tick", but also do not want to wait until the BAR closes...(daily/weekly/monthly)
for instance; update twice a week for weekly values... (twice a month for monthly values.... twice a day for daily values....)
using NT6.5 with sessions 12:00am to 12:00am
Comment
-
Hello mystiq,
Yes, this is possible. You still want to use COBC = false, but within OnBarUpdate you add an additional filter to control when you wants things processed. This could be with a timer object or something you custom code. This sample can help using timer objects:
Ryan M.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
50 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
16 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
22 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment