Many traders mark the same few levels every morning: the high and the low of the previous day, of the previous week and of the previous month, the open of the day, and the range of the Asian session. Price often reacts at these levels, and a quick move through a level that closes back on the other side (a sweep) is a setup that many people watch. This indicator draws all of them for you, on every timeframe, and tells you when a level was swept or broken.
Files
What is drawn
When does the day start
The previous day high and low depend on where the day starts, and this is the most common reason why two key level tools show different numbers. You can choose:
For the New York options the class BrokerTime finds the clock of your broker from the Friday closes in the history, with the right summer time for every date (US and European summer time start on different dates). It can also be set by hand.
No repaint
Sweeps, breaks and alerts
For Expert Advisors
Buffers 12 to 23 hold the exact values (empty when a level is switched off or not known): 12 PDH, 13 PDL, 14 PWH, 15 PWL, 16 PMH, 17 PML, 18 New York midnight open, 19 day open, 20 week open, 21 month open, 22 Asian high, 23 Asian low. Buffer 24 is set (to the high) on a bar that swept a high level, buffer 25 (to the low) on a bar that swept a low level. Buffers 0 to 11 are the drawn lines (empty on the first bar of each period, so the lines have no vertical steps); use 12 to 23 in your code.
When you call the indicator with iCustom, each "input group" counts as one parameter: pass a string for it, for example iCustom(_Symbol, _Period, "KeyLevelsSweeps", "Day", 2, 0, 2.0, ...).
Inputs: day start, broker clock, which levels, Asian session hours, days to draw, sweep marks and their text, labels (price, distance, font size), six colours, alerts.
How it was tested
OrderGuard - restart-safe order sending for EAs (no duplicate trades)
An include file that makes the way an EA sends its orders safe: the same signal is never traded twice. It has no trading strategy inside and comes with a small example EA.
Pacific Clock - US Pacific time on the chart (PST/PDT)
Shows US Pacific time on the chart, with the broker's time beside it, and the Pacific time of any candle under the mouse.
Divergence Detector without repaint: RSI, MACD, Stochastic, CCI, Momentum
Regular and hidden divergences between price and RSI, MACD, Stochastic, CCI or Momentum. Swings confirmed on closed bars, signal on the confirmation bar, lines on oscillator and price. No repaint, buffers for EAs.
MACD Signals
Indicator edition for new platform.