OPEN-SOURCE SCRIPT
Fibonacci Pullback to 50MA Buy Signal

// === CONDITIONS FOR BUY SIGNAL ===
// 1. Price must be inside the fib pullback zone
inFibZone = low <= fib50 and low >= fib618
// 2. Price must touch or approach the 50MA
touchMA = low <= ma50 * 1.002 and low >= ma50 * 0.998 // within 0.2%
// 3. Optional confirmation – bullish candle
reversalCandle = close > open
// FINAL BUY SIGNAL CONDITION
buySignal = inFibZone and touchMA and reversalCandle
// === MARK BUY SIGNAL ===
plotshape(buySignal, style=shape.labelup, color=color.lime, size=size.large,
location=location.belowbar, text="BUY\nFib + 50MA")
// 1. Price must be inside the fib pullback zone
inFibZone = low <= fib50 and low >= fib618
// 2. Price must touch or approach the 50MA
touchMA = low <= ma50 * 1.002 and low >= ma50 * 0.998 // within 0.2%
// 3. Optional confirmation – bullish candle
reversalCandle = close > open
// FINAL BUY SIGNAL CONDITION
buySignal = inFibZone and touchMA and reversalCandle
// === MARK BUY SIGNAL ===
plotshape(buySignal, style=shape.labelup, color=color.lime, size=size.large,
location=location.belowbar, text="BUY\nFib + 50MA")
開源腳本
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.
免責聲明
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.
開源腳本
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.
免責聲明
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.