DiNapoli Detrended Oscillator Strategy

DiNapoli Detrended Oscillator Strategy
Remove from Favorite Scripts Add to Favorite Scripts
//  Copyright by HPotter v1.0 02/04/2015
// DiNapoli Detrended Oscillator Strategy
study(title="DiNapoli Detrended Oscillator Strategy")
Length = input(14, minval=1)
Trigger = input(0)
hline(Trigger, color=gray, linestyle=line)
xSMA = sma(close, Length)
nRes = close - xSMA
pos =	iff(nRes > Trigger, 1,
	    iff(nRes <= Trigger, -1, nz(pos[1], 0))) 
plot(nRes, color=blue, title="DiNapoli")
barcolor(pos == -1 ? red: pos == 1 ? green : blue )

BTC: 3FKWwtaYrf5NHZzaCi1fyAfQj7XSgtyCqe
welcome back!
HPotter jackvmk
Thank you )
+1 Reply
jackvmk HPotter
your welcome )
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
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