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

AddRenko()

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

    AddRenko()

    What is the syntax for just adding an additional renko data series that uses the same instrument as the primary data series? I just want to use a different brick size but use the same instrument. None of the examples show this.

    Can I just omit the first parameter?

    AddRenko(stringinstrumentName,intbrickSize,Data.MarketDataTypemarketDataType)

    #2
    Originally posted by gordongekko View Post
    What is the syntax for just adding an additional renko data series that uses the same instrument as the primary data series? I just want to use a different brick size but use the same instrument. None of the examples show this.

    Can I just omit the first parameter?

    AddRenko(stringinstrumentName,intbrickSize,Data.MarketDataTypemarketDataType)
    Use this for first parameter:

    Instrument.FullName
    RJay
    NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

    Comment


      #3
      Hello.

      Thanks for the post.

      Using variables in the parameter list of AddRenko (and every Add method) as RayJ suggests is not supported. We recommend all parameters used in the add methods be hard coded.

      Here is an excerpt from the help guide:

      Arguments supplied to AddRenko() should be hardcoded and NOT dependent on run-time variables which cannot be reliably obtained during State.Configure (e.g., Instrument, Bars, or user input). Attempting to add a data series dynamically is NOT guaranteed and therefore should be avoided.


      Code:
       if (State == State.Configure)
          {
              AddRenko("ES 06-18", 4, MarketDataType.Last); 
          }
      There exists a feature request to allow dynamically adding a data series, I will add a vote for this feature.

      Please let us know if we may be of any further assistance.
      Chris L.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by traderqz, Today, 12:06 AM
      6 responses
      12 views
      0 likes
      Last Post traderqz  
      Started by Skifree, Today, 03:41 AM
      3 responses
      12 views
      0 likes
      Last Post Skifree
      by Skifree
       
      Started by traderqz, Yesterday, 09:06 AM
      5 responses
      33 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by guillembm, Today, 11:25 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by owensd, 04-21-2024, 11:34 PM
      9 responses
      34 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X