Traditional MA C D with Momentum indicador and alarms
This is a powerful addition to your MetaTrader 4 toolkit designed to optimize market analysis and performance. This technical indicator acts as a specialized analysis tool designed to visualize market data. It helps traders identify emerging trends, momentum shifts, and key support or resistance levels by plotting statistical calculations directly onto price charts.
How to Setup and Use Traditional MA C D with Momentum indicador and alarms
1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.
2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.
3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.
4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.
Frequently Asked Questions
Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."
Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).
Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.
Description & Settings
João Nunes @ neskk.com - 2015
Traditional MACD indicator with a Momentum indicator and alarms. Allows customization of most of the parameters without having to dive into code.
This is my MACD indicator, it has well structured code so even beginners can understand it and perhaps modify it. I've grabbed the Momentum idea from another indicator: .
I wanted a traditional MACD indicator where:
MACD line = FastEMA - SlowEMA
Signal = 9-day EMA of MACD
Histogram = MACD - Signal
The Momentum line is calculated by comparing two MACD values with 10 bars in between. Then Momentum is passed into a Moving Average to make it smoother.
Since MACD 0-crossovers and Momentum reversals can be important signals for traders, I've incorporated two alarms, one for each of the signals mentioned.
Note:
These 'alarms' actually are being printed on Experts tab, if you want alerts, just uncomment the respective lines in the code (instead of function use ).
I wanted to make this indicator user friendly and customizable, so I've included a lot of parameters:
BarsToProcess — Self explanatory.
Note:
This affects the ability for the graph to render different time frames, at 1000 you can go up to 1D!
AppliedPrice — Price used to calculate MACD.
PeriodFastEMA — Period used to calculate fast moving average.
PeriodSlowEMA — Period used to calculate slow moving average.
PeriodSignal — Period analyzed to calculate the signal line.
SignalMA — Moving average method used to calculate the signal line.
DeltaMomentum — Distance between the two points analyzed to calculate the Momentum.
PeriodMomentum — Period analyzed to compute the moving average of the Momentum (Momentum smoothing).
MomentumMA — Moving average method used to calculate the smoothed Momentum.
AlarmZeroCrossover — Enables/Disables the alarm for MACD 0-crossovers.
AlarmMomentumReverse — Enables/Disables the alarm for Momentum reversals.