Murrey Math MQ
- Indicateurs
- Muhammad Iqbal
- Version: 1.0
This indicator automatically calculates and displays the 9 Murrey Math price levels (0/8 through 8/8) on your chart, derived from the highest and lowest prices over a configurable lookback period. Levels update in real time via a 1-second timer, keeping them aligned with current price action.
Key Features:
- 9 Murrey Math Levels — From Ultimate Support (0/8) to Ultimate Resistance (8/8), each labeled with its traditional description (Pivot/Reverse, Weak/Stall/Reverse, Major S/R, Trading Range boundaries, etc.).
- Price-Cross Alerts — Get notified when price crosses any selected level. Supports both popup alerts and push notifications. Each alert fires once per crossing direction and automatically resets when price crosses back.
- Fully Customizable — Configure lookback period, line length, colors for each level, line width/style, font settings, and toggle labels/descriptions on or off.
- Lightweight — Uses zero indicator buffers; all visuals are drawn as chart objects with minimal resource usage.
Inputs:
- LookbackBars — Number of bars used to determine the high-low range (default: 100).
- LineLength — How far back the lines extend on the chart (default: 60 bars).
- Individual color settings for each of the 9 levels.
- LineWidth , LineStyle , FontSize , FontName — Visual customization.
- ShowLabels / ShowDescription — Toggle price labels and level descriptions.
- EnableAlert / EnablePush — Master switches for popup and push alerts.
- Alert_0_8 through Alert_8_8 — Enable or disable alerts per level.
How It Works:
The indicator finds the highest high and lowest low within the lookback window, computes the appropriate Murrey Math octave using logarithmic scaling, and divides it into 8 equal segments. Lines and labels are redrawn every second to reflect any changes. Alert logic tracks price position relative to each level and triggers once per directional cross.
