Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

KSQ Fair Value Gap EA FVG with Regime Detection and Dual SL TP Mode - expert for MetaTrader 5

Views:
160
Rating:
(1)
Published:
Updated:
KSQ_FVG_EA.mq5 (36.64 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

KSQ Fair Value Gap EA is a fully automated Expert Advisor that 

trades institutional Fair Value Gaps (FVGs) with built-in regime 

detection to avoid low-quality setups in ranging markets.


━━━ CORE STRATEGY ━━━

Detects bullish and bearish 3-bar FVG patterns and enters when 

price pulls back into the unfilled zone. Each FVG is tracked 

individually — once traded, it will not fire again.


━━━ REGIME DETECTION ━━━

- EMA Filter — Higher timeframe EMA50/EMA200 bias (configurable TF)

- ADX Filter — Minimum trend strength + DI+/DI- directional check

- Combined Mode — Both conditions must align for a valid signal

- Off Mode — Trade all FVGs without restriction


━━━ STOP LOSS & TAKE PROFIT ━━━

Both SL and TP support two independent modes:

- ATR-Based — Multiplier × ATR for dynamic volatility-adjusted levels

- Fixed Points — Set exact point distance for consistent sizing


━━━ LOT SIZING ━━━

- Fixed Lot — Consistent lot size every trade

- Risk-Based — Auto-calculates lot size from account % risk per trade


━━━ TRADE MANAGEMENT ━━━

- Partial close at mid-TP or configurable R:R level

- ATR or points-based trailing stop

- Max simultaneous trades cap


━━━ RISK PROTECTION ━━━

- Daily drawdown kill switch (%)

- Total drawdown kill switch (%)

- Session time filter (hour-based)

- Push notification and alert support

One year back test not yet optimized

BarStats Indicator – Lightweight, EA-friendly MT5 Tool BarStats Indicator – Lightweight, EA-friendly MT5 Tool

MT5 indicator showing bar index, price difference in points, and percentage change. Ideal for EA integration and fast analysis.

ASQ NeuralNet Pure MQL5 Neural Network Library ASQ NeuralNet Pure MQL5 Neural Network Library

Complete deep learning library in pure MQL5. Build, train and deploy neural networks natively in MetaTrader 5. No DLLs, no Python, no external APIs.

Pivot point Pivot point

Line to change direction

MACD Signals MACD Signals

Indicator edition for new platform.