title: Exit from position in exact time
body: <p>Help me please)
  I want to add exit from position in 22:00 every day and new input in the morning at 11:00.</p>
  <pre><code>// MA
  len = input(6, minval=1, title=&quot;Length&quot;)
  src = input(close, title=&quot;Source&quot;)
  offset = input(title=&quot;Offset&quot;, type=input.integer, defval=0, minval=-500, maxval=500)
  out = sma(src, len)
  plot(out, color=color.blue, title=&quot;MA&quot;, offset=offset)
  
  price = close
  x = price &gt; out
  x2 = price &lt; out
  
  //Logic
  if (out &gt; out[1]) and metka and x 
      strategy.entry(&quot;ConsUpLE&quot;, strategy.long, comment=&quot;ConsUpLE&quot;)
  
  if (out &lt; out[1]) and metka and x2 
      strategy.entry(&quot;ConsDnSE&quot;, strategy.short, comment=&quot;ConsUpLE&quot;)
  </code></pre>