Hi i am developing a trading strategy and I want to take some profit if the profit is, for example, 50 pips. How can I do that in the code? Thanks.

Author