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
Indicators

Round Number Levels - indicator for MetaTrader 5

Views:
47
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Round Number Levels draws the psychological price levels that many traders watch, such as 3600.00 and 3650.00 on gold, or 1.08500 and 1.08250 on EURUSD. It chooses a sensible spacing for each symbol on its own.

How the step is chosen

In Auto mode, the major step is the smallest "round" value (1, 2.5 or 5 x 10^n) that is at least the daily ATR x a multiplier (0.75 by default). Gold ends up on 100-dollar majors with 50-dollar halves, and most forex pairs on 50- or 100-pip majors. When volatility changes enough, the step moves to the next round value. You can also enter any fixed step in Manual mode.

Features

  • Major levels (solid), half levels (dashed) and optional quarter levels (dotted), each with its own colour.
  • Price labels just to the right of the newest bar.
  • Info panel: major step and the daily ATR used to pick it; the nearest major level above and below price with the distance in price, in points and as a % of daily ATR; the next minor level above and below; how many major levels lie inside today's range.
  • Optional alerts (popup and/or push) when price crosses a major, half or any drawn level.
  • Light on CPU: lines are rebuilt only when the step changes or price nears the edge of the drawn band. On other ticks only the labels and panel update.
  • Works on any symbol and timeframe: forex, XAUUSD, oil, indices.
  • All objects use the prefix RNL_, can't be selected by accident, and are removed when the indicator is taken off.

The indicator only draws information. It does not open or manage trades.

Inputs

Group Input Default Meaning
Step Step mode Auto (from daily ATR) Auto or Manual
Manual major step 0 Price step in Manual mode, e.g. 100 for gold or 0.01 for EURUSD
Daily ATR period 14 ATR used in Auto mode
ATR multiple 0.75 The major step is at least ATR x this value
Levels Major levels each side 4 Number of major levels drawn above and below price
Show half / quarter levels true / false
Colours, major line width gold / grey
Show price labels true
Draw lines behind candles true
Panel Show panel, corner, X/Y offset, font size, colours top-left, dark theme
Alerts Alert when price crosses Off Off, Major only, Major + half, or All drawn levels
Popup / Push true / false
EA Validation Guard - Pre-Trade Request Checker EA Validation Guard - Pre-Trade Request Checker

Reusable MQL5 pre-trade validation library that checks margin, volume, trading permissions, symbol restrictions, stop levels and broker OrderCheck results before an order is sent.

Prop Firm Daily Profit Lock Prop Firm Daily Profit Lock

Daily Profit Lock is a free utility EA that protects a good trading day. Once today's profit hits your cap, it closes your trades, deletes pending orders and blocks new trades until the next day. You can set the cap as a fixed amount, a percent of balance, or a share of total profit, which suits prop-firm consistency rules. Dry run is on by default, so it only alerts until you're ready, and it never opens a trade itself.

Psychological Level Reaction Tracker Psychological Level Reaction Tracker

Free MQL5 indicator that plots 00, 25, 50 and 75 psychological price levels and tracks historical touches, rejections, breakouts and sweeps with dashboard statistics and alerts.

Trade List Report — a colorful PDF of your trades, written in pure MQL5 Trade List Report — a colorful PDF of your trades, written in pure MQL5

Prints a colorful, print-ready PDF report of your last N trades: KPI cards, a win-rate donut, a zebra table with BUY/SELL pills and diverging profit bars. Pure MQL5 — no DLL, no external converter. Saved to `MQL5\Files`.