I built the script… can someone turn it into a useful MT5 EA panel?

fedefrigerio1

Trader
Apr 27, 2026
3
1
8
26
Hello everyone,

My MQL5 knowledge is still limited, so I wanted to share an idea and ask for some guidance from people with more EA experience.

I already created a working script for part of this task, but I was not able to successfully convert it into an Expert Advisor panel.

I think the concept could be useful not only for me, but for many manual traders / scalpers, so I wanted to post it here for the community.

Many times I have 5 or 6 open positions on US30, and when price reaches a certain level, I want all positions to use the same Stop Loss (stop profit) or same Take Profit.

Instead of modifying each trade one by one, the idea is a very simple floating panel (movable on chart), similar in style to Position Sizer panel.

Panel example:

--------------------------------
Active Symbol: US30
Position Type: Buy / Sell

SL Price: ______
TP Price: ______

(If value = 0, keep current one)

[ EXECUTE ]
--------------------------------

How it should work:

- Select symbol
- Select Buy or Sell positions
- Enter new SL and/or TP price
- Press Execute
- EA modifies all matching open positions instantly

Example:

- 6 Buy positions on US30
- Enter SL = 42125
- TP = 0

After pressing Execute:
All Buy positions on US30 get SL = 42125
TP remains unchanged

Simple and practical for manual scalping.

No auto trading needed.
No indicators needed.
No complex logic needed.

Just a fast management tool.

I also have a script version already working, so if needed I can share it openly here as a starting point.

If someone thinks this could be useful for the community, feel free to share ideas, guidance, or improve/build it.

Thank you.
 

Attached File(s)

Hi, this is a good practical idea for manual trading.

I can help convert your working MQL5 script into an MT5 Expert Advisor panel. The panel can filter positions by symbol and Buy/Sell direction, then apply the new SL and/or TP to all matching open positions. If the SL or TP input is 0, the EA will keep the existing value unchanged.

Before coding, I would confirm:

- Should it manage only the chart symbol or allow selecting another symbol?
- Should it affect all positions or only positions with a specific magic number?
- Should pending orders be ignored?
- Should the panel remember its last position/inputs after chart reload?
- Do you want only MT5, or also an MT4 version later?

I can deliver clean MQL5 source code, editable inputs, a simple movable panel, and compilation with 0 errors. If you share the script source and one example of the desired workflow, I can estimate the exact price and timeline.
 
  • ℹ️
Reactions: EnrichWave