HPotter

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

BTC: 1Lo1GoTNsPbrjGAgPgF4MYZPhBFdoVHaTm
welcome back!
Reply
Thank you )
+1 Reply
jackvmk HPotter
your welcome )
Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
ประเทศไทย
Việt Nam
日本
한국
简体
繁體
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