- Katılım
- 23 Eki 2020
- Mesajlar
- 1,828
Here is the MetaStock formula for the trend detection index, which was presented in the October 2001 Stocks & Commodities by M.H. Pee: |
|
Trend Detection Index x:=Input("number of periods", 5,50,20); am:= Abs(C-Ref(C,-(x-1))); td:= Sum(C-Ref(C,-(x-1)),x); tdi:= (Abs(td)+Sum(am,x))-Sum(am,(2*x)); status:= If(tdi>0, If(td>0,1,-1), PREV); tdi; td; status*LastValue(Highest(Max(Abs(tdi),Abs(td)))) |
-Cheryl C. Abram, Equis International, Inc. Equis | |
| |
Source / From: |