4 Attachment(s)
Heiken Parabolic Trading System
1. First version of the system is based on 2 indicators:
Template file for this system is on this post.
Attachment 923
How to install:
- Place 2 indicators in indicator's folder (for example, to ...\MQL4\Indicators)
- Place template file to template folder (for example, to ...\templates)
- Open chart, right mouse click on the chart, select our template by name, and indicators with the settings will be loaded (you should have the chart similar with above one).
2. Heiken Parabolic Histo trading system
Attachment 12493
- This variation of the system is using AllTrendEnvelopes Histo_v2.1 600+ indicator from this post.
- template for this system is on this post
3. Heiken Parabolic Digital filters
- this version of Heiken Parabolic system is using Digital filters - separate 600+ indicator from this post.
- template for this version is here.
Attachment 12499
Attachment 12500
4. Scalping
I used this script to place the trades. As it is the scalping so I used tp = 30 in script's settings (or 3 pips), or tp = 50 in the settings of this script (or 5 pips) for example.
Digital Filters (basic explanation)
Digital Filters (basic explanation)
What is the filter?
In signal processing, the function of a filter is to remove unwanted parts of the signal, such as random noise, or to extract useful parts of the signal, such as the components lying within a certain frequency range.
Ok. Why digital?
A digital filter uses a digital processor to perform numerical calculations on sampled values of the signal. The processor may be a general-purpose computer such as a PC, or a specialized DSP (Digital Signal Processor) chip.
Too complicated. Do I know the filter?
Yes of course:
- Simple Moving Average (SMA) is a average value of a last sequence in series of data. It is an example DF with Finite Impulse Response FIR also known as non-recursive filters
- Triangle and Weighted Moving Average are calculated as SMA but elements in the series have different weights. Triangle (TMA) has maximum weight in the middle. Weighted (WMA) has minimum weights in the middle.
- Exponential MA is calculated as: Y[i] = Y[i-1] + (X[i] - Y[i-1]) * Alpha Where X is input data. Y is output data. Alpha is a coefficient that defines the smoothness of the indicator line. This is an example of DF as IIR filter.
- Momentum, ROC, MACD, TRIX and others - digital filters as well.
So what we are talking about! We know those filters!
Most of indicators used in Technical Analysis (TA) are regular linear digital filters (DF). Practically all of them have inside themselves moving averages parts (which are low pass filters). We can say now that the DF is a part of any TA. DFs are well investigated. There are methods of calculating of DF by calculatios, by weights coefficients or by the impulse response.
What is RFTL (Reference Fast Trend Line) and RSTL (Reference Slow Trend Line)?
What is RFTL (Reference Fast Trend Line) and RSTL (Reference Slow Trend Line)?
RFTL and RSTL are support "slow" trend line are digital filters response of LPF 1 and LPF 2 to the entry discontinuous series taken with delays. Support lines of RFTL and RSTL are analogues to simple moving "average" in the sense of their delay in relation to the current prices.
Indicators of FTLM (Fast Trend Line Momentum) and STLM (Slow Trend Line Momentum) show the tempo of change (fall or growth) of FATL and SATL and are calculated similarly to indicator Momentum by formulas:
FTLM(k) = FATL(k) - RFTL(k),
STLM(k) = SATL(k) - RSTL(k).
Main difference of FTLM and STLM
Main difference of FTLM and STLM from classical technical instrument Momentum is that for its calculation not the close prices but smoothed (leveled) in the result of filtration values of the trend line are used. In the result FTLM and STLM turn out more leveled (smoothed) and regular functions than the classical instrument Momentum, and therefore have more forecasting value.
During computation the classical indicators Momentum requirement is often not fulfilled and it leads to unavoidable distortions in the spectrum of the entering signal. Specialists in the digital processing of the signals name these distortions aliasing that is frequencies overlay or ambiguity. This ambiguity leads to strong irregularity and chaos in the classical technical indicator Momentum.
A set of the technical instruments of the method contains two more new oscillators. They are indexes of RBCI and PCCI.
RBCI (Range Bound Channel Index) - is calculated by means of the channel (bandwidth) filter (CF).
PCCI Index (Perfect Commodity Channel Index) - is a perfect commodity channel index.
It has some outer similarity in the calculating method with commodity channel index CCI by D. Lambert. Indeed, CCI index is calculated as normalized difference between current price and its moving average and PCCI - as the difference between closing price and its mathematical expectation represented by the FATL value. Here lies more than in comparison with CCI the perfection of PCCI. PCCI index - is a normalized for its standard deviation high frequency component of the currency rate volatility.
Main Principles for the Trading Algorithm Development Using the Digital Filters:
- Trade only in the direction of the prevailing tendency the direction of which is specified by "slow" adaptive trend line SATL;
- To consider dynamic characteristics of the "fast" and "slow" trend represented by the FTLM and STLM indicators;
- To use information on what area of the values (neutral, overbought, oversold, local maximum and local minimum) is the sum of prevailing market cycles (index of RBCI) in chosen by means of frequency range spectral analysis;
- To take oscillator signals as secondary ones in cases when trend indicators are evidence of the very marked bearish or bullish tendency availability;
- To take oscillator signals as main ones in cases when trend indicators give signals about absence of the very marked tendency;
- To use flexible system of protective stop orders based on the values of RBCI, PCCI indexes and volatility values of the "fast" market oscillations.
Main rules for the above mentioned instruments interpretation are the following:
- Growing SATL line is evidence of the bullish trend on the market. The point of the reversal beginning of the bearish trend is considered the point of the local minimum of SATL. The point of finishing the reversal of the bearish trend is the point where the sign of STLM changed from minus into plus.
- Falling SATL line is evidence of the bearish trend on the market. The point of the bullish trend reversal beginning is considered the point of the local SATL maximum. The point of finishing the bullish trend reversal is the point where STLM sign changed from plus into minus.
- Close to horizontal the form of SATL is evidence of the neutral tendency.
- STLM interpretation requires special attention. Positive value of STLM is evidence of the bullish trend and the negative one testifies the bearish trend. STLM is an advance indicator. Local minimum of STLM always precedes the local minimum of SATL. Local maximum of STLM always precedes the local maximum of SATL. Achievement by STLM its points of extremum is necessary but insufficient condition for the achievement by the curve of SATL the top or the bottom. Growing STLM at growing SATL is evidence of the bullish trend acceleration. Horizontal and positive STLM at growing SATL is evidence of the set bullish trend. The more absolute the value of STLM, the more potential the bullish trend has. Falling STLM at falling SATL testifies the bearish trend acceleration.
Horizontal and negative STLM at growing SATL testifies the bearish trend setting. The more absolute value of STLM, the more potential the bearish trend has.