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

Add NinzaRenko and 5minute chart to the Strategy

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

    Add NinzaRenko and 5minute chart to the Strategy

    My strategy is based on NinzaRenko bars and 5minute chart. How can I add NinzaRenko chart to 5minute chart in a strategy?Some of indicators are based on NinzaRenko and Some of them are based on regular 5 minutes chart. There is Addrenko function but I could not find anything about NinzaRenko. Is there a way to implicity add custom chart to a known chart like 5minutes?

    #2
    Hello bahmaniq,

    You would need to use the AddDataSeries for custom bars types.



    From the help guide page for AddDataSeries:
    Tips:

    2. You can add a custom BarsType which is installed on your system by casting the registered enum value for that BarsPeriodType. For example: AddDataSeries((BarsPeriodType)14, 10);

    3. You can specify optional BarsPeriod values (such as Value2) of a custom BarsType in the BarsPeriod object initializer. For example: AddDataSeries(new BarsPeriod() { BarsPeriodType = (BarsPeriodType)14, Value = 10, Value2 = 20 });
    You can use the bars type identifier scripts on the public user app share to find out what the ID of the bars type you are using is: https://ninjatraderecosystem.com/use...pe-identifier/

    JesseNinjaTrader Customer Service

    Comment


      #3
      Also, recommend you go to the third-party website where you
      got the Ninza Renko bars and read it carefully.

      It tells you integer value for BarsPeriodType in the Overview section,

      "To other vendors/developers: ninZaRenko’s ID is 12345. Each custom
      bar type on the market should have a different ID, so that ID interference
      can be avoided.​"
      Last edited by bltdavid; 12-12-2022, 05:43 PM.

      Comment


        #4
        I was curious and looked up ninzarenko bars, it doesn't look any different than UniRenko bars. And it doesn't require ID#'s to mess with.

        There free on the site these are the settings that I use because there uniformed.

        2-4-9,

        2-6-14,

        2-12-26.

        They look exactly the same as ninzarenko bars.

        Two cents you can gladly pay me on Wednesday. (Reference, that guy that was always eating hamburgers on Popeye)
        Last edited by trdninstyle; 12-13-2022, 10:22 AM. Reason: Separated the #'s more

        Comment


          #5
          Originally posted by trdninstyle View Post
          And it doesn't require ID#'s to mess with.
          What do you mean?
          Every custom BarsType has a unique ID# associated with it.

          NinzaRenko and UniRenko are both custom BarTypes, ergo, by definition,
          they will have a ID# that you must specify when used with AddDataSeries.

          Comment


            #6
            That ID thought it was referring to something else like from a purchase because when I looked it up it was for $0 so u needed a purchase ID making it more complicated than necessary.
            But I see what u are saying now.

            Are you the one who created the BltTriggerLine? I use that a lot, thanks for making it.

            Comment


              #7
              Originally posted by trdninstyle View Post
              Are you the one who created the BltTriggerLine? I use that a lot, thanks for making it.
              Yep, that's me. Guilty as charged.

              Thank you for your kind words.



              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by TheTechnician86, Yesterday, 10:44 PM
              2 responses
              12 views
              0 likes
              Last Post TheTechnician86  
              Started by ProMindComplexUSA, Today, 12:46 PM
              0 responses
              2 views
              0 likes
              Last Post ProMindComplexUSA  
              Started by flonkle, Today, 01:19 AM
              4 responses
              29 views
              0 likes
              Last Post flonkle
              by flonkle
               
              Started by sofortune, 06-13-2024, 02:31 AM
              2 responses
              21 views
              0 likes
              Last Post sofortune  
              Started by GodAtum, Today, 09:52 AM
              10 responses
              22 views
              0 likes
              Last Post GodAtum
              by GodAtum
               
              Working...
              X