OPEN-SOURCE SCRIPT

F&G_Index

Updated
Introduction.
This indicator shows the behavior of Fear and Greed Index (F&G_Index) for the cryptocurrency market in an intuitive way for traders. This indicator has been modified from a script developed by cptpat called "Fear and Greed Index FGI (Daily Update) alternative.me" (Tradingview user). The Fear and Greed Index values are taken directly from alternative.me.
The novelty of this proposal is to indicate the extreme levels (lower/upper) of the Fear and Greed Index according to a statistical analysis of the historical data. Also its daily update. It is not recommended to use in isolation. The appropriate way is in consensus with other indicators.

The extreme values.
Two upper and lower limits are established that correspond to the first standard deviation (1·SD) and 1.5 standard deviation (1.5·SD), respectively. These limits will help to know different important levels of greed or fear in the market based on real and historical data. The values obtained for each case are shown below, which will mark the extremes. These values may be modified in the future. If so, they will be updated and the community will be informed.
1·SD higher = 69 (F&G_Index).
1·SD lower = 24 (F&G_Index).
1.5·SD higher = 81 (F&G_Index).
1.5·SD lower = 12 (F&G_Index).
These limits are statistically significant and representative of extreme values of the Fear and Greed Index. Above all, for the case of 1.5·SD higher/lower, whose occurrence of the cases are significantly lower. These data are obtained for a daily record from August 2017 to December 2021, for a total of 1407 data. The occurrence of the Fear and Greed Index value exceeding the indicated levels is shown below.
F&G_Index > 1·SD higher (Greed). Occurrence <22,5%
F&G_Index < 1·SD lower (Fear). Occurrence <19%
1·SD lower < F&G_Index < 1·SD higher (Neutral). Occurrence ≈59%
F&G_Index > 1.5·SD higher (Extreme Greed). Occurrence <8%
F&G_Index < 1.5·SD lower (Extreme Fear). Occurrence <3%

How to use the indicator.
Its use is very simple and intuitive and is based on the levels indicated above. The blue line shows the historical value of F&G_Index. When the value of F&G_Index exceeds the levels indicated above, a vertical band of color will be tinted (brown/red, green/lime green or gray with transparency) as indicated below. This allows you to locate important areas in a very visual way.
F&G_Index > 1·SD higher (Greed). Brown color
F&G_Index < 1·SD lower (Fear). Green color.
1·SD lower < F&G_Index < 1·SD higher (Neutral). Gray color with transparency.
F&G_Index > 1.5·SD higher (Extreme Greed). Red color.
F&G_Index < 1.5·SD lower (Extreme Fear). Lime green color.

Image of the indicator.
snapshot
Release Notes
Update latest value = 29 ; 2021-12-19
Release Notes
Update latest value = 29 ; 2021-12-19
Release Notes
Update latest value = 25 ; 2021-12-20
Release Notes
Update latest value = 25 ; 2021-12-20
Release Notes
Update latest value = 25 ; 2021-12-20
Release Notes
Update latest value = 25 ; 2021-12-20
Release Notes
Update latest value = 25 ; 2021-12-20
Release Notes
Update latest value = 27 ; 2021-12-21
Release Notes
Update latest value = 45 ; 2021-12-22
Release Notes
Update latest value = 34 ; 2021-12-23
Release Notes
Update latest value = 41 ; 2021-12-24
Release Notes
Update latest value = 39; 2021-12-25
Release Notes
Update latest value = 37 ; 2021-12-26
Release Notes
Update latest value = 40 ; 2021-12-27
Release Notes
Update latest value = 41 ; 2021-12-28
Release Notes
Update latest value = 27 ; 2021-12-29
Release Notes
Update latest value = 22 ; 2021-12-30
Release Notes
Update latest value = 28 ; 2021-12-31
Release Notes
Update latest value = 21 ; 2022-01-01
Release Notes
Update latest value = 21 ; 2022-01-01
Release Notes
Update latest value = 23 ; 2022-01-04
Release Notes
Update latest value = 24 ; 2022-01-05
Release Notes
Update latest value = 15 ; 2022-01-06
Release Notes
Update latest value = 18 ; 2022-01-07
Release Notes
Update latest value = 10 ; 2022-01-08
Release Notes
Update latest value = 23 ; 2022-01-09
Release Notes
Update latest value = 23 ; 2022-01-10
Release Notes
Update latest value = 21 ; 2022-01-11
Release Notes
Update latest value = 22 ; 2022-01-12
Release Notes
Update latest value = 23 ; 2022-01-15
Release Notes
Update latest value = 24 ; 2022-01-20
Release Notes
Update latest value = 11 ; 2022-01-23
Release Notes
Update latest value = 24 ; 2022-01-29
Centered OscillatorsOscillators

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer