Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to setup a minute bar, renko, and indicator acting on renko

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

    How to setup a minute bar, renko, and indicator acting on renko

    Hi,

    I am not sure how to do this but how do you set it up so there will be 2 data series,
    - one using a 1 minute bar chart (there's also a 1 tick data series here),
    - another using a renko chart (for entry signal),
    - then adding in a stoch rsi that is acting on the renko chart?

    So programatically it would be like this?:

    // Default 1 minute bar chart no need to add
    // Add 1 tick data series
    AddDataSeries(Data.BarsPeriodType.Tick, 1); // For the 1 minute bar chart, this is also where we submit orders, etc

    // Add renko
    AddDataSeries(....); // How?

    StockRSI stockRsi;
    stockRsi = StockRSI(Input[2], 2); // Is Input[2] correct -- is it referring to the renko?

    Then later in OnBarUpdate():

    // BarsInProgress == 0 is 1 Minute Chart
    // BarsInProgress == 1 is 1 Tick
    // BarsInProgress == 2 is Renko?

    Thanks for the help.

    #2
    Hello cmarkb,

    Thanks for your post.

    You are on the right track!

    To add a Renko series use AddRenko(): https://ninjatrader.com/support/help.../?addrenko.htm

    Correct, in your example, the Renko bars would be the BarsArray[2] and the BarsInProgress 2

    For the StochRSI you could write it like this as well:

    stochRsi = StochRSI(BarsArray[2], 2);

    stochRsi = StochRSI(Closes[2], 2);

    For coding in multi-series I highly recommend a complete review of: https://ninjatrader.com/support/help...nstruments.htm



    Comment


      #3
      Hi PaulH,

      Ah. I was close. Thanks Paul!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      63 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      139 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X