qjol, thanks for your reply, I will study your solution later. I have found what I was looking for after one week of experiments ....
I have attached the file "TakeProfitMoving" maybe it could be helpful for some beginner like me. This script change the take profit value if the current price of a pair is less than the setting value(tp_level). It works on two different pairs but it can be enlarged by adding other pairs. Thanks again qjol, good trading to everybody !
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
With the below script I change the take profits of all open positions in the trade tab. Now I must add the following condiction:
change the take profit if the order profit is lower than 100 pips. I think it is easy, but not for me .....thanks, Scheggia97
qjol, thanks for your reply, I will study your solution later. I have found what I was looking for after one week of experiments ....
I have attached the file "TakeProfitMoving" maybe it could be helpful for some beginner like me. This script change the take profit value if the current price of a pair is less than the setting value(tp_level). It works on two different pairs but it can be enlarged by adding other pairs. Thanks again qjol, good trading to everybody !
Scheggia97
working with doubles