title: Separate exit for stop loss and target
body: <p>I am coding a strategy in pine script where i have set the exit at a certain stoploss and target price.It looks like this:</p>
  <pre><code>if useStopLoss
      strategy.exit(&quot;Stop Loss/Profit Long&quot;,&quot;Long&quot;, stop=stop_level, limit=take_level,comment=&quot;exit_buy&quot;)
      strategy.exit(&quot;Stop Loss/Profit Short&quot;,&quot;Short&quot;, stop=stop_level_short, limit=take_level_short,comment=&quot;exit_sell&quot;)
  </code></pre>
  <p>The issue here is I am using {{strategy.order.comment}}  in my alerts but i am not able to differentiate if the stoploss is triggered or It has reached the target.
  I tried doing the following:</p>
  <pre><code>if useStopLoss
      strategy.exit(&quot;Stop Loss/Profit Long&quot;,&quot;Long&quot;, stop=stop_level,comment=&quot;stop_buy&quot;)
      strategy.exit(&quot;Stop Loss/Profit Short&quot;,&quot;Short&quot;, stop=stop_level_short,comment=&quot;stop_sell&quot;)
      strategy.exit(&quot;Stop Loss/Profit Long&quot;,&quot;Long&quot;, limit=take_level,comment=&quot;target_buy&quot;)
      strategy.exit(&quot;Stop Loss/Profit Short&quot;,&quot;Short&quot;,limit=take_level_short,comment=&quot;target_sell&quot;)
  </code></pre>
  <p>here i made separate exits for stop loss and target. But for some reason it doesn't work as intended.
  Any help is appreciated</p>