Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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.
The following user says Thank You to macguy for this post:
I'm not sure if it is even technically possible...
has anyone seen an ATR range or renko bar type for ninjatrader?
drm7
Virginia
Posts: 49 since Oct 2010
Thanks Given: 192
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.
ycomp
Europe-ish
Posts: 177 since Sep 2013
Thanks Given: 12
Thanks Received: 58
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.
ycomp
Europe-ish
Posts: 177 since Sep 2013
Thanks Given: 12
Thanks Received: 58
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.
ycomp
Europe-ish
Posts: 177 since Sep 2013
Thanks Given: 12
Thanks Received: 58
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.