OPEN-SOURCE SCRIPT
Peak Rejection Levels

Peak Rejection Levels is a price-action–based indicator designed to automatically identify strong rejection levels at swing highs and swing lows.
It highlights areas where price attempted to move further but was firmly rejected, often acting as key support or resistance zones.
The indicator is especially useful for:
📈 What Is a “Peak Rejection”?
A peak rejection is defined using strict price-action rules:
🔺 Swing High Rejection (Resistance)
A swing high is marked as a rejection when:
🔻 Swing Low Rejection (Support)
A swing low is marked as a rejection when:
🧠 Key Features
It highlights areas where price attempted to move further but was firmly rejected, often acting as key support or resistance zones.
The indicator is especially useful for:
- Intraday and swing trading
- Identifying high-probability rejection zones
- Support/resistance mapping based on pure price action
- Confluence with trend, structure, or indicator-based strategies
📈 What Is a “Peak Rejection”?
A peak rejection is defined using strict price-action rules:
🔺 Swing High Rejection (Resistance)
A swing high is marked as a rejection when:
- The candle is a confirmed swing high
- The candle has an upper wick
- The upper wick is larger than the candle body
- The wick represents the highest price of the swing
- This indicates strong selling pressure and rejection from higher prices
🔻 Swing Low Rejection (Support)
A swing low is marked as a rejection when:
- The candle is a confirmed swing low
- The candle has a lower wick
- The lower wick is larger than the candle body
- The wick represents the lowest price of the swing
- This indicates strong buying pressure and rejection from lower prices
- When these conditions are met, the indicator draws a horizontal level at the rejection wick.
🧠 Key Features
- ✅ Works on any timeframe
- ✅ Non-repainting (uses confirmed swings)
- ✅ Automatically removes broken levels
- ✅ Automatically removes old levels based on time
- ✅ Clean and uncluttered chart output
- ✅ Pure price-action logic (no indicators, no lag)
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.