I have an indicator that I use CalculateOnBarClose = false so it'll update tick-by-tick. I'd like it to play a wav file if a certain condition is met, but I don't want it to play over and over, just when the bar is closed. Is this possible?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Looking for LastTickOfBar
Collapse
X
-
Looking for LastTickOfBar
There is a FirstTickOfBar but not a LastTickOfBar.
I have an indicator that I use CalculateOnBarClose = false so it'll update tick-by-tick. I'd like it to play a wav file if a certain condition is met, but I don't want it to play over and over, just when the bar is closed. Is this possible?Tags: None
-
Not possible since you don't know when the last tick of a bar will be until after the fact.Originally posted by cunparis View PostThere is a FirstTickOfBar but not a LastTickOfBar.
I have an indicator that I use CalculateOnBarClose = false so it'll update tick-by-tick. I'd like it to play a wav file if a certain condition is met, but I don't want it to play over and over, just when the bar is closed. Is this possible?RayNinjaTrader Customer Service
-
Good idea for the tick count.Originally posted by NinjaTrader_Ray View PostActually.
For time based bars my last response is true, for tick based bars, you can check the TickCount property:
For Volume based bars you could just check Volume[0].
For minute charts, I'm not sure what you mean by volume[0], you mean check to see if the volume is zero? That would tell me the first tick of the next bar but not the end of the bar that I want right?
I could also use Time[0]. for a 5 min chart I could make sure the minutes were dividable by 5. A bit complicated. In fact for the minute I don't need last tick of bar, I just want to know when the bar is closed.
Comment
-
Not for minute charts but for volume charts, you would have to self track the amount of volume in the current bar to see where you were at in terms of bar completion. For time bars, you will only know when the bar is closed on the first tick of the next bar.Originally posted by cunparis View PostGood idea for the tick count.
For minute charts, I'm not sure what you mean by volume[0], you mean check to see if the volume is zero? That would tell me the first tick of the next bar but not the end of the bar that I want right?
I could also use Time[0]. for a 5 min chart I could make sure the minutes were dividable by 5. A bit complicated. In fact for the minute I don't need last tick of bar, I just want to know when the bar is closed.RayNinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment