Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using Renko as BarArray[1] in a 1-Min-Strategy

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

    Using Renko as BarArray[1] in a 1-Min-Strategy

    Hello,

    in NT7 it is possible to mix time based and range based charts in one chart-window (which I find great). Is it possible to do the same in a strategy? So trading the minute-chart while using the renko in the strategy conditions?

    f.e.

    Code:
    protected override void Initialize()
            {
                Add(PeriodType.Renko, 20);
                
                CalculateOnBarClose = true;
            }
    
    protected override void OnBarUpdate()
            {
                if (BarsInProgress != 0)
                    return;
                
                         // if Renko-SMA is rising
                if (SMA(BarsArray[1], 50)[0] > SMA(BarsArray[1], 50)[1]) 
                {
                 // do something...
                }
             }
    Or is there any other workaround for doing this?

    Thanks a lot.

    Joerg

    #2
    Joerg, this is definitely possible, just use AddRenko(...) instead of the regular Add(...) method. Let us know if you run into any issues.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Great, thanks for this information.

      Would "SMA(BarsArray[1], 50)" then use the last 50 Minutes (if my primary series is a 1-min-chart) or would it use the last 50 bricks of the renko-series for the calculation?

      I would like to use the last 50 bricks regardeless of the time span they occured.

      Comment


        #4
        Joerg, you are correct, SMA(BarsArray[1], 50) would use the last 50 bricks of the Renko series.
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        344 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        557 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X