Skip to content

Repository files navigation

🎯 BOS-CHOCH Trading Indicator

Advanced Trading Analysis Tool for Break of Structure, Change of Character, Fair Value Gaps, and Fibonacci Zones

Chrome Extension TradingView License

πŸ“Š Overview

The BOS-CHOCH Trading Indicator is a comprehensive trading analysis tool that combines multiple advanced technical analysis concepts into one powerful indicator. It's available both as a Chrome Extension for web-based trading platforms and as a TradingView Pine Script for professional charting.

✨ Key Features

πŸ” Break of Structure (BOS)

  • 2-Candle Retracement Rule: Confirms breakouts with retracement validation
  • Trend Confirmation: Identifies genuine structural breaks vs. false signals
  • Visual Markers: Clear labels and color-coded indicators

πŸ”„ Change of Character (CHOCH)

  • Trend Reversal Detection: Identifies when market character changes
  • Precision Timing: Uses advanced algorithms for accurate signal generation
  • Risk Management: Helps identify potential reversal points

⚑ Dual Change of Character

  • Complex Pattern Recognition: Detects secondary trend changes
  • Advanced Market Structure: Analyzes multiple trend reversals
  • Enhanced Signal Quality: Filters out noise for better accuracy

πŸ“Š Fair Value Gaps (FVG)

  • Gap Identification: Automatically detects price gaps
  • Visual Representation: Clear visualization of FVG zones
  • Trading Opportunities: Highlights areas likely to be filled

πŸ“ Fibonacci Retracement Zones

  • Dynamic Calculation: 0.5 and 0.6 retracement levels
  • Support/Resistance: Identifies key price levels
  • Customizable: Adjustable Fibonacci ratios

πŸš€ Installation

Chrome Extension

  1. Download the Extension

    git clone https://github.com/yourusername/bos-choch-indicator.git
    cd bos-choch-indicator
  2. Load in Chrome

    • Open Chrome and go to chrome://extensions/
    • Enable "Developer mode" (top right toggle)
    • Click "Load unpacked"
    • Select the extension folder
  3. Verify Installation

    • Look for the BOS-CHOCH icon in your Chrome toolbar
    • Navigate to any trading website to activate

TradingView Pine Script

  1. Open TradingView

  2. Access Pine Editor

    • Click "Pine Editor" at the bottom
    • Clear existing code
  3. Paste the Script

    • Copy the contents of BOS_CHOCH_Indicator.pine
    • Paste into Pine Editor
    • Click "Add to Chart"

🎨 Customization

Extension Settings

  • Color Schemes: Customize all indicator colors
  • Visibility Toggles: Show/hide specific indicators
  • Lookback Periods: Adjust swing detection sensitivity
  • Fibonacci Levels: Modify retracement ratios

Pine Script Parameters

  • Display Options: Toggle individual indicators
  • Color Inputs: Personalize visual appearance
  • Fibonacci Settings: Adjust retracement levels
  • Swing Detection: Configure lookback periods

πŸ“± Supported Platforms

Web-Based Trading Sites

  • βœ… TradingView - Full integration
  • βœ… Binance - Spot and futures
  • βœ… Coinbase - Cryptocurrency trading
  • βœ… Kraken - Advanced trading
  • βœ… eToro - Social trading
  • βœ… IG Markets - CFD trading
  • βœ… OANDA - Forex trading
  • βœ… FXCM - Currency trading

Desktop Applications

  • βœ… MetaTrader 4/5 - Professional trading
  • βœ… NinjaTrader - Advanced analysis
  • βœ… ThinkOrSwim - TD Ameritrade platform
  • βœ… Robinhood - Stock trading
  • βœ… Webull - Investment platform

πŸ”§ Technical Details

Chrome Extension

  • Manifest Version: 3 (Latest Chrome standard)
  • Permissions: Active tab, storage, scripting, context menus
  • Content Scripts: Automatic injection on trading sites
  • Background Service: Persistent functionality

Pine Script

  • Version: 5 (Latest TradingView standard)
  • Overlay: True (Displays on price chart)
  • Performance: Optimized for real-time analysis
  • Compatibility: Works on all TradingView timeframes

πŸ“ˆ Usage Examples

Break of Structure (BOS)

1. Wait for price to break above swing high
2. Confirm with 2-candle retracement
3. Enter long position on retest
4. Set stop loss below the broken level

Change of Character (CHOCH)

1. Identify trend direction change
2. Look for CHOCH signal confirmation
3. Enter position in new trend direction
4. Use Fibonacci levels for targets

Fair Value Gaps (FVG)

1. Identify gap between candles
2. Wait for price to return to gap
3. Enter position at gap level
4. Target opposite side of gap

πŸ› οΈ Development

Project Structure

bos-choch-indicator/
β”œβ”€β”€ manifest.json          # Extension configuration
β”œβ”€β”€ popup.html            # Settings interface
β”œβ”€β”€ popup.js              # Popup logic
β”œβ”€β”€ content.js            # Main indicator logic
β”œβ”€β”€ background.js         # Service worker
β”œβ”€β”€ styles.css            # Extension styling
β”œβ”€β”€ welcome.html          # Installation welcome page
β”œβ”€β”€ icons/                # Extension icons
β”‚   β”œβ”€β”€ icon16.svg       # 16x16 icon
β”‚   β”œβ”€β”€ icon48.svg       # 48x48 icon
β”‚   └── icon128.svg      # 128x128 icon
β”œβ”€β”€ BOS_CHOCH_Indicator.pine  # TradingView script
β”œβ”€β”€ README.md             # This file
└── INSTALLATION_GUIDE.md # Detailed setup instructions

Building from Source

# Clone repository
git clone https://github.com/yourusername/bos-choch-indicator.git

# Navigate to directory
cd bos-choch-indicator

# Install dependencies (if any)
npm install

# Build extension (if needed)
npm run build

🀝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

How to Contribute

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

⚠️ Disclaimer

Educational Use Only: This tool is designed for educational and research purposes. Trading involves substantial risk and may not be suitable for all investors. Past performance does not guarantee future results.

No Financial Advice: The information provided is not financial advice. Always conduct your own research and consult with qualified financial professionals before making trading decisions.

πŸ†˜ Support

Documentation

Issues & Questions

Contact

πŸŽ‰ Acknowledgments

  • TradingView for Pine Script platform
  • Chrome Extensions team for development tools
  • Trading Community for feedback and testing
  • Open Source Contributors for inspiration

Made with ❀️ for the trading community

Version 1.0.0 | Last Updated: December 2024

About

Advanced trading indicator for Break of Structure (BOS), Change of Character (CHOCH), Fair Value Gaps (FVG), and Fibonacci zones. Available as Chrome Extension and TradingView Pine Script with 2-candle retracement confirmation.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors