title: No data error in pine editor when backtesting a strategy
body: <p>I am trying a strategy backtesting on trading view using pine script. it does not show any compilation errors. but it shows &quot;no data&quot; in overview section and no results are there. Plot function is working.
  Following is the code:</p>
  <pre><code>`strategy(title=&quot;Double Moving Average&quot;, overlay=true,
   pyramiding=0, initial_capital=20000,
   commission_type=strategy.commission.cash_per_order,
   commission_value=4, slippage=2)
  start=timestamp(2020,11,1,0,0)
  
  length1 = input.int(44, minval=1)
  
  length2 = input.int(20, minval=1)
  sma1 = ta.sma(close, length1)
  sma2 = ta.sma(close, length2)
  sma_prev1=ta.sma(close[4],length1)
  sma_prev2=ta.sma(close[4],length2)
  slope1=sma1-sma_prev1
  slope2=sma2-sma_prev2
  difference=math.abs(close-sma2)
  entry1=false
  if close&gt;high and difference&lt;=4 and sma1&lt;sma2
     entry1:=true
  stop_loss=math.min(low,low[1],low[2])
  target=(high-stop_loss)*2
  if time&gt;=start and time&lt;=end
     strategy.entry(&quot;long_strategy&quot;, strategy.long, when = entry1)
     strategy.exit(&quot;exit&quot;,&quot;long_strategy&quot;,limit=target,stop=stop_loss)
      
  
  plot(sma1, &quot;44MA&quot;, color=color.blue)
  plot(sma2,&quot;20MA&quot;,color=color.red)`
  </code></pre>