OPEN-SOURCE SCRIPT
Atualizado Market Mode Risk Indicator

Market Mode Risk Indicator
This indicator analyzes market risk conditions based on Exponential Moving Average (EMA) crossovers of a selected index (BIST 100, NASDAQ Composite, or Dow Jones Industrial Average). It classifies the market into three modes:
- **RISK OFF**: Index is below MA50, indicating a bearish or cautious market.
- **RISK TEST**: Index is above MA21 and MA55 but below MA10, suggesting a transitional phase.
- **RISK ON**: Index is above MA10, MA21, MA50, and MA55, signaling a bullish market.
### Key Features:
- **Customizable Table**: Displays the market mode and optional EMA values (MA10, MA21, MA50, MA55) in a customizable table.
- **Flexible Settings**: Adjust table position (top/bottom, left/right), background color, border color, text color, and transparency.
- **Index Selection**: Choose from BIST:XU100, NASDAQ:IXIC, or DJ:DJI (note: some indices may require a paid TradingView account for full access).
### How to Use:
1. Apply the indicator to a chart.
2. Select your preferred index in the settings.
3. Customize the table appearance and toggle EMA values as needed.
4. Refresh the chart after changing settings for updates to take effect.
### Notes:
- Designed for indices; apply to a stock chart to analyze the selected index.
- Free accounts may have limited access to NASDAQ or Dow Jones data.
- Perfect for traders monitoring market sentiment based on EMA trends.
Feel free to provide feedback or suggest enhancements!
This indicator analyzes market risk conditions based on Exponential Moving Average (EMA) crossovers of a selected index (BIST 100, NASDAQ Composite, or Dow Jones Industrial Average). It classifies the market into three modes:
- **RISK OFF**: Index is below MA50, indicating a bearish or cautious market.
- **RISK TEST**: Index is above MA21 and MA55 but below MA10, suggesting a transitional phase.
- **RISK ON**: Index is above MA10, MA21, MA50, and MA55, signaling a bullish market.
### Key Features:
- **Customizable Table**: Displays the market mode and optional EMA values (MA10, MA21, MA50, MA55) in a customizable table.
- **Flexible Settings**: Adjust table position (top/bottom, left/right), background color, border color, text color, and transparency.
- **Index Selection**: Choose from BIST:XU100, NASDAQ:IXIC, or DJ:DJI (note: some indices may require a paid TradingView account for full access).
### How to Use:
1. Apply the indicator to a chart.
2. Select your preferred index in the settings.
3. Customize the table appearance and toggle EMA values as needed.
4. Refresh the chart after changing settings for updates to take effect.
### Notes:
- Designed for indices; apply to a stock chart to analyze the selected index.
- Free accounts may have limited access to NASDAQ or Dow Jones data.
- Perfect for traders monitoring market sentiment based on EMA trends.
Feel free to provide feedback or suggest enhancements!
Notas de Lançamento
fix bugNotas de Lançamento
Includes alert conditions for RISK ON/OFF/TEST transitionsNotas de Lançamento
Version 1.1 Update - October 01, 2025- **New Feature**: Added option to switch between EMA (Exponential Moving Average) and SMA (Simple Moving Average) in settings. Users can now choose their preferred MA type for risk mode calculations.
- **Improvement**: Enhanced table visibility with customizable colors and positions.
- **Alert Enhancement**: Alerts now support both EMA and SMA transitions for RISK ON, RISK OFF, and RISK TEST modes.
- **Note**: Refresh the chart after changing MA type for accurate results. Some indices may still be restricted in free accounts.
Thank you for using! Feedback is welcome!
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.