- Katılım
- 23 Eki 2020
- Mesajlar
- 1,826
It returns the number of periods the close is moving in the same direction. A positive number indicates ascending close prices, a negative descending ones and zero unchanged ones. |
|
Same Direction If(C>Ref(C,-1) AND Ref(C,-1)>Ref(C,-2),PREV+1, If(C<Ref(C,-1) AND Ref(C,-1)<Ref(C,-2),PREV-1, If(C>Ref(C,-1) AND Ref(C,-1)<=Ref(C,-2),1, If(C<Ref(C,-1) AND Ref(C,-1)>=Ref(C,-2),-1, 0)))) |
This formula might be useful as a component of other indicators, systems or explorations, rather than as a stand-alone indicator. | |
| |
Source / From: |