NexusFi: Find Your Edge


Home Menu

 





Automatic Range Bars in Ninjatrader


Discussion in NinjaTrader

Updated
    1. trending_up 4,083 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 macguy 
Seattle WA
 
Experience: Advanced
Posts: 12 since Sep 2012
Thanks Given: 2
Thanks Received: 38

Hi all.

I use NinjaTrader for trading futures and also some features of Thinkorswim. Specifically, the latest iteration of TOS added a candle type called ATR Bars (Average True Range Bars). Described simply, it takes the length of the chart you have selected, calq's the atr, then automatically plots each bar based on that calq'ed range.

My question is this. I have tried to duplicate this in NinjaTrader without success. Has anyone seen code that would allow for the automatic calculation of ATR then create the bars based on the result; including the wicks and tails?

It is immensely helpful in my Crude, ES, and other trending trades.

Thanks for you help in advance.


Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
Warsh Opens Today, Hormuz June 19 -- WTI Below $80, Fran …
Prediction Markets & Event Contracts
Iran Talks Final Stages -- Two VLCCs Exit Hormuz, Record …
Traders Hideout
El Clasico Draws $9.2M in Prediction Market Action -- Bi …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
10 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
ycomp
Europe-ish
 
Posts: 177 since Sep 2013
Thanks Given: 12
Thanks Received: 60

I'm not sure if it is even technically possible...

has anyone seen an ATR range or renko bar type for ninjatrader?


Reply With Quote
  #3 (permalink)
drm7
Virginia
 
Posts: 49 since Oct 2010
Thanks Given: 194
Thanks Received: 47


Tradingview has ATR based Renko/Kagi/PnF charts, BUT...

...the ATR doesn't dynamically update. It builds the entire chart history based on the current ATR, and locks in that ATR for bar calculation purposes for future bars. The only way I use this ATR function is to calibrate an unfamiliar market.


Reply With Quote
  #4 (permalink)
ycomp
Europe-ish
 
Posts: 177 since Sep 2013
Thanks Given: 12
Thanks Received: 60

What I mean is I'm unsure if you can access bar data in NinjaTrader in a bar type... but I'm by no means an expert.


Reply With Quote
  #5 (permalink)
ycomp
Europe-ish
 
Posts: 177 since Sep 2013
Thanks Given: 12
Thanks Received: 60


drm7 View Post
Tradingview has ATR based Renko/Kagi/PnF charts, BUT...

...the ATR doesn't dynamically update. It builds the entire chart history based on the current ATR, and locks in that ATR for bar calculation purposes for future bars. The only way I use this ATR function is to calibrate an unfamiliar market.

ah yeah I was thinking before that would be useful because I was sick of typing different values in for different symbols.

But for me what would be really interesting to play with is one that actively updates the range, theoretically making you pay less attention to quiet bars and more attention to active ones.


Reply With Quote
  #6 (permalink)
ycomp
Europe-ish
 
Posts: 177 since Sep 2013
Thanks Given: 12
Thanks Received: 60

ok, forget what I said about it might not be possible. I was misremembering.. it is possible to access bar data in a bar type.


Reply With Quote




Last Updated on June 10, 2018


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts