Random position sizing remains a common reason for account drawdowns. A compact MQL5 script addresses this by calculating lot size from two inputs: acceptable account risk (%) if stop loss is hit, and stop-loss distance in pips.
The script reads tick value, tick size, and volume constraints directly from the broker. Loss per 1.00 lot is computed as: stop_distance / tick_size * tick_value. The target risk amount (equity or balance * risk%) is divided by loss per lot, then rounded down to the symbolβs volume step so effective risk does not exceed the limit.
Inputs include risk %, account value basis (equity or balance), stop distance (pip definition varies by digits), and optional symbol override. Output is shown via alert and logged. If minimum lot exceeds the risk cap, it reports that condition instead of rounding up.
π Read | NeuroBook | @mql5dev
The script reads tick value, tick size, and volume constraints directly from the broker. Loss per 1.00 lot is computed as: stop_distance / tick_size * tick_value. The target risk amount (equity or balance * risk%) is divided by loss per lot, then rounded down to the symbolβs volume step so effective risk does not exceed the limit.
Inputs include risk %, account value basis (equity or balance), stop distance (pip definition varies by digits), and optional symbol override. Output is shown via alert and logged. If minimum lot exceeds the risk cap, it reports that condition instead of rounding up.
π Read | NeuroBook | @mql5dev
π€©18π16π₯10β€8
Session Range Box is an MT5 chart indicator that plots Asian, London, and New York trading sessions as range boxes. Each enabled session is shown from open to close, with high/low lines, an optional mid line, and a label displaying the session name and range in the symbolβs native price units. An optional fourth box marks the London/New York overlap when the time windows intersect.
A corner panel summarizes the latest session day with high, low, and range for Asia, London, New York, and the overlap, plus the clock mode in use. When attached on weekends, the panel reports the last day with available bars.
Default hours are defined in GMT and can be switched to broker server time. Inputs cover session visibility, start/end times, colors, the number of past days to draw (5 by default, up to 20), and panel placement. DST adjustments are manual; historical b...
π Read | AlgoBook | @mql5dev
A corner panel summarizes the latest session day with high, low, and range for Asia, London, New York, and the overlap, plus the clock mode in use. When attached on weekends, the panel reports the last day with available bars.
Default hours are defined in GMT and can be switched to broker server time. Inputs cover session visibility, start/end times, colors, the number of past days to draw (5 by default, up to 20), and panel placement. DST adjustments are manual; historical b...
π Read | AlgoBook | @mql5dev
π€©20β€18π17π₯17π€―4π1
CreyesHistoryCSV exports closed trade history from a trading account into a CSV file compatible with Excel, LibreOffice, and similar tools. It also outputs a compact performance summary to the Experts tab. The script is read-only and does not open, modify, or close any trades.
Usage requires placing CreyesHistoryCSV.mq5 in MQL5\Scripts, compiling if needed, then running it from the Navigator on any chart. After selecting inputs, the CSV is written to MQL5\Files (accessible via File -> Open Data Folder).
Key inputs include export range in days (1β3650), optional symbol and magic number filters, output filename, and a configurable column separator. Exported fields cover timestamps, deal/position identifiers, symbol, side, volume, price, P&L components, net result, magic, and comment.
Export includes only position-closing deals; deposits and withdrawals ...
π Read | Freelance | @mql5dev
Usage requires placing CreyesHistoryCSV.mq5 in MQL5\Scripts, compiling if needed, then running it from the Navigator on any chart. After selecting inputs, the CSV is written to MQL5\Files (accessible via File -> Open Data Folder).
Key inputs include export range in days (1β3650), optional symbol and magic number filters, output filename, and a configurable column separator. Exported fields cover timestamps, deal/position identifiers, symbol, side, volume, price, P&L components, net result, magic, and comment.
Export includes only position-closing deals; deposits and withdrawals ...
π Read | Freelance | @mql5dev
π₯17π15π€©15β€14
PivotPoints indicator plots the daily pivot point plus three resistance and three support levels derived from the previous dayβs high, low, and close. It renders several prior days, with each set of levels valid only for its own session. Levels are fixed at the daily open and do not repaint.
Displayed lines include PP (pivot), R1βR3 (resistance), and S1βS3 (support). Supported calculation modes cover Classic (PP and range-based extensions), Fibonacci (0.382/0.618/1.000 of prior range), and Camarilla (close-based levels using 1.1 Γ range scaled by 12, 6, and 4).
Configuration options include formula selection, number of days to plot, optional text labels, and separate colors for pivot, resistance, and support. Designed as an information tool across any symbol and timeframe via daily candle data, without trade signals or profit guarantees.
π Read | CodeBase | @mql5dev
Displayed lines include PP (pivot), R1βR3 (resistance), and S1βS3 (support). Supported calculation modes cover Classic (PP and range-based extensions), Fibonacci (0.382/0.618/1.000 of prior range), and Camarilla (close-based levels using 1.1 Γ range scaled by 12, 6, and 4).
Configuration options include formula selection, number of days to plot, optional text labels, and separate colors for pivot, resistance, and support. Designed as an information tool across any symbol and timeframe via daily candle data, without trade signals or profit guarantees.
π Read | CodeBase | @mql5dev
β€15π12π€©12π₯9
An EA built around Supertrend flips that trigger only after candle close beyond the band. On each new candle it rebuilds Supertrend from closed bars (default 300), using ATR(10) and multiplier 3.0, then opens a single trade on the last confirmed trend change: buy on flip up, sell on flip down. One position per symbol and magic; new flips do not stack entries.
Position sizing supports fixed lot or risk percent of balance/equity (default 1%). Stop loss can track the Supertrend line plus buffer (default 50 points) or use a fixed distance; broker stop level and spread are enforced. Take profit is a stop multiple (default 2.0). Breakeven moves SL to entry plus offset after 1R (default 20 points). Optional opposite-flip exit is enabled by default.
Sideways markets can cause repeated losses; if computed volume is below broker minimum, minimum volume is used and risk...
π Read | VPS | @mql5dev
Position sizing supports fixed lot or risk percent of balance/equity (default 1%). Stop loss can track the Supertrend line plus buffer (default 50 points) or use a fixed distance; broker stop level and spread are enforced. Take profit is a stop multiple (default 2.0). Breakeven moves SL to entry plus offset after 1R (default 20 points). Optional opposite-flip exit is enabled by default.
Sideways markets can cause repeated losses; if computed volume is below broker minimum, minimum volume is used and risk...
π Read | VPS | @mql5dev
β€22π10π₯10π€©7
True Trading Cost is a free MT4 chart indicator (source included) for estimating the monetary outcome of a planned Forex/CFD trade before any order is placed. It shows spread, position size, round-trip costs, break-even price, and gross vs net risk/reward. BUY, SELL, and RESET manage only a hypothetical plan; nothing is sent to the broker.
Entry/Stop/Target are set as draggable chart lines, with RESET pulling defaults from current Bid/Ask and ATR(14). Commission is entered as round-turn per lot in account currency. BUY is modeled at Ask to Bid, SELL at Bid to Ask, so spread is not double-counted. Net results can include commission, extra fees, slippage, and optional swap.
An optional panel tracks swap estimates and six-hour spread stats from live ticks only, stored in memory and resetting daily. Lot sizing supports risk-percent (rounded down, no forced ...
π Read | Forum | @mql5dev
Entry/Stop/Target are set as draggable chart lines, with RESET pulling defaults from current Bid/Ask and ATR(14). Commission is entered as round-turn per lot in account currency. BUY is modeled at Ask to Bid, SELL at Bid to Ask, so spread is not double-counted. Net results can include commission, extra fees, slippage, and optional swap.
An optional panel tracks swap estimates and six-hour spread stats from live ticks only, stored in memory and resetting daily. Lot sizing supports risk-percent (rounded down, no forced ...
π Read | Forum | @mql5dev
β€8π6π€©6π₯3
ATR-based dynamic support and resistance bands replace fixed pip levels with volatility-scaled distance from a moving-average basis. Bands are computed as basis Β± (multiplier Γ ATR), with ATR calculated internally using Wilder smoothing. This avoids external indicator handles; only the latest bar is recalculated on ticks, while history is processed once at initialization.
Upper dashed band acts as dynamic resistance, lower dashed band as dynamic support. In ranges, touches can mark overextension; closes outside the band with expanding width can indicate breakout conditions. The dotted basis (SMA or EMA) represents the mean and often acts as internal support/resistance during trends.
Band width reflects volatility: narrowing suggests compression that can precede expansion, widening confirms rising volatility. An on-chart label shows ATR parameters and the ...
π Read | NeuroBook | @mql5dev
Upper dashed band acts as dynamic resistance, lower dashed band as dynamic support. In ranges, touches can mark overextension; closes outside the band with expanding width can indicate breakout conditions. The dotted basis (SMA or EMA) represents the mean and often acts as internal support/resistance during trends.
Band width reflects volatility: narrowing suggests compression that can precede expansion, widening confirms rising volatility. An on-chart label shows ATR parameters and the ...
π Read | NeuroBook | @mql5dev
β€24π11π₯5π¨βπ»3π€©2
Spread & Slippage Tracker separates two costs often mixed under βbroker troubleβ: the spread at decision time and the slippage between requested and executed price. Both are measured from live data rather than assumptions, making it clearer where execution cost is coming from.
Spread is sampled every tick via SYMBOL_SPREAD, maintaining daily min/avg/max with an optional daily reset to prevent older volatility from distorting current sessions.
Slippage is captured only when a deal executes through OnTradeTransaction, which requires an Expert Advisor rather than an indicator. The EA places no orders and only observes account activity.
The panel shows current spread plus daily stats, then slippage stats: tracked deal count, average, and worst adverse slippage. Slippage is signed so positive always indicates a worse fill for the trade direction. Optional CSV l...
π Read | NeuroBook | @mql5dev
Spread is sampled every tick via SYMBOL_SPREAD, maintaining daily min/avg/max with an optional daily reset to prevent older volatility from distorting current sessions.
Slippage is captured only when a deal executes through OnTradeTransaction, which requires an Expert Advisor rather than an indicator. The EA places no orders and only observes account activity.
The panel shows current spread plus daily stats, then slippage stats: tracked deal count, average, and worst adverse slippage. Slippage is signed so positive always indicates a worse fill for the trade direction. Optional CSV l...
π Read | NeuroBook | @mql5dev
β€7π₯4π3π€©2
A chart utility for monitoring two execution-critical values: time remaining to the current bar close and the live spread. The countdown is driven by a one-second timer, so it updates even when tick flow is sparse, and it derives the close time from the last bar open without scanning history.
The candle label shows remaining time with adaptive formatting: MM:SS below H1, HH:MM:SS from H1, and Nd HH:MM:SS on higher periods. The spread label displays Ask-Bid in points or pips, with 1 pip mapped to 10 points on 3/5-digit symbols. An optional warning threshold (points) can switch the spread color when conditions degrade.
Placement is fixed to a chosen chart corner with pixel offsets. Typical inputs include visibility toggles, spread units, warning level, font, size, and colors. Server time is used for timing; weekend/holiday gaps can leave the countdown at...
π Read | Forum | @mql5dev
The candle label shows remaining time with adaptive formatting: MM:SS below H1, HH:MM:SS from H1, and Nd HH:MM:SS on higher periods. The spread label displays Ask-Bid in points or pips, with 1 pip mapped to 10 points on 3/5-digit symbols. An optional warning threshold (points) can switch the spread color when conditions degrade.
Placement is fixed to a chosen chart corner with pixel offsets. Typical inputs include visibility toggles, spread units, warning level, font, size, and colors. Server time is used for timing; weekend/holiday gaps can leave the countdown at...
π Read | Forum | @mql5dev
β€17π5π₯4π€©4
Equity/Drawdown Monitor Panel focuses on live drawdown from the accountβs own high-water mark, rather than relying on balance, which only updates on closed trades and can hide risk from floating losses.
The panel tracks the highest equity observed since attachment (optionally reset daily) and reports current drawdown from that peak as a percentage. It reads current account snapshot values, avoids unnecessary updates on ticks where nothing changed, and does not scan price history.
Key fields: Equity (balance plus floating P/L), Balance (closed-trade result only), Peak (tracked max equity), Drawdown (percent below peak). A configurable threshold switches the readout from silver to red.
Optional alerting is one-shot per threshold breach, then re-arms only after recovery inside a defined band to prevent repeated firing.
Designed as account-level teleme...
π Read | Freelance | @mql5dev
The panel tracks the highest equity observed since attachment (optionally reset daily) and reports current drawdown from that peak as a percentage. It reads current account snapshot values, avoids unnecessary updates on ticks where nothing changed, and does not scan price history.
Key fields: Equity (balance plus floating P/L), Balance (closed-trade result only), Peak (tracked max equity), Drawdown (percent below peak). A configurable threshold switches the readout from silver to red.
Optional alerting is one-shot per threshold breach, then re-arms only after recovery inside a defined band to prevent repeated firing.
Designed as account-level teleme...
π Read | Freelance | @mql5dev
β€7π6π₯6π€©5
Supertrend with trend color change is a trend-following trailing stop built from ATR-based bands. Two bands are calculated at multiplier x ATR around a chosen price source, but only one is active: the lower band during an uptrend and the upper band during a downtrend. Bands only move in the trend direction, so the line trails without stepping back.
A trend switch is confirmed when a candle closes beyond the active line. The indicator then flips to the opposite band, moves to the other side of price, and changes color. Optional arrows mark the bar where direction changes, and an info label reports settings plus current UP/DOWN state.
Key inputs include ATR period, multiplier, and price source (median or close), along with line styles, arrow colors, and optional alerts. Wilder-smoothed ATR is computed internally, only the last bar is recalculated per...
π Read | NeuroBook | @mql5dev
A trend switch is confirmed when a candle closes beyond the active line. The indicator then flips to the opposite band, moves to the other side of price, and changes color. Optional arrows mark the bar where direction changes, and an info label reports settings plus current UP/DOWN state.
Key inputs include ATR period, multiplier, and price source (median or close), along with line styles, arrow colors, and optional alerts. Wilder-smoothed ATR is computed internally, only the last bar is recalculated per...
π Read | NeuroBook | @mql5dev
β€28π9π₯8π€©6
An intraday indicator focused on the current daily open as a reference level, with an on-chart point-distance readout to avoid manual measuring.
It plots the daily open for today and optionally previous sessions (1β30). Todayβs line can be extended to the right; prior days are limited to their own session. A label at the last bar shows the open price and signed distance from current Bid in points (e.g., DO 1.08520 +35 pts), with configurable colors for above/below.
Update logic is lightweight: lines are created on initialization and only when a new D1 bar appears; on ticks only the label text is refreshed, and only on change. Session boundaries follow broker server daily bars, so daily open can differ by timezone. Objects are prefixed DailyOpen_ and cleaned up on removal; running multiple instances on one chart is not recommended.
π Read | Forum | @mql5dev
It plots the daily open for today and optionally previous sessions (1β30). Todayβs line can be extended to the right; prior days are limited to their own session. A label at the last bar shows the open price and signed distance from current Bid in points (e.g., DO 1.08520 +35 pts), with configurable colors for above/below.
Update logic is lightweight: lines are created on initialization and only when a new D1 bar appears; on ticks only the label text is refreshed, and only on change. Session boundaries follow broker server daily bars, so daily open can differ by timezone. Objects are prefixed DailyOpen_ and cleaned up on removal; running multiple instances on one chart is not recommended.
π Read | Forum | @mql5dev
β€20π₯8π7π€©5
MZ Smart Trail Manager is a position management EA that does not open trades. It modifies stop loss on existing positions, including manual orders or positions opened by other EAs.
Stop protection is built from three optional layers: break-even with offset after a defined favorable move, a stepped trailing stop that updates in fixed increments to reduce modification frequency, and a progressive profit lock defined in account currency. The active stop is always the most protective of the enabled rules, and it never moves against the position.
Position scope can be filtered by all trades, manual-only, or a specific magic number. An optional initial stop can be applied to positions opened without SL. The logic respects broker stop level and freeze level to avoid rejected updates.
Default distance inputs use ATR (M15, period 14) as multipliers, with an option t...
π Read | CodeBase | @mql5dev
Stop protection is built from three optional layers: break-even with offset after a defined favorable move, a stepped trailing stop that updates in fixed increments to reduce modification frequency, and a progressive profit lock defined in account currency. The active stop is always the most protective of the enabled rules, and it never moves against the position.
Position scope can be filtered by all trades, manual-only, or a specific magic number. An optional initial stop can be applied to positions opened without SL. The logic respects broker stop level and freeze level to avoid rejected updates.
Default distance inputs use ATR (M15, period 14) as multipliers, with an option t...
π Read | CodeBase | @mql5dev
β€21π€©10π8π₯2
Smart Liquidity Hunter v1.11 is an MT5 chart indicator that flags price sweeps around previously confirmed swing highs and lows using OHLC as a liquidity proxy. It does not read resting orders or stop placements, and it does not place trades.
Bullish signals require a closed candle to sweep below an eligible swing low and close back above it. Bearish signals require a sweep above an eligible swing high followed by a close back below it. Penetration must exceed the larger of MinSweepPoints and a volatility threshold based on the simple mean of prior true ranges, plus wick/close-location freshness filters. Dual-direction candidates are ignored, and no arrow is printed on the forming bar.
Defaults include SwingStrength=3, MaxSwingAge=100, VolatilityPeriod=14, MinSweepVolRatio=0.10, MinWickPercent=25, MinCloseLocationPct=60, with optional candle-color fi...
π Read | AppStore | @mql5dev
Bullish signals require a closed candle to sweep below an eligible swing low and close back above it. Bearish signals require a sweep above an eligible swing high followed by a close back below it. Penetration must exceed the larger of MinSweepPoints and a volatility threshold based on the simple mean of prior true ranges, plus wick/close-location freshness filters. Dual-direction candidates are ignored, and no arrow is printed on the forming bar.
Defaults include SwingStrength=3, MaxSwingAge=100, VolatilityPeriod=14, MinSweepVolRatio=0.10, MinWickPercent=25, MinCloseLocationPct=60, with optional candle-color fi...
π Read | AppStore | @mql5dev
π9β€8π€©3π₯2π1
Multi-Timeframe Trend Dashboard is an MT5 chart indicator that summarizes an EMA-based trend state across multiple timeframes in a corner panel. An optional EMA line for the chart timeframe can be plotted. No order placement, modification, or closing is performed.
Per enabled timeframe it shows the label (M15, H1, H4, D1, W1 plus an optional sixth), the state (UP/DOWN/FLAT), distance from last close to EMA in price units and ATR, and how many bars the current state has persisted up to a scan limit. A summary counts states and reports Aligned UP, Aligned DOWN, or Mixed. On weekends it uses the last available bar per timeframe.
Trend logic uses EMA(close) with a configurable period (default 50), EMA slope over a short lookback (default 5), and ATR (default 14) to filter noise. UP/DOWN require price side plus EMA slope exceeding NΓATR (default 0.08); ot...
π Read | Forum | @mql5dev
Per enabled timeframe it shows the label (M15, H1, H4, D1, W1 plus an optional sixth), the state (UP/DOWN/FLAT), distance from last close to EMA in price units and ATR, and how many bars the current state has persisted up to a scan limit. A summary counts states and reports Aligned UP, Aligned DOWN, or Mixed. On weekends it uses the last available bar per timeframe.
Trend logic uses EMA(close) with a configurable period (default 50), EMA slope over a short lookback (default 5), and ATR (default 14) to filter noise. UP/DOWN require price side plus EMA slope exceeding NΓATR (default 0.08); ot...
π Read | Forum | @mql5dev
π12π₯10β€9π€©7
DoEasyβs indicator framework is extended to support multi-buffer standard indicators drawn on the current chart while sourcing data from any symbol/period. The core change is stronger buffer identity: each buffer now carries indicator type, instance ID, and a new βline roleβ (e.g., main/upper/lower), plus a short indicator name matching terminal display.
Library updates add enums, new buffer properties, and collection search/sort criteria across all buffer subclasses. Creation methods now generate paired calculated+drawn buffers per indicator line for ADX, MACD, RVI, Stochastic, Bands, Envelopes, and Fractals, with special handling for Bollinger Bands line indexing.
Tests demonstrate rendering H4 indicators on an H1 chart, both in a subwindow and the main window, enabling cleaner multi-timeframe visualization for trading tools.
π Read | VPS | @mql5dev
Library updates add enums, new buffer properties, and collection search/sort criteria across all buffer subclasses. Creation methods now generate paired calculated+drawn buffers per indicator line for ADX, MACD, RVI, Stochastic, Bands, Envelopes, and Fractals, with special handling for Bollinger Bands line indexing.
Tests demonstrate rendering H4 indicators on an H1 chart, both in a subwindow and the main window, enabling cleaner multi-timeframe visualization for trading tools.
π Read | VPS | @mql5dev
π15β€9π₯7π€©7
News Event Marker is a MetaTrader 5 chart indicator that reads the terminalβs built-in economic calendar and renders selected releases directly on the chart. It draws a vertical line at each scheduled time, with coloring by importance, plus an optional shaded time window and short labels for higher-impact items.
A corner panel lists upcoming and recent releases with countdown or βagoβ timing and shows actual and forecast figures when available. It can raise optional alerts a configurable number of minutes before high- or medium-impact events. The tool is display-only and does not place, modify, or close orders.
Filtering supports importance levels, a configurable lookback/lookahead horizon, and an event cap to avoid clutter. Currency selection can be automatic by parsing the chart symbol for 3-letter codes, or manual via a comma-separated list.
Data...
π Read | VPS | @mql5dev
A corner panel lists upcoming and recent releases with countdown or βagoβ timing and shows actual and forecast figures when available. It can raise optional alerts a configurable number of minutes before high- or medium-impact events. The tool is display-only and does not place, modify, or close orders.
Filtering supports importance levels, a configurable lookback/lookahead horizon, and an event cap to avoid clutter. Currency selection can be automatic by parsing the chart symbol for 3-letter codes, or manual via a comma-separated list.
Data...
π Read | VPS | @mql5dev
β€17π16π₯15π€©14
IndexGapMarker scans daily candles and marks each opening gap above a configurable minimum. For every detected gap, it draws a box that remains green or red while unfilled, then switches to grey once price trades back to the prior close. A label reports the gap size in percent and the current fill status.
Key inputs include scan depth in days, minimum gap threshold, color settings, optional display of filled gaps, and label on/off control.
Best suited to stock index CFDs with defined closing sessions (DAX, Euro Stoxx, FTSE). Instruments trading nearly 24/7 typically show fewer gaps. The indicator can run on any chart timeframe since calculations use daily data. It is informational and not a trading system.
Deployment: copy IndexGapMarker.mq5 to MQL5\Indicators, compile in MetaEditor, then attach to an index chart. H1 is a practical default.
π Read | CodeBase | @mql5dev
Key inputs include scan depth in days, minimum gap threshold, color settings, optional display of filled gaps, and label on/off control.
Best suited to stock index CFDs with defined closing sessions (DAX, Euro Stoxx, FTSE). Instruments trading nearly 24/7 typically show fewer gaps. The indicator can run on any chart timeframe since calculations use daily data. It is informational and not a trading system.
Deployment: copy IndexGapMarker.mq5 to MQL5\Indicators, compile in MetaEditor, then attach to an index chart. H1 is a practical default.
π Read | CodeBase | @mql5dev
π15β€13π₯11π€©9
Fair Value Gap (FVG) detector for identifying 3-candle price imbalances and managing them as chart zones. A bullish FVG is flagged when the third candleβs Low is above the first candleβs High. A bearish FVG is flagged when the third candleβs High is below the first candleβs Low. Zones are drawn on closed bars only, preventing repaint during formation.
Active gaps are tracked in a list. On startup, a limited lookback is scanned; afterward, each closed bar is processed once, while ticks only validate existing zones against current High/Low. No full-history rescans are performed, and the oldest zones are dropped when InpMaxZones is exceeded.
Fill handling is configurable: TOUCH (entry), HALF (midpoint), or FULL (complete cross, default). Filled zones are removed automatically, or optionally kept as dotted, truncated boxes. Key inputs include InpMinGapPo...
π Read | Signals | @mql5dev
Active gaps are tracked in a list. On startup, a limited lookback is scanned; afterward, each closed bar is processed once, while ticks only validate existing zones against current High/Low. No full-history rescans are performed, and the oldest zones are dropped when InpMaxZones is exceeded.
Fill handling is configurable: TOUCH (entry), HALF (midpoint), or FULL (complete cross, default). Filled zones are removed automatically, or optionally kept as dotted, truncated boxes. Key inputs include InpMinGapPo...
π Read | Signals | @mql5dev
π₯19π15β€11π€©11
Order Block Marker adds rule-based order block detection with mitigation tracking, aimed at reducing subjective marking.
A block is defined as the last opposite-color candle before a confirmed displacement. Confirmation requires the next candle to close beyond the blockβs high/low, followed by an impulse within InpImpulseBars that reaches at least InpImpulseMult times the average range over InpAvgPeriod, with no prior return into the zone during validation.
Each zone is tracked as Fresh (untouched), Mitigated (price re-enters or reaches midpoint, per InpMitigation), or Broken (a closed bar breaches the far side). Fresh and mitigated zones remain visible with separate styles; broken zones are removed.
Processing is incremental: limited startup scan (InpLookbackBars), then one pass per closed bar with tick-level state updates for a capped list (InpMax...
π Read | Signals | @mql5dev
A block is defined as the last opposite-color candle before a confirmed displacement. Confirmation requires the next candle to close beyond the blockβs high/low, followed by an impulse within InpImpulseBars that reaches at least InpImpulseMult times the average range over InpAvgPeriod, with no prior return into the zone during validation.
Each zone is tracked as Fresh (untouched), Mitigated (price re-enters or reaches midpoint, per InpMitigation), or Broken (a closed bar breaches the far side). Fresh and mitigated zones remain visible with separate styles; broken zones are removed.
Processing is incremental: limited startup scan (InpLookbackBars), then one pass per closed bar with tick-level state updates for a capped list (InpMax...
π Read | Signals | @mql5dev
π12π€©12β€9π₯9
Fair Value Gap (FVG) detector focused on imbalance zones and automatic cleanup after invalidation.
An FVG is detected on closed bars using a 3-candle pattern. Bullish FVG triggers when candle 3 Low is above candle 1 High. Bearish FVG triggers when candle 3 High is below candle 1 Low. A zone is drawn as a box between those two prices and extended right.
The tool maintains an active zone list, scans only a configurable lookback at startup, then processes each new closed bar once. On ticks, only active zones are checked, avoiding full-history rescans.
Fill logic is selectable: TOUCH (first entry), HALF (midpoint), or FULL (complete cross, default), using wick High/Low. Filled zones are either deleted or retained as dotted, time-limited boxes. Limits include MinGapPoints, LookbackBars, MaxZones, optional new-gap alerts, and styling controls.
π Read | Signals | @mql5dev
An FVG is detected on closed bars using a 3-candle pattern. Bullish FVG triggers when candle 3 Low is above candle 1 High. Bearish FVG triggers when candle 3 High is below candle 1 Low. A zone is drawn as a box between those two prices and extended right.
The tool maintains an active zone list, scans only a configurable lookback at startup, then processes each new closed bar once. On ticks, only active zones are checked, avoiding full-history rescans.
Fill logic is selectable: TOUCH (first entry), HALF (midpoint), or FULL (complete cross, default), using wick High/Low. Filled zones are either deleted or retained as dotted, time-limited boxes. Limits include MinGapPoints, LookbackBars, MaxZones, optional new-gap alerts, and styling controls.
π Read | Signals | @mql5dev
β€22π13π₯12π€©8