OPEN-SOURCE SCRIPT

[TradersPost] Futures Contract Rollover Example

79
This indicator detects and labels the current front futures contract on a TradingView chart. It constructs contract symbols by combining the underlying asset’s root with a month code (e.g., F for January, G for February) and the year—either the current year or one specified by the user. The script then scans through possible contracts, comparing open and volume data to determine which contract is active, and displays a label when a rollover occurs.

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

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.