Watch how to download trading robots for free
Find us on Facebook!
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 High/Low with First Touch Marker - indicator for MetaTrader 5

Saad Ferdi
Saad Ferdi
MQL5 and Python developer focused on gold and forex.
I build and fix MT5 Expert Advisors and indicators, with clean source code and clear input settings.
Views:
21
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The indicator draws the previous day's high (PDH) and previous day's low (PDL) over each of the last N days and marks the first touch of each level during the day with an arrow. It is meant for traders who watch yesterday's extremes as intraday reference levels and want to see, on history and live, when price reaches them for the first time.

How it works

  • For every day, PDH and PDL are taken from the previous D1 bar of the symbol, so days follow the broker's server time.
  • Each pair of levels is drawn only over the day it belongs to (red = PDH, blue = PDL), not as endless lines.
  • A touch only counts after price has been at least MinDist % away from the level. A day that opens on top of a level does not produce a touch until price has moved away and come back.
  • Only the first touch of each level per day is marked (gold arrow), so the chart stays readable.
  • Optional alert when today's first touch happens on the current bar (one alert per level per day).

Inputs

  • InpDays (10) - number of days to draw.
  • InpMinDistPct (0.075) - distance from the level, in % of price, that must be reached before a touch counts.
  • InpAlert (true) - alert on today's first touch.
  • InpHighColor / InpLowColor / InpTouchColor - colours of PDH, PDL and the first-touch arrows.

Notes

  • Attach it to an intraday chart (H4 or lower). On D1 and above it loads but draws nothing, because there is no intraday first touch to mark.
  • The indicator only draws objects (prefix PDFT_), it has no buffers, and it removes its objects when deleted.
  • If D1 history is not loaded yet (for example when the market is closed), it retries every second until the data is available.
  • A first touch is a reference point, not a signal. In my own test on gold (2010-2026, 3,637 first touches), trading the break of the level at the first touch won about 50% of the time, and fading it was worse, so use it together with your own rules.
EA Safety Check - scan EA source for DLLs, data leaks and martingale EA Safety Check - scan EA source for DLLs, data leaks and martingale

Static safety scan of EA/indicator source: DLL imports, programs started, account data sent online, hidden text, martingale, SL = 0.

JONY ISLAM  EMA Cluster Signals with Entry SL TP  MTF Panel JONY ISLAM EMA Cluster Signals with Entry SL TP MTF Panel

JONY ISLAM EMA Cluster Signals is a technical indicator that plots a 4-EMA cluster cloud to identify trend direction. It generates Buy/Sell arrow signals and automatically calculates Entry, Stop Loss, and TP1-TP3 levels using ATR. It also features a built-in Multi-Timeframe (M1-W1) trend panel.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.