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 fx.practic, 10-15-2013, 12:53 AM
                  5 responses
                  5,404 views
                  0 likes
                  Last Post Bidder
                  by Bidder
                   
                  Started by Shai Samuel, 07-02-2022, 02:46 PM
                  4 responses
                  95 views
                  0 likes
                  Last Post Bidder
                  by Bidder
                   
                  Started by DJ888, Yesterday, 10:57 PM
                  0 responses
                  8 views
                  0 likes
                  Last Post DJ888
                  by DJ888
                   
                  Started by MacDad, 02-25-2024, 11:48 PM
                  7 responses
                  159 views
                  0 likes
                  Last Post loganjarosz123  
                  Started by Belfortbucks, Yesterday, 09:29 PM
                  0 responses
                  8 views
                  0 likes
                  Last Post Belfortbucks  
                  Working...
                  X