EMA Cross Suite (8/20/50/200) GOLDEN/DEATH by Carlos Chavez📜 Short Description (max 160 characters)
“Advanced EMA crossover system with FAST, MID, GOLDEN, and DEATH signals. Includes alerts, optimized visuals, and full customization.”
📄 Full Description (Paste in the box)
📌 Overview
The Embilletados • EMA Cross Suite is a professional trading indicator designed for intraday traders, scalpers, and swing traders.
It provides clear crossover signals using 4 EMAs combined with optimized visualization and built-in alerts to help you catch opportunities faster.
✨ Key Features:
🔹 4 configurable EMAs → 8, 20, 50, and 200.
🔹 Instant visual signals with colored labels:
FAST CROSS (8/20) → Quick momentum shifts.
MID CROSS (20/50) → Trend confirmation signals.
GOLDEN CROSS (50/200) → Strong bullish trend signals.
DEATH CROSS (50/200) → Strong bearish trend signals.
🔹 Built-in alerts → Get notified instantly for all crossover events.
🔹 Optimized visualization → Clean and easy-to-read interface.
🔹 Highly customizable → Enable/disable signals, labels, colors, and alerts according to your strategy.
📊 Recommended Timeframes:
10-minute charts → Best for intraday setups.
1-hour charts → Ideal for swing trading and trend confirmation.
🚀 How to Use:
Add the indicator to your chart.
Set up alerts for the desired crossovers: FAST, MID, GOLDEN, or DEATH.
Trade confidently using clear visual confirmations and real-time notifications.
🌟 Perfect for:
✅ Intraday traders
✅ Scalpers
✅ Swing traders
✅ Trend-following strategies
移動平均線
Volume + RSI & MA Differential"Volume + RSI & MA Differential," integrates volume, RSI, and moving average differentials to generate trading signals. The script calculates a 14-period RSI to identify overbought or oversold conditions, with customizable thresholds for buy and sell signals. It also computes a 20-period SMA of the volume to smooth out trading activity data, helping to identify trends in market participation.
The script incorporates a fast (50-period) and a slow (200-period) SMA to analyze short-term and long-term trends, respectively. The differential between these moving averages, adjusted by the volume SMA, is used to identify potential trend changes or confirmations. Bars are colored yellow when the RSI is below the buy threshold and volume is high, indicating a potential buy signal. Conversely, bars turn red when the RSI is above the sell threshold and the fast MA is below the current close price, suggesting a potential sell signal. Neutral conditions result in grey bars.
Additionally, the script uses color-coding to plot the volume SMA and a line that changes color based on the moving average differential. A black line indicates a broadening MA cloud and a bullish trend, while a grey line suggests a narrowing MA cloud and a potential selloff. A yellow line signals the beginning of a buyback. This visual representation helps traders quickly identify potential trading opportunities and trend changes, making the script a valuable tool for technical analysis.
VWAP Pro v6 (Color + Bands)AI helped me code VWAP
When price goes above VWAP line, VWAP line will turn green to indicate buyers are in control.
When price goes below VWAP line, VWAP line will turn red to indicate sellers are in control.
VWAP line stays blue when price is considered fair value.
EMA Cross + KC Breakout + ATR StopThis uses an adjustable EMA Cross with an adjustable Keltner Channel breakout filter to identify trend breakouts for Long/Short entries. An adjustable ATR Stop is also provided for your entries.
Options Buying Signals for Nifty and SensexUse the indicator in 5mins for perfection.
1. The buy is signaled based on the slopes and angles of the moving averages.
2. Sell is done on the basis of the rsi and moving averages too.
Only use it in the options chart and not the index.
TEMA Ribbon 9/13/15/21 – Smooth trend shifts, less lag, clearer“TEMA Ribbon 9/13/15/21 – Smooth trend shifts, less lag, clearer bias.”
Plots four Triple Exponential Moving Averages (9, 13, 15, 21) with shaded zones for quick trend visualization. Helps identify short- vs. medium-term momentum shifts with reduced lag compared to standard EMAs.
Recommended Usage:
Best applied on 5M–1H intraday charts for momentum and trend confirmation.
Use the 9 & 13 TEMA for short-term momentum shifts.
Use the 15 & 21 TEMA for medium-term bias.
Look for crossovers and alignment (all fast TEMAs above/below slow ones) to confirm bullish or bearish conditions.
Shaded zones help visualize when the short- and medium-term trends converge or diverge, signaling potential entry or exit points.
Combine the TEMA Ribbon with VWAP or session-based trading (e.g., London/New York Killzones) to filter signals.
Trade only in the direction of VWAP bias (price above VWAP → favor longs, below → favor shorts).
Within Killzones, use TEMA alignment (9/13 above 15/21 = bullish trend, or opposite for bearish) as confirmation before entries.
This reduces false signals and locks entries to periods of high liquidity and volatility, where TEMA shines.
//@version=5
indicator("TEMA 9/13/15/21", overlay=true)
// Quelle
src = close
// Funktion: TEMA
tema(src, length) =>
e1 = ta.ema(src, length)
e2 = ta.ema(e1, length)
e3 = ta.ema(e2, length)
3.0 * e1 - 3.0 * e2 + e3
// TEMA-Berechnung
t9 = tema(src, 9)
t13 = tema(src, 13)
t15 = tema(src, 15)
t21 = tema(src, 21)
// Plots
p9 = plot(t9, "TEMA 9", color=color.teal, linewidth=2)
p13 = plot(t13, "TEMA 13", color=color.aqua, linewidth=2)
p15 = plot(t15, "TEMA 15", color=color.orange, linewidth=2)
p21 = plot(t21, "TEMA 21", color=color.fuchsia, linewidth=2)
// Einfaches Fill (zwischen schnellstem und langsamstem)
fill(p9, p21, color=color.new(color.gray, 85))
fill(p13, p15, color=color.new(color.gray, 92))
Decision Matrix [Cnagda] — Adaptive Multi-Signal Trading SystemDecision Matrix is a cutting-edge trading ecosystem that leverages the synergy of price action, volume dynamics, and key momentum indicators to create a powerful, real-time signal engine for traders.
Key Features:
Multi-Source Signal Fusion: Buy/Sell Power score, TWAP patterns, EMA/RSI crossovers, Volume zones — 7 layers of confirmation per candle.
Adaptive Intelligence: Dynamic lookback window, label-size, and threshold are auto-adjusted based on market volatility.
Volume Secrets Decoded: Adaptive ‘Low Volume’ (LV) candle detection reveals reversal and hidden accumulation patterns.
Order Block Auto-Zoning: Detect Demand & Supply zones to highlight boxes on the chart — market structure is instantly clear.
Heikin-Ashi Inspired Trend Mapping: Candle coloring based on trend intensity — clear visual feedback on every phase of a security.
Intelligent Pattern Recognition: 4-candle TWAP & Volume structures help to quickly spot rare reversals and momentum shifts.
Live Dashboard: Live Buy/Sell power on the chart, long/short trigger levels, multiple timeframes support — decision making lightning fast!
Use Cases:
Quick Reversal Detection
Momentum Entry/Exit Confirmation
False Breakout Filtering
Volume-Driven Structural Insights
Trailing Stop Placement based on True Demand/Supply Zones
What difference will it make?
Decision Matrix analyzes every uncertain market move from a multi-angle perspective to show where the market bias is right now, where is the best entry, when is the exit alert — and what is the real volume game behind every trend or even the most subtle reversal move — in just one glance!
Every curated visual & signal will give you pure information clarity and high-confidence trading advantage.
Auto-Anchored MA with Deviation BandsAuto-Anchored MA with Deviation Bands
✨ Features
📈 Auto-Anchored MA: Calculates moving averages (EMA, SMA, EWMA, WMA, VWAP, TEMA) anchored to user-defined periods (Hour, Day, Week, etc.).📏 Deviation Bands: Plots upper/lower bands using Percentage or Standard Deviation modes for volatility analysis.⚙️ Customizable Timeframes: Choose anchor periods from Hour to Year for flexible trend analysis.🎨 Visuals: Displays MA and bands with gradient fills, customizable colors, and adjustable display bars.⏱️ Countdown Table: Shows bars since the last anchor for easy tracking.🛠️ Smoothing: Applies smoothing to bands for cleaner visuals.
🛠️ How to Use
Add to Chart: Apply the indicator on TradingView.
Configure Inputs:
Anchor Settings: Select anchor period (e.g., Day, Week).
MA Settings: Choose MA type (e.g., VWAP, TEMA).
Deviation Settings: Set deviation mode (Percentage/Std Dev) and multipliers.
Display Settings: Adjust bars to display, colors, and gradient fill.
Analyze: View MA, deviation bands, and countdown table on the chart.
Track Trends: Use bands as dynamic support/resistance and monitor anchor resets.
🎯 Why Use It?
Dynamic Analysis: Auto-anchors MA to key timeframes for adaptive trend tracking.
Volatility Insight: Deviation bands highlight potential breakouts or reversals.
Customizable: Tailor MA type, timeframe, and visuals to your trading style.
User-Friendly: Clear visuals and countdown table simplify analysis.
📝 Notes
Ensure sufficient bars for accurate MA and deviation calculations.
Gradient fill enhances readability but can be disabled for simplicity.
Best used with complementary indicators like RSI or Bollinger Bands for robust strategies.
Happy trading! 🚀📈
Optimized ADX DI CCI Strategy### Key Features:
- Combines ADX, DI+/-, CCI, and RSI for signal generation.
- Supports customizable timeframes for indicators.
- Offers multiple exit conditions (Moving Average cross, ADX change, performance-based stop-loss).
- Tracks and displays trade statistics (e.g., win rate, capital growth, profit factor).
- Visualizes trades with labels and optional background coloring.
- Allows countertrading (opening an opposite trade after closing one).
1. **Indicator Calculation**:
- **ADX and DI+/-**: Calculated using the `ta.dmi` function with user-defined lengths for DI and ADX smoothing.
- **CCI**: Computed using the `ta.cci` function with a configurable source (default: `hlc3`) and length.
- **RSI (optional)**: Calculated using the `ta.rsi` function to filter overbought/oversold conditions.
- **Moving Averages**: Used for CCI signal smoothing and trade exits, with support for SMA, EMA, SMMA (RMA), WMA, and VWMA.
2. **Signal Generation**:
- **Buy Signal**: Triggered when DI+ > DI- (or DI+ crosses over DI-), CCI > MA (or CCI crosses over MA), and optional ADX/RSI filters are satisfied.
- **Sell Signal**: Triggered when DI+ < DI- (or DI- crosses over DI+), CCI < MA (or CCI crosses under MA), and optional ADX/RSI filters are satisfied.
3. **Trade Execution**:
- **Entry**: Long or short trades are opened using `strategy.entry` when signals are detected, provided trading is allowed (`allow_long`/`allow_short`) and equity is positive.
- **Exit**: Trades can be closed based on:
- Opposite signal (if no other exit conditions are used).
- MA cross (price crossing below/above the exit MA for long/short trades).
- ADX percentage change exceeding a threshold.
- Performance-based stop-loss (trade loss exceeding a percentage).
- **Countertrading**: If enabled, closing a trade triggers an opposite trade (e.g., closing a long opens a short).
4. **Visualization**:
- Labels are plotted at trade entries/exits (e.g., "BUY," "SELL," arrows).
- Optional background coloring highlights open trades (green for long, red for short).
- A statistics table displays real-time metrics (e.g., capital, win rates).
5. **Trade Tracking**:
- Tracks the number of long/short trades, wins, and overall performance.
- Monitors equity to prevent trading if it falls to zero.
### 2.3 Key Components
- **Indicator Calculations**: Uses `request.security` to fetch indicator data for the specified timeframe.
- **MA Function**: A custom `ma_func` handles different MA types for CCI and exit conditions.
- **Signal Logic**: Combines crossover/under checks with recent bar windows for flexibility.
- **Exit Conditions**: Multiple configurable exit strategies for risk management.
- **Statistics Table**: Updates dynamically with trade and capital metrics.
## 3. Configuration Options
The script provides extensive customization through input parameters, grouped for clarity in the TradingView settings panel. Below is a detailed breakdown of each setting and its impact.
### 3.1 Strategy Settings (Global)
- **Initial Capital**: Default `10000`. Sets the starting capital for backtesting.
- **Effect**: Determines the base equity for calculating position sizes and performance metrics.
- **Default Quantity Type**: `strategy.percent_of_equity` (50% of equity).
- **Effect**: Controls the size of each trade as a percentage of available equity.
- **Pyramiding**: Default `2`. Allows up to 2 simultaneous trades in the same direction.
- **Effect**: Enables multiple entries if conditions are met, increasing exposure.
- **Commission**: 0.2% per trade.
- **Effect**: Simulates trading fees, reducing net profit in backtesting.
- **Margin**: 100% for long and short trades.
- **Effect**: Assumes no leverage; adjust for margin trading simulations.
- **Calc on Every Tick**: `true`.
- **Effect**: Ensures real-time signal updates for precise execution.
### 3.2 Indicator Settings
- **Indicator Timeframe** (`indicator_timeframe`):
- **Options**: `""` (chart timeframe), `1`, `5`, `15`, `30`, `60`, `240`, `D`, `W`.
- **Default**: `""` (uses chart timeframe).
- **Effect**: Determines the timeframe for ADX, DI, CCI, and RSI calculations. A higher timeframe reduces noise but may delay signals.
### 3.3 ADX & DI Settings
- **DI Length** (`adx_di_len`):
- **Default**: `30`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for calculating DI+ and DI-. Longer periods smooth trends but reduce sensitivity.
- **ADX Smoothing Length** (`adx_smooth_len`):
- **Default**: `14`.
- **Range**: Minimum `1`.
- **Effect**: Smooths the ADX calculation. Longer periods produce smoother ADX values.
- **Use ADX Filter** (`use_adx_filter`):
- **Default**: `false`.
- **Effect**: If `true`, requires ADX to exceed the threshold for signals to be valid, filtering out weak trends.
- **ADX Threshold** (`adx_threshold`):
- **Default**: `25`.
- **Range**: Minimum `0`.
- **Effect**: Sets the minimum ADX value for valid signals when the filter is enabled. Higher values restrict trades to stronger trends.
### 3.4 CCI Settings
- **CCI Length** (`cci_length`):
- **Default**: `20`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for CCI calculation. Longer periods reduce noise but may lag.
- **CCI Source** (`cci_src`):
- **Default**: `hlc3` (average of high, low, close).
- **Effect**: Defines the price data for CCI. `hlc3` is standard, but users can choose other sources (e.g., `close`).
- **CCI MA Type** (`ma_type`):
- **Options**: `SMA`, `EMA`, `SMMA (RMA)`, `WMA`, `VWMA`.
- **Default**: `SMA`.
- **Effect**: Determines the moving average type for CCI signal smoothing. EMA is more responsive; VWMA weights by volume.
- **CCI MA Length** (`ma_length`):
- **Default**: `14`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for the CCI MA. Longer periods smooth the MA but may delay signals.
### 3.5 RSI Filter Settings
- **Use RSI Filter** (`use_rsi_filter`):
- **Default**: `false`.
- **Effect**: If `true`, applies RSI-based overbought/oversold filters to signals.
- **RSI Length** (`rsi_length`):
- **Default**: `14`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for RSI calculation. Longer periods reduce sensitivity.
- **RSI Lower Limit** (`rsi_lower_limit`):
- **Default**: `30`.
- **Range**: `0` to `100`.
- **Effect**: Defines the oversold threshold for buy signals. Lower values allow trades in more extreme conditions.
- **RSI Upper Limit** (`rsi_upper_limit`):
- **Default**: `70`.
- **Range**: `0` to `100`.
- **Effect**: Defines the overbought threshold for sell signals. Higher values allow trades in more extreme conditions.
### 3.6 Signal Settings
- **Cross Window** (`cross_window`):
- **Default**: `0`.
- **Range**: `0` to `5` bars.
- **Effect**: Specifies the lookback period for detecting DI+/- or CCI crosses. `0` requires crosses on the current bar; higher values allow recent crosses, increasing signal frequency.
- **Allow Long Trades** (`allow_long`):
- **Default**: `true`.
- **Effect**: Enables/disables new long trades. If `false`, only closing existing longs is allowed.
- **Allow Short Trades** (`allow_short`):
- **Default**: `true`.
- **Effect**: Enables/disables new short trades. If `false`, only closing existing shorts is allowed.
- **Require DI+/DI- Cross for Buy** (`buy_di_cross`):
- **Default**: `true`.
- **Effect**: If `true`, requires a DI+ crossover DI- for buy signals; if `false`, DI+ > DI- is sufficient.
- **Require CCI Cross for Buy** (`buy_cci_cross`):
- **Default**: `true`.
- **Effect**: If `true`, requires a CCI crossover MA for buy signals; if `false`, CCI > MA is sufficient.
- **Require DI+/DI- Cross for Sell** (`sell_di_cross`):
- **Default**: `true`.
- **Effect**: If `true`, requires a DI- crossover DI+ for sell signals; if `false`, DI+ < DI- is sufficient.
- **Require CCI Cross for Sell** (`sell_cci_cross`):
- **Default**: `true`.
- **Effect**: If `true`, requires a CCI crossunder MA for sell signals; if `false`, CCI < MA is sufficient.
- **Countertrade** (`countertrade`):
- **Default**: `true`.
- **Effect**: If `true`, closing a trade triggers an opposite trade (e.g., close long, open short) if allowed.
- **Color Background for Open Trades** (`color_background`):
- **Default**: `true`.
- **Effect**: If `true`, colors the chart background green for long trades and red for short trades.
### 3.7 Exit Settings
- **Use MA Cross for Exit** (`use_ma_exit`):
- **Default**: `true`.
- **Effect**: If `true`, closes trades when the price crosses the exit MA (below for long, above for short).
- **MA Length for Exit** (`ma_exit_length`):
- **Default**: `20`.
- **Range**: Minimum `1`.
- **Effect**: Sets the period for the exit MA. Longer periods delay exits.
- **MA Type for Exit** (`ma_exit_type`):
- **Options**: `SMA`, `EMA`, `SMMA (RMA)`, `WMA`, `VWMA`.
- **Default**: `SMA`.
- **Effect**: Determines the MA type for exit signals. EMA is more responsive; VWMA weights by volume.
- **Use ADX Change Stop-Loss** (`use_adx_stop`):
- **Default**: `false`.
- **Effect**: If `true`, closes trades when the ADX changes by a specified percentage.
- **ADX % Change for Stop-Loss** (`adx_change_percent`):
- **Default**: `5.0`.
- **Range**: Minimum `0.0`, step `0.1`.
- **Effect**: Specifies the percentage change in ADX (vs. previous bar) that triggers a stop-loss. Higher values reduce premature exits.
- **Use Performance Stop-Loss** (`use_perf_stop`):
- **Default**: `false`.
- **Effect**: If `true`, closes trades when the loss exceeds a percentage threshold.
- **Performance Stop-Loss (%)** (`perf_stop_percent`):
- **Default**: `-10.0`.
- **Range**: `-100.0` to `0.0`, step `0.1`.
- **Effect**: Specifies the loss percentage that triggers a stop-loss. More negative values allow larger losses before exiting.
## 4. Visual and Statistical Output
- **Labels**: Displayed at trade entries/exits with arrows (↑ for buy, ↓ for sell) and text ("BUY," "SELL"). A "No Equity" label appears if equity is zero.
- **Background Coloring**: Optionally colors the chart background (green for long, red for short) to indicate open trades.
- **Statistics Table**: Displayed at the top center of the chart, updated on timeframe changes or trade events. Includes:
- **Capital Metrics**: Initial capital, current capital, capital growth (%).
- **Trade Metrics**: Total trades, long/short trades, win rate, long/short win rates, profit factor.
- **Open Trade Status**: Indicates if a long, short, or no trade is open.
## 5. Alerts
- **Buy Signal Alert**: Triggered when `buy_signal` is true ("Cross Buy Signal").
- **Sell Signal Alert**: Triggered when `sell_signal` is true ("Cross Sell Signal").
- **Usage**: Users can set up TradingView alerts to receive notifications for trade signals.
Stock Scoring SystemThe EMA Scoring System is designed to help traders quickly assess market trend strength and decide portfolio allocation. It compares price vs. key EMAs (21, 50, 100) and also checks the relative strength between EMAs. Based on these conditions, it assigns a score (-6 to +6) and a corresponding allocation percentage.
+6 Score = 100% allocation (strong bullish trend)
-6 Score = 10% allocation (strong bearish trend)
Scores in between represent intermediate trend strength.
📌 Key Features
✅ Scoring Model: Evaluates price vs. EMA alignment and EMA cross relationships.
✅ Allocation % Display: Converts score into suggested portfolio allocation.
✅ Background Highlighting: Green shades for bullish conditions, red shades for bearish.
✅ Customizable Table Position: Choose between Top Right, Top Center, Bottom Right, or Bottom Center.
✅ Toggleable EMAs: Show/Hide 21 EMA, 50 EMA, and 100 EMA directly from indicator settings.
✅ Simple & Intuitive: One glance at the chart tells you trend strength and suggested allocation.
📈 How It Works
Score Calculation:
Price above an EMA = +1, below = -1
Faster EMA above slower EMA = +1, else -1
Maximum score = +6, minimum = -6
Allocation Mapping:
+6 → 100% allocation
+4 to +5 → 100% allocation
+2 to +3 → 75% allocation
0 to +1 → 50% allocation
-1 to -2 → 30% allocation
-3 to -4 → 20% allocation
-5 to -6 → 10% allocation
Visual Output:
Table shows SCORE + Allocation %
Background color shifts with score (green for bullish, red for bearish)
⚠️ Disclaimer
This indicator is for educational purposes only. It does not constitute financial advice. Always backtest and combine with your own analysis before making trading decisions.
AI - Customizable EMA Offset Entry StrategyMoving average with offsets, such that buy indicators are above the MA and sell indicators are below the MA
EMA20 Cross Strategy with countertrades and signalsEMA20 Cross Strategy Documentation
Overview
The EMA20 Cross Strategy with Counter-Trades and Instant Signals is a Pine Script (version 6) trading strategy designed for the TradingView platform. It implements an Exponential Moving Average (EMA) crossover system to generate buy and sell signals, with optional trend filtering, session-based trading, instant signal processing, and visual/statistical feedback. The strategy supports counter-trades (closing opposing positions before entering new ones) and operates with a fixed trade size in EUR.
Features
EMA Crossover Mechanism:
Uses a short-term EMA (configurable length, default: 1) and a long-term EMA (default: 20) to detect crossovers.
A buy signal is generated when the short EMA crosses above the long EMA.
A sell signal is generated when the short EMA crosses below the long EMA.
Instant Signals:
If enabled (useInstantSignals), signals are based on the current price crossing the short EMA, rather than waiting for the candle close.
This allows faster trade execution but may increase sensitivity to price fluctuations.
Trend Filter:
Optionally filters trades based on the trend direction (useTrendFilter).
Long trades are allowed only when the short EMA (or price, for instant signals) is above the long EMA.
Short trades are allowed only when the short EMA (or price) is below the long EMA.
Session Filter:
Restricts trading to specific market hours (sessionStart, default: 09:00–17:00) if enabled (useSessionFilter).
Ensures trades occur only during active market sessions, reducing exposure to low-liquidity periods.
Customizable Timeframe:
The EMA calculations can use a higher timeframe (e.g., 5m, 15m, 1H, 4H, 1D, default: 1H) via request.security.
This allows the strategy to base signals on longer-term trends while operating on a shorter-term chart.
Trade Management:
Fixed trade size of €100,000 per trade (tradeAmount), with a maximum quantity cap (maxQty = 10,000) to prevent oversized trades.
Counter-trades: Closes short positions before entering a long position and vice versa.
Trades are executed with a minimum quantity of 1 to ensure valid orders.
Visualization:
EMA Lines: The short EMA is colored based on the last signal (green for buy, red for sell, gray for neutral), and the long EMA is orange.
Signal Markers: Displays buy/sell signals as arrows (triangles) above/below candles if enabled (showSignalShapes).
Background/Candle Coloring: Optionally colors the chart background or candles green (bullish) or red (bearish) based on the trend (useColoredBars).
Statistics Display:
If enabled (useStats), a label on the chart shows:
Total closed trades
Open trades
Win rate (%)
Number of winning/losing trades
Profit factor (gross profit / gross loss)
Net profit
Maximum drawdown
Configuration Inputs
EMA Short Length (emaLength): Length of the short-term EMA (default: 1).
Trend EMA Length (trendLength): Length of the long-term EMA (default: 20).
Enable Trend Filter (useTrendFilter): Toggles trend-based filtering (default: true).
Color Candles (useColoredBars): Colors candles instead of the background (default: true).
Enable Session Filter (useSessionFilter): Restricts trading to specified hours (default: false).
Trading Session (sessionStart): Defines trading hours (default: 09:00–17:00).
Show Statistics (useStats): Displays performance stats on the chart (default: true).
Show Signal Arrows (showSignalShapes): Displays buy/sell signals as arrows (default: true).
Use Instant Signals (useInstantSignals): Generates signals based on live price action (default: false).
EMA Timeframe (emaTimeframe): Timeframe for EMA calculations (options: 5m, 15m, 1H, 4H, 1D; default: 1H).
Strategy Logic
Signal Generation:
Standard Mode: Signals are based on EMA crossovers (short EMA crossing long EMA) at candle close.
Instant Mode: Signals are based on the current price crossing the short EMA, enabling faster reactions.
Trade Execution:
On a buy signal, closes any short position and opens a long position.
On a sell signal, closes any long position and opens a short position.
Position size is calculated as the minimum of €100,000 or available equity, divided by the current price, capped at 10,000 units.
Filters:
Trend Filter: Ensures trades align with the trend direction (if enabled).
Session Filter: Restricts trades to user-defined market hours (if enabled).
Visual Feedback
EMA Lines: Provide a clear view of the short and long EMAs, with the short EMA’s color reflecting the latest signal.
Signal Arrows: Large green triangles (buy) below candles or red triangles (sell) above candles for easy signal identification.
Chart Coloring: Highlights bullish (green) or bearish (red) trends via background or candle colors.
Statistics Label: Displays key performance metrics in a label above the chart for quick reference.
Usage Notes
Initial Capital: €100,000 (configurable via initial_capital).
Currency: EUR (set via currency).
Order Processing: Orders are processed at candle close (process_orders_on_close=true) unless instant signals are enabled.
Dynamic Requests: Allows dynamic timeframe adjustments for EMA calculations (dynamic_requests=true).
Platform: Designed for TradingView, compatible with any market supported by the platform (e.g., stocks, forex, crypto).
Example Use Case
Scenario: Trading on a 5-minute chart with a 1-hour EMA timeframe, trend filter enabled, and session filter set to 09:00–17:00.
Behavior: The strategy will:
Calculate EMAs on the 1-hour timeframe.
Generate buy signals when the short EMA crosses above the long EMA (and price is above the long EMA).
Generate sell signals when the short EMA crosses below the long EMA (and price is below the long EMA).
Execute trades only during 09:00–17:00.
Display green/red candles and performance stats on the chart.
Limitations
Instant Signals: May lead to more frequent signals, increasing the risk of false positives in volatile markets.
Fixed Trade Size: Does not adjust dynamically based on market conditions beyond equity and max quantity limits.
Session Filter: Simplified and may not account for complex session rules or holidays.
Statistics: Displayed on-chart, which may clutter the view in smaller charts.
Customization
Adjust emaLength and trendLength to suit different market conditions (e.g., shorter for scalping, longer for swing trading).
Toggle useInstantSignals for faster or more stable signal generation.
Modify sessionStart to align with specific market hours.
Disable useStats or showSignalShapes for a cleaner chart.
This strategy is versatile for both manual and automated trading, offering flexibility for various markets and trading styles while providing clear visual and statistical feedback.
MA Ribbon ExtendedCombines multiple moving averages (SMA, EMA, WMA, ALMA, HMA, DEMA, TEMA, SMMA, KAMA, FRAMA, McGinley) and VWAP bands into one indicator.
MA Ribbon ExtendedCombines multiple moving averages (SMA, EMA, WMA, ALMA, HMA, DEMA, TEMA, SMMA, KAMA, FRAMA, McGinley) and VWAP ±σ bands into one indicator. The indicator is fully customizable based on type, period length, timeframe, visibility, and color settings.
Ripping and Dipping ReversalsWaits for price to be ripping or dipping a while based on aligned trending moving averages, then on a strong reversal bar indicates a potential buy or sell.
CRYPTO WAVE HUNTERWAVE HUNTER This indicator is designed to identify price movements across different time frames. Its purpose is to identify hourly, 2-hour, and 4-hour price movements on 3-minute candlestick charts. It is suitable for use on a 3-minute chart.
Mikey’s Strategy (AutoEMA+)
⚙️ Core Idea:
A long-only EMA crossover strategy that automatically selects the optimal EMA length (5–25) based on historical performance using a custom scoring system.
🎯 Entry Conditions:
Price crosses above the selected EMA.
(Optional) Price is above HTF EMA200 (higher timeframe trend).
(Optional) ADX is above a minimum threshold.
(Optional) Volume is above average × multiplier.
A cooldown period has passed since the last exit.
❌ Exit Condition:
Price closes fully below the EMA (current candle: high, low, and close all below),
and the previous candle was above or touched the EMA.
🧠 Auto EMA Selection Logic:
Scans EMAs in the range (e.g., 8–21) every N bars.
Scores each EMA based on:
Time price spent above the EMA
Respect for EMA (touches)
Trend consistency
Distance from EMA (when above)
Picks the EMA with the highest valid score, and updates only if it’s significantly better.
🛡️ Risk Management:
No pyramiding (1 position max).
Cooldown period after exit.
No hard stop loss or take profit.
📊 Visuals & Alerts:
Plots the selected EMA and optional HTF EMA200.
Entry markers and info label on the chart.
Alerts for valid entries and filtered signals.
1H Candlestick vs EMA Crossover# Description — 1H Candlestick vs EMA Crossover (Pine Script)
This indicator is built in **TradingView Pine Script v5** and is designed to track the relationship between the **1‑hour candlestick close** and the **1‑hour Exponential Moving Average (EMA)**. It works on any chart timeframe but always pulls in **1H data** using `request. security`.
### Core Features
* **Customizable EMA length** (default = 200)
* **Plots the 1H EMA** as an orange line on your chart
* Optionally shows the **1H close** as a faint gray line for reference
* Detects and highlights when the **1H candle close crosses above or below the 1H EMA**
* **Arrows**: Green triangles appear below the bar when a bullish crossover happens (1H close > EMA); red triangles appear above the bar when a bearish crossover happens (1H close < EMA)
* **Alerts**: Built‑in `alert condition` statements let you create TradingView alerts whenever a crossover occurs
### How to Use
1. Adjust the EMA length if you want a faster or slower moving average.
2. Enable alerts: Right‑click the chart → Add Alert → choose this indicator and select either “crossed ABOVE EMA” or “crossed BELOW EMA.”
### Trading Applications
* **Trend Confirmation**: Use the 1H EMA as a higher‑timeframe filter while trading on lower timeframes.
* **Entry/Exit Signals**: Crossovers can mark potential entry points for trend continuation or reversals.
* **Scalping/Intraday**: Even on a 5m or 15m chart, you can overlay the 1H EMA to align your trades with the bigger trend.
This makes the indicator a simple yet powerful tool for aligning trades with higher‑timeframe momentum and avoiding false signals from lower‑timeframe noise.
AI - 200 EMA with Offsets StrategyLong when close price crosses above +4% offset 200 day EMA
Sell when close price crosses below -6.5% offset 200 day EMA
Monthly MA Box for S&P 500 or othersThis moving average helps detect when the asset is undervalued or overvalued. Users can adjust the spread between the moving averages.
RSI+MA by RAThis Indicator generates buy and sell signal on the crossover of RSI and MA, HTF RSI is also plotted for HTF trend.