Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MT5 Range Divider

A lightweight MetaTrader 5 chart utility for dividing a manually selected price range into equal horizontal sections.

MT5 Range Divider is a simple and practical chart tool designed for traders who need to quickly divide a price range into 2 or 4 equal sections.

Select two price levels directly on the chart, choose the desired number of sections, and the tool automatically creates the corresponding horizontal levels.


✨ Features

  • 📏 Select two price levels directly from the chart
  • 2-section mode
  • 4-section mode
  • 📐 Automatic calculation of equal price intervals
  • ➖ Uses native MetaTrader 5 horizontal lines
  • 🔢 Supports multiple independent ranges on the same chart
  • 🎯 Price-based selection — chart time is irrelevant
  • 🖱️ Draggable control panel
  • ▶️ Enable / Disable selection mode
  • 🧹 Clear only the objects created by this tool
  • 💾 Ranges remain available when changing timeframes
  • 🛡️ Handles symbol tick size and price precision
  • ⚡ Lightweight with no external dependencies

📊 How It Works

2 Sections

Select two price levels:

Upper Price
──────────────

     50%
──────────────

Lower Price

The tool creates:

  • 2 boundary levels
  • 1 middle divider

4 Sections

Select two price levels:

Upper Price
──────────────

     75%
──────────────

     50%
──────────────

     25%
──────────────

Lower Price

The tool creates:

  • 2 boundary levels
  • 3 equally spaced dividers

🖱️ Usage

1. Enable Selection

Click:

ENABLE

The tool is now waiting for your first price selection.

2. Select Point 1

Click anywhere on the chart at your desired price level.

3. Select Point 2

Click a second price level.

The two selected prices define your range.

4. Choose the Division

Select either:

2 Sections

or

4 Sections

5. Create

Click:

CREATE

The tool will create the horizontal levels automatically.


🔁 Multiple Ranges

You can create multiple independent ranges on the same chart.

For example:

Range #3
──────────────
      │
──────────────
      │
──────────────

Range #2
──────────────
      │
──────────────
      │
──────────────

Range #1
──────────────
      │
──────────────

Existing ranges are not modified when a new range is created.


🧹 Clear All

The Clear All button removes only the chart objects created by MT5 Range Divider.

Other objects and drawings on your chart remain untouched.


⚙️ Requirements

  • MetaTrader 5
  • Windows
  • No external libraries or dependencies

📦 Installation

  1. Download the latest .ex5 file from the repository's Releases section.
  2. Open MetaTrader 5.
  3. Go to:
File → Open Data Folder
  1. Navigate to:
MQL5 → Indicators
  1. Copy:
MT5RangeDivider.ex5

into the Indicators folder.

  1. Restart MetaTrader 5 or refresh the Navigator.
  2. Open:
Navigator → Indicators
  1. Attach MT5 Range Divider to your chart.

🧠 Design Philosophy

MT5 Range Divider is intentionally designed to remain:

  • Simple
  • Fast
  • Non-invasive
  • Trader-controlled

The tool does not analyze the market, generate signals, or modify trading positions.

It simply helps traders convert a manually selected price range into precise horizontal levels.


🔒 Source Code

The compiled .ex5 file is provided for end users.

The original MQL5 source code (.mq5) is not included in the public distribution.


🛠️ Project Structure

mt5-range-divider/
│
├── MT5RangeDivider.ex5
├── README.md
├── LICENSE

📌 Example Use Cases

MT5 Range Divider can be useful for:

  • Price-range analysis
  • Intraday market mapping
  • Support & resistance planning
  • Session range analysis
  • Manual trade preparation
  • Measuring equal price intervals
  • Creating structured chart levels

📄 License

This project is licensed under the MIT License.

See the LICENSE file for details.


⭐ Support

If you find MT5 Range Divider useful, consider giving the repository a ⭐ on GitHub.

Issues, suggestions, and feature requests are welcome.

About

A lightweight MT5 chart tool for dividing selected price ranges into equal horizontal sections.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors