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

Intraday Volatility Profile - indicator for MetaTrader 5

Dario Cadeddu
Dario Cadeddu
Quantitative Trading Systems Developer focused on risk management, market regime analysis and structured trading workflows for MetaTrader 5.
Views:
36
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

How much does EURUSD usually move between 15:30 and 15:45? And is the current bar quiet or busy for its time of day?

IntradayVolatilityProfile_EURUSD

Intraday Volatility Profile answers both questions in a separate window:

  • Histogram: the TYPICAL range of each time slot, computed as the median (or mean) of the same slot over the previous N days. Slots that are much busier than the daily average (London open, US data releases) are highlighted in turquoise.
  • Orange line: the ACTUAL range of each bar.
  • Info text: the typical range now, the current bar compared with it (for example 1.35x), and the busiest and quietest times of the day.

When the orange line stays well above the histogram, the market is more active than usual for that hour. When it stays below, the session is quieter than normal.

Practical uses

  • Size stops and targets for the time you trade, not for a daily average.
  • See which hours are worth watching for your symbol, and which are mostly noise.
  • Spot unusual activity: a bar at twice its typical range is information.

How it is calculated

  • Range of a bar = high - low, in pips for 3/5-digit symbols, in points for other symbols.
  • Typical range of a slot = median of that slot's ranges over the previous N days (default 20). Only past days are used, so values never change after the fact.
  • Busy slot = typical range at least InpBusyRatio times (default 1.5) the average of all slots.
  • Times are server time.

Inputs

  • InpDays: days used for the typical range (20)
  • InpUseMedian: use median (true) or mean (false)
  • InpBusyRatio: highlight ratio for busy slots (1.5)
  • InpShowActual, InpShowInfo, InpInfoColor, InpInfoSize: display options

Timeframes: M1, M5, M15, M30, H1.

Notes

  • The profile describes what happened on previous days. It is not a forecast of the next bar.
  • Around daylight-saving changes the profile shifts by one hour for a few days, until the new days fill the window.

If you need a calibrated forecast of the next hour's range (with 80% and 95% bands), see VolBand Pro in my profile.

Rollover Cost Table - swap mode from the symbol, triple-swap day from the broker Rollover Cost Table - swap mode from the symbol, triple-swap day from the broker

An MQL5 indicator that draws a table on the chart with one row per open position and shows what one more night of holding it costs, in the deposit currency where the symbol's swap mode allows it. The swap mode and the two rates come from the symbol's own specification, and so does the triple-swap weekday; no rate is typed into the code. Where the symbol charges in points, a horizon column turns that night into the number of normal nights needed to repay one round turn, and a figure the terminal cannot supply is a dash with a reason, never a zero.

Trailing Stop Manager - ATR, Chandelier, swing, SAR, MA, break-even with costs Trailing Stop Manager - ATR, Chandelier, swing, SAR, MA, break-even with costs

Trails the stop loss of open positions with one of seven methods plus a break-even that includes the commission. Moves a stop only on a real improvement, never back, respects stop and freeze levels, limits requests. Restart-safe.

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.