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.
 

Attachments