MT4 Version: Head & Shoulders MT4
MT5 Version:
Complete User Documentation — MT4 & MT5
1. OVERVIEW
The Head & Shoulders Indicator identifies classic reversal patterns characterized by three peaks: two shoulders and a higher head in the middle. It signals potential trend reversals when the price breaks the neckline, allowing traders to make timely entries and exits. This indicator helps traders capitalize on market shifts from bullish to bearish or vice versa.
Who Should Use It: Retail forex traders looking to identify trend reversals and optimize their entry and exit points.
Main Benefit: This indicator provides clear signals for potential market reversals, enhancing trading decision-making and improving profitability.
2. INPUT PARAMETERS & SETTINGS
This product shares a common set of general input settings with all Indicator products in this series. The following sections are covered in the common guide: Alert Settings (popup alert, push notification, email alert) and Display Settings (arrow size, colors). For full details refer to the Common General Input Settings Guide. The sections below cover only the product-specific inputs unique to this product.
Indicator Settings
This section covers settings that control the behavior and appearance of the Head & Shoulders Indicator.
| Setting Name | Type | Default Value | Description | Example |
|---|---|---|---|---|
| ZigZag Depth Lower | int | 12 | Determines the minimum number of bars to consider when identifying peaks and troughs. Adjusting this can help filter out noise in volatile markets. | 10 - Use this in a less volatile market to capture clearer patterns. |
| ZigZag Deviation Lower | int | 5 | Sets the minimum price movement required to consider a peak or trough valid. A higher value reduces false signals. | 6 - Ideal for markets with significant price swings to avoid minor fluctuations. |
| ZigZag Backstep Lower | int | 3 | Defines how many bars must be between peaks and troughs. Adjusting this can help refine pattern recognition. | 2 - Useful for tighter patterns in fast-moving markets. |
| Gaps sensitivity between tops/bottom | double | 2 | Controls the sensitivity to gaps between identified peaks and troughs. Lower values may capture more patterns. | 1.5 - Use this for tighter patterns with minimal gaps. |
| Line color | color | clrYellow | Sets the color of the indicator lines on the chart, allowing for customization to improve visibility. | clrBlue - A preferred choice for better contrast against a dark background. |
| Line style | ENUM | STYLE_DASH | See options explained below. | STYLE_SOLID - Use this for a more pronounced appearance of the lines. |
| Line width | int | 1 | Adjusts the thickness of the indicator lines. A thicker line can improve visibility on the chart. | 2 - Ideal for traders who prefer more visible indicators. |
Line style — Options Explained
This setting allows traders to customize the appearance of the indicator lines on their charts. Choosing the right style can enhance clarity and personal preference.
STYLE_DASH: A dashed line style that can be used for a less intrusive appearance on the chart. It is useful for traders who want to keep the chart clean while still receiving signals.
STYLE_SOLID: A solid line style that provides a strong visual cue for signals. This is ideal for traders who prefer clear and prominent indicators on their charts.
3. HOW IT WORKS
Core Calculation & Logic
The Head and Shoulders Indicator identifies classic reversal patterns characterized by three peaks: two shoulders and a higher head in the middle. It calculates price movements to signal potential trend reversals when the price breaks the neckline.
This indicator is particularly useful in volatile markets, providing traders with alerts for timely entries and exits during bullish-to-bearish or bearish-to-bullish shifts, enhancing decision-making based on historical price actions.
BUY and SELL Signal Conditions
BUY Signal — When does it appear? A BUY signal is generated when the price breaks above the neckline after forming a head and shoulders pattern, indicating a potential bullish reversal.
SELL Signal — When does it appear? A SELL signal occurs when the price breaks below the neckline after forming an inverse head and shoulders pattern, signaling a potential bearish reversal.
Signal Confirmation: Traders will see colored arrows on the chart, with green arrows indicating BUY signals and red arrows indicating SELL signals, accompanied by alerts for immediate action.
Recommended Action: It is advisable to confirm signals with higher time frame analysis and place stop-loss orders to manage risk effectively.
Step-by-Step Workflow
Step 1: Identify the Pattern Look for the formation of three peaks on your chart, ensuring the middle peak is higher than the two outer peaks.
Step 2: Confirm the Neckline Draw a line connecting the lows of the two shoulders to establish the neckline.
Step 3: Wait for Breakout Monitor price action for a breakout above the neckline for a bullish signal or below for a bearish signal.
Step 4: Set Alerts Utilize the indicator's alert settings to receive notifications when a breakout occurs.
Step 5: Execute Trade Based on the confirmed signal, execute your trade with appropriate risk management measures in place.
4. USAGE TIPS & BEST PRACTICES
Utilizing the Head and Shoulders Indicator effectively can enhance trading strategies significantly.
| Feature | Description |
|---|---|
| ZigZag Depth Lower | Defines the minimum depth for identifying peaks and troughs in the price action, helping to filter out noise. |
| ZigZag Deviation Lower | Sets the minimum price movement required to consider a peak or trough valid, enhancing pattern accuracy. |
| Gaps Sensitivity | Adjusts the sensitivity to gaps between tops and bottoms, allowing for more precise pattern recognition. |
| Alert Settings | Enables notifications for potential trading opportunities, ensuring traders do not miss critical market movements. |
| Line Style and Color | Customizes the appearance of the indicator lines, improving visibility and personal preference on the trading chart. |
Quick Start Guide
Follow these steps to get started in under 5 minutes:
- Install the Indicator: Download and install the Head and Shoulders Indicator from the MQL5 marketplace.
- Add to Chart: Attach the indicator to your desired trading chart.
- Adjust Settings: Customize the settings based on your trading style and preferences.
- Enable Alerts: Turn on alerts to stay informed about potential trading signals.
- Identify Patterns: Look for head and shoulders formations on the chart.
- Confirm Breakouts: Monitor price action for breakouts above or below the neckline.
- Execute Trades: Place trades based on confirmed signals with appropriate risk management.
Installation Guide for MQL Products | Updating Purchased MQL Products on MT4/MT5 | General Troubleshooting Guide
Check all my products: https://www.mql5.com/en/users/biswait50/seller
Contact me for support: https://www.mql5.com/en/users/biswait50


