PROTECTED SOURCE SCRIPT
Cập nhật COT Index and OI Index

COT Index and OI Index
It calculates COT Index for Commercials and Open Interest Index. Both for a custom period depending of the asset nature. These periods can be adjusted. You can also choose to have signals drawn on the chart when the following conditions are met
If "Extreme Positions" option is chosen:
* COT Index for Commercials > Extreme Long (adjustable parameter in %) and COT Index for Large Speculators and Small Speculators < Extreme Short (adjustable parameter in %). This will show a green triangle up in the last weekly bar/candle
* COT Index for Commercials < Extreme Short (adjustable parameter in %) and COT Index for Large Speculators and Small Speculators > Extreme Long (adjustable parameter in %). This will show a red triangle down in the last weekly bar/candle
If "Extreme Commercials and OI Index" option is chosen:
* COT Index for Commercials > Extreme Long (adjustable parameter in %) and OI Index < Extreme Short (adjustable parameter in %). This will show a green triangle up in the last weekly bar/candle
* COT Index for Commercials < Extreme Short (adjustable parameter in %) and OI Index > Extreme Long (adjustable parameter in %). This will show a red triangle down in the last weekly bar/candle
It calculates COT Index for Commercials and Open Interest Index. Both for a custom period depending of the asset nature. These periods can be adjusted. You can also choose to have signals drawn on the chart when the following conditions are met
If "Extreme Positions" option is chosen:
* COT Index for Commercials > Extreme Long (adjustable parameter in %) and COT Index for Large Speculators and Small Speculators < Extreme Short (adjustable parameter in %). This will show a green triangle up in the last weekly bar/candle
* COT Index for Commercials < Extreme Short (adjustable parameter in %) and COT Index for Large Speculators and Small Speculators > Extreme Long (adjustable parameter in %). This will show a red triangle down in the last weekly bar/candle
If "Extreme Commercials and OI Index" option is chosen:
* COT Index for Commercials > Extreme Long (adjustable parameter in %) and OI Index < Extreme Short (adjustable parameter in %). This will show a green triangle up in the last weekly bar/candle
* COT Index for Commercials < Extreme Short (adjustable parameter in %) and OI Index > Extreme Long (adjustable parameter in %). This will show a red triangle down in the last weekly bar/candle
Phát hành các Ghi chú
Minor correctionsPhát hành các Ghi chú
Minor changesPhát hành các Ghi chú
minor changesPhát hành các Ghi chú
delayed COT data issue fixedPhát hành các Ghi chú
Weekly offset parameter issue fixedMã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
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ã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
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.