SWTsr Support Resistance Indicator MT5
- Göstergeler
- Sürüm: 1.1
- Güncellendi: 26 Kasım 2026
- Etkinleştirmeler: 5
1. General information about the SWT method environment.
The Support and Resistance Channel Indicator is one of the main indicators of the SWT method – a method for quantitative analysis of financial markets.
The method is based on the decomposition of a financial instrument's price chart according to the basis of Stochastic Wave Trends (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 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 is shown in Fig.1.
The SWTsr indicator performs the following functions:
-
dividing the financial instrument's chart into a system of Stochastic Wave Trends;
-
calculating and displaying on the price chart the system support/resistance channels for each of the analyzed trends;
-
calculating and displaying the center lines of the support/resistance channels;
-
calculating and displaying the confidence levels for channel boundary breakouts for each of the analyzed trends.
The data on the confidence levels for channel boundary breakouts of the SWTsr indicator are also used when setting stop-loss and take-profit order levels in the SWT-Robot trading robot.
The indicator contains no customizable parameters; its operating algorithm is hard-coded, once and for all.
The parameters available for configuration are intended to enable or disable the display mode of additional indicator functions:
input bool ShowLevelsForW2 = false;
input bool ShowStopLossSR = false.
The purpose of these parameters and the functions and indicator elements displayed when they are enabled will be discussed further below, at the end of the description.
2. Theory.
The SWTsr indicator, like the basic SWT indicator, divides the general 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, the input of which receives a time series corresponding to the price chart, and the output yields a set of time functions into which this signal is divided. The components of the division are time functions with different spectral composition and different rates (speeds) of change and different amplitudes (ranges) of oscillation.
The elements of the division – stochastic waves – retain the stochastic nature of the original process. Hereinafter, we will call these functions Stochastic Wave Trends.
The amplitude-frequency characteristics of the band-pass filter system on the period scale are shown in Fig.2.
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 charts of a smaller scale the movements will on average be smaller, since their power decreases inversely proportional 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 filter output signals 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 sufficiently small finite number of significant components, and the rest can be discarded as insignificant.
The limitation of the number of considered waves is natural 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 sum sign are the waves represented on the chart;
-
n(t) is the so-called "price noise" – market movements within the bars of the chart, which are of no practical importance for tasks of analyzing the current chart;
-
Φ(t) defines slow oscillations with high energy, which 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 extracted components and the time parameters of the considered trends 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 a little 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).
These ratios 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 only 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 following table Fig.3.
So, we used a system of filters whose center frequencies are multiples of 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 chart scale. This makes it possible to display the same trends one-to-one on charts of different scales (Fig.3.3).
3. Properties of the indicator.
The SWTsr channel indicator displays horizontal ranges of market movements calculated by volatility for wave trends – waves W2, W3 and W4 of the current chart (when the corresponding indicator parameter values are set).
The channel boundaries are calculated for each of the observed trends and determine the calculated targets of market movement for these trends with a reference point at the achieved extremes – market highs and lows realized on the current cycle of market growth or fall for waves W2, W3 and W4 presented on the current chart.
A breakout of the range (channel boundary) means that the target of this trend has been realized and further movement, if it occurs, will develop along a trend of a higher level of hierarchy.
Figure Fig.4 shows the appearance of the indicator for waves W3 and W4.
When the indicator is dropped onto the chart, the following parameter settings dialog box is displayed (Fig.5).
The purpose of the parameters is as follows.
ShowLevelsForW2, when the parameter value is true, shows the channel boundaries for the trend described by wave W2. Waves W3 and W4 are always displayed by default.
ShowStopLossSR – when the parameter value is true, shows the boundaries of confidence intervals for the displayed channels. The boundaries of confidence intervals can be used to set stop-loss orders when trading inside the channel and on a channel breakout. The robot places stops outside the confidence interval boundary of the corresponding trend.
Figure Fig.6 shows the appearance of the indicator in the mode of displaying channels for three waves – W2, W3 and W4.
DISCLAIMER
Trading in foreign currency, gold, CFDs 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 vary among different brokers and on different accounts due to order execution conditions, spreads, slippage, liquidity and technical infrastructure.
Any market analysis is formed on the basis of events that have already occurred and remains relevant only at the time of its conduct. It does not limit the future behavior of the market, which can be anything. New data – including that which has not become 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 opportunities, do not take into account 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 other desired result. The user must be aware of and fully accept all possible risks associated with the use of the SWT method and the software tools implementing it, including the risks of financial losses. Due to the unpredictability of pricing, transactions 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 liability for any financial results of using the indicator's software tools – with profit or loss, regardless of the reasons that led to such a result.
Carefully study the data received from the broker's or DC's server: there have been numerous cases when information contained errors, including critical ones, affecting the operability of programs and the correctness of their readings and results.
This list is not a complete and exhaustive list of all risks associated with the use 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.
