OPEN-SOURCE SCRIPT
Bull Bear Indicator

# Bull Bear Indicator - TradingView Script Description
## Overview
The Bull Bear Indicator is a powerful visual tool that instantly identifies market sentiment by coloring all candlesticks based on their position relative to a moving average. This indicator helps traders quickly identify bullish and bearish market conditions at a glance.
## Key Features
### 🎨 Visual Bull/Bear Identification
- **Green Candles**: Price is at or above the moving average (Bullish condition)
- **Red Candles**: Price is below the moving average (Bearish condition)
- Complete candle coloring including body, wicks, and borders for maximum clarity
### 📊 Flexible Moving Average Options
- **MA Type**: Choose between Simple Moving Average (MA) or Exponential Moving Average (EMA)
- **Timeframe**: Select Weekly or Daily timeframe for the moving average calculation
- **Customizable Period**: Adjust the MA/EMA period (default: 50)
### 📈 Smooth Moving Average Line
- Displays a smooth blue moving average line on the chart
- Automatically adapts to your selected timeframe and MA type
- Provides clear visual reference for trend identification
## How It Works
The indicator calculates a moving average (MA or EMA) based on your selected timeframe (Weekly or Daily). It then compares the current price to this moving average:
- **Bull Market**: When price ≥ Moving Average → Candles turn **GREEN**
- **Bear Market**: When price < Moving Average → Candles turn **RED**
## Configuration Options
1. **MA Type**: Choose "MA" for Simple Moving Average or "EMA" for Exponential Moving Average
2. **Timeframe**: Select "Weekly" for weekly-based MA or "Daily" for daily-based MA
3. **MA Period**: Set the number of periods for the moving average calculation (default: 50)
## Use Cases
- **Trend Identification**: Quickly identify overall market trend direction
- **Entry/Exit Signals**: Use color changes as potential entry or exit signals
- **Multi-Timeframe Analysis**: Combine with different chart timeframes for comprehensive analysis
- **Visual Clarity**: Reduce chart clutter while maintaining essential trend information
## Best Practices
- Use Weekly MA for longer-term trend identification
- Use Daily MA for shorter-term trend analysis
- Combine with other technical indicators for confirmation
- Adjust the MA period based on your trading style and timeframe
## Technical Details
- Built with Pine Script v6
- Overlay indicator (displays on main chart)
- Optimized for performance
- Compatible with all TradingView chart types
---
**Note**: This indicator is for educational and informational purposes only. Always conduct your own analysis and risk management before making trading decisions.
## Overview
The Bull Bear Indicator is a powerful visual tool that instantly identifies market sentiment by coloring all candlesticks based on their position relative to a moving average. This indicator helps traders quickly identify bullish and bearish market conditions at a glance.
## Key Features
### 🎨 Visual Bull/Bear Identification
- **Green Candles**: Price is at or above the moving average (Bullish condition)
- **Red Candles**: Price is below the moving average (Bearish condition)
- Complete candle coloring including body, wicks, and borders for maximum clarity
### 📊 Flexible Moving Average Options
- **MA Type**: Choose between Simple Moving Average (MA) or Exponential Moving Average (EMA)
- **Timeframe**: Select Weekly or Daily timeframe for the moving average calculation
- **Customizable Period**: Adjust the MA/EMA period (default: 50)
### 📈 Smooth Moving Average Line
- Displays a smooth blue moving average line on the chart
- Automatically adapts to your selected timeframe and MA type
- Provides clear visual reference for trend identification
## How It Works
The indicator calculates a moving average (MA or EMA) based on your selected timeframe (Weekly or Daily). It then compares the current price to this moving average:
- **Bull Market**: When price ≥ Moving Average → Candles turn **GREEN**
- **Bear Market**: When price < Moving Average → Candles turn **RED**
## Configuration Options
1. **MA Type**: Choose "MA" for Simple Moving Average or "EMA" for Exponential Moving Average
2. **Timeframe**: Select "Weekly" for weekly-based MA or "Daily" for daily-based MA
3. **MA Period**: Set the number of periods for the moving average calculation (default: 50)
## Use Cases
- **Trend Identification**: Quickly identify overall market trend direction
- **Entry/Exit Signals**: Use color changes as potential entry or exit signals
- **Multi-Timeframe Analysis**: Combine with different chart timeframes for comprehensive analysis
- **Visual Clarity**: Reduce chart clutter while maintaining essential trend information
## Best Practices
- Use Weekly MA for longer-term trend identification
- Use Daily MA for shorter-term trend analysis
- Combine with other technical indicators for confirmation
- Adjust the MA period based on your trading style and timeframe
## Technical Details
- Built with Pine Script v6
- Overlay indicator (displays on main chart)
- Optimized for performance
- Compatible with all TradingView chart types
---
**Note**: This indicator is for educational and informational purposes only. Always conduct your own analysis and risk management before making trading decisions.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.