Watch how to download trading robots for free
Find us on Twitter!
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
Views:
272
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Daily Range Budget


How it works

The indicator takes the range (high minus low) of the last N completed daily bars (14 by default) and calculates the average. It then compares this with today’s range. Two dotted lines are plotted on the chart: the upper limit (today’s low + ADR) and the lower limit (today’s high – ADR). In the corner is a panel showing a filled bar with a percentage, the ADR value, today’s range, and the upside and downside headroom from the current price. The colour changes from green to yellow and red as the range is used up. Once the average range has been used up, the lines disappear.


Settings

Number of days for ADR, show or hide lines, show or hide the panel, panel corner and position, font size, warning level, colours.


Notes

This is a statistical guide, not a trading signal: many days end with a range significantly greater or less than the average. Works on any symbol and timeframe. No alerts, no trading, no external libraries.


How it works

The indicator calculates the high-low range of the last N completed daily bars (default 14) and averages it. It then compares today’s range so far with that average. Two dotted lines are drawn: the ceiling (today’s low + ADR) and the floor (today’s high – ADR). A small panel displays a progress bar showing the percentage used, the ADR, today’s range, and the remaining room above and below the current price. The colour changes from green to yellow to red as the budget is used up. When the average range has already been used, the lines are hidden.


Inputs

Number of days for ADR, show or hide lines, show or hide the panel, panel corner and position, font size, warning level, colours.


Notes

This is a statistical reference, not a trading signal: many days end with a range much larger or smaller than the average. Works on any symbol and any timeframe. No alerts, no trading, no external libraries.

Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/78604

Chart Indicators to CSV Chart Indicators to CSV

A script for MetaTrader 5 that exports the raw values of all buffers of every indicator on a chart to one CSV file, without changing any code.

Volatility Regime Indicator (Low, Normal, High) in a Subwindow Volatility Regime Indicator (Low, Normal, High) in a Subwindow

Classifies the current market volatility as Low, Normal or High by ranking the ATR against its own recent history. The percent rank is shown as a color-coded histogram in a subwindow, with optional alerts when the regime changes.

Gold Session Liquidity Free MT5 - XAUUSD Sessions, Sweeps and Risk Planner Gold Session Liquidity Free MT5 - XAUUSD Sessions, Sweeps and Risk Planner

Free XAUUSD MT5 indicator with Asian session High/Low, closed-bar liquidity sweeps, swing structure breaks, EMA trend context and a manual lot-size risk planner. No automatic trading or guaranteed profit.

Volume Profile with Naked POC - day, week, month or year profiles built from M1 bars Volume Profile with Naked POC - day, week, month or year profiles built from M1 bars

Volume profiles per day, week, month or year with POC, value area high and low (classic two-rows method), naked POC lines that stay until price trades through them, and a developing POC. Built from M1 bars. 8 buffers for EAs.