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 cmoran13, Yesterday, 01:02 PM
|
0 responses
27 views
0 likes
|
Last Post
by cmoran13
Yesterday, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
18 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
160 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
95 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
148 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Comment