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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 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
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X