Script to close all positions above 100 pips
-
Hello all,
I would like my positions closed if the total of gained pips is greater than 100 pips in total. For example, if I have 1 position with +50 pips, 1 other with -10 pips, 1 with +30 pips and 1 with +31 pips (so +101 pips in total), all my positions need to close immediately.
I think to use a script for that. Do you agree? And with the simple following script?Thanks for your help

-
@bagheria You will find the solutions in this thread:
https://fxdreema.com/forum/topic/12490/how-to-calculate-only-buy-orders/6
-
@l-andorrà It seems very good. Thank you very much!
-
@l-andorrà Just 2 questions. I trade almost 25 forex pairs. Can I just apply this EA on 1 graph or I need to apply it to all graphs? And a second question, can I create a script instead of an EA?
Thanks