The Ironbrand Fear & Greed Index
Warren Buffett's most famous dictum—"Be fearful when others are greedy, and greedy when others are fearful"—is easy to recite but extraordinarily difficult to execute. When Bitcoin drops 30% in a week, every instinct screams sell. When it surges to new all-time highs on a wave of euphoric social media posts, rational caution evaporates. The human brain is not wired for contrarian thinking under pressure.
The Fear & Greed Index exists to quantify what humans feel but cannot measure. It transforms the collective emotional state of the cryptocurrency market into a single number between 0 (maximum fear) and 100 (maximum greed), updated continuously from multiple independent data sources. Ironbrand's implementation goes beyond simple index tracking—it integrates the index directly into the signal generation pipeline as a directional bias modifier that influences every trade decision.
Why Market Emotions Matter
Cryptocurrency markets are driven by narratives and emotions to a degree that traditional equity markets are not. There are no earnings reports to anchor valuations. There are no dividend yields to establish fair value floors. Price is determined almost entirely by supply, demand, and the collective belief of market participants about where price should be.
This makes emotional extremes powerful predictive signals:
- Extreme Fear (0-20): The market is panicking. Weak hands are selling at any price. Liquidation cascades force leveraged longs to close. Historically, extreme fear readings have preceded some of the strongest short-term rallies in Bitcoin's history. This does not mean every fear reading leads to a bounce—but it means the selling pressure is exhausting itself.
- Fear (21-40): Sentiment is negative but not panicked. The market may still be declining, but the rate of decline is typically slowing. Accumulation by long-term holders often occurs in this range.
- Neutral (41-60): No strong directional bias from sentiment. Technical factors and fundamentals dominate. This is where the Fear & Greed Index provides the least edge.
- Greed (61-80): Optimism is elevated. Retail participation increases. Funding rates on perpetual futures turn positive (longs paying shorts). The market can continue higher, but the risk/reward for new long entries deteriorates.
- Extreme Greed (81-100): Euphoria. "This time is different" narratives dominate social media. Leverage reaches dangerous levels. Historically, sustained extreme greed readings have preceded corrections of 20-40% within 2-4 weeks.
Ironbrand's Composite Index: Five Data Components
While Ironbrand ingests the widely-followed Alternative.me Fear & Greed Index as a primary input, the internal composite index combines five weighted data components to produce a more comprehensive reading:
1. Social Sentiment (35% weight)
The largest single component. Social sentiment is measured through multiple channels:
- CoinGecko Community Data: The sentiment_votes_up_percentage metric from CoinGecko's Bitcoin page provides a crowd-sourced bullish/bearish ratio. When upvotes exceed 65%, sentiment is classified as bullish. Below 35%, bearish. The system tracks this with a 30-minute cache TTL.
- CryptoPanic News Sentiment: CryptoPanic aggregates crypto news and classifies articles as bullish, bearish, or neutral using both algorithmic analysis and community voting. Ironbrand fetches filtered results (bullish, bearish, important categories separately) and calculates a sentiment score:
(bullish - bearish) / (bullish + bearish), ranging from -1.0 (all bearish) to +1.0 (all bullish). - GDELT Tone Analysis: The Global Database of Events, Language, and Tone processes news articles mentioning crypto, Bitcoin, and related terms, producing an average tone score from -15 (extremely negative) to +15 (extremely positive). Ironbrand tracks both the average tone and the negativity ratio (percentage of articles with tone below -1).
Social sentiment is weighted at 35% because crypto markets are uniquely narrative-driven. A single influential tweet can move Bitcoin by 3-5% in minutes. Social data captures these narrative shifts faster than any other data source.
2. Market Momentum (25% weight)
Price trends and moving average alignment provide the momentum component:
- EMA Alignment: When the 5-minute EMA(20) is above EMA(50), and the 1-hour price is above its EMA(20), momentum is bullish. When all three are bearish-aligned, momentum is strongly bearish.
- BOS Regime: A bullish BOS regime (price closing above the last 15-minute swing high) contributes positively. A bearish BOS contributes negatively.
- Funding Rate: Perpetual futures funding rates indicate market positioning. Positive funding (longs paying shorts) suggests bullish crowding. Negative funding (shorts paying longs) suggests bearish crowding. Ironbrand pulls this data from Kraken Futures API with a 5-minute cache.
3. Volatility (15% weight)
Volatility is measured primarily through the 14-period ATR on the 5-minute chart:
- ATR Level: Rising ATR indicates increasing volatility, which often accompanies fear. Falling ATR suggests complacency, which aligns with greed or neutral conditions.
- Extreme Volatility Detection: When the current ATR exceeds its 50-bar mean by more than 2.5x, the market is in extreme volatility mode. This condition typically correlates with fear readings below 25.
- Historical Comparison: Current ATR is compared against longer-term averages to determine whether volatility is elevated or suppressed relative to historical norms.
4. Bitcoin Dominance (15% weight)
Bitcoin's share of total cryptocurrency market capitalization provides insight into market risk appetite:
- Rising Dominance + Falling Total Market Cap: This combination signals a flight to relative safety within crypto. Capital is leaving altcoins and concentrating in Bitcoin. This is a fear indicator.
- Falling Dominance + Rising Total Market Cap: Capital is flowing into altcoins, which are higher-risk. This indicates risk appetite and greed.
- Data Source: CoinGecko's global market data endpoint, cached for 1 hour (dominance changes slowly).
Ironbrand tracks BTC dominance as a percentage with one decimal precision. The current reading and total market cap are available in every market context snapshot.
5. Search & Social Volume (10% weight)
The smallest component, but a useful leading indicator:
- Google Trends: Search interest for terms like "buy Bitcoin," "Bitcoin crash," and "crypto" provides insight into retail attention. Spikes in "buy Bitcoin" searches correlate with local tops. Spikes in "Bitcoin crash" correlate with local bottoms.
- Social Media Volume: The raw volume of crypto-related social media posts (independent of sentiment) indicates market attention. Extreme volume spikes often accompany emotional extremes in either direction.
- News Volume: CryptoPanic's news count and GDELT's total articles count provide a measure of how much media attention crypto is receiving.
How the Index Is Calculated
Each component produces a sub-score on a 0-100 scale, then the weighted average yields the composite index:
Composite F&G = (Social_Sentiment * 0.35)
+ (Market_Momentum * 0.25)
+ (Volatility * 0.15)
+ (BTC_Dominance * 0.15)
+ (Search_Volume * 0.10)
Classification:
0 - 20: Extreme Fear
21 - 40: Fear
41 - 60: Neutral
61 - 80: Greed
81 - 100: Extreme Greed
The Alternative.me Fear & Greed Index is ingested as a cross-reference. When Ironbrand's composite score and Alternative.me diverge by more than 15 points, the system flags the discrepancy for further analysis. Sustained divergences often indicate that one data source is capturing information the other is missing.
Integration with the Signal Engine
The Fear & Greed Index does not generate trade signals directly. Instead, it modifies the directional bias score that influences whether signals from the technical engine are approved or rejected.
Bias Scoring
The market context system calculates a directional bias on a scale from -5 (strongly bearish) to +5 (strongly bullish). The Fear & Greed Index contributes to this score as follows:
| F&G Reading | Classification | Bias Contribution | Effect on Signals |
|---|---|---|---|
| 0 - 20 | Extreme Fear | -2 points | Short signals boosted, long signals require higher confidence |
| 21 - 35 | Fear | -1 point | Slight bearish bias |
| 36 - 64 | Neutral | 0 points | No bias from sentiment |
| 65 - 79 | Greed | +1 point | Slight bullish bias |
| 80 - 100 | Extreme Greed | +2 points | Long signals boosted, short signals require higher confidence |
The bias score is combined with contributions from funding rates, liquidation ratios, and social sentiment to produce the final directional bias. When the total score reaches +2 or higher, the system has a "long" bias. At -2 or lower, a "short" bias. Between -1 and +1, the bias is neutral.
LLM Analysis Integration
The Fear & Greed reading is passed directly to the LLM analysis layer as part of the market context prompt. The LLM sees the raw value and classification:
## MARKET CONTEXT
- Fear & Greed: 13 (Extreme Fear)
- Funding rate: -0.0050% (short_pay)
- Open Interest: $18.5B
- Liquidations 24h: ratio L/S = 2.3x (long_liquidated)
- BTC Dominance: 61.5%
- Social sentiment: bearish (bull ratio: 30%)
- Bias: SHORT (strength: -3/5)
The LLM is instructed to evaluate whether the signal aligns with the macro context. A long signal during Extreme Fear with -3 bias strength faces a high bar for approval. The LLM must identify specific reasons why the technical setup should override the macro headwinds.
Contrarian Trading: When Fear Creates Opportunity
The most profitable application of the Fear & Greed Index is contrarian: buying when others are fearful, selling when others are greedy. But this requires nuance—blindly buying every fear reading leads to catching falling knives.
The Contrarian Conditions
Ironbrand's system does not mechanically flip to contrarian mode. Instead, it looks for specific conditions that suggest an emotional extreme is ready to reverse:
- Extreme Fear + Bearish Funding: When F&G is below 20 and funding rates are negative (shorts paying longs), the market is heavily positioned short. This creates potential for a short squeeze if any catalyst appears.
- Extreme Fear + Liquidation Cascade: When long liquidations significantly exceed short liquidations (ratio > 2.0x), forced selling is a major component of the decline. Once the forced sellers are exhausted, buying pressure has less resistance.
- Extreme Greed + Positive Funding: When F&G is above 80 and funding rates are highly positive, longs are overleveraged and paying a premium to maintain positions. Any negative catalyst can trigger cascading liquidations of long positions.
- Technical Divergence: When F&G hits extremes but the BOS regime on the 15-minute chart does not confirm (e.g., Extreme Fear but BOS is still bullish), the emotional reading may be overreacting to news rather than reflecting genuine structural breakdown.
Historical Examples
The following examples illustrate how extreme Fear & Greed readings have historically preceded significant market moves:
| Period | F&G Reading | BTC Price Action | Subsequent 30-Day Return |
|---|---|---|---|
| March 2020 (COVID crash) | 8 (Extreme Fear) | BTC dropped to $3,800 | +80% (recovered to $6,800+) |
| June 2022 (Luna/3AC) | 6 (Extreme Fear) | BTC at $17,500 | +25% (bounced to $22,000) |
| Nov 2021 (ATH) | 84 (Extreme Greed) | BTC at $69,000 | -20% (dropped to $55,000) |
| Feb 2024 (ETF euphoria) | 82 (Extreme Greed) | BTC near $52,000 | +30% (surged to $73,000) |
The February 2024 example illustrates why contrarian signals are not mechanical. Extreme greed during the Bitcoin ETF approval period was followed by more gains, not a correction. The structural catalyst (first-ever spot Bitcoin ETFs) was powerful enough to override the sentiment warning. Ironbrand's system would have captured this nuance through its multi-layered analysis: while the F&G Index was flashing caution, the BOS regime was firmly bullish, funding rates were manageable, and the on-chain data showed massive institutional inflows.
Data Source: Alternative.me API
The primary Fear & Greed Index data comes from Alternative.me's free API:
Endpoint: https://api.alternative.me/fng/?limit=1
Response: {
"data": [{
"value": "23",
"value_classification": "Extreme Fear",
"timestamp": "1711411200"
}]
}
Cache TTL: 30 minutes (index updates daily, but caching
prevents unnecessary API calls)
Fallback: If API fails, returns last cached value.
If no cache exists, defaults to 50 (Neutral).
The API is free and requires no authentication, making it highly reliable as a data source. The 30-minute cache ensures that even if the API temporarily goes down, the system continues operating with the last known value. Since the index updates only once per day, stale cached data remains valid for hours.
Social Sentiment Data Pipeline
Beyond the Fear & Greed Index itself, Ironbrand's social sentiment pipeline processes data from multiple sources to produce its own bull/bear ratio:
CoinGecko Community Sentiment:
Endpoint: /api/v3/coins/bitcoin
Fields: sentiment_votes_up_percentage,
sentiment_votes_down_percentage
Logic: bull_ratio = up_pct / 100
if up_pct >= 65: "bullish"
if up_pct <= 35: "bearish"
else: "mixed"
Cache: 30 minutes
Bias: +1 if bullish, -1 if bearish, 0 if mixed
CryptoPanic Sentiment:
Endpoint: /api/developer/v2/posts/
Filters: bullish, bearish, important (separate requests)
Logic: score = (bullish_count - bearish_count) /
(bullish_count + bearish_count)
Labels: bullish (bull > bear*2)
bearish (bear > bull*2)
slightly_bullish (bull > bear)
slightly_bearish (bear > bull)
mixed (equal)
Cache: 15 minutes
Limitations and Edge Cases
No single indicator is infallible. The Fear & Greed Index has specific limitations that Ironbrand's multi-layered architecture is designed to compensate for:
- Lagging in fast-moving markets: The Alternative.me index updates daily. During a flash crash or sudden rally, the index may still show yesterday's reading. Ironbrand compensates by using real-time funding rates and liquidation data, which update every 5-15 minutes.
- Not directionally predictive on its own: A reading of 30 (Fear) does not tell you whether to buy or sell. It only tells you the market's emotional state. The technical engine (BOS regime, EMA alignment) provides the directional component.
- Manipulation risk: Social media sentiment can be manipulated through bot accounts and coordinated campaigns. Ironbrand mitigates this by using multiple independent sentiment sources and weighting social data at only 35% of the composite.
- Extended extremes: During prolonged bear or bull markets, the index can remain at extreme readings for weeks or months. Contrarian signals based on a single extreme reading can be premature. The system requires multiple confirming factors before generating contrarian entries.
Real-Time Dashboard Display
Ironbrand users see the Fear & Greed Index as part of their market context dashboard. The display includes:
- The current composite value (0-100) with color coding (red for fear, green for greed)
- The classification label (Extreme Fear / Fear / Neutral / Greed / Extreme Greed)
- A 30-day historical chart showing the index evolution
- The current directional bias contribution (-2 to +2)
- Social sentiment breakdown (CoinGecko ratio, CryptoPanic score, GDELT tone)
When the index crosses between classifications (e.g., from Fear to Extreme Fear), the dashboard generates an alert. Users who have enabled signal notifications receive a push notification with the current reading and its implications for active positions.
Conclusion
The Fear & Greed Index transforms the intangible—market psychology, crowd behavior, emotional extremes—into a quantifiable metric that directly influences Ironbrand's AI signal generation. By combining data from the Alternative.me index, CoinGecko community sentiment, CryptoPanic news analysis, and GDELT news tone scoring, the system maintains a real-time pulse on market emotion.
But the index is deliberately not the loudest voice in the room. At 35% of the composite and contributing just -2 to +2 points on the directional bias scale, it influences but does not dictate. The technical engine provides structure. The macro data provides context. The geopolitical layer provides awareness. And the Fear & Greed Index provides the emotional dimension that completes the picture.
Markets are not purely rational. Any system that ignores emotion is incomplete. Any system that is ruled by emotion is doomed. Ironbrand's approach—measuring emotion precisely, weighting it appropriately, and combining it with rigorous technical and fundamental analysis—is the balance that institutional-grade trading demands.