fgi {cryptoQuotes} | R Documentation |
The fear and greed index is a market sentiment indicator that measures investor emotions to gauge whether they are generally fearful (indicating potential selling pressure) or greedy (indicating potential buying enthusiasm)
fgi(index, internal = list())
index |
The Fear and Greed Index created by |
internal |
An empty list. Used for internal purposes. Ignore. |
The Fear and Greed Index goes from 0-100, and can be classifed as follows
0-24, Extreme Fear
25-44, Fear
45-55, Neutral
56-75, Greed
76-100, Extreme Greed
Invisbly returns a plotly object.
Other chart indicators:
add_event()
,
alma()
,
bollinger_bands()
,
chart()
,
dema()
,
ema()
,
evwma()
,
hma()
,
lsr()
,
macd()
,
rsi()
,
sma()
,
volume()
,
vwap()
,
wma()
,
zlema()
Other sentiment indicators:
lsr()
Other subcharts:
add_event()
,
lsr()
,
macd()
,
rsi()
,
volume()
## Not run:
# script: Fear and Greed Index
# date: 2023-12-26
# author: Serkan Korkmaz, serkor1@duck.com
# objective: Retrieve and Plot the
# index
# script start;
# 1) get the fear and greed index
# for the last 7 days
tail(
fgi <- cryptoQuotes::get_fgindex(
from = Sys.Date() - 7
)
)
# script end;
## End(Not run)