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 NullPointStrategies, Today, 05:17 AM
      0 responses
      39 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      124 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      64 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X