Detrend Oscillator NT8

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.



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.

I just convert to NT8, idea from NinjaTrader_AdamP

Created By soon123
NinjaTrader Version 8
File Size 16.4 KB
Create Date 01/08/2021
# of Downloads 85

Importing to NinjaTrader 8 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 Tools > Import > NinjaScript Add-On…
  3. Select the downloaded file from your desktop


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