Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding Second Renko Bars Set

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

    Adding Second Renko Bars Set

    Hey guys, what is the syntax for adding a second series for Renko Bars? like
    Add(PeriodType.Minute, 10);

    But for Renko?

    #2
    Please use the AddRenko() here instead then - http://www.ninjatrader.com/support/h...htsub=AddRenko

    Comment


      #3
      Hi guys, how about for adding a second series for BetterRenko, would it be for 1 tick betterrenko bar?

      Add(PeriodType.Custom4, 1);

      Comment


        #4
        Yes, if BetterRenko used that 'slot' - you would need to check into it's source to find out, but one of the .Customs it usually would be.

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Please use the AddRenko() here instead then - http://www.ninjatrader.com/support/h...htsub=AddRenko
          I would like to use the AddRenko() method and have the code identify the full name of the future contract I am using (ie.g. ES 06-14).... something like ...

          Code:
           
           string instrument = this.Instrument.FullName;
           this.AddRenko(instrument, myPeriod, MarketDataType.Last);
          But it is only picking up the "ES" part, and not the "06-14" part ... can I do this?

          Comment


            #6
            That should be doable AnotherTrader, yes. How do you determine it's only using the Master instrument without expiry?

            Comment


              #7
              Originally posted by NinjaTrader_Bertrand View Post
              That should be doable AnotherTrader, yes. How do you determine it's only using the Master instrument without expiry?
              Hi, Bertrand

              I get the error message in NT log ...
              The strategy myStrategy has called the Add() method with an invalid instrument. Either 'ES' does not exist in the Instrument Manager or the specified exchange has not been configured.

              Comment


                #8
                Originally posted by AnotherTrader View Post
                Hi, Bertrand

                I get the error message in NT log ...
                Sorry! I muddled up the errror message with a prior version of the code (where I used Instrument.MasterInstrument.Name instead of Instrument.FullName ...

                ... it does work. Sorry for muddying the waters!

                Comment


                  #9
                  Thanks for letting me know, great you could track it down.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  571 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  330 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  101 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  548 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  549 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X