One Click B3 MT4
- Experts
-
Mariusz Franciszek Szczepanczyk
I have been trading since 2005. Over the years I have built my own set of tools because I could not find what I actually needed on the market. Not magic entry signals. Not promises. Just clean, reliable trade management that works while I am away from the screen. - Version: 1.26
- Updated: 23 July 2026
- Activations: 5
One Click B3 MT4 – One-Click Trade Management Panel with Trailing Stop, Auto TP and Signal Lines
One Click B3 MT4 is a trade management Expert Advisor for MetaTrader 4. It does not open positions on its own. All entries are made manually or by other EAs. This tool takes over from the moment a position is open and manages Stop Loss, Trailing Stop, Take Profit and closing actions according to your settings.
IAmMaster – designates this chart as the Master for SL/TS modifications on this instrument. Set true on one chart only, false on all others running the same instrument.
It is designed for traders who want to define their risk plan once, set the parameters, and then step away from the screen. If you run it on a VPS it will watch your trades between sessions without interruption. During normal trading hours the built-in sound system reports what matters: a new position detected, SL moved, TP set, position closed. If you hear nothing, nothing important is happening.
This tool is also effective for scalping. It can protect any number of open positions across any number of instruments simultaneously and close all of them, or only profitable ones, with a single click on the selected symbol button.
Please verify before use that your MetaTrader 4 installation includes the sound files order-filled.wav and order-submitted.wav. These are standard MT4 sounds and should be present by default.
STRATEGY TESTER
Visual elements such as buttons, panels and signal lines are not displayed correctly in the Strategy Tester. This is a MetaTrader 4 platform limitation. Order execution, Stop Loss and Take Profit management, Auto TP, Trailing Stop logic, profit calculations and all internal trading mechanisms work normally in the tester. For full visual testing use a demo account.
CONTROL PANELS
The EA provides two independent panels. The Main Panel has two buttons: Close Profit closes all profitable positions across the entire platform, Close All closes every open position across the entire platform. The Instrument Panel is generated automatically from the PanelSymbols parameter. You enter up to 20 symbol names separated by commas. The EA creates a pair of buttons for each symbol: one to close all positions on that instrument, one to close only profitable positions on that instrument. Net profit calculation includes swap and manual commission defined per symbol using Commission_1 to Commission_20. Panel position, button size, spacing, colors and corner anchoring are fully configurable. Individual X and Y coordinates can be set separately for each of the 20 symbol slots. If not defined the panel arranges automatically.
THIRD PANEL (LAST POSITION CONTROL)
In addition to the main panels, the EA has a Third Panel designed for precise, surgical outputs. This panel is also automatically generated from the PanelSymbols parameter. For each specific symbol, it creates a pair of small buttons: one to close the last open position on the instrument if it is currently profitable, and the other to close the last free position if it is on the track. This allows you to quickly manage the latest entry without affecting older positions on the same instrument. Panel position, button sizes, spacing, colors, and font size are fully customizable. Individual X and Y coordinates can be set separately for each predefined symbol slot. If not defined, the panel is arranged
STOP LOSS AND TRAILING STOP
The EA monitors all open positions on the current instrument. When a position reaches the profit distance defined by TriggerPips, the EA places an initial Stop Loss at breakeven offset by SL_Offset_Pips. This is the most important parameter pair. SL_Offset_Pips defines how many pips from the open price the SL is placed. Include your transaction cost and expected slippage in this value. For XAUUSD with a commission of 4.5 USD per lot a safe value is 80 to 100 pips. TriggerPips defines how far the position must travel in profit before the SL is activated. For XAUUSD with longer holds a safe value is 250 to 300 pips. All parameters must be identical on every chart of the same instrument. After the initial SL is set, Trailing Stop takes over if enabled. The small TS square button on the chart toggles trailing on and off. Its color reflects the current state. Trailing settings cover trigger distance, step size, minimum movement and minimum time between modifications. The system uses Global Variables to synchronize state across charts and prevent duplicate modifications.
AUTOMATIC TAKE PROFIT
When EnableAutoTP is active the EA sets Take Profit automatically for every newly opened position that does not already have one. The distance is defined by AutoTP_Pips. Auto TP is applied once per position. If you remove it manually it will not be reapplied. The calculation adapts to the pip structure of the symbol.
VIRTUAL STOP LOSS (VIRTUAL STOP LOSS (VSL)
For traders who prefer to completely hide their risk management from the broker, the EA includes a full-featured Virtual Stop Loss (VSL) and Virtual Trailing Stop system. When enabled, the EA keeps track of the Stop Loss and Trailing Stop levels internally in its memory instead of placing physical stop orders on the broker's server.
The key advantages of a virtual SL are absolute invisibility for the broker and the complete elimination of the broker's slippage during Stop Loss execution. Since the broker cannot see the exit levels, they cannot manipulate or trigger your stops beforehand. Once the market price reaches the virtual level, the EA sends a market order to close the position, executing the exit on your terms. The system also includes a maximum spread filter to prevent premature closures
To enable or disable Virtual SL, a small button with the letter "V" is placed on the graph. This button can be freely moved and placed anywhere on the chart, in any of the four corners. Its size, position, and colors (for ON/OFF states) are fully customizable in the settings. When VSL is active, the physical SL and Trailing Stop functions are disabled to prevent duplicate orders. The system uses global variables to synchronize the state of VSL across all charts
GRAY AND GREEN SIGNAL LINES
The EA draws a two-stage signal structure on the chart based on price action analyzed on the SignalTF timeframe. The Gray line marks the initial impulse. It appears when a candle closes with its body fully beyond the body of the previous candle, confirming directional momentum. The line is placed at the opposite edge of the signal candle body. The Green line marks the corrective entry zone. After the impulse completes, the EA tracks the retracement. When price enters the 50 to 61.8 percent Fibonacci zone of the impulse and then closes back in the direction of the original move, the Green line is placed at the extreme of the retracement within that zone. A Green line cannot exist without an active Gray line. If the Gray structure is invalidated the Green is automatically removed. Lines are restored after chart refresh. The entire structure resets automatically every defined number of hours. Colors, styles and widths are configurable separately for Buy and Sell. The entire logic can be disabled with EnableGrayGreenLogic = false.
TECHNICAL DETAILS
The EA supports hedging accounts. Up to 100 positions are tracked simultaneously. Modification locks prevent duplicate trailing operations. Button states and panel positions are saved locally and restored after platform restart. All trade operations include margin validation before execution.
IAmMaster – designates this chart as the Master for SL/TS/TP modifications on this instrument. Set true on one chart only, false on all others running the same instrument. Example: If you use 3 charts of the same instrument (e.g. XAUUSD), set IAmMaster = true on one chart and IAmMaster = false on the remaining two. The Master chart handles all SL, Trailing Stop and sound notifications. Non-master charts can still open and close positions normally. Note: If you run the EA on a VPS and a laptop simultaneously on the same account, set IAmMaster = true only on the VPS charts and IAmMaster = false on all laptop charts. We write the names of instrument symbols in the EA exactly as the broker describes them.
TROUBLESHOOTING
Before anything else — after setting up the indicator and saving your final parameters, create a chart template with the instrument name. This way you can restore everything in seconds if needed.
If the indicator behaves unexpectedly or causes platform slowdowns, please note: these issues are not caused by this indicator. They are caused by accumulated data from previous chart configurations stored in your platform.
Follow these steps:
-
Go to Tools → Global Variables → delete all variables.
-
Go to File → Open Data Folder.
-
Close MetaTrader completely.
-
In the data folder open the Logs folder and delete everything inside.
-
In the data folder open the History folder, then open your broker folder and delete everything inside.
-
Close the data folder.
-
Reopen MetaTrader — everything will work correctly.
If problems persist, contact me directly. I respond to every message.
SETTINGS:
GENERAL & EA STATE
Language – selects the interface language (Polish/English/German/Russian/Spanish) for main panel labels.
IAmMaster – defines this chart as the Master for SL/TS modifications on this instrument. Set to true on one chart only, false on all others running the same instrument.
InitialEnableEA – EA starts enabled/disabled on chart attach.
StateFileName – template for the EA on/off state INI file per symbol.
TS ADVISOR (External Parameter Sync)
TSAdvisor_Column – selects the column (1 for nervous, 2 for calm) to read from the B_Parameter MT4 indicator.
EnableTSAdvisor – enables/disables reading dynamic Trailing Stop parameters from the B_Parameter MT4 indicator. If disabled, EA uses the static inputs below.
AUTO TP & SL / TRAILING
TriggerPips – distance in pips from the open price for automatic Take Profit placement.
EnableAutoTP – enables/disables automatic TP for new positions.
AutoTP_Pips – profit pip threshold after which the initial protective SL (or VSL) is placed.
SL_Offset_Pips – pip offset from the open price for the initial breakeven SL.
Slippage – max price slippage pips for modifying/closing.
TrailingTriggerPips – pip profit from price to trigger TS update.
TrailingMovePips – pip steps for SL moves during a trailing move.
MinSLMovePips – minimum pip difference for SL modifications. Check the minimum stop order level your broker accepts.
MinSecondsBetweenTrailing – minimum seconds between SL updates.
EnableTrailingStop – global toggle for trailing stop.
TS BUTTON (Trailing Stop Toggle)
ColorOn – TS button background when ON.
ColorOff – TS button background when OFF.
AnchorCorner – chart corner anchor for the TS button (0=Top Left, 1=Top Right, 2=Bottom Left, 3=Bottom Right).
ButtonSize_mm – TS button size in mm.
ButtonPosX – TS button X position from corner.
ButtonPosY – TS button Y position from corner.
TS_TextColor – text color for the TS button.
VIRTUAL SL (VSL)
VSL_AnchorCorner – chart corner anchor for the VSL button (0=Top Left, 1=Top Right, 2=Bottom Left, 3=Bottom Right).
VSL_ButtonSize_mm – VSL button size in mm.
VSL_PosX – VSL button X position from corner.
VSL_PosY – VSL button Y position from corner.
VSL_ColorOn – VSL button background when ON.
VSL_ColorOff – VSL button background when OFF.
VSL_TextColor – text color for the VSL button.
VSL_MaxSpread_Pips – maximum allowed spread (in pips) to close a position when VSL is hit.
MAIN PANEL (Close All / Close Profit)
xOffsetLeft – X position of the main Close Profit button.
yOffsetLeft – Y position of the main Close Profit button.
xOffsetRight – X position of the main Close All button.
yOffsetRight – Y position of the main Close All button.
btnColorProfit – background color for the Close Profit button.
txtColorProfit – text color for the Close Profit button.
btnColorAll – background color for the Close All button.
txtColorAll – text color for the Close All button.
ButtonFontSizeMainPanel – font size for main panel buttons.
SYMBOL PANEL (Panel 1 & 2 - Close All/Profit per Symbol)
PanelSymbols – comma-separated symbol names for individual instrument buttons (up to 20).
PanelCorner – anchor corner for the symbols panel.
PanelX – base X offset for the symbols panel.
PanelY – base Y offset for the symbols panel.
PanelWidthMM – main panel button width in mm.
PanelHeightMM – main panel button height in mm.
ButtonGapMM – spacing between panel buttons in mm.
ButtonWidthMM – per-symbol button width in mm.
ButtonHeightMM – per-symbol button height in mm.
ButtonFontSizePanel – font size for per-symbol buttons.
ButtonTextColor – text color for symbol buttons.
ButtonCloseAllColor – background color for Close All in the symbol panel.
ButtonCloseProfitColor – background color for Close Profit in the symbol panel.
PosX_1 to PosX_20 – custom X position for each symbol button (use -1 for auto).
PosY_1 to PosY_20 – custom Y position for each symbol button (use -1 for auto).
Commission_1 to Commission_20 – per-lot commission for each symbol slot.
PANEL 3 (Last Position - Close Last Loss/Profit per Symbol)
P3_Corner – anchor corner for Panel 3.
P3_X – base X offset for Panel 3.
P3_Y – base Y offset for Panel 3.
P3_ButtonWidthMM – Panel 3 button width in mm.
P3_ButtonHeightMM – Panel 3 button height in mm.
P3_ButtonGapMM – spacing between Panel 3 buttons in mm.
P3_FontSize – font size for Panel 3 buttons.
P3_ColorLoss – background color for the Close Last Loss button.
P3_ColorProfit – background color for the Close Last Profit button.
P3_TextColor – text color for Panel 3 buttons.
P3_PosX_1 to P3_PosX_20 – custom X position for each Panel 3 button (use -1 for auto).
P3_PosY_1 to P3_PosY_20 – custom Y position for each Panel 3 button (use -1 for auto).
TECH SIGNAL LINES (Gray/Green)
EnableGrayGreenLogic – enables/disables Gray and Green signal lines drawing.
SignalTF – timeframe for Gray/Green signal analysis (default M1).
BuyGrayLineColor – color of the Gray Buy signal line.
BuyGreenLineColor – color of the Green Buy signal line.
BuyLineStyle – line style for Buy signals.
BuyLineWidth – width of the Buy signal lines.
SellGrayLineColor – color of the Gray Sell signal line.
SellGreenLineColor – color of the Green Sell signal line.
SellLineStyle – line style for Sell signals.
SellLineWidth – width of the Sell signal lines.
ClearLayoutsEveryHours – hours interval to auto-clear signal lines (0=disabled).
Bots will only bring success when you have access to unlimited capital. Only "eyes and mind" will turn your account green, and simple, clean, fast, and efficient tools will help you achieve that.
Real success requires YOUR brain making decisions. My tools are not bots - they are instruments for traders who think.
Previous day's closing price acts like a magnet → High Low Close MT4
Asian Session sets the direction for London and New York sessions → Asia Session Levels MT4
If you scalp multiple instruments:
One Click B3 MT4, Symbol Positions Panel MT4 , SL TP Toggle Button MT4, Volume Delta MT4 , Volume Delta Scanner MT4
One Click B3 MT4, Symbol Positions Panel MT4 ,SL TP Toggle Button MT4 ,Pips Label Last Trade MT4 , Volume Delta MT4, Volume Delta Scanner MT4
If you invest long-term across multiple instruments:
One Click B3 MT4, Symbol Positions Panel MT4,Volume Delta MT4 , Volume Delta Scanner MT4
If you've read the descriptions and need clarification - contact me. I'll explain every function, setting, and use case to assure you that these tools fit your trading strategy.
