Dynamic ATR Renko Bars for NinjaTrader 8

The brick size follows the ATR, so bricks grow when the market gets busy and shrink when it calms down.

Find us on

View Price

ATR Renko Bars for NinjaTrader 8

A short showcase of ATR Renko bricks on a chart

ATR Renko Bars for NinjaTrader 8

NinjaCoding logo

NinjaCoding

1.24k subscribers

Why ATR Renko

A fixed brick size is only right some of the time.

A brick size that looks right in a quiet session is too small when the market gets busy, and one picked for a busy session hides the detail when things calm down. NC ATR Renko Bars measure the Average True Range of a timeframe you choose and size every brick from it, so the bricks grow when the market gets busier and shrink when it calms down.

  1. Every tradeprice and time
  2. Timeframe barse.g. 5-minute bars, from the session start
  3. ATRof the last Period finished bars
  4. × Multiplierrounded down to a whole tick
  5. Brick sizeused for the next brick
Example. On ES (tick size 0.25) the ATR is 3.37 points. With Multiplier 1 the brick size is 3.25 points (13 ticks). With Multiplier 2 it's 6.74, rounded down to 6.50 points.

Worked out again each time a brick closes, from the last finished timeframe bar. It stays fixed while the next brick builds.

01

Brick size from the ATR

The ATR of the timeframe you choose, times a whole-number Multiplier.

02

Two versions

NC ATR Renko for classic, even bricks. NC ATR Renko-P for real prices only.

03

Same ATR as NinjaTrader

Built like NinjaTrader's own minute bars and ATR indicator. No second chart needed.

04

Full C# source code

Use them as is, learn from them, or change them yourself or with AI like Claude.

Two versions, one download

Classic looks or real prices. Pick per chart.

Both versions use the same brick size. They differ in what each bar's open, high, low and close mean.

NC ATR Renko

Even bricks, like NinjaTrader Renko

5002.00 5001.00 5000.00 4999.00 4998.00 1 2
  • 1The turn opens at the previous brick's open and is one brick tall.
  • 2A filler brick with no trades and zero volume, added after price jumped past two levels.

NC ATR Renko-P

Bars of different heights, with wicks

5002.00 5001.00 5000.00 4999.00 4998.00 1 2 3
  • 1The dip to 5000.50 stays as a real wick.
  • 2The turn starts at the real close and is two bricks tall.
  • 3The jump is one bar that closes at the real 4997.75.

The same 30 trades on an ES-type instrument with a 1.00-point brick, built by both versions. From the worked example in the user manual.

Which one to use

Renko-P for anything you backtest.

A strategy reads each bar's open, high, low and close. On NC ATR Renko the open and close are levels, and after a price jump whole bricks are filler, so a backtest can fill orders at prices that never traded at that moment. On NC ATR Renko-P every value is a real trade.

NC ATR RenkoNC ATR Renko-P
LooksEven bricks, like NinjaTrader RenkoBars of different heights, with wicks
OpenA level: the previous brick's close, or its open after a turnA real trade: the previous bar's close
High / LowThe brick's top and bottom; wicks removed when it finishesThe real highest and lowest trades
CloseThe level that was reachedThe real trade that reached the level
TurnStarts at the previous brick's open, one brick tallStarts at the previous close, two bricks tall
Price jumpsFiller bricks with 0 volumeOne taller bar
Building barMoves with price, then is redrawn as a clean brickMoves with price and stays as it is
Best forReading the chart and spotting trendsStrategies, backtests, and indicators that use the open, high, low and close
Rule of thumb. Use NC ATR Renko-P for anything automated or backtested. Use NC ATR Renko when you want the clean, even look of classic Renko on your chart.

Settings

Three settings set the brick size.

ATR Timeframe (min)

Default 5

The length of the time bars the ATR is measured on, any whole number of minutes, such as 1, 5, 15, 60 or 240. It sets the scale: one brick is about the typical range of one bar on that timeframe, times the Multiplier. A longer timeframe gives bigger bricks, fewer of them and less noise.

ATR Period

Default 60

How many finished timeframe bars the ATR averages. A long period gives a steady size that changes slowly; a short one follows changes in volatility faster.

Multiplier

Default 1

The brick size is the ATR times the Multiplier, in whole steps. 2 doubles it, 3 triples it.

Days to load

Default 30

The first part of the loaded data is used for the warm-up. Use the Candlestick chart style to see the wicks of Renko-P bars and of the building bar.

See the brick size first. Open a regular chart of the same instrument on your ATR Timeframe and add NinjaTrader's ATR indicator with the same period. The brick size is that value times the Multiplier, rounded down to a tick.

How many days to load

