# NEOTICKER DATA BEGIN ScriptType=Indicator Description=Example Formula Spread by Tick Name=ex_for_sbt Language=Formula Links=2 MinBars=0 TimerInterval=100 EarlyBinding=0 MetaStyle=Candle ValueRange=Same as Source Placement=New Pane Multiplot_num_plots=4 Multiplot_color_0=41943130 Multiplot_style_0=Line Multiplot_width_0=2 Multiplot_enabled_0=1 Multiplot_breakstyle_0=0 Multiplot_color_1=41943130 Multiplot_style_1=Line Multiplot_width_1=2 Multiplot_enabled_1=1 Multiplot_breakstyle_1=0 Multiplot_color_2=41943130 Multiplot_style_2=Line Multiplot_width_2=2 Multiplot_enabled_2=1 Multiplot_breakstyle_2=0 Multiplot_color_3=41943130 Multiplot_style_3=Line Multiplot_width_3=2 Multiplot_enabled_3=1 Multiplot_breakstyle_3=0 UpdateByTick=1 FloatMarker=1 DepthData=0 TradingSystemUI=0 PrimaryLinkOnly=0 NotifyOnRemoval=0 Param_count=3 Param_name_0=weight 1 Param_inuse_0=1 Param_type_0=real Param_default_0=0.5 Param_name_1=weight 2 Param_inuse_1=1 Param_type_1=real Param_default_1=0.2 Param_name_2=minute bar size Param_inuse_2=1 Param_type_2=integer.gte.0 Param_default_2=5 Explanation_Lines=1 Explanation0=Use compressseries to generate spread historical calculation. # NEOTICKER DATA END $st := data1(0)*param1-data2(0)*param2; 'spreadtick plot1 := if(($CurrBN <> data1.barsnum(0)), $st, plot1); 'open plot2 := if(($st > plot2) or ($CurrBN <> data1.barsnum(0)), $st, plot2); 'high plot3 := if(($st < plot3) or ($CurrBN <> data1.barsnum(0)), $st, plot3); 'low plot4 := $st; $CurrBN := data1.barsnum (0);