거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

Tick-Based Spread Distribution Profiler reads historical Bid/Ask ticks via CopyTicksRange - MetaTrader 5용 지표

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?
조회수:
115
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
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.