An indicator combining Bollinger Bands and a Keltner Channel in the main chart window, with explicit marking of volatility squeeze conditions.
A squeeze is flagged when the Bollinger upper/lower bands are fully inside the Keltner upper/lower channel. On each squeeze bar, an orange dot is printed on the Bollinger middle line. When a squeeze ends (on the current bar after being active on the prior bar), a release arrow is drawn.
Arrow direction is derived from momentum: the last closed close is compared to the close MomLookback bars earlier. Higher close prints an up arrow below the bar, lower close prints a down arrow above it, equal closes print no arrow. Calculations are non-repainting per bar since each bar uses only prior-bar data.
Implementation details: Bollinger uses SMA and population standard deviation of closes. Keltner uses EMA of closes w...
π Read | CodeBase | @mql5dev
A squeeze is flagged when the Bollinger upper/lower bands are fully inside the Keltner upper/lower channel. On each squeeze bar, an orange dot is printed on the Bollinger middle line. When a squeeze ends (on the current bar after being active on the prior bar), a release arrow is drawn.
Arrow direction is derived from momentum: the last closed close is compared to the close MomLookback bars earlier. Higher close prints an up arrow below the bar, lower close prints a down arrow above it, equal closes print no arrow. Calculations are non-repainting per bar since each bar uses only prior-bar data.
Implementation details: Bollinger uses SMA and population standard deviation of closes. Keltner uses EMA of closes w...
π Read | CodeBase | @mql5dev
β€14π9π₯5π€©3π3
Session Range is a chart indicator that plots the high/low and range for the three primary FX sessions: Asia, London, and New York. Session boxes make it easy to compare volatility, identify overlaps, and track where price traded during each window.
Asia range is commonly used as an intraday reference for London and New York breakouts. The tool can trigger an optional alert and push notification when price breaks the Asia high or low, limited to once per side per day after the session closes.
Session hours are configurable in broker server time, including support for sessions crossing midnight. A tooltip displays session high, low, and range in points. The indicator can render 1 to 100 prior days and removes all chart objects on deletion.
Designed for H1 and lower; higher timeframes show a brief note instead of boxes. Not a signal service or financi...
π Read | Quotes | @mql5dev
Asia range is commonly used as an intraday reference for London and New York breakouts. The tool can trigger an optional alert and push notification when price breaks the Asia high or low, limited to once per side per day after the session closes.
Session hours are configurable in broker server time, including support for sessions crossing midnight. A tooltip displays session high, low, and range in points. The indicator can render 1 to 100 prior days and removes all chart objects on deletion.
Designed for H1 and lower; higher timeframes show a brief note instead of boxes. Not a signal service or financi...
π Read | Quotes | @mql5dev
β€8π8π₯5π€©2
Session VWAP with standard deviation bands models the sessionβs volume-weighted βfairβ price and the dispersion around it. VWAP is updated from the session open using a numerically stable weighted algorithm, recalculating only the last bar on each tick.
Alongside the main VWAP line, the tool computes volume-weighted standard deviation and plots configurable bands (commonly Β±1 SD and Β±2 SD). The bands provide context on how extended price is relative to the sessionβs traded distribution, including a Z-score: (Price β VWAP) / SD.
Sessions reset on daily, weekly, or monthly boundaries with an optional start time in server time. Visual handling avoids connecting sessions and can draw session separators plus an info label. Typical deployment uses timeframes smaller than the chosen session. Tick volume is the default on FX/CFD; real volume is preferable on exc...
π Read | CodeBase | @mql5dev
Alongside the main VWAP line, the tool computes volume-weighted standard deviation and plots configurable bands (commonly Β±1 SD and Β±2 SD). The bands provide context on how extended price is relative to the sessionβs traded distribution, including a Z-score: (Price β VWAP) / SD.
Sessions reset on daily, weekly, or monthly boundaries with an optional start time in server time. Visual handling avoids connecting sessions and can draw session separators plus an info label. Typical deployment uses timeframes smaller than the chosen session. Tick volume is the default on FX/CFD; real volume is preferable on exc...
π Read | CodeBase | @mql5dev
π9π₯4β€3π€©3
A technical indicator plots a long-period SMA to qualify an uptrend and flags pullbacks using RSI. A signal is generated only when three prior-bar conditions align: close above the SMA, RSI at or below RSI_BuyLevel, and the SMA higher than the previous bar. The SMA slope filter can be disabled via RequireRising.
Signals are rendered as up arrows positioned 0.1% below the bar low. Price and RSI are read from the last closed candle, preventing repainting from intra-bar movement. If multiple consecutive bars match, each is marked to represent a pullback zone rather than a single event.
Scope is long-only with no downtrend equivalent. Default RSI_BuyLevel is 40, reflecting typical behavior when price remains above a long-term average. Startup requires TrendSMA + RSI_Period + 3 bars. Buffers: 0 SMA, 1 marks. Indicator is display-only and does not execute trades.
π Read | CodeBase | @mql5dev
Signals are rendered as up arrows positioned 0.1% below the bar low. Price and RSI are read from the last closed candle, preventing repainting from intra-bar movement. If multiple consecutive bars match, each is marked to represent a pullback zone rather than a single event.
Scope is long-only with no downtrend equivalent. Default RSI_BuyLevel is 40, reflecting typical behavior when price remains above a long-term average. Startup requires TrendSMA + RSI_Period + 3 bars. Buffers: 0 SMA, 1 marks. Indicator is display-only and does not execute trades.
π Read | CodeBase | @mql5dev
π9β€5π₯5π€©4
A position sizing utility calculates the maximum lot size so the configured stop loss matches a selected risk limit.
Risk can be set as a percentage of balance or equity. Stop loss can be defined as a distance in points or as an exact price level.
Profit and loss estimation relies on OrderCalcProfit for higher accuracy across forex, metals, indices, and crypto, with tick value used as a fallback when needed. The computed volume is rounded down to the symbolβs volume step to ensure the target risk is not exceeded.
Outputs include entry, stop loss, lot size, and the resulting risk in account currency and percent. No positions are opened, modified, or closed. Suitable for prop accounts with strict daily loss and drawdown constraints. Free tool, no signals or financial advice.
π Read | AlgoBook | @mql5dev
Risk can be set as a percentage of balance or equity. Stop loss can be defined as a distance in points or as an exact price level.
Profit and loss estimation relies on OrderCalcProfit for higher accuracy across forex, metals, indices, and crypto, with tick value used as a fallback when needed. The computed volume is rounded down to the symbolβs volume step to ensure the target risk is not exceeded.
Outputs include entry, stop loss, lot size, and the resulting risk in account currency and percent. No positions are opened, modified, or closed. Suitable for prop accounts with strict daily loss and drawdown constraints. Free tool, no signals or financial advice.
π Read | AlgoBook | @mql5dev
β€9π8π₯6π€©5
Tick Volume Delta Histogram provides an estimated buy/sell pressure signal for FX and CFDs using tick volume and candle structure. Since real aggressor volume is not available, each bar is assigned a ratio r in the range β1..+1, then tick volume V is split into estimated buy and sell parts, with delta = VΒ·r.
Three estimation modes are supported: close location within the bar range, body-to-range ratio, and a bar-level tick rule based on close vs previous close. Output is a histogram above/below zero for buy/sell dominance, in absolute ticks or as percent of volume (β100..100).
A βstrongβ state is flagged when |delta| exceeds a configurable percent of the barβs tick volume. An optional EMA overlay helps distinguish isolated spikes from sustained shifts, and divergence between price extremes and delta/EMA can act as a warning. Works across symbols a...
π Read | NeuroBook | @mql5dev
Three estimation modes are supported: close location within the bar range, body-to-range ratio, and a bar-level tick rule based on close vs previous close. Output is a histogram above/below zero for buy/sell dominance, in absolute ticks or as percent of volume (β100..100).
A βstrongβ state is flagged when |delta| exceeds a configurable percent of the barβs tick volume. An optional EMA overlay helps distinguish isolated spikes from sustained shifts, and divergence between price extremes and delta/EMA can act as a warning. Works across symbols a...
π Read | NeuroBook | @mql5dev
π7π€©7β€5π₯5
This indicator combines a Donchian channel with a long-period SMA and flags channel breakouts only when aligned with the SMA trend filter.
The Donchian bands are calculated from the highest high and lowest low over EntryChannel bars ending two bars back. This avoids including the breakout bar in its own channel.
An upward signal requires the previous bar to close above the upper band and above the SMA. A downward signal requires the previous bar to close below the lower band and below the SMA. Signals against the SMA are skipped. With LongOnly enabled, only upward signals are produced.
Arrows are plotted on the bar after the breakout: 0.1% below its low for up moves, 0.1% above its high for down moves. The arrow buffer uses one symbol for both directions, with direction inferred from placement. Closed bars only; works on any symbol/timeframe; requir...
π Read | Forum | @mql5dev
The Donchian bands are calculated from the highest high and lowest low over EntryChannel bars ending two bars back. This avoids including the breakout bar in its own channel.
An upward signal requires the previous bar to close above the upper band and above the SMA. A downward signal requires the previous bar to close below the lower band and below the SMA. Signals against the SMA are skipped. With LongOnly enabled, only upward signals are produced.
Arrows are plotted on the bar after the breakout: 0.1% below its low for up moves, 0.1% above its high for down moves. The arrow buffer uses one symbol for both directions, with direction inferred from placement. Closed bars only; works on any symbol/timeframe; requir...
π Read | Forum | @mql5dev
β€20π11π₯5π€©3
Warm-Up Meter measures how much history a recursive indicator needs before its output is within a chosen tolerance. It targets EMA, Wilder smoothing (RMA used by RSI/ATR/ADX), and any indicator built as recursive stages where the initial seed value never disappears and only decays by (1 - alpha) per bar.
The tool runs three chains on the same closed bars: a long-history reference chain, a probe chain seeded midway, and a tested chain seeded at a user-selected bar using either first-price or zero. Relative deviation between tested and reference is measured per bar, and βwarm-upβ is the first bar after which the error stays within tolerance.
Reference validity is checked. If probe vs reference at the seed bar implies the reference still carries material error, the verdict becomes INCONCLUSIVE. Stacked smoothing effects are visible; measured warm-up is ...
π Read | Docs | @mql5dev
The tool runs three chains on the same closed bars: a long-history reference chain, a probe chain seeded midway, and a tested chain seeded at a user-selected bar using either first-price or zero. Relative deviation between tested and reference is measured per bar, and βwarm-upβ is the first bar after which the error stays within tolerance.
Reference validity is checked. If probe vs reference at the seed bar implies the reference still carries material error, the verdict becomes INCONCLUSIVE. Stacked smoothing effects are visible; measured warm-up is ...
π Read | Docs | @mql5dev
π₯7π5β€3π€©3π€―1
A MetaTrader 5 utility script provides one-click closure of open positions with controls for slippage and spread conditions.
The script iterates backward through positions, applies scope filtering, optional Magic Number matching, and an optional live-spread threshold before issuing close requests through CTrade. It can also remove matching pending orders when enabled.
Transient execution failures are handled with bounded retries and a configurable delay, covering common broker-side events such as requotes, price changes, price-off, timeouts, and connection issues. Results are reported via an Experts log summary and an alert notification.
Key inputs include close scope (all symbols, current symbol, profitable-only, losing-only), Magic filter, pending-order cleanup, max slippage points, max spread points, retry count, and retry delay.
π Read | Signals | @mql5dev
The script iterates backward through positions, applies scope filtering, optional Magic Number matching, and an optional live-spread threshold before issuing close requests through CTrade. It can also remove matching pending orders when enabled.
Transient execution failures are handled with bounded retries and a configurable delay, covering common broker-side events such as requotes, price changes, price-off, timeouts, and connection issues. Results are reported via an Experts log summary and an alert notification.
Key inputs include close scope (all symbols, current symbol, profitable-only, losing-only), Magic filter, pending-order cleanup, max slippage points, max spread points, retry count, and retry delay.
π Read | Signals | @mql5dev
π₯9π7β€6π€©4β1
This article tackles a common MT5 ONNX failure mode: code that βloads fineβ but calls OnnxRun() with the wrong number/shape of buffers, producing runtime errors and misleading tests.
It adds a pre-trade validation layer built around three MQL5 classes plus a Python tool. A contract file pins down the expected ONNX signature (typed inputs/outputs, fixed feature order, class label order) and a SHA-256 hash to detect silent model swaps, even when a retrained model keeps the same signature.
A golden-file parity check then runs real feature rows through MT5 and compares per-row probabilities against onnxruntime within a tolerance, catching numerical or binding issues that aggregate accuracy can hide. An EA runs these checks in OnInit, and Python can audit Strategy Tester logs for consistency.
π Read | Calendar | @mql5dev
It adds a pre-trade validation layer built around three MQL5 classes plus a Python tool. A contract file pins down the expected ONNX signature (typed inputs/outputs, fixed feature order, class label order) and a SHA-256 hash to detect silent model swaps, even when a retrained model keeps the same signature.
A golden-file parity check then runs real feature rows through MT5 and compares per-row probabilities against onnxruntime within a tolerance, catching numerical or binding issues that aggregate accuracy can hide. An EA runs these checks in OnInit, and Python can audit Strategy Tester logs for consistency.
π Read | Calendar | @mql5dev
β€14π9π€©7π₯6
Spread & Tick Velocity Monitor is a lightweight on-chart HUD for MetaTrader 5 aimed at tracking real-time execution conditions without altering trading logic.
It reports live spread in points and pips, plus rolling session Min/Avg/Max. Visual status switches from green to amber to red when configured spread thresholds are crossed.
Tick velocity is computed using a circular ring buffer driven by GetTickCount64() and a 250 ms timer. Output includes short-term ticks/sec and a 1-minute ticks/min rate.
A market regime label classifies activity as QUIET, NORMAL, HIGH VELOCITY, or NEWS SPIKE to help flag rollover liquidity gaps and higher slippage risk.
Key inputs include InpSpreadWarnPts 25, InpSpreadCritPts 45, InpHighVelTps 4.0, InpSpikeVelTps 10.0, InpBurstWindowSec 10, plus corner anchoring, pixel offsets, and HUD colors.
π Read | CodeBase | @mql5dev
It reports live spread in points and pips, plus rolling session Min/Avg/Max. Visual status switches from green to amber to red when configured spread thresholds are crossed.
Tick velocity is computed using a circular ring buffer driven by GetTickCount64() and a 250 ms timer. Output includes short-term ticks/sec and a 1-minute ticks/min rate.
A market regime label classifies activity as QUIET, NORMAL, HIGH VELOCITY, or NEWS SPIKE to help flag rollover liquidity gaps and higher slippage risk.
Key inputs include InpSpreadWarnPts 25, InpSpreadCritPts 45, InpHighVelTps 4.0, InpSpikeVelTps 10.0, InpBurstWindowSec 10, plus corner anchoring, pixel offsets, and HUD colors.
π Read | CodeBase | @mql5dev
β€16π7π₯6π€©5β‘3π¨βπ»2
Daily POC and Value Area levels formalize where the session did the most business. A per-day volume profile aggregates volume by price row, then outputs three reference prices: POC (max volume), VAH and VAL (bounds containing a configurable share, 70% by default).
Calculation uses standard bar data only. Each barβs volume is distributed evenly across price rows between Low and High, summed for the day. Value Area is built from the POC outward by adding the higher-volume adjacent row until the target percentage is reached.
On completed days, lines span the full session and remain fixed for later reference. On the current day, levels update on every tick; optional right-extension, labels, and a filled VA rectangle are available.
Operational notes: run below D1 (typically M5βH1), tune bin size per symbol, set session start hour explicitly, and treat ti...
π Read | AlgoBook | @mql5dev
Calculation uses standard bar data only. Each barβs volume is distributed evenly across price rows between Low and High, summed for the day. Value Area is built from the POC outward by adding the higher-volume adjacent row until the target percentage is reached.
On completed days, lines span the full session and remain fixed for later reference. On the current day, levels update on every tick; optional right-extension, labels, and a filled VA rectangle are available.
Operational notes: run below D1 (typically M5βH1), tune bin size per symbol, set session start hour explicitly, and treat ti...
π Read | AlgoBook | @mql5dev
π₯8π€©8β€7π4β‘2
Giano Session Range Breakout EA targets XAUUSD breakouts from the night session range, with one decision per day and fixed lot size. No martingale, grid, or averaging logic is used.
Range is defined from M1 highs/lows between 01:00β06:00 server time, counted only when at least 30 of 60 fiveβminute slots have quotes. A breakout is the first M15 bar (opened 06:15β21:30) closing above the range high for buys or below the range low for sells. That first signal locks the day with no second attempt.
Entry is placed on the first quote after the breakout bar closes. SL is set on the opposite side of the range; TP is one full range size beyond the broken side. Trades are skipped if price is already beyond TP. Positions exit on SL, TP, or a forced close from 22:00.
Execution writes each decision to a hashβchained CSV journal before order send, then restores state afte...
π Read | Freelance | @mql5dev
Range is defined from M1 highs/lows between 01:00β06:00 server time, counted only when at least 30 of 60 fiveβminute slots have quotes. A breakout is the first M15 bar (opened 06:15β21:30) closing above the range high for buys or below the range low for sells. That first signal locks the day with no second attempt.
Entry is placed on the first quote after the breakout bar closes. SL is set on the opposite side of the range; TP is one full range size beyond the broken side. Trades are skipped if price is already beyond TP. Positions exit on SL, TP, or a forced close from 22:00.
Execution writes each decision to a hashβchained CSV journal before order send, then restores state afte...
π Read | Freelance | @mql5dev
β€20π€©12π8β‘3π₯3
Relative Volume (RVOL) in a subwindow standardizes volume by comparing each bar to its expected baseline: RVOL = bar volume / average volume. Values around 1.0 are typical, 2.0 is double, 0.5 is half. Elevated RVOL often aligns with news, breakouts, stop runs, and trend transitions, while breakouts near or below 1.0 tend to be less reliable.
Two baselines are supported. βPrevious N barsβ uses a rolling average on any timeframe. βSame time of day, previous N daysβ compares against the same session slot to remove intraday rhythm effects; on D1+ it falls back to N bars.
Output is a histogram with dotted levels at 1.0 plus configurable HIGH and EXTREME thresholds, with three colors. A label shows RVOL for the last closed bar and the live bar; signals should be judged on closed bars. Calculation is incremental, updating only the last/new bars. Inputs include ...
π Read | Docs | @mql5dev
Two baselines are supported. βPrevious N barsβ uses a rolling average on any timeframe. βSame time of day, previous N daysβ compares against the same session slot to remove intraday rhythm effects; on D1+ it falls back to N bars.
Output is a histogram with dotted levels at 1.0 plus configurable HIGH and EXTREME thresholds, with three colors. A label shows RVOL for the last closed bar and the live bar; signals should be judged on closed bars. Calculation is incremental, updating only the last/new bars. Inputs include ...
π Read | Docs | @mql5dev
β€12π€©10π9π₯4β2β‘1
Many MT5 strategies look stable when tested on M1 OHLC, then fail live due to tick-level conditions that the bar model hides. Common causes include rollover spread widening around 23:00β00:15 server time, weekday intraday feed blackouts that force stops across gaps, and corrupted history artifacts such as inverted quotes (Ask < Bid) or single-sided ticks.
Azimuth_Tick_Audit_Exporter.mq5 audits broker Bid/Ask ticks in a read-only, DLL-free workflow. It pulls up to 120 months of data via CopyTicksRange in 15-day chunks, then reports session spread percentiles (P50, P95) for Asia, London, and London/NY overlap, plus rollover median/P95/max and the widening ratio versus London liquidity.
The tool also counts inverted quotes, out-of-order millisecond timestamps, and single-sided ticks, and flags weekday blackouts above a configurable threshold while ex...
π Read | Quotes | @mql5dev
Azimuth_Tick_Audit_Exporter.mq5 audits broker Bid/Ask ticks in a read-only, DLL-free workflow. It pulls up to 120 months of data via CopyTicksRange in 15-day chunks, then reports session spread percentiles (P50, P95) for Asia, London, and London/NY overlap, plus rollover median/P95/max and the widening ratio versus London liquidity.
The tool also counts inverted quotes, out-of-order millisecond timestamps, and single-sided ticks, and flags weekday blackouts above a configurable threshold while ex...
π Read | Quotes | @mql5dev
π7β€6π€©5π₯3β‘1
No Hedge Guard prevents hedges on hedging accounts by closing the newer side when both buy and sell positions exist on the same symbol. It applies to manual trades and any EA activity, and does not place orders.
The tool monitors the entire account from a single chart. It reacts to every deal via OnTradeTransaction and performs a secondary check on a 1-second timer. Per symbol, it identifies the oldest position by POSITION_TIME_MSC and closes any newer position opened in the opposite direction.
Configuration supports close-on-hedge or alert-only mode, optional magic number filtering (0 for manual trades), selection of all symbols or only the chart symbol, plus popup alerts and on-chart status.
It cannot block order submission, only close the resulting position immediately. Root causes should still be addressed, such as multiple EAs trading the same symbo...
π Read | VPS | @mql5dev
The tool monitors the entire account from a single chart. It reacts to every deal via OnTradeTransaction and performs a secondary check on a 1-second timer. Per symbol, it identifies the oldest position by POSITION_TIME_MSC and closes any newer position opened in the opposite direction.
Configuration supports close-on-hedge or alert-only mode, optional magic number filtering (0 for manual trades), selection of all symbols or only the chart symbol, plus popup alerts and on-chart status.
It cannot block order submission, only close the resulting position immediately. Root causes should still be addressed, such as multiple EAs trading the same symbo...
π Read | VPS | @mql5dev
π15β€6π₯6π€©3β‘2
Bland-Altman analysis can be used to quantify drift between MT5 Strategy Tester execution models when neither is treated as ground truth. The comparison here is βEvery tick based on real ticksβ versus β1 Minute OHLCβ, matched trade-by-trade over identical inputs and date ranges.
An MQL5-only stack is outlined: an online stats engine (bias, SD, LoA, CI for LoA, skewness, proportional-bias regression), a logging EA that exports realized R-multiples with direction and a per-signal identifier, and a dashboard that pairs CSV rows by signal_id while reporting unmatched trades and duplicates.
Key implementation risks are called out: sell-side sign, account-wide position gating, bar shift off-by-one, CSV header alignment, partial closes, file truncation, and signal_id collisions when more than one trade can occur per bar.
π Read | NeuroBook | @mql5dev
An MQL5-only stack is outlined: an online stats engine (bias, SD, LoA, CI for LoA, skewness, proportional-bias regression), a logging EA that exports realized R-multiples with direction and a per-signal identifier, and a dashboard that pairs CSV rows by signal_id while reporting unmatched trades and duplicates.
Key implementation risks are called out: sell-side sign, account-wide position gating, bar shift off-by-one, CSV header alignment, partial closes, file truncation, and signal_id collisions when more than one trade can occur per bar.
π Read | NeuroBook | @mql5dev
π6β€4π₯3π€©2β‘1
News Day Blocker is a MetaTrader 5 utility that prevents new trading activity on US CPI and FOMC days, using the New York date. A built-in 2015β2027 calendar keeps behavior consistent between live charts and the Strategy Tester. The tool does not open trades.
On designated news days it can close positions opened that day (manual or EA, with optional magic number filtering), delete pending orders, and optionally close any remaining open positions at a specified New York time such as 08:25 ahead of the 08:30 CPI release.
It sets a terminal global variable NEWS_DAY_BLOCK to 1 on news days (0 otherwise) for external EA logic, and displays New York time, todayβs status, and the next CPI/FOMC date on-chart.
Files include NewsDayBlocker.mq5 and NyTime.mqh with US/EU DST handling. Inputs cover broker clock profiles, close/delete options, and magic numbers. Calendar so...
π Read | Forum | @mql5dev
On designated news days it can close positions opened that day (manual or EA, with optional magic number filtering), delete pending orders, and optionally close any remaining open positions at a specified New York time such as 08:25 ahead of the 08:30 CPI release.
It sets a terminal global variable NEWS_DAY_BLOCK to 1 on news days (0 otherwise) for external EA logic, and displays New York time, todayβs status, and the next CPI/FOMC date on-chart.
Files include NewsDayBlocker.mq5 and NyTime.mqh with US/EU DST handling. Inputs cover broker clock profiles, close/delete options, and magic numbers. Calendar so...
π Read | Forum | @mql5dev
π8π₯7β€6π€©3β‘1
This article builds a true Renko chart for MetaTrader 5 by aggregating price movement from OnTick() instead of approximating bricks from M1 OHLC. Using the tick sequence avoids the core OHLC ambiguity: the same minuteβs high/low can imply multiple brick orders, producing incorrect reversals and counts.
The solution is a small pipeline: a state-machine engine converts each quote into zero or many fixed-size bricks, including multi-brick bursts and a 2-brick reversal threshold to prevent noise flips. Each completed brick is emitted as a value struct with direction, boundaries, and timing metadata.
Bricks are persisted to a custom symbol via CustomRatesUpdate(), making the Renko chart behave like a normal chart so standard MT5 indicators run unchanged. A writer component also sequences bar timestamps to prevent same-tick overwrites and to resume safely after EA r...
π Read | AppStore | @mql5dev
The solution is a small pipeline: a state-machine engine converts each quote into zero or many fixed-size bricks, including multi-brick bursts and a 2-brick reversal threshold to prevent noise flips. Each completed brick is emitted as a value struct with direction, boundaries, and timing metadata.
Bricks are persisted to a custom symbol via CustomRatesUpdate(), making the Renko chart behave like a normal chart so standard MT5 indicators run unchanged. A writer component also sequences bar timestamps to prevent same-tick overwrites and to resume safely after EA r...
π Read | AppStore | @mql5dev
π6π€©6β€2π₯2β‘1π1
NyTime.mqh provides deterministic conversion between broker server time, UTC, and New York time, including US and European daylight saving rules.
Many session filters depend on TimeGMT(), but in the MT5 Strategy Tester TimeGMT() may return server time, shifting β09:30β11:00 New Yorkβ windows during backtests. NyTime.mqh avoids this by declaring the server clock once and calculating offsets from the calendar in both live trading and the tester.
Key APIs include ServerToUtc/UtcToServer, UtcToNy/NyToUtc, NyTimeFromServer/ServerTimeFromNy, IsUsSummer/IsEuSummer, and helpers like NyMinuteNow, NyDayNumber, and NyIsWeekday.
Supported server clocks: CLOCK_NY7, CLOCK_EU, CLOCK_EET, CLOCK_UTC, plus CLOCK_AUTO (live only). NyTimeDemo.mq5 prints current NY time and runs checks for the March US/EU DST mismatch week.
π Read | AlgoBook | @mql5dev
Many session filters depend on TimeGMT(), but in the MT5 Strategy Tester TimeGMT() may return server time, shifting β09:30β11:00 New Yorkβ windows during backtests. NyTime.mqh avoids this by declaring the server clock once and calculating offsets from the calendar in both live trading and the tester.
Key APIs include ServerToUtc/UtcToServer, UtcToNy/NyToUtc, NyTimeFromServer/ServerTimeFromNy, IsUsSummer/IsEuSummer, and helpers like NyMinuteNow, NyDayNumber, and NyIsWeekday.
Supported server clocks: CLOCK_NY7, CLOCK_EU, CLOCK_EET, CLOCK_UTC, plus CLOCK_AUTO (live only). NyTimeDemo.mq5 prints current NY time and runs checks for the March US/EU DST mismatch week.
π Read | AlgoBook | @mql5dev
π11β€10π€©9π₯7π1