OPEN-SOURCE SCRIPT
CAP - KC/AC 2.20462 Converter

// ───────────────────────────────────────────────────────────────────────────────
// Purpose: Conversion Indicator for ICE “C” (KC) and “C Metric” (AC) Contracts
//
// Background:
// - The Intercontinental Exchange (ICE) is phasing out the legacy Coffee “C” contract (symbol: KC),
// which has been quoted in U.S. cents per pound, and replacing it with the new Coffee “C Metric” contract (symbol: AC),
// quoted in U.S. dollars per metric ton :contentReference[oaicite:0]{index=0}.
// - The final KC futures expire in March 2028; AC contracts begin trading in September 2025 and use modern specifications
// including pricing per metric ton and flexible bulk delivery formats :contentReference[oaicite:1]{index=1}.
//
// Why this script matters:
// - Traders are accustomed to the KC pricing format (¢/lb); the AC contract’s USD/MT may create confusion.
// - This indicator visually converts the current chart price—whether from KC or AC contracts—directly into its equivalent unit,
// helping traders quickly assess parity and compare trends across both contract types.
// - It simplifies head-to-head comparison during this transition period, improving clarity on chart price behavior.
//
// Usage instructions:
// - If the symbol starts with "KC", the script divides the price by 2.20462 to convert from ¢/lb to approximate ¢/kg.
// - If the symbol starts with "AC", the script multiplies the price by 2.20462 to reverse the conversion.
// - The results (converted values) are displayed in a table for immediate visual clarity.
// ───────────────────────────────────────────────────────────────────────────────
// Purpose: Conversion Indicator for ICE “C” (KC) and “C Metric” (AC) Contracts
//
// Background:
// - The Intercontinental Exchange (ICE) is phasing out the legacy Coffee “C” contract (symbol: KC),
// which has been quoted in U.S. cents per pound, and replacing it with the new Coffee “C Metric” contract (symbol: AC),
// quoted in U.S. dollars per metric ton :contentReference[oaicite:0]{index=0}.
// - The final KC futures expire in March 2028; AC contracts begin trading in September 2025 and use modern specifications
// including pricing per metric ton and flexible bulk delivery formats :contentReference[oaicite:1]{index=1}.
//
// Why this script matters:
// - Traders are accustomed to the KC pricing format (¢/lb); the AC contract’s USD/MT may create confusion.
// - This indicator visually converts the current chart price—whether from KC or AC contracts—directly into its equivalent unit,
// helping traders quickly assess parity and compare trends across both contract types.
// - It simplifies head-to-head comparison during this transition period, improving clarity on chart price behavior.
//
// Usage instructions:
// - If the symbol starts with "KC", the script divides the price by 2.20462 to convert from ¢/lb to approximate ¢/kg.
// - If the symbol starts with "AC", the script multiplies the price by 2.20462 to reverse the conversion.
// - The results (converted values) are displayed in a table for immediate visual clarity.
// ───────────────────────────────────────────────────────────────────────────────
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.