Trading robot ยท MT5

Liquidity Trap EA

by Javacaveman999

Liquidity Trap EA is an automated trading robot for MetaTrader 5 that identifies price action setups near swing points.

High risk

GitHub stars1
Forks0
Last update1 year ago6 May 2025
LicenceNone stated

Overview

Liquidity Trap EA detects specific candle formations using wick-to-body and body-to-average-bar ratios to enter trades based on perceived liquidity traps. The system incorporates trend filters through moving averages, ADX strength, and RSI levels, with optional multi-timeframe analysis. Risk management includes percentage-based lot sizing, trailing stops, and a fixed risk-reward ratio. It features adaptive logic that adjusts thresholds or pauses trading after consecutive losses to mitigate drawdown. The README is minimal.

Details

Author

Javacaveman999 on GitHub

Type

Trading robot

Platform

MetaTrader 5 (MQL5)

Strategy

SMC / ICT / price action, Trend following, Mean reversion, Martingale

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

  • Uses martingale lot scaling: losses can grow fast

Input parameters

Read from LiquidityTrap V1.5.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
SwingLookbackint20Lookback period for swing points
WickRatiodouble0.5Wick-to-body ratio for trap detection candle
BodyRatiodouble0.3Minimum body size ratio relative to average bar size
RiskPercentdouble1.0Base Risk per trade (% of account balance)
MaxTradesint3Maximum number of open trades
Multiplierdouble0.5Multiplier for stop-loss filter (ATR * Multiplier)
RiskRewarddouble2.0Risk-reward ratio for take-profit
UseTrailingStopbooltrueEnable trailing stop for winning trades
TrailStartdouble1.0Trail start (as multiplier of Initial Risk Distance)
TrailStepdouble0.5Trail step in ATR units
ATRPeriodint14Period for ATR calculation
MAPeriodint50Period for trend MA
Show all 38 inputs
NameTypeDefaultDescription
ADXPeriodint14Period for ADX trend strength
RSIPeriodint14Period for RSI
ADXThresholddouble25Base Threshold for ADX trend strength
RsiOversoldThresholddouble35Default Oversold Threshold
RsiOverboughtThresholddouble65Default Overbought Threshold
UseMultiTimeframebooltrueEnable multi-timeframe confirmation
HigherTFENUM_TIMEFRAMESPERIOD_H4Higher timeframe for trend confirmation
EnableLossPausebooltrueEnable pausing trading after consecutive losses
PauseConsecutiveLossesint3Number of consecutive losses to trigger pause
PauseResetBarsint100Bars after which loss-based pause resets automatically (if not reset by win/10 losses first)
AdaptiveRiskbooltrueEnable adaptive risk management based on consecutive losses
AdaptiveConsecutiveLossesint2Consecutive losses to trigger adaptive changes (Risk/Filters)
EnableAdaptiveADXbooltrueTighten ADX threshold during adaptive state?
AdaptiveADXIncreasedouble5.0Amount to increase ADX threshold by
EnableAdaptiveRSIbooltrueTighten RSI thresholds during adaptive state?
AdaptiveRSITightenAmountdouble5.0Amount to tighten RSI thresholds inwards (e.g., 35->40, 65->60)
AllowTradeOnRangebooltruev1.5: Allow opening trades if market regime is Ranging?
AvoidHighImpactNewsbooltrueAvoid trading during high impact news (Requires external data source)
NewsBufferint60Buffer time in minutes before/after news
TradeMondaybooltrueAllow trading on Monday
TradeTuesdaybooltrueAllow trading on Tuesday
TradeWednesdaybooltrueAllow trading on Wednesday
TradeThursdaybooltrueAllow trading on Thursday
TradeFridaybooltrueAllow trading on Friday
EnableHourFilterboolfalseEnable trading only during specific hours
AllowedHoursstring8,9,10,14,15,16Allowed hours (Broker Time, 24h format). Use comma separation or ranges ("8-11,15-17")

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone Javacaveman999/LiquidityTrap.MQ5 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

Simba Sniper EA

by oriokie
6 stars

This MetaTrader 5 expert advisor focuses on XAUUSD using a multi-timeframe scalping approach based on Smart Money Concepts. It identifies institutional market structures by analyzing H4 trends, H1 supply and demand zones, and M5 entries. The logic incorporates order block detection, Fair Value Gaps (FVG), and liquidity

MT5 Trading robot SMC / ICT / price actionScalpingTrend following High risk
Updated 8 months ago Custom licence GitHub repository of Simba Sniper EA
4 stars

This MetaTrader 5 expert advisor utilizes a combination of Bollinger Bands, Relative Strength Index, and Average Directional Index to identify entries. It supports multi-timeframe analysis for trend confirmation and provides optional filters for Average True Range and price action patterns such as hammers. Risk managem

MT5 Trading robot Trend followingMean reversionSMC / ICT / price action High risk
Updated 1 year ago None stated GitHub repository of Alif BB RSI ADX MTFA
1 stars

LQS AI Institutional Engine is a MetaTrader 5 robot designed for trading gold using market microstructure analysis. It combines four analytical modules focusing on liquidity sweeps, order flow divergence, Wyckoff accumulation and distribution phases, and multiple anchored VWAP levels. The system features an integrated

MT5 Trading robot SMC / ICT / price actionAI / machine learningMean reversion High risk
Updated 4 months ago None stated GitHub repository of Lqs Ai Institutional Engine

EA Scalper XAUUSD

by francomascareloai
237 stars

EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di

MT5 Trading robot SMC / ICT / price actionIndicator crossoverScalping High risk
Updated 3 months ago Custom licence GitHub repository of EA Scalper XAUUSD

Prop Firm EA Fleet

by cgemise971
20 stars

Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man

MT5 Trading robot SMC / ICT / price actionBreakoutScalping High risk
Updated 9 months ago None stated GitHub repository of Prop Firm EA Fleet

ICT System EA

by 26730023-PhamPhuNguyenHung
5 stars

This MetaTrader 5 expert advisor automates trading strategies based on Inner Circle Trader (ICT) and Smart Money Concepts (SMC). It utilizes a confluence engine to evaluate market structure, PDA zones, fair value gaps, order blocks, and SMT divergence against correlated symbols like the DXY. Designed specifically for p

MT5 Trading robot SMC / ICT / price actionTrend followingMean reversion
Updated 6 months ago None stated GitHub repository of ICT System EA

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