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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        168 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        322 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        246 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X