OPEN-SOURCE SCRIPT
업데이트됨 Fear and Greed Indicator [DunesIsland]

The Fear and Greed Indicator [DunesIsland] is a TradingView indicator that measures market sentiment using five metrics. It displays:
Purpose: Helps traders spot market extremes for contrarian trading opportunities.Components (each weighted 20%):
Alerts:
- Tiny green circles below candles when the market is in "Extreme Fear" (index ≤ 25), signalling potential buys.
- Tiny red circles above candles when the market is in "Greed" (index > 75), indicating potential sells.
Purpose: Helps traders spot market extremes for contrarian trading opportunities.Components (each weighted 20%):
- Market Momentum: S&P 500 (SPX) vs. its 125-day SMA, normalized over 252 days.
- Stock Price Strength: Net NYSE 52-week highs (INDEX:HIGN) minus lows (INDEX:LOWN), normalized.
- Put/Call Ratio: 5-day SMA of Put/Call Ratio (USI:PC).
- Market Volatility: VIX (VIX), inverted and normalized.
- Stochastic RSI: 14-period RSI on SPX with 3-period Stochastic SMA.
Alerts:
- Buy: Index ≤ 25 ("Extreme Fear - Potential Buy").
- Sell: Index > 75 ("Greed - Potential Sell").
릴리즈 노트
The updated script includes several key improvements, making it more accurate and user-friendly:- Smarter Shape Plotting: In the original script, circles might have appeared on every bar where the fear or greed condition was met, cluttering the chart. Now, circles are only plotted at the start of a new fear or greed period, clearly marking the moment to consider a buy or sell opportunity.
- Improved Line Persistence: Previously, if the condition was met for just one bar, the horizontal line might not have displayed correctly. The updated version ensures that the line extends for a total of 5 bars (including the trigger bar), providing consistent visual feedback even for short-lived signals.
- Better Retrigger Handling: The original script struggled with retriggers—when the condition was met, unmet, and met again in quick succession. Now, the script dynamically adjusts: for example, if the condition triggers on one bar, stops, and triggers again later, the line starts at the first trigger’s close and extends for 5 bars after the last trigger. This ensures the indicator accurately reflects evolving market sentiment.
These changes make the Fear and Greed Indicator more reliable and easier to read, offering clearer signals for potential trading opportunities.
릴리즈 노트
Updated Chart오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.