Virtual SL TP Trailing Pro for MT4/MT5 – Hidden Stop Loss & Risk Manager EA for Prop Firm Traders

Virtual SL TP Trailing Pro for MT4/MT5 – Hidden Stop Loss & Risk Manager EA for Prop Firm Traders

17 July 2025, 14:30
The Hung Ngo
3
306

Welcome to this practical guide on how to use Virtual SL TP Trailing Pro on MetaTrader 4 and MetaTrader 5. This tool helps you manage your Stop Loss (SL) and Take Profit (TP) virtually – hidden from the broker – while still keeping full control over your risk and open trades.

Public channel: CLICK HERE

Official Market Versions

You can get the full versions of the EA directly from the MQL5 Market:

The full versions work on both demo and real accounts, with all features available.

What is Virtual SL TP Trailing Pro?

Virtual SL TP Trailing Pro is a trade management assistant. It does not open new trades for you – instead, it:

  • Sets virtual SL and TP that are hidden from the broker.
  • Automatically manages SL/TP based on rules you define (Auto SL/TP).
  • Can apply Break-Even to lock in your entry price plus an offset.
  • Supports two Trailing Stop styles: Risk-Reward based and ATR based.
  • Shows colored lines and labels on the chart for your virtual SL/TP.
  • Includes an on-chart control panel (GUI) with ON/OFF buttons and live status.

Think of it like a “bodyguard” EA that stands between your broker and your real stop levels: your broker sees no SL/TP, but the EA watches the price and closes your trades when your virtual rules are hit.


How Does a “Virtual” SL/TP Work?

Normally, when you place a trade in MT4/MT5, your SL and TP are sent to the broker’s server. With this EA:

  • Your real trade is opened with no visible SL/TP (or the EA removes them).
  • The EA stores your stop levels inside the program (and optionally in a file).
  • It constantly checks the price using a timer.
  • When price hits your virtual SL or TP, the EA closes the position immediately.

Important to understand:

  • If your platform, VPS, or PC is off, the virtual SL/TP cannot protect you.
  • If you remove the EA from the chart, the protection stops (unless you re-attach and reload the data).
  • Because SL/TP are hidden, the broker cannot see your exact exit levels in advance.

This approach is popular with traders who are worried about visible stops being hunted, or who like more flexible, rule-based management than the built-in MT4/MT5 features.


Installation and Initial Setup

Step-by-Step Installation

  1. Download the Virtual SL TP Trailing Pro file (MT4 or MT5) from the Market or from the link at the end of this article.
  2. Open your MT4 or MT5 platform.
  3. In MetaTrader, go to:
    File → Open Data Folder
    Then:
    • MQL4 → Experts (for MT4)
    • MQL5 → Experts (for MT5)
  4. Copy the downloaded file into the Experts folder.
  5. Restart your MT4/MT5 platform so it can detect the new EA.
  6. In the Navigator window, expand Expert Advisors, find Virtual SL TP Trailing Pro and drag it onto your chart.
  7. In the EA settings, make sure:
    • Allow automated trading (or “Allow Algo Trading”) is checked.

First-Run Checklist

  • Check that the EA’s on-chart panel appears (with buttons like ON/OFF, Auto SL/TP, Break-Even, Trailing).
  • Make sure the global MetaTrader “Algo Trading” button is green / enabled.
  • Start testing on a demo account to understand how virtual SL/TP behave.

Overview of the On-Chart Control Panel (GUI)

When you attach the EA, a control panel appears on your chart. This panel is designed to be simple even for non-programmers:

  • Main ON/OFF button
    – Big button that says “Turn ON” / “Turn OFF”.
    – When ON, the Status label is green and the EA actively manages your trades.
    – When OFF, the EA stops managing SL/TP (but keeps your settings).
  • Save to File
    – Button showing ON/OFF.
    – When ON, your virtual SL/TP data and settings are saved, so they can be restored after restart.
  • Draw SL/TP Lines
    – Turns chart lines and labels on or off.
    – When ON, you will see horizontal lines and small labels for each virtual SL and TP.
  • Use Symbol Filter
    – Lets the EA work only on selected symbols (e.g., “XAUUSD,EURUSD,BTCUSD”).
    – Useful if you run the EA on one chart but have many open trades across symbols.
  • Auto SL/TP
    – One-click toggle to let the EA automatically assign SL/TP in pips to new trades.
  • Break-Even
    – Turns the Break-Even feature ON/OFF, moving SL to entry (plus optional offset) after a certain profit.
  • Trailing Stop
    – Activates the trailing logic (Risk-Reward based or ATR based).

