
A Pine Script indicator analyzing oil futures contract price ratios to determine market states of contango and backwardation, providing insights into supply-demand dynamics.
Explore complementary indicator rolesHow it works
The indicator calculates the price ratio between the nearest (CL1) and next nearest (CL2) NYMEX crude oil futures contracts by dividing their prices and multiplying by 100. This ratio serves as a dynamic metric to interpret the immediate market state, with a baseline of 100 representing a neutral condition.
When the ratio exceeds 100, it indicates backwardation, suggesting higher demand than supply, while a ratio below 100 signifies contango, implying higher supply than demand. The script further enhances analysis by tripling the deviation from the baseline and capping the adjusted ratio at 125 for highs and 75 for lows to maintain clarity and detect market anomalies.
Why it may be useful
This indicator provides traders with a sophisticated tool to understand complex supply-demand dynamics in the oil futures market, offering real-time insights into market sentiment and potential inflationary pressures. By quantifying the relationship between near-term futures contracts, traders can gain a deeper understanding of market conditions that might not be immediately apparent from price movements alone.
The ability to distinguish between contango and backwardation helps traders make more informed decisions about potential market trends, hedging strategies, and investment opportunities in the energy sector. It transforms abstract market concepts into a visual, easily interpretable metric that can guide trading strategies across different timeframes.
When to explore it
The indicator is most effective for traders focused on energy markets, particularly those interested in oil futures and broader commodity trading strategies. It provides valuable insights during periods of market volatility, economic transitions, and significant global events that might impact oil supply and demand dynamics.
Traders should consider using this indicator when analyzing long-term energy market trends, evaluating potential inflationary signals, or seeking to understand the underlying structural changes in commodity markets. It is particularly useful for day traders and swing traders who need a nuanced understanding of market conditions beyond simple price action.
Keep exploring
What we’ve verified
Access, alerts and repainting behaviour have not been independently verified for this indicator. Check the creator’s current publication and settings.
General descriptions and classifications are recovered research. Verified details above identify the specific checks we have completed. Check the creator’s current publication for later changes.






