OPEN-SOURCE SCRIPT
Cody Support and Resistance

Cody Support & Resistance - Automatic S/R levels based on Bill Williams Fractals. Identifies key support/resistance zones with breakout alerts.
Description (Full)
📊 Overview
This indicator automatically plots Support and Resistance levels using Bill Williams Fractal logic. It helps traders identify key price zones where reversals or breakouts are likely to occur.
🔑 Key Features
Automatic S/R Levels - Fractal-based support (green) and resistance (red) levels
Visual Fractals - Blue circles for down fractals, orange circles for up fractals
Breakout Alerts - Get notified when price breaks above resistance or below support
Customizable Periods - Adjust the fractal sensitivity with the "Periods" input (default: 2)
🎯 How It Works
Resistance (Red Line) - Forms when price makes a lower high on both sides (down fractal)
Support (Green Line) - Forms when price makes a higher low on both sides (up fractal)
Breakout Buy Alert - Triggers when price closes above resistance
Breakdown Sell Alert - Triggers when price closes below support
📈 How to Use
Add to your chart
Look for green (support) and red (resistance) horizontal levels
Price bouncing off support → potential long entry
Price rejecting resistance → potential short entry
Price breaking through → trend continuation signal
⚙️ Settings
Periods - Number of bars on each side of the fractal (higher = fewer, stronger levels)
📣 Alerts Available
Breakout Buy - Price broke resistance
Breakdown Sell - Price broke support
🙏 Credits
Original fractal logic: Matthew Spencer
Support/resistance adaptation: Kunal Patel
Compiled by: Cody
🔔 Tags (for TradingView publishing)
Support and Resistance Fractals Breakout Levels Swing Trading Price Action
Would you like me to adjust the tone (more technical, simpler, shorter) or add anything else?
Description (Full)
📊 Overview
This indicator automatically plots Support and Resistance levels using Bill Williams Fractal logic. It helps traders identify key price zones where reversals or breakouts are likely to occur.
🔑 Key Features
Automatic S/R Levels - Fractal-based support (green) and resistance (red) levels
Visual Fractals - Blue circles for down fractals, orange circles for up fractals
Breakout Alerts - Get notified when price breaks above resistance or below support
Customizable Periods - Adjust the fractal sensitivity with the "Periods" input (default: 2)
🎯 How It Works
Resistance (Red Line) - Forms when price makes a lower high on both sides (down fractal)
Support (Green Line) - Forms when price makes a higher low on both sides (up fractal)
Breakout Buy Alert - Triggers when price closes above resistance
Breakdown Sell Alert - Triggers when price closes below support
📈 How to Use
Add to your chart
Look for green (support) and red (resistance) horizontal levels
Price bouncing off support → potential long entry
Price rejecting resistance → potential short entry
Price breaking through → trend continuation signal
⚙️ Settings
Periods - Number of bars on each side of the fractal (higher = fewer, stronger levels)
📣 Alerts Available
Breakout Buy - Price broke resistance
Breakdown Sell - Price broke support
🙏 Credits
Original fractal logic: Matthew Spencer
Support/resistance adaptation: Kunal Patel
Compiled by: Cody
🔔 Tags (for TradingView publishing)
Support and Resistance Fractals Breakout Levels Swing Trading Price Action
Would you like me to adjust the tone (more technical, simpler, shorter) or add anything else?
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.