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 judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
59 views
0 likes
|
Last Post
by DynamicTest
Today, 08:25 PM
|
||
Started by ScottWalsh, Today, 06:52 PM
|
4 responses
36 views
0 likes
|
Last Post
by ScottWalsh
Today, 07:40 PM
|
||
Started by olisav57, Today, 07:39 PM
|
0 responses
7 views
0 likes
|
Last Post
by olisav57
Today, 07:39 PM
|
||
Started by trilliantrader, Today, 03:01 PM
|
2 responses
21 views
0 likes
|
Last Post
by helpwanted
Today, 07:25 PM
|
||
Started by cre8able, Today, 07:24 PM
|
0 responses
10 views
0 likes
|
Last Post
by cre8able
Today, 07:24 PM
|
Comment