OPEN-SOURCE SCRIPT

Uptrend Filter: Price > 50 & 200 MA + Upward Slope

269
This indicator is designed to help traders instantly identify strong uptrend conditions based on two simple yet powerful criteria:

Price is above both the 50-day and 200-day moving averages

Both moving averages are sloping upward (positive momentum)

When both conditions are met, the indicator plots a green “UP” label below the candle, signaling a valid uptrend setup. This filter is ideal for asset selection in strategy-building, portfolio rotation, or trend-following systems.

🧠 Why it works:
The 50-day MA reflects medium-term momentum.

The 200-day MA represents the long-term trend.

When both are aligned and sloping upward, it confirms strong market structure and trend health.

🧰 Best used for:
Token screening (e.g., filtering altcoins)

Momentum-based entries

Trend confirmation

Risk filtering in strategy backtesting

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.