Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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!
        BertrandNinjaTrader Customer Service

        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 OllieFeraher, 05-09-2024, 11:14 AM
              6 responses
              19 views
              0 likes
              Last Post OllieFeraher  
              Started by PaulMohn, 05-02-2024, 06:59 PM
              2 responses
              42 views
              0 likes
              Last Post PaulMohn  
              Started by ETFVoyageur, Today, 02:10 AM
              0 responses
              10 views
              0 likes
              Last Post ETFVoyageur  
              Started by rayyyu12, Today, 12:47 AM
              0 responses
              8 views
              0 likes
              Last Post rayyyu12  
              Started by ETFVoyageur, 05-07-2024, 07:05 PM
              17 responses
              137 views
              0 likes
              Last Post ETFVoyageur  
              Working...
              X