# NEOTICKER DATA BEGIN ScriptType=Indicator Description=DiNapoli Detrend Oscillator Name=DiNapoliDetrend Language=Formula Links=1 MinBars=0 TimerInterval=100 MetaStyle=Normal ValueRange=Other Placement=Smart Multiplot_num_plots=1 Multiplot_color_0=255 Multiplot_style_0=Line Multiplot_width_0=1 Multiplot_enabled_0=1 Multiplot_breakstyle_0=0 UpdateByTick=1 TradingSystemUI=0 PrimaryLinkOnly=0 NotifyOnRemoval=0 Param_count=1 Param_name_0=Period Param_inuse_0=1 Param_type_0=integer.gt.0 Param_default_0=7 Explanation_Lines=1 Explanation0=DiNapoli Detrend Oscillator returns the difference between the current value of the linked series and the simple moving average of the same. DiNapoli Detrend Oscillator requires one specified series (Link 1). # NEOTICKER DATA END plot1 := data1 - average (data1, param1);