You can set up to 7 filters in this indicator. // Filtr 2 - these are parameters for filter 2 and so on up to // Filtr 7 respectively. (This is not the limit; you can increase the number of the filters.) Go back to the first filter's settings for obtained primary cycle of 87 trade days. extern int FType_1=0; because we are building a low frequency filter extern int P1_1=85; the primary cycle's period is equal to 87 days (we recommend to set up the periods just a little shorter because the filter will cap all the periods from 0 to 87 and the period of 87 days will not be displayed too well; therefore we use 85) extern int D1_1=65; we select it in such a way that the filter's order should not exceed 1500 elements (that's a limitation of the dll); if the maximum value is used, the filter is faster but less smooth. extern int A1_1=60; extern int P2_1=0; extern int D2_1=0; extern int A2_1=0; extern double Ripple_1=0.001; extern int Delay_1=0; Now we have a filter.
The other filters are configured in the same way.
Let's have a look at the Trend Line Momentum (STLM, FTLM) indicator configuration. Trend Line Momentum = Low Frequency Filters (fast, i.e. without delay extern int Delay_1=0;) - Frequency Filters (slow, i.e. with delay extern int Delay_1=K;) where K is an integer. In real life K is selected based upon the Nyquist frequency. We recommend a trial and error method selection. Find this spot in the Trend Line Momentum indicator source code: //******************************************** Trend Line Momentum 1 ********* // Filtr 1 Parametrs extern int FType_1=0; extern int P1_1=85; extern int D1_1=65; extern int A1_1=60; extern int P2_1=0; extern int D2_1=0; extern int A2_1=0; extern double Ripple_1=0.001; extern int Delay_1=0; // Filtr 2 Parametrs extern int FType_2=0; extern int P1_2=85; extern int D1_2=65; extern int A1_2=60; extern int P2_2=0; extern int D2_2=0; extern int A2_2=0; extern double Ripple_2=0.001; extern int Delay_2=8; We see that the first filter's parameters // Filtr 1 are exactly the same as Low Frequency Filters indicator's first filter. The second filter's parameters // Filtr 2 are exactly the same as the first filter's except for the delay extern int Delay_2=8.
The other filters are configured in the same way. Further, having defined the entry and exit points as the filter tendency, you can build an automatic trading system using our expert DF-exp.mq4. The sell orders are hardcoded in the source code // check for short position (SELL) possibility For buying // check for long position (BUY) possibility For closing // should it be closed? It should be noted that with our 2 indicators you can obtain other filters described in Vladimir Kravchuk's articles, besides these analogous to SATL, FATL, STLM, FTLM; just update the first line of the filter's parameters extern int FType_1=0;
In building our trading systems we used only low frequency filters 0 - LPF (FATL/SATL/KGLP) Boris Fesenko BJF Trading Group
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Sign up for our FREE weekly newsletter: |
|---|
Forex trading involves substantial risk of loss and is not suitable for all investors. Read full disclosure.
|
||||||||
|---|---|---|---|---|---|---|---|---|
![]()
E-commerce services are provided by SWREG, Inc., an e-commerce reseller. Privacy Policy.