![]() |
![]() |
![]() |
![]() |
ZigZag History Indicator for MT4: Precision Trend Detection
The ZigZag History indicator is a powerful technical tool for MetaTrader 4 (MT4) traders who want to visualize key highs and lows in price movement over historical data. It highlights significant peaks and troughs, making it easier to spot market trends, reversals, and potential trading opportunities.
Key Features of ZigZag History
- Chart Type: Applied directly on the chart window.
- Buffers: Uses three buffers to store zigzag points, high, and low levels.
- Visualization: Blue dotted lines representing trend extremums.
- Customizable Parameters: Depth, Deviation, Backstep, and History length.
Indicator Parameters
| Parameter | Description |
| History | Number of historical bars the indicator will calculate (default: 1888). |
| InpDepth | Number of bars considered to detect a new high or low (default: 12). |
| InpDeviation | Minimum price change to consider a point as significant (default: 5). |
| InpBackstep | Bars to look back to eliminate false signals (default: 3). |
How ZigZag History Works
- The indicator scans historical price data to detect peaks and troughs.
- It ignores minor fluctuations below the defined deviation to reduce noise.
- Each significant high and low is stored in a buffer and drawn as a dotted line.
- The algorithm ensures the trend is accurately represented by comparing current extremums with previous ones.
See also: ZigZag Fibo V2
Practical Trading Applications
- Trend Identification: Quickly see market direction by connecting significant highs and lows.
- Support & Resistance Levels: Use detected points as potential areas for price reactions.
- Swing Trading: Combine with other indicators like RSI or MACD to confirm entries and exits.
- Pattern Recognition: Helps in spotting classic chart patterns like Head & Shoulders, Double Tops, and Double Bottoms.
Read also: How to Trade Double Top Pattern in Forex Trading
Tips for Optimizing ZigZag History
- Depth Setting: Higher depth reduces false signals but reacts slower to trend changes.
- Deviation Setting: Increase deviation in volatile pairs to ignore minor fluctuations.
- Backstep Setting: Prevents overlapping signals by eliminating previous redundant extremums.
- Combine with Indicators: For example, use Fibonacci retracement with ZigZag points for better entry points.
How to Instal “Zig Zag History” Indicator for Metatrader 4
- Open your Metatrader 4 platform.
- Download and save the “Zig Zag History” indicator to your desktop or any other folder located on your local computer.
- Choose “File” then “Open Data Folder” (Ctrl + Shift + D) on your Metatrader 4 platform.
- Explore the following folder: MQL4 > Indicators.
- Copy and paste the “Zig Zag History” indicator into this folder.
- Restart Metatrader 4.
- “Zig Zag History” indicators are stored by default in the custom indicator folder.
- To access these indicators, go to Top Menu > Insert > Indicators > Custom.
- In order to add a “Zig Zag History” indicator to any of your Metatrader 4 charts, you will need to select a forex chart with one mouse click, then go to Top Menu > Insert > Indicators > Custom > click the “Zig Zag History”.
- Done!
See a complete guide How To Install Metatrader 4 Custom Indicators
Conclusion
The ZigZag History indicator is an essential tool for Forex traders looking to analyze price extremes and trends effectively. Its ability to filter minor price fluctuations while highlighting significant highs and lows makes it ideal for swing traders, pattern hunters, and anyone aiming to improve their technical analysis accuracy.
Free Download Zig Zag History indicator for Metatrader 4
- zig-zag-history.zip
- Size: 21.9 kb
- Platform: MT4 | Format: .mql4/.ex4 | File: dir9mt4 | Request Remove!










