pinescript code that would close the strategy once profit goes above a specific profit total then drops back to another specific profit total?

Viewed 12

how can I write a pine script that would close a strategy if lets say the profit x exceeded 50 then after sometime it drops back to 25. I need the strategy to close once it goes back to 25.

thanks

0 Answers
Related