LPE Market Indicator User Manual

LPE Market Indicator v1.0

User Manual – Production Release

Release Date: February 1, 2026
Version: 1.0 (Production)
Category: Entry Gate Analysis – Liquidity & Participation
Platform: MetaTrader 5
Developer: GomerAI LLC
Website: https://gomerai.com

Thank you for reading this post, don't forget to subscribe!

Overview

The LPE (Liquidity & Participation Engine) Market Indicator is a professional-grade entry gate filter that evaluates market conditions before allowing trades. It combines liquidity analysis (spread, volume, ATR) with session quality assessment (time-of-day, movement quality) to determine if market conditions are favorable for trading.

Purpose: Act as a gatekeeper – only allow trades when market conditions meet quality thresholds.

Context-Only Analysis: This indicator provides market quality assessment only and does not generate trade signals.


What is LPE?

LPE analyzes two critical dimensions:

  1. Liquidity Score (0.0-1.0) – Market depth and transaction quality
  • ATR-based volatility (higher ATR = more liquidity)
  • Spread quality (tighter spread = better liquidity)
  • Volume analysis (higher volume = more participation)
  1. Session Quality (0.0-1.0) – Time-of-day and movement quality
  • Trading session identification (London, NY, Asian)
  • Session overlap bonuses (London/NY = peak activity)
  • Price movement quality (trending vs choppy)

Combined Quality Score: Average of both scores, displayed as colored histogram (0-100%).


Key Features

✅ Separate Window Display

  • Histogram in dedicated window below chart
  • Never empty – shows quality on every bar
  • Color-coded: Red (poor), Orange (moderate), Green (good)

✅ Dual-Scoring System

  • Liquidity Score: Market depth assessment
  • Session Quality: Time-of-day optimization
  • Combined Score: Overall market quality

✅ Visual Quality Feedback

  • Red bars (<30%): Poor conditions – avoid trading
  • Orange bars (30-70%): Moderate conditions – trade cautiously
  • Green bars (>70%): Good conditions – favorable for trading

✅ EA Compatible

  • Works with GomerAI MultiStrat Networked EA
  • Provides entry gate filter data
  • AITL integration ready

Installation

Step 1: Copy File

  1. Download LPE_Market_Indicator_v1.0.mq5
  2. Copy to: [MT5 Data Folder]/MQL5/Indicators/GomerAI/LPE/
  3. Create folder if it doesn’t exist

Step 2: Compile

  1. Open MetaEditor (F4)
  2. Navigate to file
  3. Click “Compile” (F7)
  4. Verify: “0 errors”

Step 3: Attach to Chart

  1. Open any chart
  2. Navigator → Indicators → Custom
  3. Drag “LPE_Market_Indicator_v1.0” onto chart
  4. Configure parameters
  5. Click “OK”

Step 4: Verify

  • Separate window appears below chart
  • Colored histogram visible
  • Bars show on every candle
  • Initialization message in Experts log

Visual Elements

Colored Histogram

Red Bars (<30% quality):

  • Meaning: Poor market conditions
  • Characteristics: Wide spreads, low volume, off-session, choppy movement
  • Action: Avoid trading or reduce position sizes significantly
  • Example: Asian session, low liquidity periods

Orange Bars (30-70% quality):

  • Meaning: Moderate market conditions
  • Characteristics: Average spreads, moderate volume, transitional sessions
  • Action: Trade cautiously, use tighter stops
  • Example: Session transitions, pre-news periods

Green Bars (>70% quality):

  • Meaning: Good market conditions
  • Characteristics: Tight spreads, high volume, peak sessions, trending movement
  • Action: Favorable for trading, normal position sizing
  • Example: London/NY overlap, trending markets

Understanding the Scores

Liquidity Score (0.0-1.0)

Components:

  1. ATR (50% weight): Higher ATR = more liquidity
  2. Spread (30% weight): Tighter spread = better quality
  3. Volume (20% weight): Higher volume = more participation

High Liquidity (0.7-1.0):

  • Market moving with good range
  • Spreads tight
  • Volume above average
  • Easy to enter/exit positions

Low Liquidity (0.0-0.3):

  • Market stagnant
  • Spreads wide
  • Volume below average
  • Difficult execution, slippage risk

Session Quality (0.0-1.0)

Session Weights:

  • Asian Session (00:00-09:00 UTC): 0.3 weight (lower activity)
  • London Session (08:00-17:00 UTC): 1.0 weight (high activity)
  • NY Session (13:00-22:00 UTC): 1.0 weight (high activity)
  • London/NY Overlap (13:00-17:00 UTC): +0.2 bonus (peak activity)
  • Dead Zone (22:00-00:00 UTC): 0.1 weight (very low activity)

Movement Quality (40% of score):

  • Body-to-range ratio
  • Higher ratio = more directional movement (trending)
  • Lower ratio = more wicks (choppy, ranging)

High Session Quality (0.7-1.0):

  • Peak trading hours
  • Directional price movement
  • Multiple markets active

Low Session Quality (0.0-0.3):

  • Off-hours trading
  • Choppy, ranging movement
  • Single market (or none) active

Input Parameters

Liquidity Analysis Settings

InpATR_Period (Default: 14)

  • ATR calculation period
  • Range: 10-20
  • Higher values: smoother, slower to adapt
  • Lower values: more reactive, more noise

InpATR_Lookback (Default: 50)

  • Bars for ATR normalization
  • Range: 30-100
  • Determines ATR relative scoring

