Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

90 millisecond bars

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

    90 millisecond bars

    Hello, fairly new to NT. Is there an easy way to get 90 millisecond bars, and feed these to an indicator? Thanks!

    #2
    Hello yodaler,

    The smallest time based bar type included with NinjaTrader is second.

    You would need to design a custom bar type that is millisecond.

    To add a secondary series to an indictor use AddDataSeries().
    https://ninjatrader.com/support/help...dataseries.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      thank you. Is there an example custom bar type I could modify?

      > To add a secondary series to an indictor use AddDataSeries().

      If I can ask for clarification -- what does "secondary" mean here? I just wanted to send 90msec bars to an EMA, for example.

      Thanks!

      Comment


        #4

        Hello yodaler,

        There are some custom bar types you could use as examples on the User App Share.
        https://ninjatraderecosystem.com/use...atrader-8-misc
        https://ninjatraderecosystem.com/use...nko-bartype-8/
        https://ninjatraderecosystem.com/use...rly-bars-type/
        https://ninjatraderecosystem.com/use...enko-barstype/

        The Second bar type is open source and you can copy the logic from this as well.
        New -> NinjaScript Editor -> Bartypes -> Second

        You are wanting to add this as an additional data series to an indicator you are developing is this correct?

        The chart would be the primary data series used for the indicator, and then you could add this 90 millisecond custom bar type to the to the indicator and that would be the secondary series.

        Is your indicator calling the EMA and using this added series as the input series for the ema?

        The custom bar type is added with the bars id of the custom bar type.

        AddDataSeries((BarsPeriodType) 1234, Value = 90

        Print(EMA(BarsAarray[1], 14)[0]);


        The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by lismartin, Yesterday, 03:30 PM
        3 responses
        17 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by RT001, Yesterday, 03:47 PM
        3 responses
        26 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by johnMoss, Yesterday, 10:40 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by torch2k, Today, 06:24 AM
        2 responses
        9 views
        0 likes
        Last Post torch2k
        by torch2k
         
        Started by WalterSkinner, Yesterday, 02:37 PM
        4 responses
        25 views
        0 likes
        Last Post WalterSkinner  
        Working...
        X