QTrader
Menu

Fear & Greed Index

Series details

The Crypto Fear & Greed Index from alternative.me: one value a day from 0 (extreme fear) to 100 (extreme greed), for the crypto market as a whole.

Source: alternative.me

Markets: any

Use in workbench

Coverage

First stored dates describe the database, not a guarantee of complete history for every market.

  • Crypto market · Any market · 2018-02-01 · Any · Hourly (the index itself is daily)

Candle alignment

For Python and Pine strategies, a daily index point counts as known two hours after its 00:00 UTC timestamp. The strategy samples the latest eligible value at the candle close; missing or stale observations remain unavailable.

LLM context and chart previews have their own documented sampling rules. Do not assume that a daily timestamp means the value was published at midnight.

Python example

fear_n_greed = market_data.fear_n_greed


# Buy into extreme fear, sell once the market turns greedy.
def enter_long():
    return fear_n_greed < 20


def exit_long():
    return fear_n_greed > 70
Open in workbench

Pine example

//@version=6
strategy("Fear & Greed contrarian", initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.1)
fearGreed = market_data.fear_n_greed
// Buy into extreme fear, sell once the market turns greedy.
if fearGreed < 20
    strategy.entry("Long", strategy.long)
if fearGreed > 70
    strategy.close("Long")
Open in workbench

LLM prompt example

Read the crowd's mood in {market_data.fear_greed}. Extreme fear while {candles} hold their recent lows is a reason to buy; extreme greed after a long run up is a reason to stay flat.
Open in workbench

Check market support, historical coverage and timeframe alignment before comparing a backtest with current robot inputs. Missing data is not a zero observation.

Data coverage and backtest windows

Reload this page if interactive controls could not load.