Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Using exponential for ATR
Collapse
X
-
Hello Stok,
Yes, if you would like to change the way the ATR is calculated you would have to create a new indicator using NinjaScript.
You may view the link below for more information about the ATR Indicator.
http://www.ninjatrader.com/support/h..._range_atr.htm
Note that you can view this indicator method source code by selecting the menu Tools > Edit NinjaScript > Indicator within the NinjaTrader Control Center window and double click on the indicator.
Let us know if we can be of further assistance.JCNinjaTrader Customer Service
-
I do not know NS very well (I do know Easy Language), and would have to learn it at some point. It seems to me if I want a EMA of the ATR, there is no place in the ATR NS to do that.....it looks like it would take a whole other custom indicator. Honestly, I am looking for some simple help to modifying a few canned indicators, not building brand new ones.
Comment
-
Hello Stok,
If you are new to NinjaScript you may view the following thread that has some great links to help you get started with NinjaScript.
While, yes it would require a New NinjaScript file in order for it to be calculated you may use the Indicators that are already prebuilt for the calculations. For Example:
Code:#region Variables private int aTRPeriod = 14; // Default setting for ATRPeriod private int eMAPeriod = 7; // Default setting for EMAPeriod #endregion protected override void Initialize() { Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0")); Overlay = false; } protected override void OnBarUpdate() { Plot0.Set(EMA(ATR(ATRPeriod),EMAPeriod)[0]); }JCNinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
88 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
48 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
31 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
34 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
69 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment