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 PhillT, 04-19-2024, 02:16 PM
      4 responses
      31 views
      0 likes
      Last Post PhillT
      by PhillT
       
      Started by ageeholdings, 05-01-2024, 05:22 AM
      5 responses
      36 views
      0 likes
      Last Post ageeholdings  
      Started by reynoldsn, Today, 02:34 PM
      0 responses
      8 views
      0 likes
      Last Post reynoldsn  
      Started by nightstalker, Today, 02:05 PM
      0 responses
      15 views
      0 likes
      Last Post nightstalker  
      Started by llanqui, Yesterday, 09:59 AM
      8 responses
      30 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Working...
      X