A SL or TP for group of orders

 
how can i set an SL or TP for group of orders that has one direction with one click?
 
Milad Akbari:
how can i set an SL or TP for group of orders that has one direction with one click?

search codebase and marketplace.

OR -- buy coder on Freelance to make it.

 
1. Use a Script for Group Orders
You can use a script to modify all orders in one direction with a single click. A script can be written to loop through your open positions, check their direction (buy or sell), and then set a common SL/TP for all orders. Here's an outline of how you can do this:

Basic Script Logic
Loop through all open orders.
Check the order direction (buy or sell).
Set the Stop Loss (SL) and Take Profit (TP) for each order in the desired direction.
For example, the script can check for all BUY orders and set a common SL and TP for those orders, and similarly for SELL orders.


2. Use an Expert Advisor (EA)
If you want the process to be fully automated or more sophisticated, you can modify your EA to handle SL and TP for all positions in one direction. The EA can have a function that:

Monitors open positions and checks their direction.
Automatically sets or adjusts SL/TP for a group of orders.
This can be particularly useful if you want to regularly update the SL/TP levels dynamically based on market conditions.
 
Hi

You can write your own simple to manage all SL/TP from opened trade at once.
I think the simplest option would be to make a chart panel with buttons to change TP/SL for Buy/Sell respectively. Then you can add also edit window to write down the price on which you want to move SL/TP then you can press a button and EA would modify all chosen positions. You can also use lines to manage this, so EA would draw a line on the chart for TP, you can set it manually and then press a button to move TP for Buys and EA would modify all TPs to set them where the line is.
If you cannot code yourself or you can find some freelancer to do this for you. 

Have a nice day👍📊