OPEN-SOURCE SCRIPT
已更新 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!
版本注释
fix bug版本注释
Includes alert conditions for RISK ON/OFF/TEST transitions版本注释
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!
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。