Dual Session Signals
- 지표
- 버전: 1.0
Dual Session Signals draws the ranges of two trading sessions, London and New York by default, and marks three kinds of signal around them: breakout, retest and fakeout. Each session has its own time zone with its own daylight saving calendar, so the boxes stay on the right hours all year without changing any setting. A daily ATR filter tells you when a range is too small or too large to be worth trading, and alerts reach you by popup, sound, push notification or email.
The indicator works on charts from M1 to H1, on any symbol: gold, indices, currencies. It does not use DLLs or internet requests and it does not trade.
HOW IT WORKS
For each day the indicator measures the high and the low of each session range. With the default settings session 1 is London from 00:00 to 07:00 London time, the night range before the London open, and session 2 is New York from 08:00 to 09:30 New York time, the range around the New York open. After the range ends, the indicator draws a breakout level above and below it, a small buffer beyond the edges, and watches the closed bars until the end of the signal window: 11:00 London time for session 1 and 12:00 New York time for session 2.
THE THREE SIGNALS
Breakout: the first bar that closes beyond the breakout level. Buy arrow below the bar for an upside breakout, sell arrow above the bar for a downside breakout.
Retest: after a breakout, price comes back to the broken edge of the range and the bar closes again on the breakout side. This is the classic break and retest entry, and it must happen within Retest Max Minutes After Breakout.
Fakeout: after a breakout, a bar closes back inside the range within Fakeout Max Minutes Outside The Range. The breakout failed, so the signal points the other way: a failed upside breakout gives a sell signal, a failed downside breakout gives a buy signal.
If price closes back inside the range after the fakeout time, the breakout is simply over and no fakeout is marked; a new close beyond the level later in the window gives a new breakout signal. All signals are calculated on closed bars only and they do not repaint once the bar has closed.
DAILY ATR FILTER
Each range is measured as a percentage of the daily ATR of the previous days. A very narrow range often gives false breakouts, a very wide one leaves little room after the break. Ranges below Min Range Percent Of Daily ATR or above Max Range Percent Of Daily ATR are drawn as dotted boxes with the label too small or too large, and by default they give no signals. The label of every box shows its size, for example London 42% of daily ATR.
TIME ZONES
All session times are local times of the chosen zone, London or New York, each with its own daylight saving dates. The broker clock is converted automatically: in Auto mode the indicator reads the broker offset and recognises the common New York close clock (GMT+2 in winter, GMT+3 in summer). If your broker uses another clock, choose Fixed Offset and enter its UTC offset.
ALERTS
Alerts fire once, on the bar that has just closed, and never when the indicator loads or the chart is refreshed. Popup, sound, push notification and email can be turned on separately. Push notifications and email use the settings of your terminal in Tools, Options.
INFO PANEL
The panel in the top left corner shows, for the latest day of each session, the date, the range low and high, its size in percent of the daily ATR and its state: range forming, waiting for a breakout, broken up or down, retest, fakeout, back inside the range, window closed. The last line shows the server clock in use.
BUFFERS FOR ICUSTOM
The indicator has ten buffers that you can read from your own Expert Advisor with iCustom. Buffer 0 Breakout Buy, 1 Breakout Sell, 2 Retest Buy, 3 Retest Sell, 4 Fakeout Buy, 5 Fakeout Sell: they hold the low of the bar for buy signals and the high for sell signals, and EMPTY_VALUE on bars without a signal. Buffers 6 and 7 hold the high and low of the session 1 range and buffers 8 and 9 those of session 2, on the bars of their signal window. Read signals on closed bars, shift 1 or more.
GETTING STARTED
Attach the indicator to an M5, M15 or H1 chart. Check that the London box starts at midnight London time on your broker: with a New York close clock that is 02:00 server time in winter. If the boxes are shifted, set Server Time Mode to Fixed Offset with your broker's UTC offset. Then look at the last weeks: the labels show how large the ranges usually are on your symbol, so you can adjust the ATR filter.
SETTING EXAMPLES
Gold, London breakout: keep the defaults and use M15. Turn off Show Retest Signals and Show Fakeout Signals if you want only the breakouts of the night range.
New York open reversals: disable session 1, keep session 2 from 08:00 to 09:30 New York time, turn off breakouts and retests and keep only fakeouts. A Fakeout Max Minutes Outside The Range of 15 to 30 works well on M5.
Asian range: set session 1 to London from 23:00 to 06:00 with the signal window to 10:00. A start later than the end means the range starts the evening before.
Indices: for the cash open of US indices set session 2 to New York from 09:30 to 10:00 with the window to 12:00.
FREQUENTLY ASKED QUESTIONS
Does it repaint? No. Signals are calculated on closed bars. While a range is still forming, its box grows with the new bars, and that is shown with the label forming.
Why are there no signals today? The range may be filtered as too small or too large, the signal window may not have started yet, or price may still be inside the range. The second line of the panel shows the state.
Why does it not work on H4? A session range lasts a few hours, so on H4 and above it would be one or two bars. The indicator shows a message and draws nothing above H1.
The boxes are one hour off. Set Server Time Mode to Fixed Offset and enter your broker's UTC offset, or check that the broker uses a New York close clock if you keep Auto.
Can I use it in an Expert Advisor? Yes, through iCustom with the buffers described above.
PARAMETERS
Session 1 and Session 2
Enabled: turns the session on or off.
Name: label used on the chart, in the panel and in alerts.
Time Zone: London or New York. All times of the session are local time of this zone.
Range Start, Range End: the range. A start later than the end means the range starts the evening before.
Signal Window End: no signals after this time.
Box Color: color of the range box.
Server Time
Server Time Mode: Auto reads the broker offset and recognises the New York close clock; in the Strategy Tester it uses the New York close clock. NY Close and Fixed Offset can be set by hand.
Fixed Server Utc Offset Hours: broker offset from UTC for Fixed Offset.
Signals
Breakout Buffer Percent Of Range: distance of the breakout levels beyond the range, as a share of the range.
Show Breakout Signals, Show Retest Signals, Show Fakeout Signals: each signal type can be turned off.
Retest Max Minutes After Breakout: time allowed for the retest.
Fakeout Max Minutes Outside The Range: a close back inside the range within this time is a fakeout.
Range Filter
Daily ATR Period: ATR on the daily chart used by the filter.
Min Range Percent Of Daily ATR, Max Range Percent Of Daily ATR: limits of the range size, 0 = off.
No Signals On Filtered Days: when on, filtered ranges give no signals.
Display
Days To Show: how many days are drawn.
Show Breakout Levels, Show Range Labels, Show Info Panel: chart elements.
Buy Level Color, Sell Level Color, Text Color: colors. Arrow colors are in the Colors tab of the indicator.
Alerts
Popup Alert, Sound Alert, Sound File, Push Notification, Email: alert channels.
About Algotrend: Algotrend is an independent developer of trading algorithms and indicators. Every product is designed, tested and supported by the same developer. For questions and suggestions, write in the comments of this page or send a private message on MQL5.
Signals describe past price action and do not guarantee future results. Trading involves risk.
