title: Pine Script how to trigger strategy when price goes above level and not after close of bar
body: <p>The script below will trigger the open part of the strategy, the bar after the close. How can I change the variable "Close" so the strategy is tested at the exact point of the crossover of SMA 14 and 28 and not the bar after? Or is that no possible</p>
  
  <pre><code>longCondition = crossover(sma(close, 14), sma(close, 28))
  if (longCondition)
      strategy.entry("My Long Entry Id", strategy.long)
  
  shortCondition = crossunder(sma(close, 14), sma(close, 28))
  if (shortCondition)
      strategy.entry("My Short Entry Id", strategy.short)
  </code></pre>