OPEN-SOURCE SCRIPT
Cập nhật 🏛️ 𝙈𝙖𝙘𝙧𝙤-𝙏𝙧𝙚𝙣𝙙 𝓜𝓪𝓽𝓻𝓲𝔁 🏛️

This script aims to determine the relationship between the user's selected ticker and the macro-market by examining data from Currencies, Bonds, SPX, GOLD, and Liquidity. The indicator evaluates the trends of different symbols and their connection to the chosen ticker to create an implied trend.
Trend Calculation
It calculates the trend using two exponential moving averages with adjustable lengths.
Correlation Calculation
The correlation is computed using TradingView's built-in ta.correlation function, comparing the user's ticker with the macro ticker.
Score Calculation
The score is determined by multiplying the macro ticker's trend value by its correlation with the user's chosen ticker.
Results
The results provide the average data and indicate the Rate of Change of that figure.
Table
The table can be either "Simple" or "Full," displaying either just the result or all the metrics of the tickers.
Trend Calculation
It calculates the trend using two exponential moving averages with adjustable lengths.
Correlation Calculation
The correlation is computed using TradingView's built-in ta.correlation function, comparing the user's ticker with the macro ticker.
Score Calculation
The score is determined by multiplying the macro ticker's trend value by its correlation with the user's chosen ticker.
Results
The results provide the average data and indicate the Rate of Change of that figure.
Table
The table can be either "Simple" or "Full," displaying either just the result or all the metrics of the tickers.
Phát hành các Ghi chú
Update to Request Securities to avoid repainting.Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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.