Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Access ATR within BarsType code
Collapse
X
-
Access ATR within BarsType code
I'm trying to develop a custom volatility-based bar type for myself but it seems I'm unable to call the ATR indicator from a BarsType class. Is there any way I can get around this? Preferably I'd just like to call the ATR() function but if it's possible to calculate it myself with the local bars array, that would work too.
ThanksTags: None
-
In NT7, I coded renko bar length = ATR(10). Note: somehow ninja doesn't read ATR value thru parm setting so if you want to change ATR value you have to modify the code. It should be easy to adapt it to NT8 since there is NT8 renko bar already.Originally posted by brohnhdon View PostI'm trying to develop a custom volatility-based bar type for myself but it seems I'm unable to call the ATR indicator from a BarsType class. Is there any way I can get around this? Preferably I'd just like to call the ATR() function but if it's possible to calculate it myself with the local bars array, that would work too.
ThanksAttached Files
Comment
-
Has anybody updated this for NT8?Originally posted by nkhoi View Post
In NT7, I coded renko bar length = ATR(10). Note: somehow ninja doesn't read ATR value thru parm setting so if you want to change ATR value you have to modify the code. It should be easy to adapt it to NT8 since there is NT8 renko bar already.
Comment
-
NinjaTrader_ChrisL OR anyone. I have been trying for years to figure out a MTF ATR to be used with non-time based charts like Renkos. I tried to see where I could extract the pieces of code from here that are using an alternate timed ATR but it is too complex for my ken. May I request someone square this down to a MTF ATR indicator? Thank you in advane.
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
44 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
56 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
35 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
95 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
57 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|


Comment