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

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

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

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

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

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by mjairg, 07-20-2023, 11:57 PM
                  3 responses
                  213 views
                  1 like
                  Last Post PaulMohn  
                  Started by TheWhiteDragon, 01-21-2019, 12:44 PM
                  4 responses
                  544 views
                  0 likes
                  Last Post PaulMohn  
                  Started by GLFX005, Today, 03:23 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post GLFX005
                  by GLFX005
                   
                  Started by XXtrader, Yesterday, 11:30 PM
                  2 responses
                  12 views
                  0 likes
                  Last Post XXtrader  
                  Started by Waxavi, Today, 02:10 AM
                  0 responses
                  7 views
                  0 likes
                  Last Post Waxavi
                  by Waxavi
                   
                  Working...
                  X