MetaTrader5
Harnessing Ultra Momentum: Your Go-To Indicator for MetaTrader 5
Author: dm34@mail.ru Hey there, fellow traders! Today, I want to dive into an exciting tool that can elevate your trading game: the Ultra Momentum indicator for MetaTrader 5. This nifty indicator leverages the power of Momentum and analyzes trend directions using multiple signal lines. Here’s a quick rundown of how it works. The Ultra Momentum indicator has a few key input parameters: StartLength: This sets the minimum initial value for the first signal line. Step: This is the period change step. StepsTotal: This signifies the total number of period changes. To calculate any period value from the signal lines, we use a simple arithmetic progression: SignalPeriod(Number) = StartLength + Number * Step In this formula, the Number variable ranges from zero to StepsTotal. The resulting values of these periods are collected in an array and utilized at each tick to obtain smoothed RSI values. From there, we determine the current trend direction based on these smoothings, along with the count of positive and negative trends across the entire array of smoothed RSI values. The results are then refined and used to create indicator lines that form a vibrant color cloud using the DRAW_FILLING style class. So, how do we interpret this information? The trend direction is indicated by the color of the cloud, while the strength of the trend is represented by the width of the cloud. You can also set overbought (UpLevel) and oversold (DnLevel) levels as a percentage of the indicator's maximum amplitude. Additionally, the Ultra Momentum indicator allows you to gauge the speed of trend power changes, represented by color squares. When trend power is increasing, these squares match the cloud color; when it’s decreasing, they switch to the opposite color. Now, let’s talk about the smoothing algorithms you can choose from—there are ten different versions to pick from: SMA - Simple Moving Average; EMA - Exponential Moving Average; SMMA - Smoothed Moving Average; LWMA - Linear Weighted Moving Average; JJMA - JMA Adaptive Average;JurX - Ultralinear Smoothing;ParMA - Parabolic Smoothing;T3 - Tillson's Multiple Exponential Smoothing; VIDYA - Smoothing with Tushar Chande's Algorithm; AMA - Smoothing with Perry Kaufman's Algorithm. It's important to remember that the Phase parameters for these algorithms carry different meanings. For example, in JMA, the Phase variable ranges from -100 to +100, while for T3, it’s a smoothing ratio multiplied by 100 for better clarity. In the case of VIDYA, it's tied to the CMO oscillator period, and for AMA, it refers to the slow EMA period. For other algorithms, these parameters don’t influence the smoothing process. Notably, for AMA, the fast EMA period is fixed at 2 by default, and the power ratio is also set at 2. To make the most of this indicator, you’ll need to use the SmoothAlgorithms.mqh library classes, which should be copied to the terminal_data_folder\MQL5\Include. You can find a detailed explanation of using these classes in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".
2012.02.01