InpVolume_Period (Default: 20)

  • Volume moving average period
  • Range: 10-50
  • Used for volume quality assessment

InpSpread_MaxPoints (Default: 30.0)

  • Maximum acceptable spread in points
  • Instrument-specific (forex typically 2-5, indices 1-10)
  • Spreads above this = poor liquidity score

Session Quality Settings

InpMovement_Lookback (Default: 10)

  • Bars for movement quality assessment
  • Range: 5-20
  • Recent price action analysis window

Session Weight Inputs:

  • InpAsian_SessionWeight: 0.3 (default)
  • InpLondon_SessionWeight: 1.0 (default)
  • InpNY_SessionWeight: 1.0 (default)
  • InpOverlap_SessionBonus: 0.2 (default)

Customization: Adjust if your strategy favors specific sessions

Display Options

ShowPanel (Default: true)

  • Enable/disable info panel (not implemented in v1.0)

Color Settings:

  • ColorPoor: Red (default) – Poor quality
  • ColorModerate: Orange (default) – Moderate quality
  • ColorGood: LimeGreen (default) – Good quality

Best Practices

1. Use as Entry Gate

  • Before entering trade: Check LPE histogram
  • Green bars: Normal position sizing
  • Orange bars: Reduce size by 50%
  • Red bars: Avoid trading or use micro lots

2. Session Awareness

  • Best trading: London/NY overlap (13:00-17:00 UTC)
  • Caution: Asian session, session transitions
  • Avoid: Dead zone (22:00-00:00 UTC)

3. Combine with Other Indicators

  • LPE assesses when to trade (market quality)
  • Use other indicators for what to trade (direction, entry)
  • Example: LWSWING for structure + LPE for timing

4. Instrument-Specific Calibration

  • Forex: Default settings work well
  • Indices: Increase InpSpread_MaxPoints (10-20)
  • Commodities: Adjust ATR settings for volatility
  • Crypto: Increase spread and ATR thresholds

5. Backtest Your Thresholds

  • Track win rate by LPE score ranges
  • Identify your optimal entry thresholds
  • Adjust session weights based on results

Troubleshooting

Histogram Always Red

Possible Causes:

  • InpSpread_MaxPoints too low for instrument
  • Trading during off-hours
  • Low volatility period

Solution:

  • Increase InpSpread_MaxPoints to match typical spreads
  • Wait for active session
  • Lower session may be valid – don’t force trades

Histogram Always Green

Possible Causes:

  • InpSpread_MaxPoints too high
  • ATR lookback too short
  • Session weights too generous

Solution:

  • Adjust InpSpread_MaxPoints to be more restrictive
  • Increase InpATR_Lookback
  • Fine-tune session weights

No Visual Output

Check:

  • Indicator compiled successfully
  • Attached to correct chart
  • Sufficient bars on chart (need 60+)
  • Check Experts log for errors

Error 4014 (Expected)

This is normal.

  • Indicator attempts AITL connection
  • MT5 blocks WebRequest in indicators
  • Indicator runs in offline mode
  • Data flows through EA when attached

Integration with GomerAI EA

When Used with EA:

  • EA reads liquidity and session scores
  • Scores transmitted to AITL
  • Used as entry gate filter
  • Trades only executed when LPE conditions met

Buffer Layout (for EA developers):

  • Buffer 0: QualityVisual (0-100% for display)
  • Buffer 1: QualityColorIndex (0/1/2 for color)
  • Buffer 2: LiquidityScore (0.0-1.0) [EA READS]
  • Buffer 3: SessionQuality (0.0-1.0) [EA READS]

Quick Reference

Quality Score Interpretation

ScoreColorMeaningAction
0-30%RedPoorAvoid/reduce significantly
30-50%OrangeBelow AverageCaution, reduce size
50-70%OrangeAbove AverageTrade cautiously
70-100%GreenGoodNormal trading

Session Quick Guide (UTC)

SessionHoursQualityNotes
Asian00:00-09:00LowAvoid or scalp only
London08:00-17:00HighActive trading
NY13:00-22:00HighActive trading
Overlap13:00-17:00PeakBest conditions
Dead Zone22:00-00:00Very LowAvoid

Parameter Quick Adjust

Trading StyleATR_PeriodATR_LookbackSpread_MaxPoints
Scalping1030Instrument-specific
Day Trading1450Instrument-specific
Swing Trading20100Higher tolerance

Technical Support

Website: https://gomerai.com/support
GitHub: https://github.com/TMGContracting/GomerAI-EA
Email: support@gomerai.com

When reporting issues, include:

  • MT5 build number
  • Indicator version (v1.0)
  • Symbol and timeframe
  • Screenshot
  • Experts log
  • Parameter settings

Legal Disclaimer

This indicator provides market quality assessment only. It does NOT provide trade signals, entry/exit recommendations, or financial advice. Trading carries risk. Use at your own risk. Past performance is not indicative of future results. See full disclaimer in indicator source code.


Version History

v1.0 (2026-02-01) – PRODUCTION RELEASE

  • Production-ready release
  • Liquidity + Session scoring
  • Colored histogram display
  • EA v0.09 compatible
  • User manual created

v0.01 (2026-01-14)

  • Initial development build

© 2026 GomerAI LLC. All Rights Reserved.

LPE Market Indicator v1.0 – Production Release
Release Date: February 1, 2026
https://gomerai.com

GomerAI Chat
GomerAI Production active. How can I help?