HPotter

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")
DONATE/TIP

BTC: 1Lo1GoTNsPbrjGAgPgF4MYZPhBFdoVHaTm
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 PRO 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 PRO 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?
Reply
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.
Reply
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体
台灣
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