|
|||||||||||||||||||||||||||||||
| Special offer: buy MetaStock (try for free) | Reuters QuoteCenter Real-Time Data (get a free month) | EOD Data |
|
Here is some EasyLanguage code I developed to compute the filters presented in my article in this issue, "Nonlinear Ehlers Filters." This exemplary filter has 15 coefficients ["Length(15)"], although the array of coefficients is dimensioned to 25 ["Coef[25]"] to allow experimentation using a longer filter. If you want a filter longer than 25, the dimension of the Coef array must be increased accordingly. In the first calculation, you find each coefficient in the filter as the five-bar momentum. The next computation is to sum the numerator ["NUM"] as the product of each coefficient and the price (the x's in the general equation) at each corresponding sample, and then sum the coefficients alone. Finally, the filter is completed by taking the ratio of the numerator to the coefficient sum. The performance of this filter is shown in Figure 2 in the article. If you'd rather use a spreadsheet, an example done in Microsoft Excel is shown in Figure 1. FIGURE 1: EXCEL SPREADSHEET. Starting from the prices on the left, here is a way to compute a nonlinear Ehlers filter using a five-day momentum as the embedded filter. --John Ehlers The EasyLanguage for both the function and indicator will be available for download at www.tradestation.com. Look for the file "EhlersFilter.ELS." -- Ramesh Dhingra, Product Manager, EasyLanguage TradeStation Technologies, Inc. (formerly Omega Research, Inc.) A wholly owned subsidiary of TradeStation Group, Inc. http://www.TradeStation.com Code:
all formulas for TradeStation all formulas
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators and systems are submitted by anonymous users. Therefore S4T™ does not take any responsibility for it's quality. If you use any of this information, use it at your own risk. You are responsible for your own trading decisions. Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade. In no case will S4T™ be responsible for your trading gains or losses. |
||
|
||
|