title: How to make a variable true or false in the "if" function in pine editor?
body: <p>A very big problem I encountered when trading strategy in tradingview that I could not combine the two strategies. For example, I need a variable to be true whenever the price goes up in the Bollinger Band so that I can use it in the future. If anyone knows the solution to this problem, I will be happy to use his experiences.</p>
  <pre><code>if crossover(x &gt; y)
      test = true
  if test
      strategy.entry(&quot;Short&quot;, strategy.short, oca_type=strategy.oca.cancel, comment=&quot;Short&quot;)
  </code></pre>