PROTECTED SOURCE SCRIPT
ROBBIE + EMA

1️⃣ Purpose
This indicator identifies Knoxville Divergence signals (Rob Booker method) while filtering trades according to trend using an EMA.
Bullish signal: Price shows divergence and is above EMA → buy bias.
Bearish signal: Price shows divergence and is below EMA → sell bias.
It combines price pivots, RSI divergence, momentum, and EMA trend for higher-probability signals.
2️⃣ Key Components
a) Inputs
rsiLength → Period for RSI (default 14)
momLength → Period for Momentum (default 10)
pivotLen → Lookback for pivot detection (default 5)
emaLength → EMA period for trend filter (default 50)
b) Pivot Detection
ta.pivotlow() → detects price and RSI lows
ta.pivothigh() → detects price and RSI highs
Only pivots confirmed after pivotLen bars are used for divergence logic.
c) Knoxville Divergence Logic
Bullish Divergence:
Price forms a lower low
RSI forms a higher low
Momentum > 0
Price above EMA (trend confirmation)
Bearish Divergence:
Price forms a higher high
RSI forms a lower high
Momentum < 0
Price below EMA (trend confirmation)
This indicator identifies Knoxville Divergence signals (Rob Booker method) while filtering trades according to trend using an EMA.
Bullish signal: Price shows divergence and is above EMA → buy bias.
Bearish signal: Price shows divergence and is below EMA → sell bias.
It combines price pivots, RSI divergence, momentum, and EMA trend for higher-probability signals.
2️⃣ Key Components
a) Inputs
rsiLength → Period for RSI (default 14)
momLength → Period for Momentum (default 10)
pivotLen → Lookback for pivot detection (default 5)
emaLength → EMA period for trend filter (default 50)
b) Pivot Detection
ta.pivotlow() → detects price and RSI lows
ta.pivothigh() → detects price and RSI highs
Only pivots confirmed after pivotLen bars are used for divergence logic.
c) Knoxville Divergence Logic
Bullish Divergence:
Price forms a lower low
RSI forms a higher low
Momentum > 0
Price above EMA (trend confirmation)
Bearish Divergence:
Price forms a higher high
RSI forms a lower high
Momentum < 0
Price below EMA (trend confirmation)
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์ที่ได้รับการป้องกัน
สคริปต์นี้ถูกเผยแพร่เป็นแบบ closed-source อย่างไรก็ตาม คุณสามารถใช้ได้อย่างอิสระและไม่มีข้อจำกัดใดๆ – เรียนรู้เพิ่มเติมได้ที่นี่
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน