# NEOTICKER DATA BEGIN ScriptType=Indicator Description=Darvas Box End Name=dvboxe Language=Formula Links=1 MinBars=0 MetaStyle=Normal ValueRange=Same as Source Placement=New Pane Multiplot_num_plots=1 Multiplot_color_0=255 Multiplot_style_0=Dot Multiplot_width_0=1 Multiplot_enabled_0=1 UpdateByTick=0 TradingSystemUI=0 Param_count=0 Explanation_Lines=0 # NEOTICKER DATA END end := barssince(data1, "ndvhigh(data1) > 0") < barssince(1, data1, "ndvlow(data1) > 0"); def := valid(end, 0) > 0 and valid(end, 1) < 1; plot1 := if(def > 0 and def(1)=0, 1, 0) + if(end > 0 and ndvlow(data1) > 0, 1, 0);