A 58% next-bar hit rate is meaningless without a baseline. This article implements the Pesaran–Timmermann test in plain MQL5 to compare the observed accuracy P to the “chance” rate implied by forecast bias (Px) and market direction imbalance (Py), producing a rolling PT statistic and right-tail p-value.
The Expert Advisor uses that p-value as a gate: it only trades one-bar direction forecasts when the latest window shows significance (p < α), with strict no-look-ahead scoring via a one-step-delayed evaluator and rolling 2×2 counts.
It includes an EMA-slope forecaster, an AR(1) option, and a coin-flip control, plus a self-test suite cross-checked against Python. Strategy Tester runs show the EMA signal often fails (sometimes significantly wrong-way), while pure noise can still pass the gate at expected rates—highlighting screening value, not proof of edge.
👉 Read | NeuroBook | @mql5dev
The Expert Advisor uses that p-value as a gate: it only trades one-bar direction forecasts when the latest window shows significance (p < α), with strict no-look-ahead scoring via a one-step-delayed evaluator and rolling 2×2 counts.
It includes an EMA-slope forecaster, an AR(1) option, and a coin-flip control, plus a self-test suite cross-checked against Python. Strategy Tester runs show the EMA signal often fails (sometimes significantly wrong-way), while pure noise can still pass the gate at expected rates—highlighting screening value, not proof of edge.
👉 Read | NeuroBook | @mql5dev
❤14🤩12🔥10👍9
Association rules replace a neural “filter” with simple, explainable statistics computed directly inside an MT5 Expert Advisor. Market context is discretized into a small set of events (e.g., RSI_LOW, PRICE_BELOW_EMA, ATR_HIGH, SESSION_EU), then the EA counts how often each event combination is followed by an up or down move after a fixed horizon.
Rule quality is judged by support, baseline rate, lift, and probabilistic edge, not raw win percentage. Minimum support, Laplace smoothing, and comparison to the base rate reduce overfitting, while time-split validation avoids regime leakage.
Implementation stays lightweight: encode events as a bitmask, store per-mask counters, and select the best matching rule by edge weighted by sample size. In practice, rules work best as a final gate that confirms or rejects an existing BUY/SELL setup, improving transparenc...
👉 Read | Docs | @mql5dev
Rule quality is judged by support, baseline rate, lift, and probabilistic edge, not raw win percentage. Minimum support, Laplace smoothing, and comparison to the base rate reduce overfitting, while time-split validation avoids regime leakage.
Implementation stays lightweight: encode events as a bitmask, store per-mask counters, and select the best matching rule by edge weighted by sample size. In practice, rules work best as a final gate that confirms or rejects an existing BUY/SELL setup, improving transparenc...
👉 Read | Docs | @mql5dev
❤18🔥13👍11🤩4👨💻3
Session_Liquidity_Boxes_HUD renders non-repainting intraday range boxes for Tokyo/Asia, London, and New York sessions on the chart, and maintains running session High/Low series via indicator buffers for EA consumption.
Each session is independently configurable with enable toggles, server-time start/end hours, overnight wraparound support, and custom fill colors. A calendar-day lookback limit keeps rendering bounded for performance.
EA integration is handled through Buffer 0 (Session High) and Buffer 1 (Session Low), designed for iCustom/CopyBuffer with chronological indexing and EMPTY_VALUE outside active hours.
Chart objects use a per-instance unique prefix to prevent collisions across multiple indicator instances or other tools. An optional HUD shows SYMBOL_SPREAD, SYMBOL_TRADE_STOPS_LEVEL, and ATR(14) in points for live stop-distance and volati...
👉 Read | Quotes | @mql5dev
Each session is independently configurable with enable toggles, server-time start/end hours, overnight wraparound support, and custom fill colors. A calendar-day lookback limit keeps rendering bounded for performance.
EA integration is handled through Buffer 0 (Session High) and Buffer 1 (Session Low), designed for iCustom/CopyBuffer with chronological indexing and EMPTY_VALUE outside active hours.
Chart objects use a per-instance unique prefix to prevent collisions across multiple indicator instances or other tools. An optional HUD shows SYMBOL_SPREAD, SYMBOL_TRADE_STOPS_LEVEL, and ATR(14) in points for live stop-distance and volati...
👉 Read | Quotes | @mql5dev
❤22👍10🔥8🤩5🎉1
Spread Session Recorder logs bid/ask spread data for one or multiple symbols into CSV from a single chart. It is tick-driven, so chart timeframe does not affect results. Symbols are configured via a comma-separated list, left empty for the chart symbol, or set to “*” to process up to 50 Market Watch symbols.
Each row (default 60s) stores tick count, seconds covered, min, time-weighted average, and max spread in points, plus last bid/ask. Rows are labeled by session (ASIA, LONDON, LONDON_NY, NEWYORK, ROLLOVER, OFF) using GMT-based session hours with automatic or manual GMT offset.
Restart handling rebuilds state from existing CSV and backfills missing periods from terminal tick history (bounded by Backfill hours), avoiding duplicates. Locked-file writes are buffered. Stale quotes beyond a threshold are ignored.
Output files: MQL5\Files\SpreadRecorder\SYMBOL_...
👉 Read | Forum | @mql5dev
Each row (default 60s) stores tick count, seconds covered, min, time-weighted average, and max spread in points, plus last bid/ask. Rows are labeled by session (ASIA, LONDON, LONDON_NY, NEWYORK, ROLLOVER, OFF) using GMT-based session hours with automatic or manual GMT offset.
Restart handling rebuilds state from existing CSV and backfills missing periods from terminal tick history (bounded by Backfill hours), avoiding duplicates. Locked-file writes are buffered. Stale quotes beyond a threshold are ignored.
Output files: MQL5\Files\SpreadRecorder\SYMBOL_...
👉 Read | Forum | @mql5dev
❤20👍16🔥10🤩9
Session range breakout indicator for XAUUSD and other symbols builds an opening range from candles that open inside a configurable window (default 30 minutes). It draws a box from highest high to lowest low, then projects both edges forward as breakout levels, with optional buffer in points.
Up to three independent sessions can run on one chart with separate names, start times (server time), and colours. Default presets target London 10:00 and New York 16:30 on GMT+2 servers, with Asia 02:00 off. Levels remain active after the window (default 240 minutes) and only one confirmed breakout per side is counted, requiring a candle close beyond the level.
Target lines are plotted at configurable multiples of the range height (defaults 1.0 and 2.0), and breakout candles can be marked with arrows plus optional popup, push, or sound alerts. Designed for timefra...
👉 Read | Forum | @mql5dev
Up to three independent sessions can run on one chart with separate names, start times (server time), and colours. Default presets target London 10:00 and New York 16:30 on GMT+2 servers, with Asia 02:00 off. Levels remain active after the window (default 240 minutes) and only one confirmed breakout per side is counted, requiring a candle close beyond the level.
Target lines are plotted at configurable multiples of the range height (defaults 1.0 and 2.0), and breakout candles can be marked with arrows plus optional popup, push, or sound alerts. Designed for timefra...
👉 Read | Forum | @mql5dev
👍19🔥16❤15🤩12
TradePermissionChecker is a read-only MT5 script that generates a compact permission report on the chart and in the Experts tab. Results are shown per line as PASS, FAIL, INFO, or UNKNOWN, including a reason and the next corrective action. The report is ordered to highlight the first item to fix and ends with a failed-check count.
Checks include terminal Algo Trading state, script-level algo permission, account trading permission (including investor/read-only login), broker-side automated trading permission, symbol trade mode, and a dry-run OrderCheck for minimum lot size with translated return codes such as 10026 (server disabled) and 10027 (terminal disabled). No orders are sent.
Failure handling avoids duplicate causes: if Algo Trading is off, the dry-run is skipped. When offline, relevant items switch to UNKNOWN. Market-closed conditions are marked INFO a...
👉 Read | Freelance | @mql5dev
Checks include terminal Algo Trading state, script-level algo permission, account trading permission (including investor/read-only login), broker-side automated trading permission, symbol trade mode, and a dry-run OrderCheck for minimum lot size with translated return codes such as 10026 (server disabled) and 10027 (terminal disabled). No orders are sent.
Failure handling avoids duplicate causes: if Algo Trading is off, the dry-run is skipped. When offline, relevant items switch to UNKNOWN. Market-closed conditions are marked INFO a...
👉 Read | Freelance | @mql5dev
❤13🔥13👍12🤩6⚡2
Prop Firm Guardian is a risk control utility for funded and challenge accounts with FTMO-style limits. It does not place trades. Attached to a single chart, it monitors account-wide equity on every tick plus a 1-second timer, then closes positions and pending orders before limits are exceeded.
Daily loss protection closes everything at the daily equity floor and blocks trading until the next day. Max loss protection closes everything at the max-loss floor and blocks trading until reset, with static (initial balance) or trailing (highest closed balance) modes. An optional profit target can close and lock the account to preserve a passed challenge.
A configurable safety buffer triggers action ahead of limits to account for spread and slippage. While blocked, any new trades are closed immediately and PFG_BLOCKED is set (1 daily, 2 permanent). Day-start balance is ...
👉 Read | Forum | @mql5dev
Daily loss protection closes everything at the daily equity floor and blocks trading until the next day. Max loss protection closes everything at the max-loss floor and blocks trading until reset, with static (initial balance) or trailing (highest closed balance) modes. An optional profit target can close and lock the account to preserve a passed challenge.
A configurable safety buffer triggers action ahead of limits to account for spread and slippage. While blocked, any new trades are closed immediately and PFG_BLOCKED is set (1 daily, 2 permanent). Day-start balance is ...
👉 Read | Forum | @mql5dev
❤12👍11🔥9🤩2👨💻2
SimpleLicense.mqh is a lightweight include for controlling private distribution of MT5 EAs and indicators. Configuration is compiled into the .ex5 and the customer receives only the binary. When validation fails, the reason is shown and trading or calculation logic is blocked.
Validation options include allowed account numbers (comma-separated, empty allows any), expiry date (0 disables expiry), demo-only mode for trial builds, and a broker server substring filter (empty allows any). Checks run in OnInit and then periodically (hourly, or minutely while invalid) to detect account changes or expirations without restarting the terminal. The failure alert is shown once per event, not per tick.
Usage pattern: place SimpleLicense.mqh beside the program or under MQL5\Include, include it, create CSimpleLicense, set the four parameters in OnInit, fail init on lic.Chec...
👉 Read | AppStore | @mql5dev
Validation options include allowed account numbers (comma-separated, empty allows any), expiry date (0 disables expiry), demo-only mode for trial builds, and a broker server substring filter (empty allows any). Checks run in OnInit and then periodically (hourly, or minutely while invalid) to detect account changes or expirations without restarting the terminal. The failure alert is shown once per event, not per tick.
Usage pattern: place SimpleLicense.mqh beside the program or under MQL5\Include, include it, create CSimpleLicense, set the four parameters in OnInit, fail init on lic.Chec...
👉 Read | AppStore | @mql5dev
❤15🔥12👍9🤩7👌4👾1
Equity Target Closer is a utility EA designed to enforce an account-level profit target or loss limit by closing positions. It does not open trades and does not perform market analysis. Trading can remain manual or handled by other EAs, with this tool managing exits. Deployment requires attaching it to a single chart.
It evaluates watched positions on every tick and once per second. When floating P/L or today’s P/L reaches the configured threshold, it closes all selected positions at market and can optionally delete pending orders. An optional lock can keep the day closed by immediately closing any new trades until the next trading day.
Configuration supports measuring open floating P/L or today’s P/L (today’s closed trades plus open positions), with deposits and withdrawals excluded. Targets can be set in account currency or as a percentage of balance, fil...
👉 Read | Calendar | @mql5dev
It evaluates watched positions on every tick and once per second. When floating P/L or today’s P/L reaches the configured threshold, it closes all selected positions at market and can optionally delete pending orders. An optional lock can keep the day closed by immediately closing any new trades until the next trading day.
Configuration supports measuring open floating P/L or today’s P/L (today’s closed trades plus open positions), with deposits and withdrawals excluded. Targets can be set in account currency or as a percentage of balance, fil...
👉 Read | Calendar | @mql5dev
❤11👍9🤩9🔥6👌4⚡1
Execution Quality Logger tracks real execution quality per deal without affecting trading. It logs manual orders, EA activity, and SL/TP executions, then writes one CSV row per deal and shows a running on-chart summary.
Captured fields include requested price (send-time for market orders, level for SL/TP), filled price, slippage in points (positive or negative), fill delay in milliseconds, and spread at execution. Records also include symbol, side, volume, entry/exit, magic number, and execution reason (manual, expert, SL, TP, stop out). Rejected or requoted requests are reported in the Experts log with return codes.
Configuration supports Common\Files logging, symbol and magic filters, and summary metrics such as average/worst slippage, negative slippage rate, and average/max delay. Intended use is continuous logging on demo/live to compare brokers, sessio...
👉 Read | Calendar | @mql5dev
Captured fields include requested price (send-time for market orders, level for SL/TP), filled price, slippage in points (positive or negative), fill delay in milliseconds, and spread at execution. Records also include symbol, side, volume, entry/exit, magic number, and execution reason (manual, expert, SL, TP, stop out). Rejected or requoted requests are reported in the Experts log with return codes.
Configuration supports Common\Files logging, symbol and magic filters, and summary metrics such as average/worst slippage, negative slippage rate, and average/max delay. Intended use is continuous logging on demo/live to compare brokers, sessio...
👉 Read | Calendar | @mql5dev
👍18❤11🤩9🔥2
Common Folder Copier synchronizes open positions between multiple MT5 terminals running on the same PC or VPS using a shared Common\Files file. Operation is handled by a single EA configured as Master or Slave. The Master writes position snapshots several times per second; each Slave reads the snapshot and mirrors positions on its own account. No DLLs, external services, or additional software are required.
Master mode records symbol, direction, volume, SL/TP, and optionally filters by a single magic number. Writes are performed via a temporary filename followed by replace, preventing partial reads.
Slave mode opens missing copies, adjusts volume on partial closes, keeps SL/TP aligned, and closes copies when the master closes. Master-to-slave mapping is stored via terminal global variables, surviving restarts. If the snapshot exceeds a configured age, the Sl...
👉 Read | AppStore | @mql5dev
Master mode records symbol, direction, volume, SL/TP, and optionally filters by a single magic number. Writes are performed via a temporary filename followed by replace, preventing partial reads.
Slave mode opens missing copies, adjusts volume on partial closes, keeps SL/TP aligned, and closes copies when the master closes. Master-to-slave mapping is stored via terminal global variables, surviving restarts. If the snapshot exceeds a configured age, the Sl...
👉 Read | AppStore | @mql5dev
👍10❤9🔥8🤩7
Correlation Matrix Dashboard adds a live cross-symbol correlation grid directly on the chart to validate whether a basket is actually diversified. It calculates rolling Pearson correlations from closed-bar returns over a fixed lookback, updating once per new bar to avoid tick-by-tick CPU load on multi-chart setups.
The matrix lists basket symbols on rows and columns. Off-diagonal cells show coefficients from -1.00 to 1.00, with “--” on the diagonal. Shading ranges from neutral near zero to green for positive correlation and red for inverse correlation. Symmetry across the diagonal is expected and acts as a quick consistency check.
Optional alerts trigger when |correlation| crosses a threshold, then re-arm only after dropping back by a hysteresis margin to prevent repeated firing.
Key inputs cover symbol list, calculation timeframe, lookback bars, r...
👉 Read | AlgoBook | @mql5dev
The matrix lists basket symbols on rows and columns. Off-diagonal cells show coefficients from -1.00 to 1.00, with “--” on the diagonal. Shading ranges from neutral near zero to green for positive correlation and red for inverse correlation. Symmetry across the diagonal is expected and acts as a quick consistency check.
Optional alerts trigger when |correlation| crosses a threshold, then re-arm only after dropping back by a hysteresis margin to prevent repeated firing.
Key inputs cover symbol list, calculation timeframe, lookback bars, r...
👉 Read | AlgoBook | @mql5dev
❤15👍10🔥8🤩6😐2
A read-only terminal indicator adds an equity drawdown panel focused on current account state rather than balance. It tracks distance from the equity peak, the deepest drawdown recorded, closed P/L for today, week, and month, and attributes open floating results to the active Expert Advisor via magic numbers.
Rendering is done on a single canvas using the standard Canvas library, with antialiased shapes, smooth transitions, and 1 Hz equity sampling for the last 2.5 minutes. The header supports drag-to-move and a collapse button that reduces the view to drawdown and floating P/L.
Peak equity starts at attach time and updates on new highs. State persists via terminal global variables per account and server. Bonus credit is excluded. Deposits and withdrawals are detected from deal history and rescale the peak to keep drawdown percentage consistent acros...
👉 Read | VPS | @mql5dev
Rendering is done on a single canvas using the standard Canvas library, with antialiased shapes, smooth transitions, and 1 Hz equity sampling for the last 2.5 minutes. The header supports drag-to-move and a collapse button that reduces the view to drawdown and floating P/L.
Peak equity starts at attach time and updates on new highs. State persists via terminal global variables per account and server. Bonus credit is excluded. Deposits and withdrawals are detected from deal history and rescale the peak to keep drawdown percentage consistent acros...
👉 Read | VPS | @mql5dev
❤10🔥10👍8🤩6
Trade Pad consolidates manual order entry into a single on-chart panel: BUY, SELL, lot control, and four management actions for open positions. UI feedback is immediate via canvas rendering, with each operation confirmed on the panel and written to the journal. The panel can be collapsed into a compact bar showing floating result and dragged by its header.
BUY/SELL place market orders at the current lot, with live Bid/Ask and spread shown. Lot step changes follow the symbol’s volume step and respect min/max, with margin and point value displayed. CLOSE ALL, CLOSE PROFIT, and CLOSE LOSS use a second-click confirmation that arms for three seconds. BREAKEVEN moves stop loss to entry for profitable positions.
Safety controls include click-only execution, disabled state when covered or outside the chart, broker stop-level validation, and terminal trading-stat...
👉 Read | Calendar | @mql5dev
BUY/SELL place market orders at the current lot, with live Bid/Ask and spread shown. Lot step changes follow the symbol’s volume step and respect min/max, with margin and point value displayed. CLOSE ALL, CLOSE PROFIT, and CLOSE LOSS use a second-click confirmation that arms for three seconds. BREAKEVEN moves stop loss to entry for profitable positions.
Safety controls include click-only execution, disabled state when covered or outside the chart, broker stop-level validation, and terminal trading-stat...
👉 Read | Calendar | @mql5dev
👍17❤9🤩8🔥5👨💻1👀1
InfoPanel is a compact chart overlay for tracking key session stats at a glance. It displays the current symbol, time remaining to the close of the active candle, current spread in points, daily ATR in points, and today’s range as a percentage of the daily ATR.
Visual cues are included: spread switches to red when it widens, and the range-used value switches to gold when it exceeds 100%. Inputs cover ATR period, chart corner selection, X/Y offsets, font size, and text color.
The indicator runs on any symbol and timeframe. Resource usage is minimal, using a 1-second timer and four text labels. It produces no signals and is intended for information only.
Deployment: copy InfoPanel.mq5 to MQL5\Indicators, compile in MetaEditor, then attach to a chart and adjust Inputs as needed.
👉 Read | Docs | @mql5dev
Visual cues are included: spread switches to red when it widens, and the range-used value switches to gold when it exceeds 100%. Inputs cover ATR period, chart corner selection, X/Y offsets, font size, and text color.
The indicator runs on any symbol and timeframe. Resource usage is minimal, using a 1-second timer and four text labels. It produces no signals and is intended for information only.
Deployment: copy InfoPanel.mq5 to MQL5\Indicators, compile in MetaEditor, then attach to a chart and adjust Inputs as needed.
👉 Read | Docs | @mql5dev
👍10❤4🔥4🤩4
Session Clock is a compact chart panel that shows which major FX sessions are currently open, time until the next session opens, and the remaining time on the active candle. It uses a 24-hour GMT dial with Sydney, Tokyo, London, and New York rendered as arcs; open sessions are highlighted while closed sessions are dimmed, with a GMT-driven hand for current time.
The panel includes a central candle countdown with a progress ring, plus a per-session legend listing hours and live open/close countdowns. When the market is closed, the countdown switches to time until the next trading session for the symbol.
Additional readouts include current spread versus an average since load, today’s range versus the 14-day average daily range, and GMT versus server time. Daylight saving time adjusts automatically per region (Europe, US, Australia; Tokyo fixed), verified ...
👉 Read | AppStore | @mql5dev
The panel includes a central candle countdown with a progress ring, plus a per-session legend listing hours and live open/close countdowns. When the market is closed, the countdown switches to time until the next trading session for the symbol.
Additional readouts include current spread versus an average since load, today’s range versus the 14-day average daily range, and GMT versus server time. Daylight saving time adjusts automatically per region (Europe, US, Australia; Tokyo fixed), verified ...
👉 Read | AppStore | @mql5dev
❤12👍9🤩9🔥8
Order blocks matter only while they hold. A static box does not show whether price already revisited it multiple times or closed through it. This indicator tracks each zone bar by bar, using the chart timeframe or a higher one, and marks zones as fresh, tested, or broken with an explicit visit count.
A zone starts “fresh” in full color. The first return marks it “tested” and lightens the fill; each later return increments the count. A visit is one entry event, not per-bar time spent inside. Break rules are close-based: demand breaks on a close below the bottom, supply breaks on a close above the top; wicks alone do not break.
Block detection uses a block candle plus a run (default five candles), with minimum move and minimum real-body filters, and sizing normalized by average ranges to avoid symbol-specific tuning. Overlapping zones are merged per si...
👉 Read | AppStore | @mql5dev
A zone starts “fresh” in full color. The first return marks it “tested” and lightens the fill; each later return increments the count. A visit is one entry event, not per-bar time spent inside. Break rules are close-based: demand breaks on a close below the bottom, supply breaks on a close above the top; wicks alone do not break.
Block detection uses a block candle plus a run (default five candles), with minimum move and minimum real-body filters, and sizing normalized by average ranges to avoid symbol-specific tuning. Overlapping zones are merged per si...
👉 Read | AppStore | @mql5dev
❤9👍6🔥5🤩5
Framework updates extend the initial CAppliedPrice and CSma set with EMA, SMMA, and LWMA modules. CSma gets a boundary-condition fix for the “exactly N bars” case that previously caused an array out of range on the next tick.
A common CSmoothingBase is introduced to unify buffers, period validation, and an onCalculate contract. The indicator now selects the smoothing method at runtime via an ENUM_MA_METHOD input, instantiating the chosen smoother dynamically through a base-class pointer.
EMA is added using the standard recurrence with a precomputed smoothing factor and a source-based seed. Plot labels are moved from compile-time properties to PlotIndexSetString, producing method-aware labels like EMA(14). SMMA is positioned as Wilder-style exponential smoothing with alpha = 1/period, alongside cost and weighting comparisons across methods.
👉 Read | Calendar | @mql5dev
A common CSmoothingBase is introduced to unify buffers, period validation, and an onCalculate contract. The indicator now selects the smoothing method at runtime via an ENUM_MA_METHOD input, instantiating the chosen smoother dynamically through a base-class pointer.
EMA is added using the standard recurrence with a precomputed smoothing factor and a source-based seed. Plot labels are moved from compile-time properties to PlotIndexSetString, producing method-aware labels like EMA(14). SMMA is positioned as Wilder-style exponential smoothing with alpha = 1/period, alongside cost and weighting comparisons across methods.
👉 Read | Calendar | @mql5dev
❤11🤩8🔥7👍6
HistoryExportTester exports Strategy Tester price history to CSV: closed bars for any timeframe and optional tick-by-tick data.
Tester exports are useful because chart history is capped by the “Max bars in chart” setting. The tester is not, allowing multi-year M1 bars or full real-tick periods in a single run.
Usage: select the EA in Strategy Tester, pick symbol and date range. The test timeframe is irrelevant; the export timeframe is an input. For bars, any model works and “1 minute OHLC” is fastest. For ticks, use “Every tick based on real ticks”, otherwise ticks are generated. Output goes to Terminal\Common\Files, or the agent’s MQL5\Files if common folder is disabled.
Files: <symbol>_<timeframe>_bars.csv (time, OHLC, tick_volume, real_volume, spread), closed bars only. <symbol>_ticks.csv (time_msc, time, bid, ask, last, volume, flags).
A gap report lists g...
👉 Read | Quotes | @mql5dev
Tester exports are useful because chart history is capped by the “Max bars in chart” setting. The tester is not, allowing multi-year M1 bars or full real-tick periods in a single run.
Usage: select the EA in Strategy Tester, pick symbol and date range. The test timeframe is irrelevant; the export timeframe is an input. For bars, any model works and “1 minute OHLC” is fastest. For ticks, use “Every tick based on real ticks”, otherwise ticks are generated. Output goes to Terminal\Common\Files, or the agent’s MQL5\Files if common folder is disabled.
Files: <symbol>_<timeframe>_bars.csv (time, OHLC, tick_volume, real_volume, spread), closed bars only. <symbol>_ticks.csv (time_msc, time, bid, ask, last, volume, flags).
A gap report lists g...
👉 Read | Quotes | @mql5dev
❤7🔥6🤩4👍1
Clipping was added as a first-class rendering constraint, targeting UI separation issues seen in dashboards: overflowing list rows, plot lines crossing axes, and text escaping button bounds. The mechanism limits drawing by a boundary owned by another widget, rather than modifying the shape.
The implementation reuses per-pixel coverage already produced by the rasterizer. Clip coverage and shape coverage are multiplied in the inner Fill loop, enabling anti-aliased rectangular and path clips, nesting via repeated multiplication, and predictable artifacts such as edge darkening from conflation in self-clips, thin geometry, and deep clip stacks.
Supporting pieces include SCairoRect for bounds, NaN-safe emptiness checks, half-open containment, rectangle intersection/union, exact path bounds from flattened vertices, and hit-testing using the same scanline crossing...
👉 Read | Freelance | @mql5dev
The implementation reuses per-pixel coverage already produced by the rasterizer. Clip coverage and shape coverage are multiplied in the inner Fill loop, enabling anti-aliased rectangular and path clips, nesting via repeated multiplication, and predictable artifacts such as edge darkening from conflation in self-clips, thin geometry, and deep clip stacks.
Supporting pieces include SCairoRect for bounds, NaN-safe emptiness checks, half-open containment, rectangle intersection/union, exact path bounds from flattened vertices, and hit-testing using the same scanline crossing...
👉 Read | Freelance | @mql5dev
❤15🔥9👍7🤩4👨💻1
An educational example implements an opening-candle setup around the New York session open. The EA waits for the M5 bar aligned to 09:30 New York time (often 16:30 server time on NY-close brokers). A trade triggers when the candle body exceeds total wick size and tick volume is above 1.5x the 20-bar average, then a single position is opened in the candle direction.
Risk controls are straightforward: one trade per day, at most one open position, fixed SL/TP in price units (defaults 30/120, scaled by symbol price), and a time-based forced close. Position sizing can be risk-based via stop distance or fixed-lot, with margin-aware downscaling. No martingale, grid, averaging, or hedging logic is used.
Backtest notes: Strategy Tester results on USTEC M5 (every tick, 2025) show 91 trades, net +2,559 on 10,000 deposit with 100 risk per trade, PF 1.41, 29.7% win rate...
👉 Read | Docs | @mql5dev
Risk controls are straightforward: one trade per day, at most one open position, fixed SL/TP in price units (defaults 30/120, scaled by symbol price), and a time-based forced close. Position sizing can be risk-based via stop distance or fixed-lot, with margin-aware downscaling. No martingale, grid, averaging, or hedging logic is used.
Backtest notes: Strategy Tester results on USTEC M5 (every tick, 2025) show 91 trades, net +2,559 on 10,000 deposit with 100 risk per trade, PF 1.41, 29.7% win rate...
👉 Read | Docs | @mql5dev
👍9❤7🔥5🤩3🎉2