Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
IsFirstTickOfBar called 3 times in Renko Bars
Collapse
X
-
IsFirstTickOfBar called 3 times in Renko Bars
Hi, why is the print statement called 3 times for renko bars and "IsFirstTickOfBar" instead of only 1 time? It's a bug? -
Hello sidlercom80,
Thank you for your post.
Based on your screenshot, the three different prints have different values for CurrentBars[0]. Based on your condition, I would expect the script to print on the first tick of each new bar that is formed. If you right-click your chart and select "Show Data Box" and then right-click the data box and ensure "Show Bar Indexes" is checked, you may hover your mouse cursor and compare the bar index numbers with the numbers printed to the NinjaScript Output window.
Please provide more details about what you are trying to achieve if this is not the behavior you expected and I would be glad to assist you further.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
156 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
90 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
140 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
130 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment