Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
TickSize Bug?
Collapse
X
-
TickSize Bug?
I have found that when I have added a few data series in my indicator with AddDataSeries, when I use TickSize, the value keeps fluctuating randomly. I would have thought it would stay constant at the Main Instrument's tick size. For example if I have a EURUSD chart, and my indicator adds the data series for USDJPY in the code, shouldn't TickSize always be the ticksize of the base instrument of the chart (EURUSD)?Tags: None
-
Hello,
Thank you for the post.
I would expect the TickSize to match the instrument that called OnBarUpdate, not just the Primary. As the BarsInProgress changes the instrument specific values would as well.
Are you seeing Random values or TickSizes of the instruments you are adding?
You could check by using a Print like the following:
Code:Print("BIP: " + BarsInProgress + " TickSize: " + TickSize + " Instrument Name: " + Instrument.FullName);
I look forward to being of further assistance.
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
143 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
295 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
240 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
339 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
172 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment