title: Repainting when using security()
body: <p>i have some problem in my pine code when i use security()</p>
  <p>i use diffrent timeframe for chart and security() function, and its make fake alert in my strategy</p>
  <p>i read this FAQ (<a href="https://www.tradingview.com/script/cyPWY96u-How-to-avoid-repainting-when-using-security-PineCoders-FAQ/" rel="nofollow noreferrer">link</a>) but i can't fix my problem
  can anyone help ?</p>
  <pre><code>res5 = input(&quot;45&quot;, type=input.resolution)
  
  o = security(syminfo.tickerid, res5, open, barmerge.gaps_off, barmerge.lookahead_on)
  c = security(syminfo.tickerid, res5, close, barmerge.gaps_off, barmerge.lookahead_on)
  hz = security(syminfo.tickerid, res5, high, barmerge.gaps_off, barmerge.lookahead_on)
  l = security(syminfo.tickerid, res5, low, barmerge.gaps_off, barmerge.lookahead_on)
  </code></pre>