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

SessionEdgeTester - does a time-of-day rule beat spread and swap? - MetaTrader 5용 스크립트

PROSPRA IQ ENTERPRISES (PTY) LTD
PROSPRA IQ ENTERPRISES (PTY) LTD
MQL5 developer and strategy tester, South Africa (Prospra IQ Enterprises). I build Expert Advisors, indicators, trade managers and prop-firm risk guards for MetaTrader 5 and 4, and convert MT4 code to MT5.
조회수:
144
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Does "buy at 18:00 New York, sell 9 hours later" really make money on your broker after costs? SessionEdgeTester answers that in about 20 seconds from your terminal's own H1 history. It places no trades.Gold: 9-hour hold from every entry hour

What it does

  • Buys (or sells) on the chosen weekdays at a fixed entry hour and exits a fixed number of hours later.
  • Each trade pays the larger of 1.5x the live spread and the spread recorded on the entry bar, plus optional commission, plus the live swap for every server midnight crossed (triple on the rollover day).
  • The entry time can be written in server, New York or London time. Daylight saving is handled, so the rule stays on the same clock hour all year, on GMT brokers and on New York-close (GMT+2/+3) brokers.
  • Optional stop-loss in %, checked on H1 highs/lows.

The report

  • All trades, the first 60% vs the last 40% of history (an honest out-of-sample check) and a PASS / WATCH / FAIL verdict.
  • Result before swap, by weekday and by year.
  • Baseline: the same hold started at every other hour. If most hours do as well, your "edge" is the market's drift, not your timing.

Example (Deriv XAUUSD, 2011-2026, buy 18:00 New York, hold 9 h, Mon-Thu, 2,489 trades): +2.74 bp per trade after costs, t 2.86; last 40% +5.49 bp, t 3.57; 0 of the 23 other entry hours did as well. The first 60% was flat (+0.07 bp), so the effect is recent, and the report shows you that too.

Inputs

Sym - symbol ("" = chart symbol)

GoLong - true = buy, false = sell

Clock - server, New York or London time

EntryHour, HoldHours, Weekdays (0=Sun..6=Sat)

StopPct - stop-loss in %, 0 = none

ServerClock - fixed offset (now), NY+7 (New York-close brokers) or GMT

SpreadMult, ExtraCostPct (commission in %), From, ISShare, OutFile

Output: Experts tab and MQL5\Files\SessionEdgeTester.txt

Research tool. Past results do not guarantee future results.

BotWatchdog - phone alerts when your EAs silently stop working BotWatchdog - phone alerts when your EAs silently stop working

Push notifications when the connection drops, algo trading is switched off, an EA leaves its chart, the account changes, a position has no stop, equity or margin hit a limit - plus a daily heartbeat.

SpreadClock - your broker's spread by hour and weekday from real ticks SpreadClock - your broker's spread by hour and weekday from real ticks

Reads real tick history and reports average, median and 95th-percentile spread for every server hour and weekday, plus the cost in % of price.

AlertKit, one alert per event and bar, no alert spam AlertKit, one alert per event and bar, no alert spam

A small include class that stops indicator alerts from firing on every tick. One alert per event and bar, silent about history on start, popup, push, email or sound, and an optional log of every decision. Comes with a working range break indicator as an example

Rolling VWAP Deviation Regime Filter Rolling VWAP Deviation Regime Filter

A regime-classification oscillator that measures how far, and how persistently, price deviates from a rolling volume-weighted VWAP in standard-deviation units, separating trending conditions from ranging ones.