Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
On each tick" and "On price change"
Collapse
X
-
Hello kiss987,
Thanks for the post.
Calculating on each tick will run the OnBarUpdate method on every incoming tick. OnPriceChange will run the OnBarUpdate when the price changes.
OnPriceChange calculation can improve your PC's performance because you can have multiple incoming ticks and the price can stay the same.
Here is the help guide page on NinjaScript calculation mode for more details:
Please let us know if we may be of any further assistance.
-
Hello everington_f,
Thanks for the reply.
You can use the BarsInProgress index to know the context of the OnBarUpdate (Which series OnBarUpdate is being called for).
Please let me know if this does not resolve your inquiry.Code:protected override void OnBarUpdate() { if(BarsInProgress == 0) { Print("Primary series OnBarUpdate called"); } if(BarsInProgress == 1) { Print("1019 Minute series OnBarUpdate called"); } }
Comment
-
Thanks for the tips! Works just fine now.
________________________________
Transfer Pricing ConsultantsLast edited by Marius Titulescu; 10-24-2019, 06:51 AM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
87 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
134 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
118 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment