Trading robot · MT5

Phantom Edge

by tHeStRyNg

Phantom Edge is a MetaTrader 5 expert advisor primarily designed for trading BTCUSD.

GitHub stars1
Forks0
Last update1 year ago6 Feb 2025
LicenceNone stated

Overview

Phantom Edge identifies entries using a combination of technical indicators, including RSI, MACD, and SMA, while validating setups through multi-timeframe analysis of M15 liquidity sweeps and M30 trend breaks. The EA features comprehensive trade management tools such as ATR-based dynamic trailing stops, profit locking, and partial position closing. Risk is managed through a recovery mode and a drawdown-triggered hedging system that uses lot scaling to manage open baskets.

Details

Input parameters

Read from PHANTOM_EDGE_v0.15.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
Lotsdouble0.1Fallback lot size if risk-based calc fails [Trade Settings]
UseIncrementalLotsbooltrueEnable incremental lot sizing [Trade Settings]
LotIncrementdouble0.2Increment size for lot scaling [Trade Settings]
MaxTradesint1Maximum number of normal trades allowed [Trade Settings]
TradeFrequencyint10Minimum seconds between trades [Trade Settings]
SLMultiplierdouble7.5Stop-loss distance multiplier (e.g., ATR multiplier) [Trade Settings]
TPdouble1750Fixed take profit offset (price units) for normal trades (0 to disable) [Trade Settings]
UseTrailingStopbooltrueEnable trailing stop [Trade Settings]
TrailingStopMultiplierdouble3.5Trailing stop distance = ATR * multiplier [Trade Settings]
UseTrailingTPbooltrueEnable trailing take profit [Trade Settings]
EnableHedgingbooltrueEnable hedging on drawdown [Risk Management]
MaxDrawdownPercentdouble10.0Drawdown percentage to trigger hedging [Risk Management]
Show all 40 inputs
NameTypeDefaultDescription
HedgeLotMultiplierdouble1.5Hedge trade lot multiplier [Risk Management]
EnableRecoveryModebooltrueEnable recovery mode [Risk Management]
ReverseModeboolfalseInvert trade signals if enabled [Risk Management]
ReverseBreakoutTradesboolfalseReverse breakout trade signals if enabled [Risk Management]
MaxVolatilityTradesint2Maximum breakout trades allowed [Risk Management]
UseProfitLockbooltrueEnable profit lock mechanism [Profit Protection]
ProfitLockPercentdouble2.0Equity must increase by this % from trade entry to trigger profit lock [Profit Protection]
UseDynamicTPbooltrueUse ATR-based dynamic take profit [Profit Protection]
DynamicTPMultiplierdouble2.0Multiplier for ATR to set dynamic TP [Profit Protection]
UseDynamicSLAdjustmentbooltrueEnable dynamic SL tightening for fast profit moves [Profit Protection]
SLAdjustmentThresholddouble0.5If price moves > this multiple of ATR in one candle, adjust SL [Profit Protection]
SLTightenMultiplierdouble0.5New SL distance = ATR * this multiplier (from current price) [Profit Protection]
UseTimeBasedExitboolfalseEnable time-based trade exit [Profit Protection]
TradeMaxDurationMinutesint120Maximum allowed trade duration in minutes [Profit Protection]
UseCurrencyBasedTPboolfalseEnable fixed-dollar TP instead of pip-based [Profit Protection]
CurrencyTPdouble50.0Fixed dollar profit target per trade [Profit Protection]
RSI_Periodint14Period for RSI indicator [Indicators]
MA_Periodint50Period for the SMA (for trend detection) [Indicators]
MACD_Fastint12MACD fast period [Indicators]
MACD_Slowint26MACD slow period [Indicators]
MACD_Signalint9MACD signal period [Indicators]
ATR_Periodint14ATR period [Indicators]
ATR_Average_Periodint14ATR average period (for breakout validation) [Indicators]
EnableVolatilityBreakoutboolfalseEnable breakout trades based on volatility [Volatility Breakout]
ATR_Multiplierdouble2.0Breakout condition: ATR > (average ATR * multiplier) [Volatility Breakout]
SL_Pointsint50Fixed SL in points for breakout trades [Volatility Breakout]
TP_Pointsint100Fixed TP in points for breakout trades [Volatility Breakout]
Lookback_Candlesint3Number of candles to look back for breakout [Volatility Breakout]

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone tHeStRyNg/phantom_edge from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

Nyao Scalper

by elrizwiraswara
173 stars

Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT

MT5 Trading robot ScalpingTrend followingMartingale High risk
Updated 3 months ago BSD-3-Clause GitHub repository of Nyao Scalper

EA XAUUSD Premium

by diditgravatar
4 stars

This MetaTrader 5 expert advisor is designed for gold trading, utilizing a multi-timeframe strategy across the M15, H1, and H4 charts. It integrates technical indicators including ADX, RSI, and Moving Averages to identify trend-following and breakout opportunities. Risk controls include dynamic lot sizing based on acco

MT5 Trading robot Trend followingBreakoutGrid High risk
Updated 1 year ago None stated GitHub repository of EA XAUUSD Premium

Nolo Trading Bot

by festomanolo
4 stars

This expert advisor for MetaTrader 5 is a multi-strategy system that utilizes market regime detection to switch between trend following, range trading, and breakout modes. It incorporates a wide array of technical indicators, including Moving Averages, RSI, MACD, Ichimoku, and SuperTrend. The bot manages risk through v

MT5 Trading robot Trend followingMean reversionBreakout High risk
Updated 6 months ago MIT GitHub repository of Nolo Trading Bot

EA SMC Engine

by Pauloeduspbr
3 stars

This automated trading robot for MetaTrader 5 implements Smart Money Concepts (SMC) and ICT principles using a hybrid architecture. Trading logic and signal detection are processed within a native C++ DLL, while the MQL5 bridge handles trade execution and data feeding. The system identifies market structure shifts, inc

MT5 Trading robot SMC / ICT / price actionBreakoutTrend following
Updated 5 months ago MIT GitHub repository of EA SMC Engine
2 stars

This MetaTrader 5 expert advisor combines Bollinger Band mean-reversion, squeeze breakouts, and EMA crossover trend following. It filters for ranging markets using a long-period EMA slope to execute reversal trades with candlestick confirmation, specifically identifying Doji patterns at the bands. Risk management inclu

MT5 Trading robot Mean reversionBreakoutIndicator crossover

This MetaTrader 5 expert advisor executes a multi-stage trading strategy focusing on H1 trendline breakouts and RSI divergences. It refines entries on the M5 timeframe using Change of Character and micro Break of Structure signals. The EA includes automated risk management with percentage-based lot sizing and ATR-based

MT5 Trading robot SMC / ICT / price actionBreakoutTrend following

More trading robots

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers