Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.Emily C.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
11 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
||
Started by carnitron, Yesterday, 08:42 PM
|
0 responses
10 views
0 likes
|
Last Post
by carnitron
Yesterday, 08:42 PM
|
||
Started by strategist007, Yesterday, 07:51 PM
|
0 responses
12 views
0 likes
|
Last Post Yesterday, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,982 views
3 likes
|
Last Post
by jhudas88
Yesterday, 06:59 PM
|
||
Started by rbeckmann05, Yesterday, 06:48 PM
|
0 responses
10 views
0 likes
|
Last Post
by rbeckmann05
Yesterday, 06:48 PM
|
Comment