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.
Read from LiquidityTrap V1.5.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
SwingLookback
int
20
Lookback period for swing points
WickRatio
double
0.5
Wick-to-body ratio for trap detection candle
BodyRatio
double
0.3
Minimum body size ratio relative to average bar size
RiskPercent
double
1.0
Base Risk per trade (% of account balance)
MaxTrades
int
3
Maximum number of open trades
Multiplier
double
0.5
Multiplier for stop-loss filter (ATR * Multiplier)
RiskReward
double
2.0
Risk-reward ratio for take-profit
UseTrailingStop
bool
true
Enable trailing stop for winning trades
TrailStart
double
1.0
Trail start (as multiplier of Initial Risk Distance)
TrailStep
double
0.5
Trail step in ATR units
ATRPeriod
int
14
Period for ATR calculation
MAPeriod
int
50
Period for trend MA
Show all 38 inputs
Name
Type
Default
Description
ADXPeriod
int
14
Period for ADX trend strength
RSIPeriod
int
14
Period for RSI
ADXThreshold
double
25
Base Threshold for ADX trend strength
RsiOversoldThreshold
double
35
Default Oversold Threshold
RsiOverboughtThreshold
double
65
Default Overbought Threshold
UseMultiTimeframe
bool
true
Enable multi-timeframe confirmation
HigherTF
ENUM_TIMEFRAMES
PERIOD_H4
Higher timeframe for trend confirmation
EnableLossPause
bool
true
Enable pausing trading after consecutive losses
PauseConsecutiveLosses
int
3
Number of consecutive losses to trigger pause
PauseResetBars
int
100
Bars after which loss-based pause resets automatically (if not reset by win/10 losses first)
AdaptiveRisk
bool
true
Enable adaptive risk management based on consecutive losses
AdaptiveConsecutiveLosses
int
2
Consecutive losses to trigger adaptive changes (Risk/Filters)
EnableAdaptiveADX
bool
true
Tighten ADX threshold during adaptive state?
AdaptiveADXIncrease
double
5.0
Amount to increase ADX threshold by
EnableAdaptiveRSI
bool
true
Tighten RSI thresholds during adaptive state?
AdaptiveRSITightenAmount
double
5.0
Amount to tighten RSI thresholds inwards (e.g., 35->40, 65->60)
AllowTradeOnRange
bool
true
v1.5: Allow opening trades if market regime is Ranging?
AvoidHighImpactNews
bool
true
Avoid trading during high impact news (Requires external data source)
NewsBuffer
int
60
Buffer time in minutes before/after news
TradeMonday
bool
true
Allow trading on Monday
TradeTuesday
bool
true
Allow trading on Tuesday
TradeWednesday
bool
true
Allow trading on Wednesday
TradeThursday
bool
true
Allow trading on Thursday
TradeFriday
bool
true
Allow trading on Friday
EnableHourFilter
bool
false
Enable trading only during specific hours
AllowedHours
string
8,9,10,14,15,16
Allowed hours (Broker Time, 24h format). Use comma separation or ranges ("8-11,15-17")
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone Javacaveman999/LiquidityTrap.MQ5 from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
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.
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
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
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
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
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
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