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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      134 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      67 views
      0 likes
      Last Post PaulMohn  
      Working...
      X