Kaschko

Sector relative strength and correlation by Kaschko

Kaschko Cập nhật   
This script provides a quick overview of the relative strength and correlation of the symbols in a sector by showing a line chart of the close prices on a percent scale with all symbols starting at zero at the left side of the chart. It allows a great deal of flexibility in the configuration of the sectors and symbols in it. The standard preset sectors cover the most important futures markets and their symbols.

However, up to ten sectors with up to ten symbols each can be freely configured. Each sector is defined by a single line that has the following format:

Sector name:Symbol suffix:List of comma separated symbols

For example, the first predefined sector is defined as follows.

Energies:1!:CL,HO,NG,RB

1. The name of the sector is "Energies"
2. The suffix is "1!", i.e., to each symbol in the list "1!" is appended to get the continous future for the given symbol root. When using stock, forex or other symbols, simply leave the suffix empty.
3. The list of comma separated symbols is "CL,HO,NG,RB", i.e. crude oil, heating oil, natural gas and gasoline. As the suffix is "1!", the actual symbols whose prices are shown are "CL1!","HO1!","NG1!" and "RB1!"

You can choose to use settlement-as-close and back-adjusted contracts. The sector can also be determined automatically ("Auto-select"). In this case, it is determined to which sector the symbol currently displayed in the main chart belongs and the script displays it in the context of the other symbols in the sector.

By selecting a suitable chart time frame and time range, you can quickly determine which symbols in the sector are stronger or weaker and which are more or less strongly correlated.

The following symbols are best suited for a quick trial, as the sectors are preset for these:

CL1!,ES1!,6A1!,6B1!,6c1!,6E1!,6J1!,6M1!,6N1!,6S1!,GC1!,GF1!,HE1!,HG1!,HO1!,LBR1!,LE1!,NG1!,NQ1!,PA1!,PL1!,RB1!,SI1!,YM1!,ZB1!,ZC1!,ZF1!,ZL1!,ZM1!,ZN1!,ZO1!,ZR1!,ZS1!,ZT1!,ZW1!,CC1!,CT1!,DX1!,KC1!,OJ1!,SB1!,RTY1!

You can also use the script to compare any symbols (e.g. different shares) with each other. Preferably use the "Custom" sector for this.
Phát hành các Ghi chú:
Introduction of alias names for symbols of a sector

A sector is defined as follows. Aliases and the symbol suffix are optional.

Sector name:Symbol suffix:Comma separated list of Symbol

Examples:

"Energies:1!:CL,HO,NG,RB"
This defines the sector "Energies" using continous futures contracts of crude oil,heating oil,natural gas and gasoline

"Currencies::AXY,BXY,CXY,EXY,JXY,ZXY,SXY,DXY"
This defines the sector "Currencies" using various currency indices, creating a simple currency strength meter
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?