Thanks!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Count Number of bars/Time Period
Collapse
X
-
Count Number of bars/Time Period
I am trying to count the number of bars created in a Renko chart over X period of time. For example, how many Renko bars are created (on average or over the past time period) within 30 mins duration. Is there a way/indicator to achieve that? I am not a programmer.
Thanks!Tags: None
-
Hello kempotrader,
Thanks for your post.
There is a TickCounter and BarTimer available as a default indicator but not a BarCounter. You may want to search the forum and/or our file sharing section for this. Otherwise, to accomplish this you would need to use some custom programmingJosh G.NinjaTrader Customer Service
-
-
No, DTSSTS. I wound up leaving it behind. Still like the idea though. I have fond success with defining "extended" and waiting for confirmation on a return to the mean. I am a countertrend trader.
Whishing you Success!
kempo
Comment
-
Thanks for the response, the is a barcounter indicator on the forum which you probably saw
Al Brooks style Bar Counter which places the number of the bar below every other bar starting at 1 for the first bar of each session. You can change the text size, color, place text below or above price bars, change the distance below/above a price bar, show either odd or even numbers.
I cant wrap my head around using with a time value for rapid change in the bar counter
My purpose to count the bars in a very short time period, for example 40 bars in 30 seconds to actually in auto trade program to block trades for a short period of time, I do this with spreads on stocks (not counting bars) which could be used but on MNQ for example the norm is 2 3 tick spread, but spikes to 6-9 are common, but general are only on 1 intrabar renko type bar and NOT multiple bars
good trading
Comment
-
Good morning--
I had not seen that bar counter (or don't remember it). Jigsaw has a Pace of Trade gauge that might do the trick. It would be expensive to find out if it's what you're looking for, though. It's specific to time and sales, not any bar type.
I'm actually going live with MNQ this morning. That sucker moves! I like the short duration trades.
Comment
-
I'd be very interested if that became available.
Btw... My live MNQ opening trade had a duration of 14sec...lol So fast.
Comment
-
Hello DTSSTS,
Would you like to move this conversation to the NinjaTrader 8 Strategy Development section of the forum?
A bar number can be found with the time with Bars.GetBar().
You can subtract to get the number of bars.
Bars.GetBar(endBarTime) - Bars.GetBar(startBarTime)
Or you can have an integer that counts on each bar close (or when IsFirstTickOfBar) is true to count the number of bars since some condition was true.
Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cre8able, Today, 01:16 PM
|
1 response
3 views
0 likes
|
Last Post Today, 01:30 PM | ||
Started by chbruno, 04-24-2024, 04:10 PM
|
3 responses
47 views
0 likes
|
Last Post Today, 01:29 PM | ||
Started by samish18, Today, 01:01 PM
|
1 response
6 views
0 likes
|
Last Post Today, 01:25 PM | ||
Started by WHICKED, Today, 12:56 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:17 PM | ||
Started by WHICKED, Today, 12:45 PM
|
1 response
11 views
0 likes
|
Last Post Today, 01:08 PM |
Comment