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

Edge Drift Detector - MetaTrader 5용 스크립트

Real author
게시자:
Cristian David Castillo Arrieta
Cristian David Castillo Arrieta
재무 및 국제 비즈니스 전문가로 재무 관리를 전공했습니다. MQL5와 Python 독학 개발자로서 알고리즘 트레이딩, 멀티에셋 포트폴리오 구축, 정량적 리스크 관리에 집중하고 있습니다.
저의 작업은 개별 전략이 아닌 조율된 포트폴리오로 작동하는 Expert Advisor의 설계, 최적화 및 검증에 중점을 두고 있습니다. 상관관계 분석, 시간대 커버리지 매핑, 자산군 분산화를 적용하여 단일 상품이나 단일 접근 방식에 의존하지 않는 시스템을 구축합니다.
조회수:
87
평가:
(1)
게시됨:
\MQL5\Script\
EdgeDrift.mq5 (52.59 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Edgedrift


A live Expert Advisor can stay in profit long after its edge has gone. The Edge Drift Detector answers one question with a statistical test: do the live closing deals still come from the same distribution as the backtest, or has the average result per deal fallen toward zero?

The script reads two CSV files and prints a full report in the Experts tab:

A live Expert Advisor can stay in profit long after its edge has gone. The Edge Drift Detector answers one question with a statistical test: do the live closing deals still come from the same distribution as the backtest, or has the average result per deal fallen toward zero?

The script reads two CSV files and prints a full report in the Experts tab:

  • CUSUM edge-loss detector: an alarm threshold calibrated by bootstrap from the backtest deals, with a false-alarm rate you choose over a planned monitoring horizon.
  • Drift start: the deal and date after which the drift most likely began.
  • Two-horizon check: bootstrap tail probabilities for the last 20 and the last 100 deals.
  • Expectancy decomposition: the change in expectancy split into win-rate, win-size, and loss-size effects.
  • Symbol mix check: a warning when the live account trades a different mix of instruments than the baseline, since per-lot results of different symbols are not comparable.
  • Detection delay: the median number of deals needed to confirm a complete loss of edge for this strategy.
  • Edge Health Score (A+ to F) and a CONTINUE, WATCH, REDUCE, or SUSPEND verdict with written recommendations.

Input. No code changes are needed. Backtest the Expert Advisor, right-click the Backtest results, choose Report, and save it as HTML in the common Files folder. Then run EdgeDrift.mq5 on the live account with the Expert Advisor's magic number. The script finds the newest ReportTester*.html file by itself and reads the live deals from the account history. On the first run, before any report exists, it prints these steps and analyzes built-in demonstration data. Two alternatives are available: a CSV baseline or live file, and a baseline taken from the same account before a chosen date. DriftExport.mq5 is an optional helper that writes the live deals to CSV when the account runs on another terminal.

Files. Both scripts go to MQL5\Scripts\EdgeDrift. The attached MQL5.zip already has this structure.

Parameters. InpBaseSource selects a tester report, a CSV file, or the account history. InpLiveSource selects the account history or a CSV file. InpMagic, InpSymbol, and InpLiveFrom filter the deals. InpMaxMixGap sets the symbol mix difference that triggers a warning. InpHorizon sets the planned monitoring horizon in deals. InpAlpha sets the false-alarm probability over that horizon. InpShortWindow and InpLongWindow set the two windows. InpBootstrap and InpSeed control the resampling, which is reproducible. InpPerLot normalizes every result to one lot. The score weights, the healthy tail level, and the grade boundaries are all inputs.

Buy GBPJPY Every Monday. That's the Whole Strategy. Buy GBPJPY Every Monday. That's the Whole Strategy.

A free, fully open EA: buy GBPJPY every Monday at 11:00 server time (04:00 New York), close at 23:00. Stays profitable in backtest with the entry anywhere from 09:00 to 13:00. Attach to GBPJPY M1.

Market session indicator lines for scalpers Market session indicator lines for scalpers

Quickly view each and every individual market's open and close times. Very important for short term scalping. I own the copyright, if anyone modifies or uses this it must stay free. Comments and feedback welcome.

Repaint Inspector Repaint Inspector

Measures whether an indicator repaints instead of trusting the claim. It re-reads the buffers of any custom indicator on bars that have already closed and counts every value that changes, appears or disappears, with the furthest shift back at which that still happens. Verdict per buffer on a chart panel, every event written to CSV.

ATS Liquidity City - liquidity pools and sweeps, drawn as a neon city ATS Liquidity City - liquidity pools and sweeps, drawn as a neon city

Shows where stops are likely resting and which ones were just taken. Liquidity pools = confirmed swing highs and lows that price has not traded through yet, equal highs/lows (a bigger pool) and yesterday's high and low. When a bar trades beyond a pool it is marked as swept, and as "grabbed & rejected" if the same bar closes back inside. Non-repainting: a swing is used only after N closed bars on each side. The panel is a neon city drawn on a CCanvas: the price is a flying car, sell stops are towers below it, buy stops floating platforms above it, yesterday's levels golden billboards, a searchlight sweeps the sky and a ticker runs today's catch. Two buffers give the nearest active pool above and below for use in an Expert Advisor. Indicator only: it never trades.