thanks in advance for the help
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
OnBarUpdate method for Tick-by-Tick
Collapse
X
-
OnBarUpdate method for Tick-by-Tick
Quick question on OnBarUpdate method. My strategy is using the tick-by-data and does some calcs for placing orders, however, I do not what to do all the calculations if the last tick is same as the current tick. I know, I can put simple compare statement in my OnBarUpdate to check tick value changed or not, but I would like to know whether there is setting or filtering that I can use in Ninja out of the box.
thanks in advance for the helpTags: None
-
Hello rc554,
Unfortunately there are no built in NinjaScript settings that can check for this. It must be custom coded.
If you are interested in saving resources and don't need all calculations on a tick by tick basis, you can follow principles in this reference sample:
Ryan M.NinjaTrader Customer Service
-
so, as I am processing tick-by-tick data, I need to set the CalculateOnBarClose = false and then put a simple comparision statement in my code to compare with previous tick.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment