OPEN-SOURCE SCRIPT

Pendiente EMA20

77
This indicator measures the slope of the 20-period Exponential Moving Average (EMA20) to objectively determine whether it is rising, falling, or flat, removing the need for visual guesswork.

The slope is calculated as the difference between the current EMA20 value and its value N bars ago.
This provides a simple and reliable way to filter market conditions:

Positive slope → EMA20 is rising (bullish bias)

Negative slope → EMA20 is falling (bearish bias)

Near zero → EMA20 is flat (range / no clear trend)

The background color highlights these states for quick visual confirmation.

Notes

A zero threshold is included by default and may need adjustment depending on the asset and timeframe.

For better robustness in ranging markets, consider normalizing the slope using ATR or ticks.

This indicator is intended as a trend filter, not as a standalone trading system.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.