SWTch Volatility Channel Indicator MT4
- Indicatori
- Versione: 1.0
- Attivazioni: 5
-
General information about the working environment of the SWT method.
The volatility indicator is one of the main indicators of the SWT method — a method of quantitative analysis of financial markets.
The method is based on decomposing the price chart of a financial instrument over the basis of stochastic wave trends (Stochastic Wave Trends Method — abbreviated as SWT-Method).
The full set of tools of the method includes:
-
the basic SWT 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 constructor (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 work on 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 SWTch volatility indicator performs the following functions:
-
dividing the chart of a financial instrument into a system of stochastic wave trends (Stochastic Wave Trends);
-
calculating and displaying on the price chart the peak volatility channels of each of the analyzed trends;
-
calculating and displaying the center lines of the volatility channels;
-
calculating and displaying dynamic support/resistance channels.
The data of the SWTch indicator can be used in some modes of the SWT-Robot trading robot.
The indicator contains no configurable parameters; its operating algorithm is set rigidly, once and for all.
The parameters available for configuration are intended to enable or disable the display mode of additional functions of the indicator:
input bool W2_CH = false;
input bool W3_SR = false;
input bool W4_SR = false;
input bool ShowCenterLine = false;
The purpose of these parameters and the functions and elements of the indicator displayed when they are enabled will be discussed further below, at the end of the description.
-
Theory.
The SWTch indicator, like the basic SWT indicator, divides the overall price movement into components whose average cycle is concentrated in different regions spaced along the frequency (period) scale. The division of these components is performed 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 (the principle of decomposition).
Technically, the division is performed using a system of band-pass filters (Fig.2), the input of which receives the time series corresponding to the price chart, and the output yields a set of time functions into which this signal is divided. The decomposition components are time functions with different spectral composition, different tempo (rate) of change, and different amplitude (range) of oscillations.
The elements of the decomposition — stochastic waves — preserve the stochastic nature of the original process. Hereinafter we will call these functions stochastic wave trends — The Stochastic Wave Trends.
The characteristics of wave trends are determined by the nature of the process that generates them, i.e., the price chart, and by 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 nature of 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 the cyclic and wave properties of market processes.
Whichever scale of the price chart we take as the initial movement, on charts of a smaller scale the movements will on average be smaller, since their power decreases inversely proportionally to a power function of frequency, and movements on charts of a larger scale, 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 levels of the output signals 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 point of view of the theory of systems with self-organized criticality, 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 character 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, which correspond to waves not represented on the chart and whose rate of development is much lower than that of 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 extracted components and the time parameters of the trends under consideration will change from this.
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 nature, 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 upward and downward 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 (interval of periods).
The indicated 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, then 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 is only necessary to take 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 wave stochastic trends with different average cycle periods are used, the main of which are:
-
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 following 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, therefore the indicator uses automatic normalization of parameters depending on the scale of the chart. This makes it possible to display the same trends one-to-one on charts of different scales (Fig.2.3).
-
Properties of the indicator.
The SWTch channel indicator is designed to display volatility channels, center lines of volatility channels, and dynamic support/resistance channels.
In Fig.4, in the main window, for each timeframe in accordance with the table in Fig.3, the appearance of the volatility channel indicator is presented for different waves, namely: for wave W2 — light blue, for W3 — red, and for W4 — turquoise. The color of the channel corresponds to the color of the wave of the basic SWT indicator presented in the lower window of the chart. The indicators use similar algorithms for calculating wave trends, but are fully autonomous and independent of each other.
To consider waves (trends) of a larger or smaller scale, it is simply necessary to change the timeframe.
Let us recall a fragment of the theory about representing the price chart as a superposition of waves — stochastic wave trends. The formula for the price chart under conditions of a limited number of waves considered has 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, which correspond to waves not represented on the chart and whose rate of development is much lower than that of the movements represented on the chart. On the whole, Φ(t) shows how the market moves if the wave trends are removed from it.
The waves displayed by the Basic SWT indicator are constructed relative to the zero line and represent the result of excluding the function Φ(t) from the presented formula.
The boundaries of the volatility channels are calculated and plotted on the price chart for each of the observed trends displayed by waves W2, W3, and W4, and represent the volatility channels of the Basic SWT indicator constructed relative to the function Φ(t), i.e., relative to the movement displayed by waves of higher levels of the hierarchy not represented on the current chart.
When the indicator is dropped onto the chart, the indicator parameter settings window is displayed (Fig.5).
The W2_CH parameter is intended to enable/disable peak volatility channels for wave W2.
W3 and W4 are enabled permanently by default.
The W3_SR and W4_SR parameters are intended to enable/disable dynamic support/resistance channels for waves W3 and W4, respectively.
ShowCenterLine enables the display of the center lines of all displayed volatility channels.
The center line of the volatility channel for wave W4 is enabled permanently.
By default, the display of peak volatility channels for waves W3 and W4 of the current chart and the center line of the channel for wave W4 is enabled. The color of the channel lines corresponds to the color of the display of waves on the SWT indicator chart.
The width of the channels is equal to the peak volatility for waves of the corresponding level.
The localization of the center of the channel corresponds to the value of the price chart minus all waves of the chart on which the indicator is displayed.
Prices exiting beyond the boundaries of the volatility channel most likely means that the market movement in this direction is determined by the next senior wave — the wave trend of the SWT method.
The return of prices into the channel is a sign of a possible market reversal along this wave.
The return of prices into the channel with a subsequent breakout of the opposite side of the channel is a sign of a market reversal at the next senior wave — the wave trend of the SWT method.
Dynamic volatility channels (Fig.6, Fig.7) are used to construct technical support/resistance levels under conditions of strong overbought/oversold in zones outside the channels formed by the system of indicators of the method. Such levels are constructed from the nearest value of the opposite boundaries of the dynamic channels in the zone of peak market values, as shown in Fig.7.
The gold market, during its rise, tested the predicted level 1. Level 2 remained unrealized, since a reversal pattern was formed and the quotes went into a protracted correction and reversal first of the short-term, then of the medium-term trends.
But the testing of level 1 was realized with filigree precision.
