This may seem like a pretty basic Moving Average indicator but I haven't seen one that changes the calculation point depending if the market is going up or down.
I've added three EMA's (length of 20) on this sample chart to demonstrate the differences. These are not included with the indicator. Green, EMA calculated on High Red, EMA calculated on Low Yellow, EMA calculated on Close (default) Blue, EMA calculated on HIGH when rising but on LOW when falling. (looks at 3 candles back to gauge direction) * * * Note you can choose between 5 different Moving Average types
Notice how the Blue line (when going up it's calculated on the High) is catching up to the Green line (which is already calculated on the High)? Notice how the Blue line (when going down so it's calculated on the Low) is catching up to the Red line (which is already calculated on the Low)?
This gives a faster response in the direction of the market because it switches between calculating on the High or Low based on market direction.
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.