- ago
1. is it possible to use the "Fear & Greed indicator" in WL?
2. is it possible to import own data in WL? For example from an Excel table.
1
710
Solved
8 Replies

Reply

Bookmark

Sort
- ago
#1
Yes, you can try to reconstruct the indicator on your own. If one day we're able to replicate the CNN Fear & Greed index and match the original value we may make it available in WL8.

For Excel (and not ASCII/CSV) data question please start a new thread. It's a topic of its own.
0
Glitch8
 ( 12.53% )
- ago
#2
Thanks to Springroll for pointing me to the link to download the CNN Fear/Greed Index historical data! I've integrated it into an indicator for PowerPack, but the site only returns data back one year.

Springroll, would you be willing to share your history so we can prime the indicator? Email at support@wealth-lab.com if you're able. We'd just need a text file dump or something simple to use.

1
- ago
#3
@Glitch

Good idea to integrate the Fear & Greed Indicator into the Powerpack.

You can figure out the REST API via Chrome Dev Tools, which CNN uses itself.


Without using a package called puppeteer, you have to trick the endpoint and simulate a browser-request. Here is the header information that I have been using for years to fool a browser-request.

CODE:
headers.Add('Accept','text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7') headers.Add('Accept-Encoding','gzip, deflate, br') headers.Add('Accept-Language','en-US,en;q=0.9,de;q=0.8') headers.Add('User-Agent','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36')

I found all the historical data on Github in late 2019, but I can't no longer find the source.

I'll send you the Fear & Greed data by e-mail (as JSON format).
0
Glitch8
 ( 12.53% )
- ago
#4
I already was able to obtain the data from their service, but you mentioned collecting it since 2011, I was wondering if you had that earlier history?
0
- ago
#5
Here's the source file on Github going back to 2011, it didn't took long to find:

https://github.com/hackingthemarkets/sentiment-fear-and-greed/blob/master/datasets/fear-greed.csv
1
- ago
#6
@Glitch

Just sent the historical FGI data by e-mail to support@wealth-lab.com.
0
- ago
#7
QUOTE:

Here's the source file on Github going back to 2011, it didn't took long to find:

https://github.com/hackingthemarkets/sentiment-fear-and-greed/blob/master/datasets/fear-greed.csv


Of course it didn't take long to find it but that wasn't my source. As mentioned, I used a Github source in Nov 2019 and this repo was created only in Sep 2020....

My source was written in React JSX, but has since disappeared...
0
Glitch8
 ( 12.53% )
- ago
#8
The indicator is ready for the next release cycle!
1
Best Answer

Reply

Bookmark

Sort