DiNapoli Detrended Oscillator

DiNapoli Detrended Oscillator
Remove from Favorite Scripts Add to Favorite Scripts
//  Copyright by HPotter v1.0 02/04/2015
// DiNapoli Detrended Oscillator
study(title="DiNapoli Detrended Oscillator")
Length = input(14, minval=1)
hline(0, color=gray, linestyle=line)
xSMA = sma(close, Length)
nRes = close - xSMA
plot(nRes, color=blue, title="DiNapoli")

Looks good HP. Thank you very much, I appreciate you and your help. When you said you've made the first version, does than imply there will be a second?
+1 Reply
You are welcome.
+1 Reply
May be I will make Preferred Stochastic and etc.
+2 Reply
Dare2 HPotter
That would be very helpful. Also I have been trying as best as I can to code a MACD (or DEMA as DiNapoli calls it) but have been unsuccessful in using the decimal (float) values that he uses.
+1 Reply
In the parameter? Try set it as constants in the code. Just use number.
+1 Reply
Dare2 HPotter
Yes in the parameters. I will give your suggestion a try.
+1 Reply
In the parameter I also get a problem (((
+1 Reply
You're back! If possible, could you please code an indicator that would show the % difference between price and a moving average?
Just range between last and MA in the %?
+1 Reply
elp HPotter
Yes, on the close of the candle of the time period one is looking at.
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out