All key buttons change color between gold (ON) and gray (OFF), so you can see at a glance which features are active.


Detailed Explanation of Inputs

1. General Settings

  • Enable Save to File
    When ON, the EA saves all current virtual SL/TP data into a .bin file. This is very useful if you close and reopen MetaTrader or restart your VPS.

  • File Name
    The base name of the file where your virtual levels are stored. You can leave the default or enter your own name, for example GoldManager .

  • Draw SL/TP Lines
    When ON, each virtual SL/TP has a horizontal line plus a small label showing the price and ticket number. You can drag these lines with the mouse to adjust the levels.

  • SL Line Color / TP Line Color
    Choose your favorite colors so you can easily distinguish SL vs TP. For example: Red for SL, Green for TP.

  • Line Style
    Style of the lines: solid, dashed, dotted, etc. Some styles may look similar if the chart is heavily zoomed out (this is a platform limitation).

  • Scan Interval (ms)
    How often (in milliseconds) the EA scans your trades and prices.
    Example: 300 ms ≈ a little over 3 times per second.
    Smaller values → faster reaction but more CPU usage.
    Recommended range: 200–1000 ms for most traders.

  • Use Symbol Filter & Selected Symbols
    When enabled, the EA only manages trades whose symbol is on the list, e.g. XAUUSD,EURUSD,BTCUSD .
    This helps you run the EA on one chart while controlling multiple symbols in a controlled way.

2. Auto Stop Loss / Take Profit

  • Use Auto SL/TP
    When ON, every new trade the EA detects gets a virtual SL and/or TP automatically, based on the pip values you set.

  • Auto SL Pips & Auto TP Pips
    These are distances in pips from entry.
    Example: Auto SL = 50, Auto TP = 100 → 1:2 risk-reward template.
    In v1.10, the EA will block you from enabling Auto SL/TP if both are set to 0, to avoid a “fake ON” configuration that does nothing.

3. Break-Even

  • Break-Even On/Off
    When ON, the EA can move your SL to break-even (entry price) once the trade has reached a certain profit.

  • Break-Even Trigger (pips)
    How many pips of profit are needed before Break-Even activates.
    Example: 20 pips trigger → once your trade is +20 pips, the EA is allowed to move the SL.

  • Break-Even Offset (pips)
    How many extra pips above entry (for buys) or below entry (for sells) you want to protect.
    Example: Offset = 10 → your SL is moved 10 pips beyond break-even, so you secure a small guaranteed profit.

4. Trailing Stop Settings

  • Trailing Stop On/Off
    Turns the trailing logic on.
    Trailing only works after a valid SL already exists (for Risk-Reward mode) or once the ATR conditions are met.

  • Trailing Mode
    Choose between:

    • Risk Reward Ratio (RR) – Trailing based on how many “R” (risk units) price has moved in your favor.
    • ATR – Trailing based on market volatility using the Average True Range indicator.
  • Risk Reward Ratio (RR %)
    Controls how aggressively the SL moves after the trade has gained multiple R units. Higher values mean the SL will catch up faster with the price, locking more profit but leaving less room for pullbacks.

  • ATR Period, ATR Timeframe, ATR Multiplier
    These settings define the ATR calculation:

    • ATR Period – How many candles are used to calculate ATR (commonly 14).
    • ATR Timeframe – Which timeframe ATR is taken from (Current, M15, H1, etc.).
    • ATR Multiplier – How many ATR units away the SL should sit from current price. For example, 1.5 × ATR puts the stop a bit further away than pure ATR.

Practical How-To Examples

Example 1 – Simple Hidden SL/TP (No Trailing)

  1. Attach the EA to your chart and make sure the status is ON.
  2. Turn Auto SL/TP to ON.
  3. Set:
    • Auto SL Pips = 30
    • Auto TP Pips = 60
  4. Place a buy or sell trade normally (from MT4/MT5 or from your other EA).
  5. The EA removes any visible SL/TP and replaces them with virtual levels:
    • 30 pips SL (hidden)
    • 60 pips TP (hidden)
  6. If price hits one of these virtual levels, your position is closed automatically.

