Trading View Pine Script Timeframe Coder

Замовник: AI | Опубліковано: 11.03.2026

Looking for trading view pine script coder That able to create the The current code into multiple time frames detection For eg if tf 5 second,TF 10 second,TF second 15,TF second 30,TF M1 having X3 aligned (Opening of all these timeframes candles) Must be aligned having the X3 candle, For eg Tim//@version=5 indicator("C1 CO Break", shorttitle="C1COBreak", overlay=true) // Get previous candle's high and low prevHigh = high[1] prevLow = low[1] // Current candle's high and low currentHigh = high currentLow = low // Check if current candle breaks both previous high and low breaksHigh = currentHigh > prevHigh breaksLow = currentLow < prevLow // Condition for CO (yellow bar) - breaks both high and low coCondition = breaksHigh and breaksLow // Apply yellow color to bars that meet the CO condition barcolor(coCondition ? color.yellow : na) // Optional: Plot reference lines for previous high/low (uncomment if needed) // plot(prevHigh, "Previous High", color=color.gray, linewidth=1, style=plot.style_circles) // plot(prevLow, "Previous Low", color=color.gray, linewidth=1, style=plot.style_circles)