OPEN-SOURCE SCRIPT
已更新 EMA Crossovers

## EMA Crossover Signals with Volume Confirmation
This indicator identifies bullish and bearish exponential moving average crossovers directly on the price chart.
### Features
- Selectable fast and slow EMA periods, including presets for **8, 20, 50, and 200**.
- Optional volume confirmation requiring volume to be above its moving average.
- Adjustable volume moving average length.
- Detached bullish and bearish triangle markers for cleaner chart visibility.
- Direction-colored outlines around the signal candle.
- Optional active-period background shading with:
- Bullish and bearish background colors.
- Adjustable transparency.
- Enable/disable toggle.
- Independent EMA customization:
- Color
- Line thickness
- Solid, dashed, or dotted style.
- Alert conditions for:
- Bullish EMA crossovers.
- Bearish EMA crossovers.
- Transitions to bullish active periods.
- Transitions to bearish active periods.
A bullish signal occurs when the fast EMA crosses above the slow EMA. A bearish signal occurs when the fast EMA crosses below the slow EMA. When volume confirmation is enabled, the crossover must also occur while volume is above its selected moving average.
This indicator identifies bullish and bearish exponential moving average crossovers directly on the price chart.
### Features
- Selectable fast and slow EMA periods, including presets for **8, 20, 50, and 200**.
- Optional volume confirmation requiring volume to be above its moving average.
- Adjustable volume moving average length.
- Detached bullish and bearish triangle markers for cleaner chart visibility.
- Direction-colored outlines around the signal candle.
- Optional active-period background shading with:
- Bullish and bearish background colors.
- Adjustable transparency.
- Enable/disable toggle.
- Independent EMA customization:
- Color
- Line thickness
- Solid, dashed, or dotted style.
- Alert conditions for:
- Bullish EMA crossovers.
- Bearish EMA crossovers.
- Transitions to bullish active periods.
- Transitions to bearish active periods.
A bullish signal occurs when the fast EMA crosses above the slow EMA. A bearish signal occurs when the fast EMA crosses below the slow EMA. When volume confirmation is enabled, the crossover must also occur while volume is above its selected moving average.
版本注释
## EMA Crossovers v. 2EMA Crossovers v. 2 is a customizable chart overlay that identifies bullish and bearish crossovers between two exponential moving averages.
### Core Features
- Selectable fast and slow EMA periods.
- Preset EMA lengths:
- 8
- 20
- 50
- 200
- Optional volume confirmation filter.
- Configurable volume moving average length.
- Bullish and bearish triangle markers positioned away from price bars.
- Direction-colored outlines around signal candles.
- Alerts for bullish and bearish EMA crossovers.
- Alerts when the active background state changes between bullish and bearish.
### Visual Settings
- Show or hide both EMA lines.
- Customize each EMA’s:
- Color
- Thickness
- Line style
- Optional active-period background shading.
- Separate bullish and bearish background colors.
- Adjustable background transparency.
### Additional Overlays
- Optional session VWAP with customizable:
- Color
- Thickness
- Line style
- Optional Daily EMA with customizable:
- Length
- Color
## Updates in v. 2
- Added selectable EMA presets, including 50 and 200 periods.
- Added optional above-average volume confirmation.
- Added a toggle to enable or disable the volume filter.
- Added active bullish and bearish background shading.
- Added separate background color controls and transparency settings.
- Added alerts for background state transitions.
- Added customizable EMA colors.
- Added independent EMA thickness and line-style controls.
- Added VWAP display options with customizable thickness and line style.
- Added an optional Daily EMA overlay.
- Improved signal-marker spacing and candle visibility.
版本注释
## EMA Cross v. 6EMA Cross v. 6 is a customizable chart overlay that identifies EMA crossover signals and first-touch reactions from the selected EMAs and VWAP.
### Core Features
- Selectable fast and slow EMA periods.
- Preset EMA lengths:
- 8
- 20
- 50
- 200
- Optional above-average volume confirmation for crossover signals.
- Configurable volume moving average length.
- Customizable price source.
- Adjustable signal spacing based on ATR and candle range.
- Direction-colored candle outlines on crossover bars.
- Optional active bullish and bearish background shading.
### EMA and VWAP Display Options
- Show or hide both EMA lines.
- Customize each EMA’s:
- Color
- Thickness
- Line style
- Optional session VWAP overlay with customizable:
- Color
- Thickness
- Line style
- Optional Daily EMA overlay with configurable length and color.
### First-Touch Signals
Touch signals trigger only on the **first bar of a new touch sequence**. Repeated signals are suppressed while price remains in contact with the line.
Available touch signals include:
- Fast EMA touch.
- Slow EMA touch.
- VWAP touch.
Visual behavior:
- **Green up arrow:** Price touched the line from below.
- **Red down arrow:** Price touched the line from above.
- Touch arrows are displayed separately from crossover triangles.
- Signal markers use **Normal** size by default.
- Each touch type has its own display toggle.
### Alerts
Alert conditions are available for:
- Fast EMA crossing above the slow EMA.
- Fast EMA crossing below the slow EMA.
- Background changing to bullish.
- Background changing to bearish.
- First touch of the fast EMA.
- First touch of the slow EMA.
- First touch of VWAP.
Fast EMA, slow EMA, and VWAP touch alerts each have independent enable/disable settings and work across chart timeframes.
## Updates in v. 6
- Renamed the indicator to **EMA Cross v. 6**.
- Increased the default signal marker size to **Normal**.
- Changed touch signals to trigger only on the first touch.
- Added directional touch classification:
- Green when price approaches from below.
- Red when price approaches from above.
- Added optional VWAP touch arrows.
- Added first-touch VWAP alerts.
- Added an independent VWAP alert toggle.
- Added separate first-touch alert controls for the fast and slow EMAs.
- Improved visual separation between crossover signals and touch signals.
- Preserved customizable EMA, VWAP, Daily EMA, background, and alert settings.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。