





Display:
The MACD Buy Sell Signal Indicator displays key MACD signals, including crossovers and reversals, with five different modes in the MT4/MT5 subwindow to support your entry decisions.
Unlike the standard MT4/MT5 MACD, this indicator displays the familiar "MACD line + signal line + histogram" format in the chart's subwindow. You can individually show or hide each line and the histogram, as well as customize their colors and widths to suit your preferences.
The histogram is color-coded into four states: Positive Expanding, Positive Shrinking, Negative Expanding, and Negative Shrinking. Intuitively see whether the gap between the MACD and signal lines is widening or narrowing.
Switch between five signal detection modes: Cross, Zero Cross, Histogram Reversal, Hybrid, and Trend Follow, to match your trading style.
Customize signal criteria by combining MACD Direction, Histogram, and Candle Direction Filters according to your needs, whether you want to reduce false signals or increase signal frequency.
Receive pop-up, push, or email notifications when new signals are confirmed. You can stay informed of crossovers and other signals without constantly monitoring the charts. Note that notifications are sent even when arrows are disabled.
Signals provided by this indicator do not guarantee trading results or profits. No automated trading or order placement is supported.
The "Unused Compatibility Buy/Sell Arrow Color" parameters on the Inputs tab are not currently used.
To use the line copy indicator, install the "[Myforex] MACD Buy Sell Signal Indicator" file on MetaTrader4 (MT4) / MetaTrader5 (MT5).
Click "File" from the menu bar at the top of MT4/MT5 and choose "Open Data Folder".
After opening the data folder, double-click the folder "MQL5 (MQL4 for MT4)" in it to open it.
Double-click to open the "Indicators" folder in the MQL5 folder.
Save the "[Myforex] MACD Buy Sell Signal Indicator" in the "Indicators" folder.
Once the file is in the folder, right-click "Indicators" in the Navigator and choose "Refresh" from the displayed menu.
After checking that the line copy indicator is shown in the "Indicators" of the Navigator, apply it to a chart by double-clicking or dragging and dropping.
If you can't see the Navigator window, Go to the menu bar and select "View" → "Navigator". Alternatively, press Ctrl+N to show or hide the Navigator window.
Refer to the "How to set up" page to make further settings in the "Inputs" tab, then click "OK".
If the indicator can't be added to a chart, Verify that the indicator is saved in the Indicators folder and that the file name has not been changed. If it still doesn't appear after refreshing the Navigator window, restart MT5 and try again.
After applying the indicator to the chart, set the parameters according to your style.
First, open the "Inputs" tab.
Set the parameters as follows.
General Settings
| Item name | Description |
|---|---|
| Signal Mode | Select the signal logic from five options: Cross, Zero Cross, Histogram Reversal, Hybrid, and Trend Follow. |
| Fast EMA Period | Select the short-term EMA period used to calculate MACD. |
| Slow EMA Period | Select the long-term EMA period used to calculate MACD. |
| Signal Period | Select the period used for the smoothed signal line. |
| Applied price | Select the price type used for MACD calculation (e.g., close). |
| Use Confirmed Bar | When ON, signals are detected only on confirmed bars; when OFF, forming bars are also included. |
| Same Direction Signal Interval | Set the minimum number of bars between signals of the same type and direction. |
| Max Calculation Bars | Specifies the number of past bars used for the calculation. |
| Signal Mode |
| Select the signal logic from five options: Cross, Zero Cross, Histogram Reversal, Hybrid, and Trend Follow. |
| Fast EMA Period |
| Select the short-term EMA period used to calculate MACD. |
| Slow EMA Period |
| Select the long-term EMA period used to calculate MACD. |
| Signal Period |
| Select the period used for the smoothed signal line. |
| Applied price |
| Select the price type used for MACD calculation (e.g., close). |
| Use Confirmed Bar |
| When ON, signals are detected only on confirmed bars; when OFF, forming bars are also included. |
| Same Direction Signal Interval |
| Set the minimum number of bars between signals of the same type and direction. |
| Max Calculation Bars |
| Specifies the number of past bars used for the calculation. |
Filter Settings
| Item name | Description |
|---|---|
| Use MACD Direction Filter | Enable this option to display signals only when the MACD line direction meets the condition. |
| Use Histogram Filter | Enable this option to display signals only when the histogram meets the condition (growing/falling). |
| Use Candle Direction Filter | Enable this option to display signals only when the candlestick meets the condition (bullish/bearish). |
| Histogram Signal Confirm Bars | Set the number of bars to look back when assessing the reliability of signals in Histogram Reversal mode. |
| Use Histogram Zero Cross Confirmation | Enable this option to add zero-line crossings to the criteria for histogram reversals. |
| Use MACD Direction Filter |
| Enable this option to display signals only when the MACD line direction meets the condition. |
| Use Histogram Filter |
| Enable this option to display signals only when the histogram meets the condition (growing/falling). |
| Use Candle Direction Filter |
| Enable this option to display signals only when the candlestick meets the condition (bullish/bearish). |
| Histogram Signal Confirm Bars |
| Set the number of bars to look back when assessing the reliability of signals in Histogram Reversal mode. |
| Use Histogram Zero Cross Confirmation |
| Enable this option to add zero-line crossings to the criteria for histogram reversals. |
Display Settings
| Item name | Description |
|---|---|
| Show MACD Line | Show/hide the MACD line. |
| Show Signal Line | Show/hide the signal line. |
| Show Histogram | Show/hide the histogram. |
| Show Zero Line | Show/hide the zero line. |
| Show Signal Arrows | Show/hide signal arrows. Disabling this parameter does not affect alerts or other notifications. |
| Show Mode Label | Show/hide the selected signal mode label in the top right corner of the subwindow. |
| Show Latest Type Labels | Show/hide the latest type label (Buy/Sell for Cross, Zero, Rev, or Trend). |
| Mode Label Color | Set the mode label font color. |
| Latest Label Fallback Color | Set the fallback color for the latest label. |
| Latest Label Font Size | Set the latest label font size. |
| MACD Label Gap Percent | Set the spacing between MACD signal labels as a percentage. |
| Zero Label Gap Percent | Set the spacing between Zero Cross signal labels as a percentage. |
| Histogram Label Gap Percent | Set the spacing between Histogram Reversal signal labels as a percentage. |
| Label Gap Minimum Arrow Multiplier | Set the minimum distance ratio to prevent labels from overlapping. |
| Show MACD Line |
| Show/hide the MACD line. |
| Show Signal Line |
| Show/hide the signal line. |
| Show Histogram |
| Show/hide the histogram. |
| Show Zero Line |
| Show/hide the zero line. |
| Show Signal Arrows |
| Show/hide signal arrows. Disabling this parameter does not affect alerts or other notifications. |
| Show Mode Label |
| Show/hide the selected signal mode label in the top right corner of the subwindow. |
| Show Latest Type Labels |
| Show/hide the latest type label (Buy/Sell for Cross, Zero, Rev, or Trend). |
| Mode Label Color |
| Set the mode label font color. |
| Latest Label Fallback Color |
| Set the fallback color for the latest label. |
| Latest Label Font Size |
| Set the latest label font size. |
| MACD Label Gap Percent |
| Set the spacing between MACD signal labels as a percentage. |
| Zero Label Gap Percent |
| Set the spacing between Zero Cross signal labels as a percentage. |
| Histogram Label Gap Percent |
| Set the spacing between Histogram Reversal signal labels as a percentage. |
| Label Gap Minimum Arrow Multiplier |
| Set the minimum distance ratio to prevent labels from overlapping. |
Line Color Settings
| Item name | Description |
|---|---|
| MACD Line Color | Set the MACD line color. |
| Signal Line Color | Set the signal line color. |
| Zero Line Color | Set the zero line color. |
| MACD Line Width | Set the MACD line width. |
| Signal Line Width | Set the signal line width. |
| MACD Line Style | Set the MACD line style (e.g., solid, dotted). |
| Signal Line Style | Set the signal line style. |
| Zero Line Style | Set the zero line style. |
| MACD Line Color |
| Set the MACD line color. |
| Signal Line Color |
| Set the signal line color. |
| Zero Line Color |
| Set the zero line color. |
| MACD Line Width |
| Set the MACD line width. |
| Signal Line Width |
| Set the signal line width. |
| MACD Line Style |
| Set the MACD line style (e.g., solid, dotted). |
| Signal Line Style |
| Set the signal line style. |
| Zero Line Style |
| Set the zero line style. |
Histogram Color Settings
| Item name | Description |
|---|---|
| Positive Expanding | Set the color used when the histogram is expanding in the positive range. |
| Positive Shrinking | Set the color used when the histogram is shrinking in the positive range. |
| Negative Expanding | Set the color used when the histogram is expanding in the negative range. |
| Negative Shrinking | Set the color used when the histogram is shrinking in the negative range. |
| Histogram Width | Set the histogram bar width. |
| Positive Expanding |
| Set the color used when the histogram is expanding in the positive range. |
| Positive Shrinking |
| Set the color used when the histogram is shrinking in the positive range. |
| Negative Expanding |
| Set the color used when the histogram is expanding in the negative range. |
| Negative Shrinking |
| Set the color used when the histogram is shrinking in the negative range. |
| Histogram Width |
| Set the histogram bar width. |
Arrow Color Settings
Since there are many parameters related to arrow colors, only the main, frequently checked ones are listed.
| Item name | Description |
|---|---|
| Mode 1 Buy Arrow Color | Specify the arrow color for buy signals in Cross mode. |
| Mode 1 Sell Arrow Color | Specify the arrow color for sell signals in Cross mode. |
| Mode 2 Buy Arrow Color | Specify the arrow color for buy signals in Zero Cross mode. |
| Mode 2 Sell Arrow Color | Specify the arrow color for sell signals in Zero Cross mode. |
| Reversal Buy Arrow Color | Specify the arrow color for buy signals in Histogram Reversal mode. |
| Reversal Sell Arrow Color | Specify the arrow color for sell signals in Histogram Reversal mode. |
| Trend Buy Arrow Color | Specify the arrow color for buy signals in Trend Follow mode. |
| Trend Sell Arrow Color | Specify the arrow color for sell signals in Trend Follow mode. |
| Arrow size | Set the arrow size. |
| Mode 1 Buy Arrow Color |
| Specify the arrow color for buy signals in Cross mode. |
| Mode 1 Sell Arrow Color |
| Specify the arrow color for sell signals in Cross mode. |
| Mode 2 Buy Arrow Color |
| Specify the arrow color for buy signals in Zero Cross mode. |
| Mode 2 Sell Arrow Color |
| Specify the arrow color for sell signals in Zero Cross mode. |
| Reversal Buy Arrow Color |
| Specify the arrow color for buy signals in Histogram Reversal mode. |
| Reversal Sell Arrow Color |
| Specify the arrow color for sell signals in Histogram Reversal mode. |
| Trend Buy Arrow Color |
| Specify the arrow color for buy signals in Trend Follow mode. |
| Trend Sell Arrow Color |
| Specify the arrow color for sell signals in Trend Follow mode. |
| Arrow size |
| Set the arrow size. |
Display Settings
| Item name | Description |
|---|---|
| Enable Pop-up Alert | Receive pop-up notifications on MT4/MT5 when signals are confirmed. |
| Enable Push Notification | Receive push notifications on the mobile app when signals are confirmed. MT4/5 push notification settings must be configured beforehand. |
| Enable Email Notification | Receive emails at your registered address when signals are confirmed. MT4/5 email settings must be configured beforehand. |
| Enable Pop-up Alert |
| Receive pop-up notifications on MT4/MT5 when signals are confirmed. |
| Enable Push Notification |
| Receive push notifications on the mobile app when signals are confirmed. MT4/5 push notification settings must be configured beforehand. |
| Enable Email Notification |
| Receive emails at your registered address when signals are confirmed. MT4/5 email settings must be configured beforehand. |
To use push or email notifications, configure the email and MetaQuotes ID settings in MT4/MT5 first.
Sound alerts are not supported.
![]()
Created
: 2026.09.03
![]()
Last updated
: 2026.09.18
Disclaimer:
All information and content provided on this website is provided for informational purposes only and is not intended to solicit any investment. Although all efforts are made in order to ensure that the information is correct, no guarantee is provided for the accuracy of any content on this website. Any decision made shall be the responsibility of the investor and Myforex does not take any responsibility whatsoever regarding the use of any information provided herein.
The copyright in our content belongs to us.
We welcome your use of our content within appropriate limits, including use through our sharing features, sharing on social media, and quotation. However, please refrain from unauthorized reuse, including but not limited to commercial use, reproduction with modification of content, or reproduction on websites that compete with us. We may take necessary measures, including but not limited to deletion of the relevant content, if we consider that the content has been used in an inappropriate or unauthorized manner.
Myforex uses cookies to improve the convenience and functionality of this website. This website may include cookies not only by us but also by third parties (advertisers, log analysts, etc.) for the purpose of tracking the activities of users. Cookie policy