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
Views:
10
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: https://www.mql5.com/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.

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.