MT5: Is there a way to set/change stop loss or target for ALL OPEN POSITIONS?

 

Hello everyone,


For MetaTrader 5, is there a way to set or change the stop loss or target price for ALL open positions?


Many thanks!

 
  1. You probably mean "ALL open positions" on the same symbol.
  2. Write some code
              No free help

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum

 
Humble-Trader:

Hello everyone,


For MetaTrader 5, is there a way to set or change the stop loss or target price for ALL open positions?


Many thanks!

Searching the codebase in MQL5 website can give you some interesting results

https://www.mql5.com/en/code/25433

Change SL/TP on chart drop off
Change SL/TP on chart drop off
  • www.mql5.com
Close-All A script to close all market positions and/or pending orders. Export Summary Grouped by Symbols The script exports summary of closed trades grouped by each currency pair to .csv file
 
Fernando Morales:

Searching the codebase in MQL5 website can give you some interesting results

https://www.mql5.com/en/code/25433

Thank you so much, Fernando!


 
William Roeder:
  1. You probably mean "ALL open positions" on the same symbol.
  2. Write some code
              No free help

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum

your comment doesn't do any good to any one , so do not comment if you don't need to answer.