TradingView
barnabygraham
3 Th01 2022 18:59

Fear and Greed Index Candlesticks 

SPDR S&P 500 ETF TRUSTArca

Mô tả

This colours the candlesticks based on my 'Fear and Greed Index'.

All calculations are explained in the code.

The index is mainly based upon the components of the popular fear and greed index website. I've annotated the components in the code for you to look at.

If you're interested, you can replace the final variable 'Total' (within the 'barcolor' function at the very end) with any of the final outputs of the subcomponents to see the results of that single part.

Red = Greed
Green = Fear

Enjoy!
Bình luận
Thêm nữa