Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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



    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Hi PaulH,

      Ah. I was close. Thanks Paul!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by lorem, Today, 09:18 AM
      0 responses
      1 view
      0 likes
      Last Post lorem
      by lorem
       
      Started by hazylizard, Today, 08:38 AM
      4 responses
      10 views
      0 likes
      Last Post hazylizard  
      Started by geddyisodin, Today, 05:20 AM
      2 responses
      18 views
      0 likes
      Last Post geddyisodin  
      Started by Max238, Today, 01:28 AM
      5 responses
      47 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by giulyko00, Yesterday, 12:03 PM
      3 responses
      13 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X