Announcement

Collapse
No announcement yet.

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.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      30 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Working...
      X