Session Cost Map Range Break Statistics
- Göstergeler
-
Keiki Ishii
Independent MQL5 developer from Japan.
I build tools for MetaTrader 5 traders: risk managers, indicators and Expert Advisors.
How I work:
- Every product is tested in the Strategy Tester and on demo accounts (hedging and netting) before release. - Sürüm: 1.0
- Etkinleştirmeler: 5
Session Cost Map draws the Tokyo, London and New York session ranges and measures what happened after a range break on your own chart history, after your trading cost. It has no trade signals and never trades.
"Asian range breakout" and "London breakout" are popular ideas. Session Cost Map does not give you an arrow for them. It gives you the numbers: how many breaks there were in the loaded history, and the average move N bars later, before and after the round-trip cost.
Our own measurement. In our pre-registered test on gold, 4-hour bars, the London and New York opening-range breakout was about zero or negative after cost on all 8 parameter points (1,100 to 1,700 trades each). This tool lets you run the same kind of check on your symbol, your timeframe and your broker's spread.
What it draws (main chart)
-
Each session as a dotted frame, the opening range (the first minutes you choose) as a filled box, and the range high and low extended over the time in which a break is looked for.
-
Tokyo, London, New York and one session of your own (for example Sydney).
-
Session times are entered in each market's local time. Daylight saving time is handled with each region's rule (USA, Europe, Australia; Tokyo has none) and converted to your broker's server time.
-
Server time offset: detected automatically from the terminal, or set by hand (winter offset + DST rule).
What the panel shows
For each session and each break direction (up, down):
-
number of cases
-
average move before cost, in points and in ATR units
-
average cost
-
average move after cost, in points and in ATR units
-
t-value of the after-cost average
-
share of cases that were positive after cost
-
a verdict: NO EDGE (the after-cost average is inside the cost), ABOVE COST* (only in this sample) or FEW CASES
It always shows what it was calculated on: number of bars, number of days, first and last date, the rule, the cost and the server time used.
An optional table shows, for each server hour, the average bar range as a ratio of ATR and the average recorded spread, shaded like a heat map.
How a case is counted (no look-ahead)
-
The range is the high and low of the bars that open in the first minutes of the session (default 60), or of the whole session.
-
A break is the first later bar whose high goes above the range high or whose low goes below the range low, before the session ends. A bar that breaks both sides is not counted.
-
The break is only known when that bar closes. So the move is measured from the open of the next bar to the close N bars later (default 4).
-
The cost is the spread recorded on the entry bar plus extra points you enter (commission, slippage), or a fixed number of points.
Important
-
The values are averages of the history loaded on your chart. A result from a period you chose is not an edge. If one row shows "ABOVE COST*", it is only that sample.
-
No buy or sell arrows, no signals, no orders, no automatic trading. Optional small dots mark where past cases started; they are study points, not signals (off by default).
-
Spread per bar is the value your broker stores with each bar. It may differ from the spread you get. Slippage is only included if you add it.
Main inputs
-
Sessions: on/off, start and end (HH:MM, local time), color. Custom session: name, GMT offset, DST rule.
-
Server time: Auto or Manual, winter GMT offset, DST rule.
-
Break study: range minutes (0 = whole session), hours after the session (whole-session mode), bars counted after the break, ATR period, minimum cases for a verdict, bars of history to use.
-
Cost: bar spread + extra points, or a fixed round trip in points.
-
Chart drawing: frames on/off and days, past-case dots on/off and days.
-
Panel: by-hour table on/off, corner, position, font size, colors.
Default values: Tokyo 09:00-18:00, London 08:00-17:00, New York 08:00-17:00 (local times), 60-minute range, 4 bars after the break, ATR(14), bar spread as cost, 30 cases for a verdict.
Notes
-
Use a timeframe shorter than the range (M5 to M30 for a 60-minute range). On H4, set "Range minutes" to 0 to use the whole session.
-
In the Strategy Tester the terminal cannot tell the server's GMT offset. The manual winter offset (default GMT+2 with the US DST rule) is used there.
-
Current DST rules are used for the whole history (USA since 2007, Europe since 1996, Australia since 2008).
-
The panel shows WAITING until the symbol data, history and server time are ready.
Support
Questions and bug reports: send a private message to the seller (Equity Guard Tools) on MQL5.
