PDA

View Full Version : Want to build a MA of ATR:


Stok
07-23-2009, 11:50 AM
Hi, how do I go about making a moving average (SMA) of ATR. For example, so I have ATR(5) plotting, but I want to plot the 50daySMA of that?

I assume I need to code this, since it doesn't seem to allow me to choose ATR (or any other indicator) for input.

NinjaTrader_Josh
07-23-2009, 11:53 AM
SMA(ATR(5), 50)[0]

Would be the SMA of period 50 on an ATR of period 5.

Stok
07-23-2009, 12:01 PM
SMA(ATR(5), 50)[0]

Would be the SMA of period 50 on an ATR of period 5.

Ok, thanks! Where do I go to code this? I tried the Ninjascript for new indicator, and that didn't look like the right place.

NinjaTrader_Josh
07-23-2009, 12:03 PM
Stok,

That would be the right place. You would finish up the tutorial and then it will bring you into the NinjaScript Editor for editing.

I suggest you first start out with these tutorials: http://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?Overview23