No bricks appear until 3 × ATR Period timeframe bars have finished, so the ATR has settled before the first brick. Load at least these trading days, plus the days you want to see. On higher timeframes it's often better to lower the ATR Period than to load weeks of ticks.

ATR PeriodATR TimeframeWarm-up barsFull futures session (23 h, e.g. ES)Regular hours only (6.5 h, e.g. US stocks)
145 min421 day1 day
605 min (default)1801 day3 days
2015 min601 day3 days
1460 min422 days6 days
6060 min1808 days26 days
14240 min427 days21 days

Who it's for

Built for traders whose markets don't sit still.

Traders who keep resizing bricks

You change the brick size as the market speeds up and slows down. Let the ATR do it for you.

Multi-market traders

You trade instruments and sessions with very different volatility and want one setting that scales to each.

Strategy builders

You want adaptive Renko you can backtest on real prices: Renko-P in the Strategy Analyzer, Market Replay or your own NinjaScript.

Before you buy

The honest trade-offs.

A brick size that moves has costs of its own. Here's what to expect.

  • Bricks change size. A brick from a calm morning and one from a busy afternoon don't stand for the same distance in points, so anything you count in bricks changes meaning through the day.
  • A warm-up on every chart. No bricks appear until 3 × ATR Period timeframe bars have finished. Start backtests early enough to cover it; long timeframes need many days of tick data.
  • Each version has its cost. NC ATR Renko's clean look comes from levels and filler bricks, so don't backtest on it. Renko-P's real prices come with bars of different heights and turns two bricks tall.
  • No Break at EOD. The bricks run across sessions.

Make it yours

Full C# source code for both bars types.

Use them as is, learn from them, or change them yourself or with AI like Claude. No coding experience needed to start.

  • Bars types 56 and 58 for your own strategies and indicators
  • Works in the Strategy Analyzer and Market Replay
  • PDF user manual with a worked example
// in State.Configure: add NC ATR Renko-P as an extra series
AddDataSeries(new BarsPeriod
{
    BarsPeriodType = (BarsPeriodType)58,
    Value  = 60,            // ATR Period
    Value2 = 5,             // ATR Timeframe (min)
    BaseBarsPeriodValue = 1 // Multiplier
});

FAQ

Questions traders ask.

Which version should I backtest with?

NC ATR Renko-P. Its open, high, low and close are all real trades, and it has no filler bars. You can select NC ATR Renko in the Strategy Analyzer too, but its opens and closes are levels and its filler bricks contain no trades, so fills can happen at prices that never traded at that moment.

Why is my chart empty?

Either the loaded days don't cover the warm-up yet, or your data connection doesn't provide historical tick data for those days. The warm-up needs 3 × ATR Period finished timeframe bars before the first brick. Without tick history, only live trades build bricks, and the first brick appears once the warm-up has passed in real time.

How many days should I load?

Enough for the warm-up plus the days you want to see. The table under Settings shows how many trading days each combination needs, for a full futures session and for regular US stock hours.

Why doesn't the ATR match my ATR indicator?

Use the same timeframe, period and trading hours template on both. Right after the start of the loaded data the two can differ slightly, because each one starts from its own first bar. With plenty of history they match.

Why aren't the bricks all the same size?

That's by design. The size follows the ATR and is worked out again each time a brick closes. On Renko-P, turns are two bricks tall and price jumps make taller bars.

Why does the building bar jump when an NC ATR Renko brick closes?

When price reaches a level, the bar is redrawn as a clean brick and its wick disappears. NinjaTrader's own Renko does the same. A strategy running On each tick sees that last update, so the brick's open, high and low can change at that moment.

Why doesn't the brick size change for a while after a reload?

If NinjaTrader continues a chart from bricks it built earlier, the ATR history isn't available any more. The bars keep the last brick size until enough new data has arrived to warm the ATR up again.

Can I use Break at EOD?

No, it isn't used. The bricks run across sessions.

Can the Multiplier be 1.5?

No, it takes whole numbers only. For a size between two steps, try a different ATR Timeframe instead: a longer timeframe gives bigger bricks.

Can I use the bars in my own strategy or indicator?

Yes. NC ATR Renko is bars type 56 and NC ATR Renko-P is 58. Value is the ATR Period, Value2 the ATR Timeframe in minutes and BaseBarsPeriodValue the Multiplier. Add them with AddDataSeries in State.Configure.

The import shows errors, or two versions appear.

The older ATR Renko files are probably still installed. In the NinjaScript Editor, open the BarsTypes folder, remove ATRRenko and ATRRenkoPrecise, and import again. Always import both NC ATR Renko Bars together from the same zip.

Renko that keeps up with the market.

Two bars types, one license, full source code.

View Price

99.00 USD

Choose the License Type That Fits Best

MORE addons

Check Out What Else is Available