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

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().
    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.

        (Update March 11th, 2020 – Fix for TickReplay, calculates values if bar object is mid-session and have not been calculated as least once) This is a conversion of the UniRenko ‐ Universal Renko BarType developed and originally coded for the NinjaTrader 7 platform by monpere. Please contact the original author for any questions or comments. […]

        Each bar contains data within a US quarter. Jan‐Mar, Apr‐Jun, Jul‐Sep, Oct‐Dec. This differs from using 3 * Monthly bars. I have tested the values quite thoroughly so it should be accurate. Let me know otherwise. You can add this bars type to the menu by clicking Configure.

        Custom Renko type for NinjaTrader 8 as discussed in Sylvain Verwoort's July 2014 Stocks and Commodities article 'Exploring Charting Techniques'


        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 DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        41 views
        0 likes
        Last Post alifarahani  
        Working...
        X