title: Check if in a specific position
body: <p>This will solve a more complicated problem I am having.</p>
  
  <p>I have two lines in my code:</p>
  
  <pre><code>strategy.entry(id = "Long", long = true, when = upAllConditions, stop = upStopLoss)
  strategy.entry(id = "Short", long = true, when = upAllConditions, stop = upStopLoss)
  </code></pre>
  
  <p>I can't seem to figure out how check to see if I am in one of those positions.</p>
  
  <p>I do NOT want to go short if I am in a "Long" position, and do NOT want to go long if I am in the "Short" position.</p>
  
  <p>(the more complicated problem is I actually want to use a different stop loss value depending on which position I am in, hence the need to check. seemed like this was an easier way to ask)</p>