147 0 13
Just thought I'd share an indicator I'd converted over to pinescript from http://www.xpworx.com/download-free/mt4-indicators/decema-indicator.php
Remove from Favorite Scripts Add to Favorite Scripts
// Created from original DECEMA code found @ http://www.xpworx.com/download-free/mt4-indicators/decema-indicator.php
// Converted to pinescript -- (sorry for the other variables not used in my messy code)
// AUTHOR -- SHAMUS ARNESEN
study(title="DECEMA", shorttitle="DECEMA", overlay=true)
src = close
length = input(50, minval=1)

EMA1 = ema(src, length)
EMA2 = ema(EMA1, length)
EMA3 = ema(EMA2, length)
EMA4 = ema(EMA3, length)
EMA5 = ema(EMA4, length)
EMA6 = ema(EMA5, length)
EMA7 = ema(EMA6, length)
EMA8 = ema(EMA7, length)
EMA9 = ema(EMA8, length)
EMA10 = ema(EMA9, length)

//ema1 = EMA1

//DEMA = (2 * ema1) - ema(ema1, length)

//TEMA = (3 * ema1) - (3 * (ema(ema1, length))) + ema(ema(ema1, length),length)
//TEMA = (3 * EMA_src) - (3 * (ema(EMA_src, length))) + ema(ema(EMA_src, length),length)

QEMA=5*EMA1-10*EMA2+10*EMA3-5*EMA4+EMA5

DECEMA = (10 * EMA1)-(45 * EMA2)+(120*EMA3)-(210 * EMA4)+(252 * EMA5)- (210* EMA6)+(120*EMA7)-(45 *EMA8)+(10* EMA9)-EMA10

//lrc = linreg (close, length, 0)

//composite = (lrc + QEMA + TEMA + DEMA + EMA1) / 5


//out = 3 * (ema1 - ema2) + ema3

//ema6 = ema(ema5, length)
//out = 3 * (ema4 - ema5) + ema6
//out = QEMA
out = DECEMA

plot(out, color=white)
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out