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.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.