|
|||||||||||||||||||
| Special offer: buy MetaStock (try for free) | Reuters QuoteCenter Real-Time Data (get a free month) | EOD Data |
|
In the following EasyLanguage indicator code, the Coef input is set to AbsValue( MedianPrice - MedianPrice[5] ), and the price input is set to MedianPrice. MedianPrice is a built-in function in EasyLanguage that returns (H + L) / 2. With these values for the inputs, the indicator is equivalent to the momentum-based Ehlers filter, for which a specific EasyLanguage version has been developed by John Ehlers and is given at the top of this Traders' Tips section. To derive the distance coefficient Ehlers filter, which is also described in Ehlers's article, the Coef input value in the following EasyLanguage can be replaced with DistanceSqrd( MedianPrice, 15 ). DistanceSqrd is a custom function, and the code for that follows the indicator code. Code:inputs: variables: Num = 0 ; for Count = 0 to Length - 1 if SumCoef <> 0 then Plot1( Filt, "Ehlers" ) ; inputs: variables: DSqrd = 0 ;
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. |
|
|