Alım-satım robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Facebook üzerinde bulun!
Fan sayfamıza katılın
Kodu ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Kodu beğendiniz mi? MetaTrader 5 terminalinde deneyin
Göstergeler

Tick-Based Spread Distribution Profiler reads historical Bid/Ask ticks via CopyTicksRange - MetaTrader 5 için gösterge

Margarita Florencia Del Aguila
Margarita Florencia Del Aguila
Welcome to AIPID. I am 54 years old, married, and have two children. I am an engineer, and for nearly 20 years, trading has been my hell and is my passion.
WHY HAS IT BEEN MY HELL?
Görüntülemeler:
123
Derecelendirme:
(1)
Yayınlandı:
MQL5 Freelance Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git
Tick-Based Spread Distribution Profiler (MQL5 Indicator)

Core Idea
Most retail spread indicators only show the current live spread or bar-level minimum spreads stored in M1 bars, completely hiding rollover widening, news spikes, and fat-tail execution risk. Tick-Based Spread Distribution Profiler extracts real historical Bid/Ask ticks from your broker using CopyTicksRange() across InpLookbackDays and builds an empirical 24-hour spread distribution (P50, P90, P99) in a separate indicator subwindow.

To handle multi-week tick histories safely without memory overflow and without biasing early days in the sample, each Broker Server hour uses an unbiased deterministic reservoir sample (InpMaxSamplesPerHour).

How to Interpret the Indicator
1. Three Subwindow Plots (in Broker Points):
   - Hourly P50 Median (Blue Histogram): Typical spread experienced during each hour of the day.
   - Hourly P90 (Orange Line): 90th percentile spread. Useful for setting an EA's MaxSpread filter just above active-session P90 so 90% of liquid ticks execute while illiquid spikes are blocked.
   - Hourly P99 (Crimson Dotted Line): Extreme tail spread during rollover or macro events.
2. Closed-Bar Spread / ATR Friction Ratio:
   - Evaluates iATR strictly on the last closed bar (shift=1) of InpAtrTimeframe and reports P50 / ATR (%).
   - Helps intraday and scalping traders check whether broker spread friction consumes too large a fraction of typical candle range (e.g., > 15% - 20%).
3. Compact Subwindow HUD:
   - Displays total profiled ticks, live spread, global P50/P90/P99, current hour P50/P90, Spread/ATR ratio, and Best P50 / Worst P90 server hours.

External Input Parameters
- InpLookbackDays (default 14): Number of days of historical broker ticks to request via CopyTicksRange().
- InpMaxSamplesPerHour (default 50000): Maximum reservoir sample size per server hour (00..23) for bounded memory usage.
- InpAtrTimeframe (default PERIOD_M15): Reference timeframe for the closed-bar ATR friction calculation.
- InpAtrPeriod (default 14): ATR averaging period evaluated at shift=1 (zero repainting).
- InpRefreshMinutes (default 60): Minutes between full tick-history recalculations (never runs on every tick).
- InpShowSummaryHUD (default true): Toggles the summary panel inside the indicator subwindow.
- InpExportCSV (default false): Exports the 24-hour profile (Min, P50, P90, P99, Max, tick counts) to MQL5\Files\SpreadProfile_<Symbol>.csv.

Recommended Usage
Attach to any symbol and timeframe (commonly M15 or H1). Requires the broker to provide historical ticks for the selected symbol. All handles and graphical objects are cleanly released in OnDeinit().
Tick-Based Spread Distribution Profiler
Execution and Slippage Forensics audits MetaTrader 5 account history Execution and Slippage Forensics audits MetaTrader 5 account history

Execution & Slippage Forensics audits MetaTrader 5 account history (Orders vs Deals) to quantify real execution quality in points and currency. Key Features: - Order-to-Deal Matching: Pairs each fill to its parent order (ORDER_PRICE_OPEN vs DEAL_PRICE), skipping synthetic 0.0 prices. - Clear Sign Convention: (+) favorable price improvement, (-) adverse slippage. - 4-Category Breakdown: ALL_MEASURED, ENTRIES, SL_EXITS, and OTHER_EXITS (Mean, Median, Adverse %, Positive %, Net Slippage). - 24-Hour Profile: Identifies Broker Server hours where rollover or illiquidity worsens fills. - Hidden Execution Drag: Totals adverse slippage + commissions + fees + swaps vs Gross Winning Profit (%). - CSV Export: Saves ExecutionForensics_Deals.csv and ExecutionForensics_Hourly.csv to MQL5\Files\. Inputs: InpLookbackDays (90, 0=all), InpSymbolFilter, InpMagicFilter (-1=all), InpExportCSV, InpShowChartComment, InpTopWorstDeals.

Giano ATR Regime Giano ATR Regime

Classifies volatility on closed bars using ATR(14), with three color-coded regimes and optional alerts.

Range Compression Zones Breakout Range Compression Zones Breakout

Range Compression Zones Breakout draws range compression zones and marks breakouts that pass a higher-timeframe high/low filter and a volume filter. Inspired by the range compression idea in Domenico D'Errico's Accumulation/Distribution study (TASC, August 2018). Independent implementation, not a literal port of the published study.

Close All Positions and Orders (Filtered) Close All Positions and Orders (Filtered)

Closes open positions and deletes pending orders in one run, with filters for symbol, magic number, side and profit or loss. Asks for confirmation and retries failed closes.