Example 2 – Break-Even + Risk-Reward Trailing

  1. Enable Auto SL/TP with an initial SL (e.g. 40 pips) and no TP (TP = 0) if you want to let the trailing exit the trade.
  2. Turn Break-Even ON:
    • Trigger = 30 pips
    • Offset = 5 pips
  3. Turn Trailing Stop ON and choose Risk Reward Ratio mode.
  4. Set RR Percentage (for example 0.2–0.5 depending on how aggressively you like to trail).
  5. Trade as usual. The EA will:
    • First, protect you by moving SL to entry+5 pips once profit reaches 30 pips.
    • Then, as price keeps moving, it will push the SL forward step by step based on the risk-reward logic.

Example 3 – ATR Trailing for Volatile Markets

  1. Attach the EA and set a normal initial SL using Auto SL (for example 50 pips on gold).
  2. Turn Trailing Stop ON and select ATR mode.
  3. Set:
    • ATR Period = 14
    • ATR Timeframe = H1 (for example)
    • ATR Multiplier = 1.5 or 2.0
  4. The EA will move your SL following the market volatility: when markets are calm, stops move more tightly; when volatility expands, the stop gives more breathing room.

Tips, Safety Notes & Troubleshooting

General Tips

  • Always test your configuration on a demo account first.
  • Do not set Scan Interval too low without reason. Values like 100–500 ms are usually enough.
  • If you use VPS, double-check that both the global Algo Trading button and the EA Status are ON.
  • Use Save to File if you plan to restart the platform and want the EA to remember your virtual levels.

Common Questions

  • Q: Does this EA open trades?
    A: No. It only manages existing trades (from you or from your other EAs).

  • Q: What happens if MT4/MT5 is closed or my VPS shuts down?
    A: While the platform is off, virtual SL/TP are not active, because they live inside the EA. When you reopen and reattach the EA (with Save to File ON), it reloads your data and continues from there.

  • Q: Can I use it in the Strategy Tester?
    A: Yes, but remember that virtual SL/TP management depends on the tick flow and timer. Always confirm your settings on a demo account in live markets as well.

  • Q: I turned Auto SL/TP ON but nothing happens.
    A: Check that at least one of Auto SL Pips or Auto TP Pips is > 0. In v1.10, the EA will warn you if both are 0 when you try to use Auto SL/TP.


Version History (Short)

v1.20 – Label & UI Enhancements Update

  • More informative SL/TP labels: Stop Loss and Take Profit lines now display the estimated money you would lose/win and the percentage of your account (based on Balance) at those levels.
  • RR shown at Entry: A new Entry label appears and shows the Risk:Reward (RR) ratio whenever both SL and TP are set.
  • Instant updates while dragging/zooming: Labels now update immediately when you scroll, zoom, or drag the chart — no need to wait for the next tick.
  • Optional UI Panel: Added a new input option to enable/disable the UI panel. When disabled, the EA still runs normally in the background.

v1.10 – Minor Stability Update

  • Safer Auto SL/TP: You can no longer enable Auto SL/TP when both SL and TP are set to 0. This prevents a common user mistake and makes the feature behavior clearer.
  • Smoother chart editing: Only the SL/TP lines are draggable now; labels no longer interfere when you try to adjust levels on the chart.
  • Improved save/load engine: The file header now stores the exact number of saved records, making reloads cleaner and avoiding “ghost” or missing entries after restart.
  • More stable timer on MT4: Internal OnTimer handling has been adjusted so the EA checks orders at a more stable rhythm, according to your chosen scan interval.

Final Words

By using Virtual SL TP Trailing Pro, you can:

  • Hide your real exit levels from the broker.
  • Standardize your risk with Auto SL/TP templates.
  • Protect winning trades using Break-Even and Trailing Stops.
  • Control everything from a clean, on-chart control panel.

The full versions are available here:
MT5: https://www.mql5.com/en/market/product/144131
MT4: https://www.mql5.com/en/market/product/144276

Demo Version Note

A demo version file is attached at the end of this article. It is intended for testing purposes and can only be used on demo accounts (it does not trade on real accounts). For trading on live/real accounts, please install the official Market versions linked above.

Happy trading and safe risk management!