title: Entry is not working when using barssince(change(strategy.position_size)) > 10
body: <p>I have a wierd problem in my script.</p>
  <p>This is working code:</p>
  <pre><code>//@version=4
  strategy(&quot;Test script&quot;, overlay=true, pyramiding=100)
  process_orders_on_close=true
  
  // FACTOR 1X MACD
  fastMA = round(12*1)
  slowMA = round(26*1)
  signal = round(9*1)
  [Macd1x,_,Hist] = macd(close[0], fastMA, slowMA, signal)
  
  // FACTOR 4X MACD
  fastMA4x = round(12*4)
  slowMA4x = round(26*4)
  signal4x = round(9*4)
  [Macd4x,_,_] = macd(close[0], fastMA4x, slowMA4x, signal4x)
  
  // TRADE CONDITIONS
  PreventMultipleEntrys = barssince(change(strategy.position_size)) &gt; 10
  
  BuySignal = Macd1x &gt; 0 and Macd4x &gt; 0 and PreventMultipleEntrys
  SellSignal = Macd1x &lt; 0 and Macd4x &lt; 0
  
  strategy.entry(id=&quot;Enter Long&quot;, long=true, when=BuySignal)
  strategy.entry(id=&quot;Enter Short&quot;, long=false, when=SellSignal)
  </code></pre>
  <p>So I get both LONG and SHORT trade entries here.
  But, when I add the <code>PreventMultipleEntrys</code> to my sell signal aswell, everything stops working. I dont get any buy or sell signals but still no error in the compiler?</p>
  <p>Can someone smart help me here with this wierd error?
  Here is the NONE working code:</p>
  <pre><code>//@version=4
  strategy(&quot;Test script&quot;, overlay=true, pyramiding=100)
  process_orders_on_close=true
  
  // FACTOR 1X MACD
  fastMA = round(12*1)
  slowMA = round(26*1)
  signal = round(9*1)
  [Macd1x,_,Hist] = macd(close[0], fastMA, slowMA, signal)
  
  // FACTOR 4X MACD
  fastMA4x = round(12*4)
  slowMA4x = round(26*4)
  signal4x = round(9*4)
  [Macd4x,_,_] = macd(close[0], fastMA4x, slowMA4x, signal4x)
  
  // TRADE CONDITIONS
  PreventMultipleEntrys = barssince(change(strategy.position_size)) &gt; 10
  
  BuySignal = Macd1x &gt; 0 and Macd4x &gt; 0 and PreventMultipleEntrys
  SellSignal = Macd1x &lt; 0 and Macd4x &lt; 0 and PreventMultipleEntrys //This line makes everything stop working
  
  strategy.entry(id=&quot;Enter Long&quot;, long=true, when=BuySignal)
  strategy.entry(id=&quot;Enter Short&quot;, long=false, when=SellSignal)
  </code></pre>