# NEOTICKER DATA BEGIN ScriptType=Indicator Description=Dynamic Support Resistance Band Name=DynSRBand 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=Resistance Multiplot_breakstyle_0=2 Multiplot_color_1=50266112 Multiplot_style_1=Line Multiplot_width_1=1 Multiplot_enabled_1=1 Multiplot_name_1=Supportj Multiplot_breakstyle_1=2 UpdateByTick=1 TradingSystemUI=0 PrimaryLinkOnly=0 NotifyOnRemoval=0 Param_count=2 Param_name_0=Upper Param_inuse_0=1 Param_type_0=formula Param_default_0=hhv (h, 20) Param_name_1=Lower Param_inuse_1=1 Param_type_1=formula Param_default_1=llv (l, 20) Explanation_Lines=1 Explanation0=Dynamic Support/Resistance Band plots one of the two band plot series (defined by the Upper and Lower parameter formula) based on the direction that price penetration last occured. Dynamic Support/Resistance Band requires one series (Link 1). # NEOTICKER DATA END plot1 := fml (1, data1, param1); plot2 := fml (1, data1, param2); dir := choose (c > plot1 (1), 1, c < plot2 (1), -1, dir (1)); visualbreak1 := dir >= 0; visualbreak2 := dir <= 0;