Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sub-minute bars

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

    Sub-minute bars

    Hello:
    I'd appreciate if anybody can help me with the following: I am trying to test a MA crossover strategy (despite the disdavantages of this lagging indicator), where MA values will be calculated based on 1 minute chart. But, to get a better trigger "as soon as the crossover takes place", I would like to check for crossover, say, every 15 seconds (at the same time avoid checking for crossover with every tick, which is CPU intensive and more prone to whipsaws). Is this possible? Can I create "sub-minute" or 15 second bars as secondary bars? How would you define a 15 second bar?
    Also, would it be possible to backtest such a strategy with historical tick data for say 2 weeks? Thanks a lot for your help.

    #2
    ezhuth,

    Please see this reference sample: http://www.ninjatrader-support2.com/...ead.php?t=6652
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Josh, thank you very much for your help. I did see this reference sample, but my question was more centered on validity of creating a 15 second bar by:
      Add(PeriodType.Second,15)
      If this is a valid bar, then i would assume NT is compiling the tick data from the sinal provider to create the OHLCV data for the bar, correct?.
      (Note: I did not want to use "Period.Type.Tick" since there is no control over time). Thanks again.

      Comment


        #4
        Hi ezhuth, please tell us which datafeed or broker you use to get the needed data in NinjaTrader, Thanks!

        Comment


          #5
          I am new to the NT and I just signed up with barcharts.com. Of course, please let me know if using any other signal provider will make a difference. Thanks

          Comment


            #6
            BarChart creates second bars from tick data. You will be fine with your configuration.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Josh & Bertrand: Thank you.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              633 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              364 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              105 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              567 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              568 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X