RicardoSantos

Function Savitzky Golay Filter with 7 Vectors V0

173 0 10
EXPERIMENTAL:
request for ChartArt
might need some proof reading the formula as im unsure its complete. :o
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
study("Function Savitzky Golay Filter with 7 Vectors V0", overlay=true)
//reference: http://www.statistics4u.info/fundstat_eng/cc_filter_savgolay.html
f_savitzky_golay_filter_w_7_vectors(_source)=>
    _polynomial = (-2 * _source[6] + 3 * _source[5] + 6 * _source[4] + 7 * _source[3] + 6 * _source[2] + 3 * _source[1] - 2 * _source[0]) / 21

plot(f_savitzky_golay_filter_w_7_vectors(close))

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 Billing Sign Out