Detrend Oscillator

I had a request from a client for a detrending oscillator and couldn't find one in our forum (though one may exist). I decided it's a good thing to add so I made this for anyone to use.

Detrending creates an oscillator by using the formula Current Price - Detrending Value. The detrending value is usually some moving average or linear regression output.

Inputs

ColorUp : Color for the oscillator > 0
ColorDown : Color for the oscillator < 0 InputType : The type of detrending you would like to do. There are many options including LinReg or EMA, etc. Period : Period for the detrend. Smooth : Smoothing you would like to apply to the detrended series.

Created By NinjaTrader_AdamP
NinjaTrader Version 7
File Size 20.2 KB
Create Date 11/07/2012
# of Downloads 1251

Importing to NinjaTrader 7 is Easy!

To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:

  1. Download the app or add-on file to your desktop
  2. From the NinjaTrader Control Center window, select the menu File > Utilities > Import NinjaScript
  3. Select the downloaded file from your desktop

Questions?

Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.