Watch how to download trading robots for free
Find us on Twitter!
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
Indicators

Gold Session Liquidity Free MT5 - XAUUSD Sessions, Sweeps and Risk Planner - indicator for MetaTrader 5

Sondang Manik
Sondang Manik
Forex Trader | MetaTrader Tools & Broker Research
Forex trader based in Indonesia, with a focus on price action, market structure and disciplined risk management. I take a structured approach to chart analysis, position sizing and reviewing trading decisions.
Views:
31
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Gold Session Liquidity Free MT5 - XAUUSD Session, Sweep and Risk Analysis

Gold Session Liquidity Free MT5 is a free, open-source indicator for studying gold (XAUUSD) with session context, completed Asian High/Low levels, price-based liquidity sweeps, confirmed swing structure breaks, and a manual position-size planner. The indicator is designed for market analysis and education; it is not an Expert Advisor and does not place orders.

Features

- Session intelligence: Asia, London, New York, overlapping sessions and configurable historical broker UTC offset, with EU/US daylight-saving adjustments.

- Completed Asian range: Asian High and Low become available after the configured Asian session has finished; the code does not use future candles to construct a completed historical range.

- Liquidity sweep markers: highlights closed-bar sweeps below prior swing lows that reclaim the reference level, and sweeps above prior swing highs that close back below it. These are OHLC-based patterns, not direct observations of resting institutional orders.

- Market structure: confirmed break-up and break-down markers using older swing pivots and closed candle prices.

- Trend and costs: an informational EMA 20/50 higher-timeframe context, current broker spread in points and spread relative to average true range.

- Manual risk planner: enter an assumed entry, stop-loss and optionally a target in indicator Inputs. The dashboard estimates a lot size from account equity, the chosen risk percentage, broker volume minimum/step, OrderCalcProfit and the estimated round-trip commission. Volume is rounded down; if the broker's minimum lot is too large, a warning is displayed instead.

- Research mode is optional: historic BUY/SELL research arrows and their heuristic score are disabled by default. Previous strategy tests did not show consistently profitable results; the score must not be interpreted as a win probability.

Getting started

- Attach the indicator to an XAUUSD chart in MetaTrader 5. M5 and M15 were used during technical checks.

- Verify BrokerClock and BrokerWinterUTCOffsetHours against your broker. The common UTC+2 winter / UTC+3 summer setting is not universal.

- Use the completed Asian range, sweep events and swing-break markers to study market context. Signals are not trades.

- To use the manual planner, set ManualEntryPrice, ManualStopPrice, optionally ManualTargetPrice, RiskBudgetPercent and your broker's round-trip commission per lot.

- Leave ShowExperimentalSignals=false unless you are deliberately studying unvalidated historical research signals.

Important parameters

- AsianStartUTCHour / AsianEndUTCHour: define the Asian range window.

- ShowLiquiditySweeps / ShowStructureBreaks: enable chart event markers.

- TrendTimeframe, TrendFastEMA, TrendSlowEMA: informational trend context (H1 20/50 by default).

- MaxBarsToScan: chart history scan window, 900 bars by default; old drawings leave the window as history advances.

- RiskBudgetPercent: planned stop-loss budget as a percentage of account equity (default 0.50).

- CommissionPerLotRoundTrip: estimated total commission for opening and closing one lot, in the account currency.

Testing, limitations and license

The MT5 source compiled with 0 errors and 0 warnings. A non-trading Strategy Tester QA program checked the closed-bar sweep and swing-break buffers on XAUUSD M5 and M15 with 1,145,655 bounded historical comparisons and no observed marker mutations or CopyBuffer errors in the monitored window. This is a technical consistency test, not a profitability backtest or a guarantee of permanent non-repainting across brokers.

Risk warning: spreads, contract specifications, commissions, funding charges, price gaps and slippage can make actual losses greater than the estimated initial stop-loss budget. Past outcomes never guarantee future returns. The indicator does not trade automatically.

Attribution: this open-source work contains MIT-licensed portions derived from Smart Liquidity Hunter v1.11, credited to FOREXREVIEW.TOP. The source is provided with the original copyright attribution and the accompanying MIT notice.

Project homepage: https://forexreview.top/. A dedicated usage article may be linked here in a later update.

Created for the MetaTrader community by fxliner.

Actual MT5 tester data - XAUUSD M15: liquidity sweep and structure break

Daily Range Budget Daily Range Budget

Shows how much of the average daily range (ADR) has already been used today, and plots the two prices that today’s high and low could still reach if the day ends with an average range. Shows how much of the average daily range (ADR) has already been used today, and draws the two prices that today’s high and low can still reach if the day ends with an average range.

Chart Indicators to CSV Chart Indicators to CSV

A script for MetaTrader 5 that exports the raw values of all buffers of every indicator on a chart to one CSV file, without changing any code.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.