OPEN-SOURCE SCRIPT

[TradersPost] Futures Contract Rollover Example

78
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.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.