Key Levels Set and Forget
- ユーティリティ
-
George Kamwanga
Hello Trader!
Looking for a good developer?
Hire me for your MT4/MT5 project: https://www.mql5.com/en/job/new?prefered=kamwangag6-gmail - バージョン: 1.0
- アクティベーション: 5
KeyLevels draws horizontal levels on the chart at round price numbers — for example, every 50 or 100 points on XAUUSD, or a comparable increment on any other symbol — and lets you place and manage pending orders directly from those levels, without leaving the chart or opening a separate order dialog.
Round numbers are a well-known point of hesitation, reversal, or breakout in many markets. Traders already watch them manually: marking each level by hand, re-marking after every zoom or scroll, then switching to the order window to enter a price, a stop, and a target. KeyLevels replaces that repeated manual process with one click at the level you want to trade.
What It Does
- Generates round-number levels automatically around the current price, at an increment you set per symbol.
- Draws the levels as clean lines extending forward from price, without covering historical price action behind them.
- Clicking a level opens an order ticket showing only the order types that are valid at that level relative to current price.
- Stop loss and take profit can be set at the same time the order is placed.
- A panel lists the orders and positions placed through the tool, with fields to adjust stop loss and take profit, or close them, without searching through the terminal's full order list.
- Input is checked before an order is sent: incomplete or invalid stop/target values are rejected rather than silently producing an order with no protection, and a message on the chart explains what needs to be corrected.
- The tool checks the broker's minimum stop distance before sending an order and reports the reason if a stop or target is too close.
- Placing a second order on a level that already has one from this tool is prevented, to avoid duplicate pending orders.
Who This Is For
- Traders who already use round-number levels as reference points and want to act on them without repeating the same manual steps each time.
- Traders who place a set of pending orders around key levels and prefer to manage them from a single panel afterward.
- Traders on gold and other instruments where round-number reactions are a regular part of their analysis.
What This Tool Does Not Do
This tool draws levels and manages order placement. It does not analyze market direction, does not generate trade signals, and does not make any claim about future price movement or profitability. Deciding which levels to trade and why remains the trader's own analysis. This is stated plainly so expectations are clear before purchase.
Inputs
- RoundStep: the price increment used to generate levels (for example, 50 for XAUUSD; adjust per symbol).
- MaxLevelsUp / MaxLevelsDown: number of levels drawn above and below the current price.
- LevelColor / LevelWidth / LevelStyle: visual appearance of the level lines.
- ShowPriceLabel: shows or hides the price label on each level.
- ClickTolerancePx: how close a click must be to a level to register, measured in screen pixels so it behaves consistently at any zoom level.
- DefaultLotSize: lot size used when an order is placed through the tool.
- MagicNumber: identifies orders placed by this tool, separating them from other orders or positions on the same account.
- PanelRefreshSec: how often the order panel checks for changes to open orders and positions.
Requires AutoTrading to be enabled for the tool to place or modify orders.
