Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Most efficient bar type?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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

    Comment


      #3
      How about the one that runs the fastest?

      Comment


        #4
        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


          #5
          Originally posted by elitetradernyc View Post
          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?
          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).

          Comment


            #6
            Hello All,

            are there time based bars type(minute/seconds) for Ninja that match open and close of bars,without a gap between open and close?

            Comment


              #7
              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


                #8
                Originally posted by NinjaTrader_ChelseaB View Post
                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.
                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.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Haiasi, 04-25-2024, 06:53 PM
                2 responses
                17 views
                0 likes
                Last Post Massinisa  
                Started by Creamers, Today, 05:32 AM
                0 responses
                5 views
                0 likes
                Last Post Creamers  
                Started by Segwin, 05-07-2018, 02:15 PM
                12 responses
                1,786 views
                0 likes
                Last Post Leafcutter  
                Started by poplagelu, Today, 05:00 AM
                0 responses
                3 views
                0 likes
                Last Post poplagelu  
                Started by fx.practic, 10-15-2013, 12:53 AM
                5 responses
                5,407 views
                0 likes
                Last Post Bidder
                by Bidder
                 
                Working...
                X