title: Trading View - How to trigger stop profit when the price rises above a certain price?
body: <p>everyone.</p>
  <p>I'm new to pine and trying to set <strong>taking profit in certain condition.</strong></p>
  <p>-a- For instance, after current price is 10% higher than entry long price, stop profit is set to 5% higher from the entry long price.</p>
  <p>So, if price come down to 5%, it will closed with 5% profit.
  However, if price is still higher than 5%, it will ended until the strategy ends.</p>
  <p>-b- Futhermore, if current price is higher than 20% of entry, I want to erase previous stop profit(-a-) condition and make the stop profit % as 10%.</p>
  <p>I'm not sure this is possible in pinescript because I could not find the variable that return &quot;current price&quot;</p>
  <p>I think someone has already thought the same thing as me, so if you know the reference address, please share it with me.</p>
  <p>Please help me for long live the my account.</p>
  <p>Thanks.</p>