Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Most efficient bar type?
Collapse
X
-
Most efficient bar type?
Hey guys lets say you have a strategy and you want to know when an instrument first trades at a certain price which would be the most efficient type of bar to use within a strategy? Betterrenko, Renko, Tick or does it matter?Tags: None
-
Hello elitetradernyc,
By most efficient bar type are you asking which bar type has the least amount of code?
Are you asking which bar type will result in more OnBarUpdate calls to your code?
Are you asking which bar type uses the least amount of memory?
Are you asking which will cause your strategy to run the fastest?
I look forward to your reply.Chelsea B.NinjaTrader Customer Service
-
-
Hello elitetradernyc,
Each tick bar, minute bar, and daily bar is going to process at the same speed. Each bar has an open, high, low, close, and volume. These four price points and the volume is basically the same for these 3 bar types.
At this point, the amount of bars will determine how fast the script runs. There will be several 1 tick bars within 1 minute. There will be up to 1440 minutes in each day.
In other words, testing 5 days of 1 day data is much much faster than testing 5 days of 1 minute data which is much much faster than testing 5 days of 1 tick data.
Kagi, renko, range, point and figure, line break etc, has more code and will use one of the underlying bar types of tick minute or day.
These bar types will require more processing power and time to process.Chelsea B.NinjaTrader Customer Service
Comment
-
All reporting bars: tick bars, fixed-time-elapsed bars, will all process more efficiently than any kind of calculated and/or synthetic bar. Range bars are calculated, but not synthetic. Just about all the other bar types are synthetic (and hence also, calculated).Originally posted by elitetradernyc View PostHey guys lets say you have a strategy and you want to know when an instrument first trades at a certain price which would be the most efficient type of bar to use within a strategy? Betterrenko, Renko, Tick or does it matter?
Comment
-
Hello outsource,
There are no bar types that are built into NinjaTrader that distort the data in this way of stretching over the gaps of data.
The gaps are caused by the high and low of the ticks received during that time interval. If you are using an RTH session template there will be a gap between the close of the previous session and the open of the current from the overnight trading that would be seen with an ETH session template.
You can try using an imported bar type or using your own. Just keep in mind that custom bar types are not supported by NinjaTrader Platform Support.Chelsea B.NinjaTrader Customer Service
Comment
-
I think Multicharts has that degap function.I hsve GodDelta bars which are also has no inter-bar and no inter-session gaps,but they are volume based and you never know when the bar ends.Originally posted by NinjaTrader_ChelseaB View PostHello outsource,
There are no bar types that are built into NinjaTrader that distort the data in this way of stretching over the gaps of data.
The gaps are caused by the high and low of the ticks received during that time interval. If you are using an RTH session template there will be a gap between the close of the previous session and the open of the current from the overnight trading that would be seen with an ETH session template.
You can try using an imported bar type or using your own. Just keep in mind that custom bar types are not supported by NinjaTrader Platform Support.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
68 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
24 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
27 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
54 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment