Stochastic Wave Trends MT5

  1. General Information.

The SWT basic indicator is the main indicator of the SWT method — a method for quantitative analysis of financial markets.

The method is based on decomposing the price chart of a financial instrument into a basis of Stochastic Wave Trends (SWT-Method).

The complete toolkit of the method includes:

  • the SWT basic indicator — the main indicator of the system;

  • the SWTch peak volatility channel indicator;

  • the SWTsr support/resistance channel indicator;

  • the SWTtr digital trend indicator (auxiliary, used at the trader's discretion);

  • the SWTml digital volume indicator (auxiliary, used at the trader's discretion);

  • the SWT-Robot trading robot builder (for those who prefer automation of algorithmic trading, full or partial).

The indicators can be used autonomously for manual work, and with robot support for automatic and semi-automatic trading in the market.

The working area of the SWT method with the full set of installed indicators and a table of settings and robot status parameters is shown in Fig.1.

The SWT basic indicator performs the following functions:

  • dividing the price chart of a financial instrument into a system of Stochastic Wave Trends;

  • displaying trends in a separate chart window;

  • analyzing the nature of market movement for each of the trends of the analyzed financial instrument;

  • calculating the current value of root-mean-square and peak volatility and displaying volatility channels for each analyzed trend.

The data from the basic indicator are the foundation for the operation of the SWT-Robot trading algorithms and are the source data for the auxiliary service indicators.

The basic indicator contains no configurable parameters; its operating algorithm is hard-coded, once and for all.
The two parameters available for configuration are intended to enable or disable the display mode of additional indicator functions:
input bool ShowVolChannelForW4 = false;
input bool SUMM = false.
The purpose of these parameters and the functions and indicator elements displayed when they are enabled will be discussed at the end of the description.

  1. Theory.

The SWT basic indicator separates the overall price movement into components whose average cycle is concentrated in different regions spaced along the frequency (period) scale. These components are separated in such a way as not to introduce distortions into the original process, and the sum of all components of the resulting decomposition yields the original price chart (decomposition principle).
Technically, the separation is performed using a system of band-pass filters whose amplitude-frequency characteristics are presented in Fig.2. The inputs of these filters receive the time series corresponding to the price chart quotes, and the output yields a set of time functions into which this signal is separated.

The separation components are time functions with different spectral composition and different rates (speeds) of change and different amplitudes (ranges) of oscillation.
The separation elements — stochastic waves — retain the stochastic nature of the original process. Hereinafter we will call these functions Stochastic Wave Trends.

The characteristics of wave trends are determined by the nature of the process generating them, i.e., the price chart, and its most general properties.
The energy spectrum of processes with an envelope of the form 1/f^n, where n>1 (a special case for white noise is n=2), allows us to naturally and from a unified standpoint explain the fractal nature and the cyclic movement of market prices, as well as the hierarchy and nesting of cycles noted in a number of studies devoted to the study of cyclic and wave properties of market processes.
Whichever scale of the price chart we take as the initial movement, on smaller-scale charts the movements will on average be smaller, since their power decreases inversely proportional to a power function of frequency, and movements on larger-scale charts for the same reason will have larger amplitudes and periods of cycles. That is, fast oscillations will occur against the background of and within the framework of slow movements of larger amplitude.

The presence in the spectrum of an envelope of the form 1/f^n leads to a rapid decrease in the output signal levels of the filters with increasing frequency and naturally limits the number of waves that make a significant contribution to market dynamics.

In theory, the number of filters and waves of the SWT method is infinite. From the standpoint of the theory of self-organized criticality systems, it is necessary to use all information about the process, but in practice the decomposition reduces to a fairly small finite number of significant components, and the rest can be discarded as insignificant.
The limitation of the number of waves considered is natural in nature and is due to the parameters of real markets and the requirements of real problems, as a result of which the formula for the price chart takes the form

z(t) = ∑ Wi(t) + n(t) + Φ(t),

where

  • z(t) is the function describing the price chart;

  • under the summation sign are the waves represented on the chart;

  • n(t) is the so-called "price noise" — market movements within the bars of the chart that are of no practical importance for the tasks of analyzing the current chart;

  • Φ(t) represents slow oscillations with high energy that correspond to waves not represented on the chart and whose rate of development is much lower than the movements represented on the chart.

As noted above, the step of the filter comb is not of fundamental importance and can be anything. Only the characteristics of the separated components and the time parameters of the trends under consideration will change.
Such trends themselves are largely artificial in nature and do not have a single generating factor or process. We simply group into a single time function all random factors whose action is concentrated in a certain frequency interval, nothing more. Nevertheless, the choice of an interval with a multiplicity of 5 has a certain physical basis, namely:

  • there are 5 days in a week;

  • a day contains 24 hours, which is close to 25;

  • a month has slightly more than 4 weeks, which is also close to 5.

It is natural to expect that the market contains cycles of daily and weekly activity. And then we simply extrapolate the scales up and down from the daily and weekly cycles. The resulting trends are artificial in nature, but they reflect the real part of all movements in a given frequency band (period interval).

The above relationships are valid for a continuous weekly trading session of 24 hours a day, 5 days a week. If there are gaps in the session, the one-to-one correspondence between trend cycles on charts of different scales will be fulfilled with an error that is greater the larger the gap. This does not prevent the use of wave trends for analyzing market dynamics, but it should be taken into account that the continuity of trends between waves displayed on timeframes of different intervals will also have an error.

In the hardware implementation of the method, 10 stochastic wave trends with different average cycle periods are used, the main ones being:

  • global trend — 50-75 years;

  • main trend — 10-15 years;

  • long-term trend — 2-3 years;

  • medium-term trend — 5-7 months;

  • short-term trend — 4-6 weeks;

  • local trend — 4-6 days;

  • daily trend — 20-30 hours;

  • intraday trend — 4-6 hours;

  • hourly trend — 50-70 minutes;

  • intra-hour trend — 10-15 minutes.

The main parameters of the waves and their designation on the charts are presented in the table (Fig.3).

So, we used a system of filters whose center frequencies are multiples of the number 5 (...F/25, F/5, F, 5F, ...). But the multiplicity of the time scale of timeframes differs from 5, so the indicator uses automatic normalization of parameters depending on the chart scale. This enables one-to-one mapping of the same trends on charts of different scales (Fig.3).

  1. Indicator Properties

On the charts for each timeframe, in accordance with the table in Fig.3, three waves are displayed: W2 — light blue, W3 — red, and W4 — turquoise, which represent wave trends, as well as auxiliary lines displaying the parameters and nature of trend movement. The default indicator chart is presented in Fig.4.
To examine waves (trends) of a larger or smaller scale, simply change the timeframe.

When analyzing the market and planning long-term trades, the role of trends from daily and below is insignificant. Their behavior and characteristics are considered mainly from tactical considerations when trading in the direction of trends of a higher hierarchy level. The exception is intraday trading with a short position holding time.

Analysis of even shorter components must be carried out on tick charts, and its area of application is automated trading using high-frequency trading robots, since humans are no longer capable of making adequate decisions under such rapidly changing conditions. But this requires entirely different hardware and software tools.

The method of decomposing the price chart into a set of stochastic wave trends — The Stochastic Wave Trends Method or SWT method — allows identifying trends and cycles that are not artificially attributed but are present in the internal structure of the general market movement HERE AND NOW. We do not impose anything from outside but observe the real characteristics of the real process without losses and can at any moment in time assess the intensity and nature of market dynamics in any given time scale. It is not the price that follows the indicator, but the indicator that follows the price.
We also note that the analysis of market dynamics within the SWT method must be performed across the entire set of wave components, taking into account their intensity, mutual direction, and speed of movement.

That concludes the principles of indicator construction. I will only add that by default the filter comb is tuned to the reference points of the expected trends of the daily and weekly cycles, i.e., the center frequencies of two filters correspond to periods of 24 and 120 hours, and then up and down with a multiplicity of 5, as described above in the text.
If the duration of daily and weekly trading sessions differs from the specified values, the method remains operational, but the one-to-one correspondence of waves on charts of different scales may be disrupted. This does not violate the principles of working with the indicator, but the interpretation of individual wave trends changes.

Now let us discuss the technical details.

When the indicator is dropped onto a chart, a settings window appears, presented in Fig.5.

ShowVolChannelForW4 — parameter for displaying the peak volatility channel for wave W4.
SUMM — parameter for displaying the sum of waves from W4 and younger.

Let us examine the indicator elements.
When the indicator is connected in default mode, the indicator elements shown in Fig.6 are displayed on the screen (the lower chart window is artificially enlarged for convenience of placing designations).

In addition to waves W2, W3, and W4, the chart displays volatility channels and trend direction indicators.
The indicator calculates:

  • the root-mean-square volatility channel of wave W3 — a dashed thin red line;

  • the peak volatility channel of wave W3 — a solid thin red line;

  • the root-mean-square volatility channel of wave W4 — a dashed thin turquoise line;

  • the peak volatility channel of wave W4 — a solid thin turquoise line (not displayed in default mode).

In addition, trend direction indicators are generated for waves W3 and W4. The trend direction is determined by formal numerical criteria and essentially represents the momentum of the wave of the corresponding level. In the current version, with a delay of one chart bar.

The location of trend direction indicators at the boundaries of volatility channels in the positive value region corresponds to the formal criterion for an uptrend, and in the negative value region — to the criterion for a downtrend.
The location of indicators inside the channels in the positive value region corresponds to a downward correction, and in the negative value region — to an upward correction of the corresponding trend.
If the indicator "jitters" or there are other problems with determining the reliable direction of a particular trend, it is recommended to switch to trends of higher hierarchy levels.

Using the table in Fig.3 and the SWT indicator, one can determine the direction of any of the trends considered within the SWT method. Summary characteristics of trends, except for the global one, are also provided in the table of the SWTtr service indicator and in the status parameter indication of the SWT-Robot.

Fig.7 shows the appearance of the SWT basic indicator in the mode of displaying the sum of waves and the peak volatility channel for wave W4.

Displaying the sum of waves can be useful when choosing the trading direction during consolidation across waves of younger trends in the target zone of the trend determined by wave W4.

The sum of all waves together with the peak volatility channel for wave W4 can be useful for assessing the "overbought" and "oversold" condition of the instrument when the sum of waves goes beyond the channel.
This does not mean that we should immediately open a trade in the opposite direction. More often in such situations, one should refrain from continuing purchases or sales.

  1. Graphical Patterns.

4.1. Trend Reversal Pattern

Looking at charts, we clearly see in the past where a trend or correction ended and where we could have opened a promising position on a pullback. But we cannot open a position in the past; we can only act in the present without knowing the future development of events.
Signs of a wave moving downward are not enough for us; we also need a tool for selecting these signs. And as such a tool, we use the trend reversal pattern (Fig.8).

We will examine the formation of the pattern using the example of Fig.8, which displays all the necessary components of the pattern at a convenient scale. (For convenience of examination, the volatility channels from the lower indicator window have been transferred to the price chart.)

The formal features of the pattern are as follows.

  1. The price returns to the peak volatility channel for wave W4, and wave W4 changes direction in the zone of maximums (or minimums) near the boundaries of the standard deviation channel. (More reliably on the second attempt (but it may not happen). Number 1 on the chart. The market maximum for the second attempt should be lower than the maximum for the first.

  2. Inside the peak volatility channel for wave W4, wave W3 of the same sign as W4 has moved to the other half-plane. An additional feature — the dynamics (direction of the local trend) of at least two market extremes must coincide with the direction of wave W3 movement after its reversal. Number 2 on the chart.

  3. Wave W2 has crossed the zero line in the direction of movement of waves W4 and W3 (additionally).

In general, a trade based on the pattern should be made if there is no contradiction between the direction of the reversal pattern and the direction of movement of higher trends, as well as patterns formed by higher trends. However, the trader may, at their discretion, also trade counter-trend — a trade against the movement of higher trends based on signs of a possible reversal.

The stop is placed beyond the price corresponding to the pattern extremum plus a confidence interval.
If trading in the direction of the higher trend, the stop can (and should) be placed according to the parameters of that trend.
Targets are standard within the chosen strategy, but it is recommended to use intermediate profit-taking at the boundaries of volatility channels and/or support/resistance channels.
The development of a formed trend reversal pattern can follow two scenarios:

  • continuation of movement in the direction of the reversal pattern;

  • cancellation of the pattern and restoration of the previous direction of market movement, i.e., a restoration pattern.

4.2. Trend Restoration Pattern

The restoration pattern is formed as a counter reversal pattern on a wave one level lower. In Fig.8, the zone of formation of the restoration pattern is shown inside the oval, and it is formed on wave W3 of the daily chart.
Details can be seen on the H4 chart (Fig.9).

The features of formation are the same as for the reversal pattern. The only difference is that the pullback of wave W4 may not lead to going beyond the root-mean-square volatility channel of wave W4.
The development of a formed restoration pattern can follow two scenarios:

  • renewal of the market maximum (minimum) and cancellation of the reversal pattern per section 4.1;

  • continuation of the reversal within the framework of the "Channel-1" pattern.

4.3. Graphical Pattern "Channel-1"

The "Channel-1" pattern can form as a transitional one between the moment of formation of the trend reversal pattern and the actual reversal, i.e., the transition of wave W4 to the other half-plane (change of wave sign). That is, the pattern is active until the moment of reversal of wave W4 (Fig.10).

It works during prolonged sideways market movements and represents alternating up/down oscillations on wave W3 within the boundaries of the volatility channels of that wave.
for conducting trades based on the pattern.

4.4. Graphical Pattern "Channel-2"

The "Channel-2" pattern is formed in the trend reversal zone (in Fig.11, a downward reversal pattern) and is characterized by the completion of the "Channel-1" pattern with the cessation of oscillatory movements of wave W3 and its stable location in one half-plane (in Fig.11, in the negative value region).

The principle of using the pattern in the situation shown in the figure is aggressive selling based on signs of restoration of downward movement of waves W2 and W3.
Sales continue until the pattern is cancelled by counter patterns, including those on trends of a lower hierarchy level. And, of course, with strict control of the risk size.
Intermediate growth targets at the boundary of the volatility channel of wave W3.
Intermediate pullback targets in the zone of the boundary of the volatility channel of wave W2.
The "Channel-2" pattern is recommended for aggressive accumulation of position volume.

4.5. Alternation of Patterns

Graphical patterns form and flow into each other, forming their own movement targets and their own criteria for the development of the situation for each stage. This must be remembered. "Everything flows, everything changes." Both the situation and the interpretation, and the targets and plans.
And besides, one should not forget about the situation on higher timeframe charts, tracking possible divergence of market movements.
Trading by patterns is easy and pleasant if everything goes "according to plan." But the main problems arise if something goes wrong, and in the market this happens very often.
The recipe is very simple — keep risks within reasonable limits.
And a general remark that implicitly follows from the material considered. Entry into the market, as a rule, is better done on a pullback, based on signs of its completion by patterns of trends of a lower hierarchy level.

DISCLAIMER

Trading in foreign currency, gold, CFD, and other financial market assets involves significant risk. Past results do not guarantee future ones, and losses are possible — both for objective reasons and due to the personal qualities of the investor. Results may differ among different brokers and on different accounts due to order execution conditions, spreads, slippage, liquidity, and technical infrastructure.

Any market analysis is formed based on events that have already occurred and remains relevant only at the moment of its conduct. It does not limit future market behavior, which can be anything. New data — including data not yet publicly available — can completely change the situation and trading tactics.

The set of software tools provided (the SWT method toolkit) is intended for technical market analysis and is not an automatic trading system. Trading decisions are made by the trader, and only the trader. Such decisions do not exhaust all market possibilities, do not account for all price changes, and do not guarantee profitable trading. Subjective errors of the user in assessing market prospects, choosing the direction of price movement, strategy, and tactics are also not excluded.

There are no guarantees that the practical use of systems, programs, tactics, and strategies based on the SWT method will lead to financial gain or any other desired result. The user must be aware of and fully accept all possible risks associated with the application of the SWT method and the software tools implementing it, including the risks of financial losses. Due to the unpredictability of pricing, trades in financial markets contain a high degree of risk, and the chances of success are determined not only by its magnitude but also by the quality of assessment of these risks.

We bear no financial or other responsibility for any financial results of using the indicator software tools — whether with profit or loss, regardless of the reasons that led to such a result.

Carefully study the data received from the broker's or dealing center's server: there have been numerous cases where information contained errors, including critical ones, affecting the operability of programs and the correctness of their readings and operation results.

This list is not a complete and exhaustive list of all risks associated with the application of the presented materials in any types of capital investments and investments within the framework of trading in currency and other instruments of financial and commodity markets.


Yazarın diğer ürünleri
General Information. The SWT basic indicator is the main indicator of the SWT method — a method for quantitative analysis of financial markets. The method is based on decomposing the price chart of a financial instrument into a basis of Stochastic Wave Trends (SWT-Method). The complete toolkit of the method includes: the SWT basic indicator — the main indicator of the system; the SWTch peak volatility channel indicator; the SWTsr support/resistance channel indicator; the SWTtr digital trend ind
Filtrele:
Değerlendirme yok
Değerlendirmeye yanıt