OPEN-SOURCE SCRIPT

comm_idx

已更新
This script displays information about the components of the Goldman Sachs Commodity Index. The index is based on futures contracts in the categories of agricultural products, softs commodities, livestock, energies, industrial metals, and precious metals. The statistics displayed in the table are:

change: 1-day % change
from ma: the % change from a moving average
corr idx: correlation of the contract to the GSCI

The lengths for the moving average and correlation statistic can be set using the inputs.

See the script source for the symbols used for each commodity. Although most of the symbols correspond to the actual futures contract used to compute the index, LME contracts are not available on tradingview. Hence, corresponding HKEX contracts are used for the industrial metals.
發布通知
cosmetic fix
發布通知
accidentally missed rbob gasoline -- added
AGScommoditycomponentsenergiesgsciindexlivestockMetalssoftsstatistics

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明