SMA/EMA Trade Signal# SMA/EMA Trade Signal - Detailed Guide
## Indicator Overview
This indicator is a comprehensive trade signal detection system based on moving averages (SMA/EMA). It combines multi-timeframe moving average analysis, RSI filtering, trend strength assessment, and volume analysis to identify highly accurate entry points.
## Key Features
### 1. Multi-Timeframe Moving Average Display
* **Supported Timeframes**: 5m, 15m, 30m, 1H, 4H, Daily
* **MA Types**: SMA (Simple Moving Average) or EMA (Exponential Moving Average)
* **Period Settings**: Short MA (default 20), Long MA (default 200)
* **Visual Display**: Displayed with varying opacity lines per timeframe
### 2. Four Entry Signal Patterns
#### Buy Signals
1. **Breakout above 200MA**: Price breaks above the 200MA during an uptrend
2. **Rebound from 200MA**: Price pulls back to 200MA and rebounds in an uptrend
3. **Break above 20MA (above 200MA)**: 20MA breakout while above the 200MA
4. **Rebound from 20MA (above 200MA)**: Confirmed rebound from 20MA above 200MA (confirmed twice or more)
#### Sell Signals
1. **Breakdown below 200MA**: Price breaks below 200MA during a downtrend
2. **Rejection from 200MA**: Price rises to 200MA and falls back in a downtrend
3. **Break below 20MA (below 200MA)**: 20MA breakout to downside while under the 200MA
4. **Rejection from 20MA (below 200MA)**: Confirmed rejection from 20MA under 200MA (confirmed twice or more)
### 3. Advanced Filtering System
#### RSI Filter
* **Buy Signals**: Triggered when RSI is below 70
* **Sell Signals**: Triggered when RSI is above 30
* **Purpose**: Avoid entries in overheated markets
#### Distance Filter
* **Short MA Distance**: Within 2% of the 20MA
* **Long MA Distance**: Within 5% of the 200MA
* **200MA Proximity Filter**: Avoid entries when 200MA from other timeframes is too close
#### Trend Strength Filter
Trend strength is evaluated using the following 6 elements:
1. **Volume Surge**: 1.5x or more of the average volume
2. **Strong Candlestick**: Body is over 70% of the total range
3. **Consecutive Candles**: Two or more in the same direction
4. **High/Low Breakout**: Breaks 20-period high/low
5. **Engulfing Pattern**
6. **Range Breakout**: Breaks range with volume
### 4. Info Panel Display
Real-time display in the upper right panel:
* **Trend Status**: Uptrend / Downtrend / Range
* **Momentum**: Relationship between EMA15 and MA20
* **MA Bounce Count**: Long/short bounce count
* **MA Distance**: Degree of separation from MAs
* **Trend Strength Score**: Displayed as a score from 1 to 6
* **Distance to 200MA**: Nearest 200MA in pips
* **Filter Status**: Status of each filter (pass/fail)
## Parameter Details
### Display Settings
* **Show Current Timeframe MA**
* **Show \ MA**: Toggle for each timeframe
* **Show Trend Patterns**: Display trend pattern marks
* **Show Volume Surge Background**: Highlight background during volume spikes
### MA Period Settings
* **Short/Long MA Periods**
* **MA Type**: Choose between SMA or EMA
* **Timeframe-Specific Settings**: Set individually per timeframe
### Filter Settings
* **RSI Settings**: RSI period, overbought/oversold levels
* **Distance Filter**: Max allowable MA distance
* **Touch Detection**: Margin for MA touch judgment
* **Trend Strength**: Min score, volume multiplier, etc.
## How to Use
### 1. Basic Setup
1. Apply the indicator to the chart
2. Adjust MA periods according to the currency pair
3. Select desired timeframes
4. Set filter strength based on risk tolerance
### 2. Reading the Signals
#### Regular vs Strong Signals
* **Green Triangle (BUY)**: Regular buy signal
* **Lime Triangle (STRONG BUY)**: Buy signal with strong trend
* **Red Triangle (SELL)**: Regular sell signal
* **Orange Triangle (STRONG SELL)**: Sell signal with strong trend
#### Additional Markings
* **Small Circles**: Engulfing patterns
* **Arrows**: High/low breakouts
* **Yellow Background**: Volume surge
### 3. Entry Strategy
#### Recommended Entry Conditions
1. **Signal Triggered**: BUY or SELL signal appears
2. **Filter Confirmation**: Info panel shows "OK" status
3. **Trend Strength**: Score of 2 or higher (3+ for strong signals)
4. **Multi-Timeframe Alignment**: MAs from multiple timeframes point in same direction
#### Situations to Avoid
* Filter status shows “Distance NG”, “RSI NG”, etc.
* Trend strength score is 1 or lower
* Just before major economic events
* Around market open/close times
### 4. Risk Management
#### Stop Loss Setup
* **Buy**: Below recent low or support
* **Sell**: Above recent high or resistance
* **MA Reference**: Cut loss clearly below 200MA
#### Position Sizing
* Strong signals: Slightly larger positions
* Regular signals: Standard size
* Weak filter status: Smaller positions
## Optimization Tips
### Parameter Tuning
1. **Run Backtests**: Evaluate historical performance
2. **Adapt to Timeframe**: Adjust MA period to match trading timeframe
3. **Pair-Specific Tweaks**: Calibrate filters based on volatility
4. **Adapt to Market Conditions**: Change settings for trend vs range markets
### Combined Usage
* **Other Indicators**: Fibonacci, Support/Resistance
* **Fundamental Analysis**: Economic events, central bank policies
* **Time-of-Day Analysis**: Consider characteristics of Asian, EU, US sessions
## Important Notes
1. **Past results don’t guarantee future performance**: Don't rely solely on backtests
2. **Changing Market Conditions**: Effectiveness varies in trending vs ranging markets
3. **News Impact**: Technical setups can be invalidated by major announcements
4. **Leverage Risk**: Use high leverage cautiously
5. **Regular Review**: Periodically review parameters and performance
Although this indicator is a comprehensive analysis tool, final trading decisions should be made by taking multiple factors into account.
Exponential Moving Average (EMA)
Swing Trend: 200 EMA + ATR (Long Only)🧠 Strategy Concept:
This swing trading strategy is designed specifically for Ethereum (ETH) on timeframes like 4H or Daily, but it is flexible enough to work across other volatile assets or timeframes with some tuning.
The system combines trend confirmation via a 200-period Exponential Moving Average (EMA) with volatility filtering using the Average True Range (ATR). It aims to capture medium-term bullish swings while avoiding weak or sideways markets.
📈 Entry Logic:
A long position is opened only when both of the following conditions are true:
Price is above the 200 EMA
→ This confirms a longer-term uptrend.
Price is also greater than (EMA + ATR × Multiplier)
→ This volatility buffer ensures we only enter after strong directional moves and avoid minor pullbacks or choppy price action.
The ATR multiplier is customizable (default = 1.5).
ATR length defaults to 14 periods.
✅ This double filter helps reduce false positives and ensures that entries happen only in strong bullish momentum.
💡 Exit Logic:
The exit rule is simple:
Close the position when the price crosses below the 200 EMA, indicating a potential trend reversal or weakening trend.
This approach:
Protects gains by exiting early during trend breakdowns.
Avoids unnecessary complexity like static stop-loss or take-profit.
You can manually add SL/TP logic if desired.
⚙️ Strategy Settings:
EMA Length = 200
ATR Length = 14
ATR Multiplier = 1.5
Position Sizing = 10% of equity per trade (adjustable in strategy settings)
📊 Use Case:
Optimized for swing traders who prefer long-only positions in bull markets.
Particularly effective on ETHUSDT, but applicable to BTC, SOL, etc.
Best used during periods of trending market behavior — avoid sideways or range-bound conditions.
🛠️ Customization Tips:
Timeframe: Works best on 4H or 1D charts; avoid low timeframes unless volatility filtering is adjusted.
EMA Length: Increase to 300–400 for more conservative filtering.
ATR Multiplier: Raise to 2–2.5 to reduce frequency of entries and increase selectivity.
Stop-loss / Take-profit: You can add static or trailing SL/TP for tighter risk control if desired.
📌 Strategy Summary:
Feature Setting
Trend Filter 200 EMA
Volatility Gate ATR (×1.5)
Entry Type Long only
Exit Trigger Close < EMA
Style Trend-following Swing Strategy
EMA (20/50/100/200) whitelinesModified version: credits to drsweets
Plots exponential moving average on four timeframes at once for rapid indication of momentum shift as well as slower-moving confirmations. Displays EMA 20, 50, 100, and 200... default colors are hotter for faster timeframes, cooler for slower ones
Pashman - Long / Short EMA9-EMA21-VWAP Crossover & ExitEMA Crossover indicator for long or short entry points along with a exit signal when the momentum reverses. Further the EMA crossover signal is further enhanced with volume at the crossover being higher than the average of previous 9 periods.
Multiple EMA 50/100/200 by SKL
This script plots three Exponential Moving Averages (EMAs) — EMA 50, EMA 100, and EMA 200.
✅ Features :
Plots EMA 50 (Black), EMA 100 (Green), and EMA 200 (Red)
Sally's 9 EMA Strategy Local 3A simple script to count the number of 1 min bars that close over or under the 9 ema. It starts displaying at the 2 min bar and indicates buy/sell on the 4 min bar. The idea is to wait for the 5th bar to close to confirm. If the sequence has a + next to the numbers it means that all the bars are trending in the same direction as well as over the 9 ema.
Toolbar-FrenToolbar-Fren is a comprehensive, data-rich toolbar designed to present a wide array of key metrics in a compact and intuitive format. The core philosophy of this indicator is to maximize the amount of relevant, actionable data available to the trader while occupying minimal chart space. It leverages a dynamic color-coded system to provide at-a-glance insights into market conditions, instantly highlighting positive/negative values, trend strength, and proximity to important technical levels.
Features and Data Displayed
The toolbar displays a vertical column of critical data points, primarily calculated on the Daily timeframe to give a broader market context. Each cell is color-coded for quick interpretation.
DAY:
The percentage change of the current price compared to the previous day's close. The cell is colored green for a positive change and red for a negative one.
LOD:
The current price's percentage distance from the Low of the Day.
HOD
The current price's percentage distance from the High of the Day.
MA Distances (9/21 or 10/20, 50, 200)
These cells show how far the current price is from key Daily moving averages (MAs).
The values are displayed either as a percentage distance or as a multiple of the Average Daily Range (ADR), which can be toggled in the settings.
The cells are colored green if the price is above the corresponding MA (bullish) and red if it is below (bearish).
ADR
Shows the 14-period Average Daily Range as a percentage of the current price. The cell background uses a smooth gradient from green (low volatility) to red (high volatility) to visualize the current daily range expansion.
ADR%/50: A unique metric showing the distance from the Daily 50 SMA, measured in multiples of the 14-period Average True Range (ATR). This helps quantify how extended the price is from its mean. The cell is color-coded from green (close to the mean) to red (highly extended).
RSI
The standard 14-period Relative Strength Index calculated on the Daily timeframe. The background color changes to indicate potentially overbought (orange/red) or oversold (green) conditions.
ADX
The 14-period Average Directional Index (ADX) from the Daily timeframe, which measures trend strength. The cell is colored to reflect the strength of the trend (e.g., green for a strong trend, red for a weak/non-trending market). An arrow (▲/▼) is also displayed to indicate if the ADX value is sloping up or down.
User Customization
The indicator offers several options for personalization to fit your trading style and visual preferences:
MA Type
Choose between using Exponential Moving Averages (EMA 9/21) or Simple Moving Averages (SMA 10/20) for the primary MA calculations.
MA Distance Display
Toggle the display of moving average distances between standard percentage values and multiples of the Average Daily Range (ADR).
Display Settings
Fully customize the on-chart appearance by selecting the table's position (e.g., Top Right, Bottom Left) and the text size. An option for a larger top margin is also available.
Colors
Personalize the core Green, Yellow, Orange, and Red colors used throughout the indicator to match your chart's theme.
Technical Parameters
Fine-tune the length settings for the ADX and DI calculations.
HA EMA Cross MTF Strategy + ATR SL/TP + Visuals📜 Strategy Description: HA EMA Cross MTF Strategy + ATR SL/TP + Visuals
Hello Traders,
This is a multi-timeframe, Heikin Ashi-based trend-following strategy that integrates EMA crossovers and ATR-driven exits. The goal is to filter out noise, confirm directional bias using higher timeframe structure, and manage risk through volatility-adaptive exits.
🔍 How the Strategy Works
* Heikin Ashi candles help smooth out minor price fluctuations, allowing for clearer trend detection.
* A Fast EMA crossing above or below a Slow EMA determines the local trend bias.
* A Higher Timeframe Heikin Ashi confirmation is used to validate entries only when both timeframes agree in direction.
* Session filters can restrict trading to custom hours (e.g., U.S. market open).
⚙️ Risk Management Features
This strategy includes optional ATR-based Stop-Loss and Take-Profit logic, designed to adapt dynamically to market volatility:
* ATR Stop-Loss: Based on a user-defined multiplier (default: 1.5×ATR)
* ATR Take-Profit: Based on a separate multiplier (default: 2.5×ATR)
* Users can toggle this logic on/off and customize ATR length and multipliers in the settings.
📊 Visual Aids Included
To help understand market behavior and trade execution visually, the script includes:
* Entry arrows (long and short)
* Real-time Fast EMA / Slow EMA overlays
* Stop-Loss / Take-Profit level plots
* Optional Heikin Ashi Close line for trend visualization
🔧 Customization Parameters
Users can adjust:
* EMA periods (fast and slow)
* ATR period and multipliers for SL/TP
* Session time filters
* Higher timeframe input
* Toggle ATR logic and visual overlays
🧪 Backtest Defaults (for reference only)
* Initial Capital: $10,000
* Order Size: 100% of equity
* Slippage: 1 tick
* Commission: 0.075%
* Recommended Timeframe: 1H or 15min
* Minimum Trades Suggested: 100+
* All these values can be adjusted in the strategy settings panel.
⚠️ Disclaimer
This strategy is provided for educational and research purposes only. It does not constitute financial advice, nor does it guarantee future performance. Please forward-test and adapt to your own risk tolerance before using in live trading.
This strategy is fully open-source and editable. Feel free to customize it for your use case and timeframes.
Death Cross & Golden CrossDeath Cross & Golden Cross
When Short term (Red) EMA crosses Long term EMA singals a Buy/Sell. When the reverses sqaure off the trade.
ATR Keltner Channels [iryna]Hello!
I’m excited to share my custom ATR Keltner Channel script, built around a 21-period EMA and ATR-based volatility bands. I am using this tool myself for watching price behavior, any pullbacks or breakouts, and to visualize dynamic support and resistance.
How it works:
• The centerline is a 21-day Exponential Moving Average (EMA), giving you a smooth sense of the trend.
• The upper and lower bands are calculated using Average True Range (ATR), so they expand and contract based on volatility.
• The upper and lower bands are x1ATR, x2ATR, x3ATR.
All my knowledge comes from SpikeTrade community, where I am learning from Kerry Lovvorn and Alexander Elder.
Let me know if you have any suggestions to improve or update!
Have a fruitful trading session!
- Iryna
Multi-Timeframe 20 EMA Horizontal LinesOverview
This Multi-Timeframe 20 EMA indicator provides intelligent trend analysis by displaying your current timeframe EMA alongside relevant higher timeframe EMA levels as horizontal support/resistance lines. On lower timeframes, you see all higher EMA levels for comprehensive multi-timeframe confluence, while on higher timeframes, it filters out lower timeframe noise to maintain focus on macro trends. This allows traders to align short-term entries with long-term market structure, identifying high-probability setups where multiple timeframe EMAs converge while using the current timeframe EMA for precise timing.
Feature
Multi-Timeframe Horizontal EMA Lines
The indicator fetches and displays 20 EMAs from five higher timeframes:
Daily (D): Daily 20 EMA
Weekly (W): Weekly 20 EMA
Monthly (M): Monthly 20 EMA
Quarterly (Q): 3-Month 20 EMA
Half-Yearly (HY): 6-Month 20 EMA
Intelligent Timeframe Filtering
Smart Display Logic: Only shows EMAs from timeframes higher than your current chart timeframe
Prevents Redundancy: Automatically filters out lower timeframe EMAs to avoid clutter
Example: On a 4-hour chart, you'll see Daily, Weekly, Monthly, Quarterly, and Half-Yearly EMAs, but on a Weekly chart, you'll only see Weekly and higher timeframes
Half-Yearly (HY): 6-Month 20 EMA
Shows only current timeframe EMA with half-yearly horizontal line, filtering out all lower timeframes.
Quarterly (Q): 3-Month 20 EMA
Displays current timeframe EMA with quarterly and higher horizontal lines, hiding monthly, weekly, and daily EMAs.
Monthly (M): Monthly 20 EMA
Shows current timeframe EMA with monthly and higher horizontal EMAs, excluding weekly and daily timeframes.
Weekly (W): Weekly 20 EMA
Displays current timeframe EMA with weekly and higher horizontal EMA lines, filtering out daily timeframe.
Daily (D):
Shows current timeframe EMA with all higher timeframe horizontal EMAs (daily, weekly, monthly, quarterly, half-yearly).
Note: Make sure to enable Price-Line in Style Settings after Importing Script.
Kenan Ortalama Göstergesi [16 MA] All averages are in a single indicator, 4 from each average, you can change the colors as you wish.
Color Change EMA 200 (4H)200 Color Change EMA (4H Locked)
Overview
This indicator displays a 200-period Exponential Moving Average (EMA) that is locked to the 4-hour timeframe, regardless of what chart timeframe you're currently viewing. The EMA line changes color dynamically based on price action to provide clear visual trend signals.
Key Features
• Multi-Timeframe Capability : Always shows the 4H 200 EMA on any chart timeframe
• Dynamic Color Coding :
- Green: Price is above the 200 EMA (bullish condition)
- Red: Price is below the 200 EMA (bearish condition)
• Clean Visual Design : Bold 2-pixel line width for clear visibility
• Real-time Updates : Colors change instantly as price crosses above or below the EMA
How to Use
1. Add the indicator to any timeframe chart
2. The 4H 200 EMA will appear as a smooth line
3. Watch for color changes:
- When the line turns green, it indicates price strength above the key moving average
- When the line turns red, it suggests price weakness below the moving average
4. Use for trend identification, support/resistance levels, and entry/exit timing
Best Practices
• Combine with other technical analysis tools for confirmation
• Use the color changes as alerts for potential trend shifts
• Consider the 200 EMA as a major support/resistance level
• Works well for swing trading and position sizing decisions
Settings
• Length : Default 200 periods (customizable)
• Source : Default closing price (customizable)
Perfect for traders who want to keep the important 4H 200 EMA visible across all timeframes with instant visual trend feedback.
SMEMA Trend CoreSMEMA Trend Core is a multi-timeframe trend analysis tool designed to provide a clean, adaptive and structured view of the market’s directional bias. It can be used in short term, swing or long term contexts. The internal calculation adjusts automatically based on the selected trading style, while always combining data from six timeframes.
At its core, the indicator uses a SMEMA, which is a Simple Moving Average applied to an EMA. This combination improves smoothness without losing reactivity. The SMEMA is calculated separately on 1H, 4H, 1D, 3D, 1W and 1M timeframes. These six values are then combined using dynamic weights that depend on the trading mode:
Short Term mode gives more influence to 1H and 4H
Swing Trading mode gives more influence to 1D, 3D and 1W
Long Term mode gives more influence to 1W and 1M
However, all six timeframes are always included in the final result. This avoids the tunnel vision of relying on a single resolution and ensures that the indicator captures both local and structural movements.
The result is a synthetic trend line, called Global SMEMA, that adapts to market conditions and offers a realistic view of the ongoing trend. To enhance the reading, the indicator calculates a Trend Score. This score reflects the position of price relative to the Global SMEMA, scaled by a long-term ATR, and adjusted by the slope of the trend line. A hyperbolic tangent function is used to normalize values and reduce distortion from outliers.
The final score is capped between -10 and +10, and used to define the trend state:
Green when the trend is bullish (score > +1.5)
Red when the trend is bearish (score < -1.5)
Brown when the trend is neutral (score between -1.5 and +1.5)
Optional Deviation Bands can be displayed at ±1, ±2 and ±3 ATR distances around the central line. These dynamic zones help identify extended price movements or potential support and resistance areas, depending on the current trend bias.
Main features:
A single, stable trend line based on six timeframes
Automatic rebalancing depending on trading mode
Quantified score integrating distance and slope
No overreaction to short-term noise
Deviation zones for advanced market context
No repainting, no lookahead, 100% real-time
SMEMA Trend Core is not a signal tool. It is a directional framework that helps you stay aligned with the real structure of the market. Use it to confirm setups, filter trades or simply understand where the market stands in its trend cycle.
MA Cross MTF Alert (Miu)This script extends the classic moving average crossover strategy with support for up to 8 user-defined symbols across 4 custom timeframes, combined with a visual and alert system designed for traders who monitor multiple assets simultaneously.
Unlike traditional MA crossover tools, this script enables traders to receive real-time alerts for crossovers across multiple assets and timeframes, even when the script is not actively displayed on the chart — ideal for passive monitoring in multi-asset strategies.
What it does:
This script calculates two customizable moving averages (SMA or EMA) for each selected symbol and timeframe.
It then tracks crossover events:
- Bullish crossover when the fast MA crosses above the slow MA
- Bearish crossunder when the fast MA crosses below the slow MA
On the chart, it also displays the crossover signals for the current symbol and timeframe using color-coded cross icons.
Key features:
- Select SMA or EMA type for both moving averages
- Customize MA lengths and colors
- Works with any asset and timeframe
- Alerts include symbol and timeframe info for easy identification
How to use:
1) Add the indicator to your chart.
2) Choose the moving average type and lengths.
3) Enable/disable any of the 8 symbols and 4 timeframes.
4) Set up TradingView alerts by clicking “Create Alert” and selecting one of the alert() calls.
5) You will receive a message like:
BTC (1h) | MA Crossover ▲ or ETH (15m) | MA Crossunder ▼
Technical note:
This script uses request.security() to retrieve moving average values from up to 8 different symbols and 4 different timeframes in real time.
Feel free to leave your feedback or suggestions in the comments section below.
Enjoy!
Pucci Trend EMA-SMA Crossover with TolerancePucci Trend EMA-SMA Crossover with Tolerance
This indicator helps identify market trends and generates trading signals based on the crossover between an Exponential Moving Average (EMA) and a Simple Moving Average (SMA) with an adjustable tolerance threshold. The signals work as follows:
Buy Signal (B) -> Triggers when the EMA crosses above the SMA, exceeding a user-defined tolerance (in basis points). Optionally, a price filter can require the high or low to be below the EMA for confirmation.
Sell Signal (S) -> Triggers when the SMA crosses above the EMA, exceeding the tolerance. The optional price filter may require the high or low to be above the EMA.
The tolerance helps reduce false signals by requiring a minimum distance between the moving averages before confirming a crossover. The price filter adds an extra confirmation layer by checking if price action respects the EMA level.
Important Notes:
1º No profitability guarantee: This tool is for analysis only and may generate losses.
2º "As Is" disclaimer: Provided without warranties or responsibility for trading outcomes.
3º Use Stop Loss: Users must determine their own risk management.
4º Parameter adjustment needed: Optimal MA periods and tolerance vary by timeframe.
5º Filter impact varies: Enabling/disabling the price filter may improve or worsen performance.
Codigo Trading 1.0📌Codigo Trading 1.0
This indicator strategically combines SuperTrend, multiple Exponential Moving Averages (EMAs), the Relative Strength Index (RSI), and the Average True Range (ATR) to offer clear entry and exit signals, as well as an in-depth view of market trends. Ideal for traders looking to optimize their operations with an all-in-one tool.
🔩How the Indicator Works:
This indicator relies on the interaction and confirmation of several key components to generate signals:
SuperTrend: Determines the primary trend direction. An uptrend SuperTrend signal (green line) indicates an upward trend, while a downtrend (red line) signals a downward trend. It also serves as a guide for setting Stop Loss and Take Profit levels.
EMAs: Includes EMAs of 10, 20, 55, 100, 200, and 325 periods. The relationship between the EMA 10 and EMA 20 is fundamental for confirming the strength and direction of movements. An EMA 10 above the EMA 20 suggests an uptrend, and vice versa. Longer EMAs act as dynamic support and resistance levels, offering a broader view of the market structure.
RSI: Used to identify overbought (RSI > 70/80) and oversold (RSI < 30/20) conditions, generating "Take Profit" alerts for potential trade closures.
ATR: Monitors market volatility to help you manage exits. ATR exit signals are triggered when volatility changes direction, indicating a possible exhaustion of the movement.
🗒️Entry and Exit Signals:
I designed specific alerts based on all the indicators I use in conjunction:
Long Entries: When SuperTrend is bullish and EMA 10 crosses above EMA 20.
Short Entries: When SuperTrend is bearish and EMA 10 crosses below EMA 20.
RSI Exits (Take Profit): Indicated by "TP" labels on the chart, when the RSI reaches extreme levels (overbought for longs, oversold for shorts).
EMA 20 Exits: When the price closes below EMA 20 (for longs) or above EMA 20 (for shorts).
ATR Exits: When the ATR changes direction, signaling a possible decrease in momentum.
📌Key Benefits:
Clarity in Trend: Quickly identifies market direction with SuperTrend and EMA alignment.
Strategic Entry and Exit Signals: Receive timely alerts to optimize your entry and exit points.
Assisted Trade Management: RSI and ATR help you consider when to take profits or exit a position.
Intuitive Visualization: Arrows, labels, and colored lines make analysis easy to interpret.
Disclaimer:
Trading in financial markets carries significant risks. This indicator is an analysis tool and should not be considered financial advice. Always conduct your own research and trade at your own risk.
CHN BUY SELL with EMA 200Overview
This indicator combines RSI 7 momentum signals with EMA 200 trend filtering to generate high-probability BUY and SELL entry points. It uses colored candles to highlight key market conditions and displays clear trading signals with built-in cooldown periods to prevent signal spam.
Key Features
Colored Candles: Visual momentum indicators based on RSI 7 levels
Trend Filtering: EMA 200 confirms overall market direction
Signal Cooldown: Prevents over-trading with adjustable waiting periods
Clean Interface: Simple BUY/SELL labels without clutter
How It Works
Candle Coloring System
Yellow Candles: Appear when RSI 7 ≥ 70 (overbought momentum)
Purple Candles: Appear when RSI 7 ≤ 30 (oversold momentum)
Normal Candles: All other market conditions
Trading Signals
BUY Signal: Triggered when closing price > EMA 200 AND yellow candle appears
SELL Signal: Triggered when closing price < EMA 200 AND purple candle appears
Signal Cooldown
After a BUY or SELL signal appears, the same signal type is suppressed for a specified number of candles (default: 5) to prevent excessive signals in ranging markets.
Settings
RSI 7 Length: Period for RSI calculation (default: 7)
RSI 7 Overbought: Threshold for yellow candles (default: 70)
RSI 7 Oversold: Threshold for purple candles (default: 30)
EMA Length: Period for trend filter (default: 200)
Signal Cooldown: Candles to wait between same signal type (default: 5)
How to Use
Apply the indicator to your chart
Look for yellow or purple colored candles
For LONG entries: Wait for yellow candle above EMA 200, then enter BUY when signal appears
For SHORT entries: Wait for purple candle below EMA 200, then enter SELL when signal appears
Use appropriate risk management and position sizing
Best Practices
Works best on timeframes M15 and higher
Suitable for Forex, Gold, Crypto, and Stock markets
Consider market volatility when setting stop-loss and take-profit levels
Use in conjunction with proper risk management strategies
Technical Details
Overlay: True (plots directly on price chart)
Calculation: Based on RSI momentum and EMA trend analysis
Signal Logic: Combines momentum exhaustion with trend direction
Visual Feedback: Colored candles provide immediate market condition awareness
Directional Strength IndexThis indicator is designed to detect the dominant market direction and quantify its strength by aggregating signals across six key timeframes: 1H, 4H, 1D, 3D, 1W, and 1M.
At its core, it uses a SMEMA 'the Simple Moving Average of an EMA' as the main trend reference. This hybrid smoothing method was chosen for its balance: the EMA ensures responsiveness to recent price moves, while the SMA dampens short-term volatility. This makes the SMEMA more stable than a raw EMA and more reactive than a simple SMA, especially in noisy or volatile environments.
For each timeframe, a score between -10 and +10 is calculated. This score reflects:
- the distance of the price from the SMEMA, using ATR as a dynamic threshold
- the number of price deviations above or below the SMEMA
- the slope of the SMEMA, which adjusts the score based on momentum
These six timeframe scores are then combined into a single Global Score, using weighted averages. Three weighting profiles are available depending on your trading horizon:
- Long Term: emphasizes weekly and monthly data
- Swing Trading: gives balanced importance to all timeframes
- Short Term: prioritizes 1H and 4H action
This multi-timeframe aggregation makes the indicator adaptable to different styles while maintaining a consistent logic.
The result is displayed in a table on the chart, showing:
- the trend direction per timeframe (up, down or neutral)
- the strength score per timeframe
- the overall trend direction and strength based on the selected profile
Optional deviation bands based on ATR multiples are also plotted to provide visual context for overextensions relative to the SMEMA.
This indicator is non-repainting and built for objective, trend-based decision making.
5EMA_BB_ScalpingWhat?
In this forum we have earlier published a public scanner called 5EMA BollingerBand Nifty Stock Scanner , which is getting appreciated by the community. That works on top-40 stocks of NSE as a scanner.
Whereas this time, we have come up with the similar concept as a stand-alone indicator which can be applied for any chart, for any timeframe to reap the benifit of reversal trading.
How it works?
This is essentially a reversal/divergence trading strategy, based on a widely used strategy of Power-of-Stocks 5EMA.
To know the divergence from 5-EMA we just check if the high of the candle (on closing) is below the 5-EMA. Then we check if the closing is inside the Bollinger Band (BB). That's a Buy signal. SL: low of the candle, T: middle and higher BB.
Just opposite for selling. 5-EMA low should be above 5-EMA and closing should be inside BB (lesser than BB higher level). That's a Sell signal. SL: high of the candle, T: middle and lower BB.
Along with we compare the current bar's volume with the last-20 bar VWMA (volume weighted moving average) to determine if the volume is high or low.
Present bar's volume is compared with the previous bar's volume to know if it's rising or falling.
VWAP is also determined using `ta.vwap` built-in support of TradingView.
The Bolling Band width is also notified, along with whether it is rising or falling (comparing with previous candle).
What's special?
We love this reversal trading, as it offers many benifits over trend following strategies:
Risk to Reward (RR) is superior.
It _Does Hit_ stop losses, but the stop losses are tiny.
Means, althrough the Profit Factor looks Nahh , however due to superior RR, end of day it ended up in green.
When the day is sideways, it's difficult to trade in trending strategies. This sort of volatility, reversal strategies works better.
It's always tempting to go agaist the wind. Whole world is in Put/PE and you went opposite and enter a Call/CE. And turns out profitable! That's an amazing feeling, as a trader :)
How to trade using this?
* Put any chart
* Apply this screener from Indicators (shortcut to launch indicators is just type / in your keyboard).
* It will show you the Green up arrow when buy alert comes or red down arrow when sell comes. * Also on the top right it will show the latest signal with entry, SL and target.
Disclaimer
* This piece of software does not come up with any warrantee or any rights of not changing it over the future course of time.
* We are not responsible for any trading/investment decision you are taking out of the outcome of this indicator.
AutoFib Breakout Strategy for Uptrend AssetsThis trading strategy is designed to help you catch powerful upward moves on assets that are in a long-term uptrend, such as Gold (XAUUSD). It uses a popular technical tool called the Fibonacci Extension, combined with a trend filter and a risk-managed exit system.
✅ When to Use This Strategy
• Works best on higher timeframes: Daily (1D), 3-Day (3D), or Weekly (W).
• Best used on uptrending assets like Gold.
• Designed for swing trading – holding trades from a few days to weeks.
📊 How It Works
1. Find the Trend
We only want to trade in the direction of the trend.
• The strategy uses the 200-period EMA (Exponential Moving Average) to identify if the market is in an uptrend.
• If the price is above the 200 EMA, we consider it an uptrend and allow long trades.
2. Identify Breakout Levels
• The strategy detects recent high and low pivot points to draw Fibonacci extension levels.
• It focuses on the 1.618 Fibonacci level, which is often a target in strong trends.
• When the price breaks above this level in an uptrend, it signals a potential momentum breakout – a good time to buy.
3. Enter a Trade
• The strategy enters a long (buy) position when the price closes above the 1.618 Fibonacci level and the market is in an uptrend (above the 200 EMA).
4. Manage Risk Automatically
• The trade includes a stop-loss set to 1x the ATR (Average True Range) below the entry price – this protects against sudden drops.
• It sets a take-profit at 3x the ATR above the entry – aiming for higher rewards than risks.
⚠️ Important Notes
• 📈 Higher Timeframes Preferred: This strategy works best on Daily (D), 3-Day (3D), and Weekly (W) charts, especially on Gold (XAUUSD).
• 🧪 Not for Deep Backtesting: Due to the nature of how pivot points and Fib levels are calculated, this strategy may not perform well in backtesting simulations (because the historical calculations can shift). It is better used for live analysis and forward testing.
Best EMA FinderThis script, Best EMA Finder, is based on the same original logic as the Best SMA Finder I published previously. Although it was not the initial goal of the project, several users asked for an EMA version, so here it is.
The script scans a wide range of Exponential Moving Average (EMA) lengths, from 10 to 500, and identifies the one that historically delivered the most robust performance on the current chart. The choice to stop at 500 is deliberate: beyond that point, EMA curves tend to flatten and converge, adding processing time without meaningful differences in signals or outcomes.
Each EMA is evaluated using a custom robustness score:
Profit Factor × log(Number of Trades) × sqrt(Win Rate)
Only EMA lengths that exceed a user-defined minimum number of trades are considered valid. Among these, the one with the highest robustness score is selected and displayed on the chart.
A table summarizes the results:
- Best EMA length
- Total number of trades
- Profit Factor
- Win Rate
- Robustness Score
You can adjust:
- Strategy type: Long Only or Buy & Sell
- Minimum number of trades required
- Table visibility
This script is designed for analysis and optimization only. It does not execute trades or handle position sizing. Only one open trade per direction is considered at a time.