OPEN-SOURCE SCRIPT
Updated Ro Trades Squeeze + MACD Buy Signals For 1H, 4H, Daily, Weekly)

Thanks for using our indicator
We are aware that our [I]4h signal[/I] has a bug, if you see a blank blue square with an arrow on the 4h it is our signal. We are trying to fix it at the moment, I will keep you updated on our twitter
or x linked here https://x.com/RoNotBroYT.
Any other problems go to the link above.
How to use
[I]If your having trouble using our software most questions should be answer here if you have any unanswered questions go to the x link above 😀[/I]
Start by adding our software to your chart, then select your timeframe to either 4h or 1h and check for a green 1h box with arrow[I]it should say 1h[/I] and on the 4h look of a blue 4h box with arrow [I]not displaying the text 4h[/I]. Then you can use it all you like!
The code for the broken blue boxPine Script®
[I]Our software is still in beta it could be inaccurate
We are aware that our [I]4h signal[/I] has a bug, if you see a blank blue square with an arrow on the 4h it is our signal. We are trying to fix it at the moment, I will keep you updated on our twitter
or x linked here https://x.com/RoNotBroYT.
Any other problems go to the link above.
How to use
[I]If your having trouble using our software most questions should be answer here if you have any unanswered questions go to the x link above 😀[/I]
Start by adding our software to your chart, then select your timeframe to either 4h or 1h and check for a green 1h box with arrow[I]it should say 1h[/I] and on the 4h look of a blue 4h box with arrow [I]not displaying the text 4h[/I]. Then you can use it all you like!
The code for the broken blue box
color=color.new(color.blue, 0), style=shape.labelup, size=size.small, text="4H")
[I]Our software is still in beta it could be inaccurate
Release Notes
//version=6indicator("Squeeze + MACD Buy Signals (All Timeframes) with Multi-TF Squeeze Star", overlay=true)
squeezeLength = input.int(20, "Squeeze Length")
squeezeThreshold = input.int(3, "Min Squeeze Duration")
macdFast = input.int(12, "MACD Fast Length")
macdSlow = input.int(26, "MACD Slow Length")
macdSig = input.int(9, "MACD Signal Length")
// === Squeeze Logic
f_isSqueeze(_src) =>
basis = ta.sma(_src, squeezeLength)
dev = ta.stdev(_src, squeezeLength)
upperBB = basis + 2 * dev
lowerBB = basis - 2 * dev
rangeBB = upperBB - lowerBB
rangeKC = ta.tr(true)
rangeBB < rangeKC * 1.5
// === Signal Logic
f_tfBuySignal() =>
var int squeezeCount = 0
sq = f_isSqueeze(close)
squeezeCount := sq ? squeezeCount + 1 : 0
[macdLine, signalLine, _] = ta.macd(close, macdFast, macdSlow, macdSig)
cross = ta.crossover(macdLine, signalLine)
nearCross = macdLine > signalLine * 0.95 and macdLine < signalLine
macdCondition = cross or nearCross
ma50 = ta.sma(close, 50)
ma200 = ta.sma(close, 200)
ma50Rising = ma50 > ma50[1]
trendOk = ma50 > ma200 and ma50Rising
buy = trendOk and sq and macdCondition
level = buy ? (squeezeCount >= squeezeThreshold ? 2 : 1) : 0
[level, sq]
// === Pull Signals and Squeeze Status from All Timeframes
[signal1h, squeeze1h] = request.security(syminfo.tickerid, "60", f_tfBuySignal())
[signal4h, squeeze4h] = request.security(syminfo.tickerid, "240", f_tfBuySignal())
[signalD, squeezeD] = request.security(syminfo.tickerid, "D", f_tfBuySignal())
[signalW, squeezeW] = request.security(syminfo.tickerid, "W", f_tfBuySignal())
// Count how many timeframes are squeezing right now
squeezeCountTF = (squeeze1h ? 1 : 0) + (squeeze4h ? 1 : 0) + (squeezeD ? 1 : 0) + (squeezeW ? 1 : 0)
// Plot Buy Signals for All TFs (on any chart)
// 1H signal
plotshape(signal1h > 0, title="1H Signal", location=location.belowbar,
color=color.green, style=shape.labelup, text="1H", textcolor=color.white, size=size.small)
// 4H signal - shape + text overlay to ensure "4H" is always visible
plotshape(signal4h > 0, title="4H Signal", location=location.belowbar,
color=color.blue, style=shape.labelup, text="4H", textcolor=color.white, size=size.small)
plotchar(signal4h > 0 ? 1 : na, title="4H Text Overlay", char='4H', location=location.belowbar,
color=color.white, size=size.tiny, offset=0)
// Daily signal
plotshape(signalD > 0, title="D Signal", location=location.belowbar,
color=color.orange, style=shape.labelup, text="D", textcolor=color.white, size=size.small)
// Weekly signal
plotshape(signalW > 0, title="W Signal", location=location.belowbar,
color=color.fuchsia, style=shape.labelup, text="W", textcolor=color.white, size=size.small)
// === Plot Star if 2 or more TFs are squeezing now
plotshape(squeezeCountTF >= 2, title="Multi-TF Squeeze Star", location=location.abovebar,
color=color.yellow, style=shape.labelup, size=size.large, text="⭐", textcolor=color.black)
Release Notes
mo86rsuri5jgnhrjhnmteuipabgv oiewgbfuvoegwbgvRelease Notes
Thanks for used our indicator!We hope it enables you to read the market better than before!
How to use
How to use our indicator
First add our indicator to your chart,
Then look on our 5 different timeframes (15 min, 1H, 4H, Daily, Weekly,
[I]optional[/I] You can change the setting now if you like.
Now It is ready for use!
Our Socials
[I]We have a twitter (x) link below for any issues comment on the post about it or message me.[/I]
https://x.com/RoNotBroYT
That's all from us Thanks fro reading!
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.