A High-Volume Pivot indicator for MT5 can make pivots more meaningful by filtering them through activity, not just price extremes. It confirms pivot highs/lows using left/right bar windows, then evaluates the pivot using a rolling volume sum computed at the confirmation bar.
Volume strength is normalized against a 95th-percentile reference from recent history (up to ~1000 samples), producing an adaptive score that works across symbols and sessions. Only pivots above a configurable threshold are displayed.
Qualified pivots are rendered with ATR(500)-scaled concentric rings (count driven by normalized volume), plus a reaction level that extends until close-to-close crossing invalidates it, and a compact volume label. All drawings are placed retrospectively at the originating pivot bar.
π Read | Quotes | @mql5dev
Volume strength is normalized against a 95th-percentile reference from recent history (up to ~1000 samples), producing an adaptive score that works across symbols and sessions. Only pivots above a configurable threshold are displayed.
Qualified pivots are rendered with ATR(500)-scaled concentric rings (count driven by normalized volume), plus a reaction level that extends until close-to-close crossing invalidates it, and a compact volume label. All drawings are placed retrospectively at the originating pivot bar.
π Read | Quotes | @mql5dev
β€5π4π₯4π¨βπ»2β1
SessionRangeBreakout.mq5 is an MT5 chart-window indicator that derives a completed intraday session high/low from M1 data using broker server time. It can draw a session rectangle plus extension lines, fill two non-plotted iCustom buffers (0=high, 1=low), and issue a single breakout alert per direction on the most recent completed session with an active extension.
Configuration covers session start/end (end is exclusive), line extension end, and a lookback of 1β365 completed session start dates, counting dates even when bars are missing. The range is computed from available M1 bars in [start, end), tolerating market-closure gaps and skipping sessions with no M1 bars.
Break detection supports touch (live price strictly outside, tick-driven) or close (bar close strictly outside, timeframe-driven), with optional popup/push/email. History and restarts pr...
π Read | AlgoBook | @mql5dev
Configuration covers session start/end (end is exclusive), line extension end, and a lookback of 1β365 completed session start dates, counting dates even when bars are missing. The range is computed from available M1 bars in [start, end), tolerating market-closure gaps and skipping sessions with no M1 bars.
Break detection supports touch (live price strictly outside, tick-driven) or close (bar close strictly outside, timeframe-driven), with optional popup/push/email. History and restarts pr...
π Read | AlgoBook | @mql5dev
β€8π2π€©2
This article treats common indicator rules as noisy voters rather than truth. Five cheap, independent heuristics (RSI crossback, EMA cross, Bollinger reversion, MACD histogram flip, candle proxy) output buy/sell/abstain on closed bars, and abstain is preserved to avoid contaminating the statistics.
A Snorkel-style generative model in MQL5 fuses these votes without labels or outcome feedback. Using Expectation-Maximization on a rolling window, it learns a per-heuristic reliability score and a shifting buy/sell prior purely from agreement patterns, then produces P(Buy) via a log-space Naive Bayes posterior for numerical stability.
Benchmarks against an unweighted majority vote across symbols/timeframes show weighting can change results, usually by reducing losses, but not enough to be statistically distinct. The value is a reusable signal-fusion laye...
π Read | AlgoBook | @mql5dev
A Snorkel-style generative model in MQL5 fuses these votes without labels or outcome feedback. Using Expectation-Maximization on a rolling window, it learns a per-heuristic reliability score and a shifting buy/sell prior purely from agreement patterns, then produces P(Buy) via a log-space Naive Bayes posterior for numerical stability.
Benchmarks against an unweighted majority vote across symbols/timeframes show weighting can change results, usually by reducing losses, but not enough to be statistically distinct. The value is a reusable signal-fusion laye...
π Read | AlgoBook | @mql5dev
β€9π₯3π2
Trade Manager Utility is a position management EA for MT5 that runs on both ticks and a timer, with a shared minimum cycle interval. It only modifies and closes existing positions and never opens trades.
Core functions include adding missing initial SL/TP anchored to entry, break-even moves with optional lock points, and trailing stops with points or ATR modes. Stop updates only tighten protection and are skipped when invalid under current price, broker limits, freeze distance, or spread filters.
Scope controls cover magic number filtering (-1 all, 0 manual, >0 specific), single-symbol vs all-symbols management, and a position-count monitor with optional alerts and newest-first excess closes.
Daily account protection can pause management and attempt closes after configurable equity/balance gain or loss thresholds. State is stored in terminal globals using ...
π Read | Calendar | @mql5dev
Core functions include adding missing initial SL/TP anchored to entry, break-even moves with optional lock points, and trailing stops with points or ATR modes. Stop updates only tighten protection and are skipped when invalid under current price, broker limits, freeze distance, or spread filters.
Scope controls cover magic number filtering (-1 all, 0 manual, >0 specific), single-symbol vs all-symbols management, and a position-count monitor with optional alerts and newest-first excess closes.
Daily account protection can pause management and attempt closes after configurable equity/balance gain or loss thresholds. State is stored in terminal globals using ...
π Read | Calendar | @mql5dev
β€5π€©1
Outlier filters based on global thresholds fail when the market shifts by session or volatility regime. Local Outlier Factor (LOF) addresses this by comparing a barβs neighbourhood density to the densities of its nearest neighbours, allowing quiet and volatile regimes to be βnormalβ at the same time.
An MQL5 implementation is built from scratch using native matrix/vector types. Each closed bar becomes a 5D point; the last 500 bars are the reference cloud. The newest bar is scored against the cloud without being added. The trigger is a quantile (default 97.5%) of reference LOF scores, so it adapts per symbol/timeframe.
Architecture uses a refit lane every 4 bars and a query lane on each close. Features: log return, range/ATR, log(1+volume), spread, close location in range. The LOF score gates entries of a simple EMA-cross EA; tests focus on which t...
π Read | Signals | @mql5dev
An MQL5 implementation is built from scratch using native matrix/vector types. Each closed bar becomes a 5D point; the last 500 bars are the reference cloud. The newest bar is scored against the cloud without being added. The trigger is a quantile (default 97.5%) of reference LOF scores, so it adapts per symbol/timeframe.
Architecture uses a refit lane every 4 bars and a query lane on each close. Features: log return, range/ATR, log(1+volume), spread, close location in range. The LOF score gates entries of a simple EMA-cross EA; tests focus on which t...
π Read | Signals | @mql5dev
β€9π€©3
A grid EA for XAUUSD that starts each basket from an RSI reversal on a closed candle. Buy when RSI crosses back above oversold, sell when it crosses back below overbought. A Reverse switch flips both signals. One-direction mode prevents a new basket in the opposite direction while one is active.
When price moves against an open basket, new grid levels are added every N points, using a lot multiplier up to a maximum level count. The initial lot can be fixed or sized from a percent of balance or equity. No per-trade stop loss is used.
The basket exits as a group via a money target or points from the average price, with optional basket stop loss and optional trading-hours filter. Margin usage increases with each level; disabling the basket stop allows deep drawdowns during sustained adverse moves. Strategy Tester validation and conservative sizing are required; ...
π Read | Docs | @mql5dev
When price moves against an open basket, new grid levels are added every N points, using a lot multiplier up to a maximum level count. The initial lot can be fixed or sized from a percent of balance or equity. No per-trade stop loss is used.
The basket exits as a group via a money target or points from the average price, with optional basket stop loss and optional trading-hours filter. Margin usage increases with each level; disabling the basket stop allows deep drawdowns during sustained adverse moves. Strategy Tester validation and conservative sizing are required; ...
π Read | Docs | @mql5dev
β€8π₯4
This MQL5 workflow closes the gap between analysis and execution by treating trade actions as proposals, not immediate commands. Read-only tools run instantly, while order placement/close/modify/delete calls are queued and blocked behind a single human approval step.
Each proposed action is rendered as an approval card describing the exact operation, volume, stops/targets, and affected tickets. The tool loop pauses mid-turn until approve/reject, then resumes so the assistant can react to the outcome.
Execution is centralized in one dispatcher + validated executors: typed JSON argument readers prevent crashes, a safety gate enforces symbol/lot/position limits, lots are normalized to broker steps, and ownership scoping restricts bulk actions to allowed trades. Broker-specific constraints are left to the trade server, with refusals reported back for iterative corr...
π Read | VPS | @mql5dev
Each proposed action is rendered as an approval card describing the exact operation, volume, stops/targets, and affected tickets. The tool loop pauses mid-turn until approve/reject, then resumes so the assistant can react to the outcome.
Execution is centralized in one dispatcher + validated executors: typed JSON argument readers prevent crashes, a safety gate enforces symbol/lot/position limits, lots are normalized to broker steps, and ownership scoping restricts bulk actions to allowed trades. Broker-specific constraints are left to the trade server, with refusals reported back for iterative corr...
π Read | VPS | @mql5dev
β€12π5π₯4β2π€©2
Terminal deal history is not position history. Partial closes often appear as multiple lines, and netting reversals can collapse close and open into a single deal. This exporter reconstructs positions from deals and writes one CSV row per closed position for external analysis.
Each row includes ticket, symbol, magic, comment, side, opened volume, entry/exit time and volume-weighted prices, duration, initial SL/TP (only if set on the opening order), and aggregated P&L components (gross, commission, swap, net). Risk metrics include risk_money and R-multiple when an initial SL exists.
Optional MFE/MAE are computed from M1 bars between entry and exit (Bid high/low), producing points and account-currency excursions plus bar count, session/weekday tags, and close reason. Limits: bar-based estimates, empty excursions if M1 history is missing, no export of open position...
π Read | NeuroBook | @mql5dev
Each row includes ticket, symbol, magic, comment, side, opened volume, entry/exit time and volume-weighted prices, duration, initial SL/TP (only if set on the opening order), and aggregated P&L components (gross, commission, swap, net). Risk metrics include risk_money and R-multiple when an initial SL exists.
Optional MFE/MAE are computed from M1 bars between entry and exit (Bid high/low), producing points and account-currency excursions plus bar count, session/weekday tags, and close reason. Limits: bar-based estimates, empty excursions if M1 history is missing, no export of open position...
π Read | NeuroBook | @mql5dev
π7π₯6β€5π€©4π2
Most EAs treat calendar releases as categories and block trading by importance and time window. That ignores what drives price: actual versus forecast, scaled so surprises are comparable across indicators.
MqlCalendarValue supports actual/forecast/previous, but forecast history starts May 2017. Central bank rate decisions and most speeches have no forecasts, so surprise-based models cannot cover them. Large currency-wide CalendarValueHistory calls can timeout; querying per event avoids silent zero-row returns.
Standardizing surprise with mean/stdev fails due to mis-scaled forecasts. Median and MAD (1.4826 scaled) with expanding history avoids look-ahead bias, plus a hard gate (10 robust sigma) removes impossible rows.
Release timestamps often miss the bar that moved due to startup GMT/server-time flips and DST shifts. Offsets can be recovered from price by...
π Read | Signals | @mql5dev
MqlCalendarValue supports actual/forecast/previous, but forecast history starts May 2017. Central bank rate decisions and most speeches have no forecasts, so surprise-based models cannot cover them. Large currency-wide CalendarValueHistory calls can timeout; querying per event avoids silent zero-row returns.
Standardizing surprise with mean/stdev fails due to mis-scaled forecasts. Median and MAD (1.4826 scaled) with expanding history avoids look-ahead bias, plus a hard gate (10 robust sigma) removes impossible rows.
Release timestamps often miss the bar that moved due to startup GMT/server-time flips and DST shifts. Offsets can be recovered from price by...
π Read | Signals | @mql5dev
β€11π€©11π7π₯4π2
An MT4/MT5 indicator processes only closed bars and flags five candle patterns: bullish/bearish engulfing, bullish/bearish pin bar, and inside bar. Pin bars are defined by configurable wick and body percentages, inclusive at the limits. Inside bar direction follows the mother bar; doji mother bars are skipped. Signals require a minimum bar range expressed as a multiple of Wilder ATR, with an optional EMA trend filter.
Each signal opens a case at the signal bar close. Take and adverse levels are set at entry Β± X*ATR and β Y*ATR using the signal bar ATR. Resolution is the first subsequent bar to hit either level; a bar touching both counts as a miss. Unresolved cases after a fixed wait are discarded.
A panel reports rolling hit rate per pattern over the last N resolved cases, plus sample size. Values are non-repainting and deterministic, with iCustom b...
π Read | AlgoBook | @mql5dev
Each signal opens a case at the signal bar close. Take and adverse levels are set at entry Β± X*ATR and β Y*ATR using the signal bar ATR. Resolution is the first subsequent bar to hit either level; a bar touching both counts as a miss. Unresolved cases after a fixed wait are discarded.
A panel reports rolling hit rate per pattern over the last N resolved cases, plus sample size. Values are non-repainting and deterministic, with iCustom b...
π Read | AlgoBook | @mql5dev
β€16π9π₯5π€©3β1
An opening-range session indicator for the US cash window, using a configurable GMT schedule. It builds a box from the opening range high/low (default 13:30 GMT, 30 minutes), then extends those levels to session end (default 20:00 GMT) and plots 1R/2R targets based on box height.
Session VWAP is computed as cumulative typical price (H+L+C)/3 weighted by volume, restarting at session start. Tick volume is default, with an option to use real volume when available and fall back otherwise. Sessions crossing midnight are supported; range length must align with the chart timeframe.
A historical stats panel summarizes the last N completed sessions with a full range: close outcomes relative to the box and post-break reach of 1R/2R in the direction of the first break. It is sample counting only, excludes costs/slippage, and is not a win rate.
No repainting: all ...
π Read | Calendar | @mql5dev
Session VWAP is computed as cumulative typical price (H+L+C)/3 weighted by volume, restarting at session start. Tick volume is default, with an option to use real volume when available and fall back otherwise. Sessions crossing midnight are supported; range length must align with the chart timeframe.
A historical stats panel summarizes the last N completed sessions with a full range: close outcomes relative to the box and post-break reach of 1R/2R in the direction of the first break. It is sample counting only, excludes costs/slippage, and is not a win rate.
No repainting: all ...
π Read | Calendar | @mql5dev
β€12π5π€©3π₯2