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 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