GMomentum test

GMomentum test

This indicator is designed to demonstrate the potential of cluster filters and is a supplement to the article “Creating digital filters nonretarded time.” It contains a set of tests, through which the individual nuances of behavior of this type of filter can be explored.

Input parameters

All tests are made on the basis of the Momentum indicator.

Method – method of calculating the Momentum:

  • Relative Momentum – Relative Momentum, the calculation is done as in Uilyama Blau. Installed by default.
  • Absolute Momentum – the absolute momentum, the calculation is carried out similar to the built-in momentum of the terminal.
  • Price Rate of Change – calculated as the ROC indicator.

All the indicators line identical and differ only in the vertical axis scale. All the descriptions of tests will be made for the relative momentum.

max bars – the number of bars for the calculation. Default 1000.

Filter – operation built a clustered filter:

  • Off – the filter is disabled.
  • Test No.1 Advance – the filter setting for the first test, “Effect of advanced anti-aliasing”.
  • Test No.2 Smoothing – the filter setting for the test number two “Smoothing without delay”
  • Test No.3 Impulse – setting for the study of the impulse response of the momentum.

During the second and third test, you can change the sensitivity of the anti-aliasing algorithm pressing the Up and Down with the active display window.

Test 1 Effect of advanced anti-aliasing

For the first demonstration of the need to set the “Filter” in the “Test No.1 Advance” mode.

cluster filter settings to allow the first test often enough to see the effect, which can be called a leading. When operating in this mode, you will not see all of the original anti-aliasing line momentum. Filter seeks out areas where there is a chance to get the effect of advancing. Not surprisingly, it turns out not always, but often enough to be able to notice it.

At first screenshot shows one illustrative plots of the filter. It is worth noting that this is only the appearance of advanced filtering. This impression arises solely because of the presence of noise movement itself unsmoothed line momentum, not because the filter ahead of time.

Test 2. Smoothing without delay

In the first test, it was shown that when the original line momentum is wrong (noise) against the trend, it has the effect of advancing the baseline smooth line. It is clear that the momentum of the line can be wrong, and in the opposite direction, that is suddenly slip away in the direction of the trend, and even obscenely long stay there, although the trend has reversed. It would be logical if the filter will begin to slow down such movements.

You can see how the algorithm works in the filtration’s leading trend of errors. For this startup indicator must set the “Filter” in the “Test No.2 Smoothing”. cluster filter operation during this test is divided into two parts.

The short name of the indicator “GMomentum (Option 1, Option 2)” is displayed in the graph pane, in brackets there are two options. If the second parameter is set to -1, then an attempt is made to correct (flatten) the error, forward-trend. If the second parameter is equal to or greater than zero, then connect setting for the advanced anti-aliasing. Use the keyboard Up and Down buttons to change the sensitivity of the filter.

The second screenshot shows that, despite the sharp price movements and the original line of momentum, the momentum line smoothing takes place without delay. With sufficient smoothing obtain acceptable entry point. 

By the way, to the flat areas are the most trouble indicators. Here, even when these options, some of them easily degenerate almost in a straight line. Theoretically, using this technique, it is possible to improve any of the existing indicators, without creating an additional delay.

Test 3 Study of impulse response

Research momentum with built-in filter characteristics can be very amusing. For example, the impulse response of a good demonstration of how and where the peaks on the momentum line using the settings for the second test disappear. For the third test, you must set the “Filter” in the “Test No.3 Impulse”. During the test, a single pulse is applied to each of 1024 bar. After starting the indicator locate the point on the graph. It should look as shown on the third screenshot.

At start indicator is disabled. Therefore, you will see two peaks in the blue and red lines. One peak is a single pulse and the time it is, the other directed in the opposite direction through a specified number of periods. That’s what the impulse response of “naked” momentum. Further, using the keyboard keys Up and Down The, gradually increase or decrease the sensitivity of the filter.

It can be seen that the filter gradually under the root “eats” the second peak and does not touch the first. Filter completely corrects what done momentum and exactly reconstruct the original picture: a single pulse in the open field. There is no delay. No distortion of the unit pulse amplitude and shape. What is it? Work perfect filter? 

For more information, see “Creating digital filters nonretarded time.”

GMomentum test


Related posts

  • SSA Stochastic Limited Edition

    SSA Stochastic Limited Edition version ” stochastic oscillator “Algorithms using singular spectrum analysis SSA It is an effective treatment method…

  • Trend Sight

    Trend Sight Trend Sight indicator shows the percentage change in the moving average of the current bar to the next selected the bar and allows you to…

  • Dinamic Trend Matrix MT5

    Dinamic Trend Matrix MT5 New dynamic trend indicator matrix analyzes the current price development, the strength of the movement, its speed and…

Next posts

EURUSD Technical Analysis continuation of bullish

EURUSD Technical Analysis – a continuation of the bullish trend or correction? We are waiting for Non-farm Payrolls …

The price on the daily time frame is in a bullish trend since the beginning of this week: the price breaks the line Senkou Span B and came out of the cloud of Ichimoku, offer resistance around 1.1379, breaking through the level of which – the price of the primary upward trend will continue until the formation of a new peak for the pair.

D1 (price on the daily timeframe) – state market prices on a daily time frame can be characterized as a primary uptrend:

  • the price is above the cloud / Kumo Ichimoku primary bullish trend;
  • line
    Senkou Span A as a virtual boundary between the primary downward and
    primary uptrend is below the price that a svidelelstvuet
    primary uptrend on the daily timeframe;
  • Chinkou Span line is above
    and about the price with a good willingness to break her up and down with
    key support level with a turn of price movement with
    the primary uplink at the primary downlink;
  • The closest support level 1.1379;
  • The nearest resistance level 1.0886;

EURUSD Technical Analysis continuation of bullish


  • H4 – multidirectional bullish trend
  • D1 – primary upward trend
  • W1 – multidirectional bearish trend
  • MN1 – multidirectional bearish trend

Related posts

Next posts

GOLD Technical Analysis break through key levels

GOLD (XAU / USD) Technical Analysis: break through key levels of the final price in the near future

The price of a weekly schedule It stored in the primary multidirectional downward trend, moving in the channel between 1162.71 support level and resistance level of 1232.41.

‘Rev’ line Senkou Span A Ichimoku cloud borders
as a virtual boundary between the primary bearish and bullish primary
trends in the price chart is above the price and close to her, making a U-turn on the primary trend upward quite likely in the coming weeks.

‘Probojnaja’ Chinkou Span line It is located so close to the price that is likely possible to predict a sharp and rapid penetration of the final price of the key levels of support and
resistance when the price moves in either direction:

  • to break the key resistance levels (e.g. 1232.41) with a sharp upward movement rates,
  • and to break through key support levels (eg 1162.71) with a sharp price movement downwards.

GOLD Technical Analysis break through key levels


  • H4 – Rally (local upward trend) inside bearish trend
  • D1 – Rally (local upward trend) inside bearish trend
  • W1 – multidirectional bearish trend
  • MN1 – multidirectional bearish trend

Related posts

Next posts