Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Previous Day and Week High Low Levels MT4 - indicator for MetaTrader 4

Dragos Mihai Ofrim
Dragos Mihai Ofrim
DuoFX Labs: trading tools for MetaTrader 5 and MetaTrader 4
We build the tools we use ourselves: fast, clean and honest about what they do. Every product ships for both MT5 and MT4 from the same code, is tested on live charts before release, and gets updates when traders ask for something.
Views:
78
Published:
PrevLevels.mq4 (4.04 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Previous Day and Week High Low Levels MT4

Many traders watch yesterday's and last week's extremes and the daily open as reference levels for breakouts, rejections and targets. This indicator draws them on any chart timeframe:

  • PDH / PDL: previous day high and low
  • PWH / PWL: previous week high and low
  • Open: today's open

Each line has a small label with its name and price, kept just to the right of the last candle. The levels come from the D1 and W1 bars of the symbol, so a "day" is the broker's server day. They are recalculated when a new D1 bar opens and use only completed days and weeks, so they do not repaint during the day. If D1 or W1 history is still loading, the indicator waits for the next tick and draws then.

All lines and labels are removed when the indicator is taken off the chart.

Inputs

InputDefaultWhat it does
Previous day high/low colourDodger bluePDH and PDL colour
Previous week high/low colourGoldenrodPWH and PWL colour
Today's open colourSilverOpen line colour
Show previous weektrueDraw PWH and PWL
Show today's opentrueDraw the open line
Line styleDotStyle of all lines
Line width1Width of all lines
Show labelstrueName and price next to each line
Label font size8Label text size
Trading Session Boxes: Tokyo, London, New York MT4 Trading Session Boxes: Tokyo, London, New York MT4

Draws the Tokyo, London and New York sessions of the last few days as boxes from each session's high to its low, with the high and low printed on the chart. Session hours are set in server time.

Candle Timer with Spread and Swap Countdown MT4 Candle Timer with Spread and Swap Countdown MT4

Countdown to the close of the current bar, the live spread in points and the time left until the next server midnight, when brokers roll positions over and charge swap.

Three Colors Three Colors

Example: Moving Average indicator filling by different colors

MACD Sample MACD Sample

Classical MACD Sample.