# NEOTICKER DATA BEGIN ScriptType=Indicator Description=Linear Regression Oscillator Name=LinRegOsc Language=Formula Links=1 MinBars=0 TimerInterval=100 MetaStyle=Normal ValueRange=Same as Source Placement=Smart Multiplot_num_plots=2 Multiplot_color_0=255 Multiplot_style_0=Line Multiplot_width_0=1 Multiplot_enabled_0=1 Multiplot_name_0=Osc Multiplot_breakstyle_0=0 Multiplot_color_1=50266112 Multiplot_style_1=Line Multiplot_width_1=1 Multiplot_enabled_1=1 Multiplot_name_1=Smooth Multiplot_breakstyle_1=0 UpdateByTick=0 TradingSystemUI=0 PrimaryLinkOnly=0 NotifyOnRemoval=0 Param_count=3 Param_name_0=Period Param_inuse_0=1 Param_type_0=integer.gt.0 Param_default_0=30 Param_name_1=SD Param_inuse_1=1 Param_type_1=real Param_default_1=2 Param_name_2=Smooth Param_inuse_2=1 Param_type_2=integer.gt.0 Param_default_2=5 Explanation_Lines=0 # NEOTICKER DATA END makeindicator (mylr, linregchannel3, data1, param1, param2); plot1 := (data1 - mylr.p1) / (mylr.p3 - mylr.p2) * 200; plot2 := average (plot1, param3);