Multi-TF MA Master (10 MA or EMAs)Tired of adding multiple scripts just to see a few moving averages? This all-in-one tool lets you run up to 10 fully customizable MAs—including SMA, EMA, and independent timeframes like 200W or 150M—within a single indicator.
Media mobile semplice (SMA)
Multi Moving Averages (EMA / SMA Toggle) ConfigurableMulti Moving Averages (EMA / SMA Toggle) is a lightweight and highly configurable indicator designed to plot up to three moving averages on your chart with a clean and minimalist input panel.
The indicator allows you to switch seamlessly between Exponential Moving Averages (EMA) and Simple Moving Averages (SMA) using a single toggle, while preserving the same lengths, sources, and visual settings. Each moving average can be independently shown or hidden and fully customized for color, line width, and plot style.
This tool is ideal for traders who rely on multiple moving averages for trend identification, dynamic support and resistance, pullback analysis, and crossover-based strategies, while keeping their charts uncluttered and easy to read.
Key Features
Plot up to three moving averages
Global EMA / SMA toggle
Individual show / hide control for each MA
Customizable length, source, color, width, and style
Minimalist input layout with low scrolling
Fully compatible with the Style panel
Whether you prefer fast-reacting EMAs or smoother SMAs, this indicator adapts instantly to your workflow without requiring multiple indicators or duplicate settings.
Swing a jeanmiche-au dessus de ça smma 100
-stochastique qui croise sous 25
-volume au dessus de la moyenne.
SMAs (10,50,100,150,200) by Vega updated by YogiI just took the script created by Vega and added 150 sma.
Fibonacci EMA/SMA SystemFibonacci EMA/SMA System
Overview
A clean, customizable moving average indicator built around Fibonacci-based EMA and SMA stacks. Designed for trend identification across multiple timeframes using mathematically harmonious period lengths. Enable one or more stacks based on your trading timeframe. Use Fast + Core for intraday/swing. Add Macro for higher timeframe context.
Stacks
Fast (8/13/21) — Momentum, short-term trend
Core (21/34/55) — Pullbacks, swing trading
Full Trend (13/21/34/55/89) — Trend strength, compression/expansion
Macro (55/89/144) — Position trading, regime context
Standard (20/50/100/200) — Traditional reference levels
Options
MA Type — EMA or SMA
Price Source — Close, HL2, HLC3, OHLC4, etc.
Uniform Color — Apply single color to all active lines
Individual Colors — Set unique color per line in each stack
Line Style — Solid or Dotted
Line Width — 1–4 pixels
Fill — Shaded area between outer EMAs
Labels — Period numbers displayed at line ends
VIX Crossing# VIX Crossing Strategy
## Overview
VIX Crossing is a quantitative trading strategy that combines volatility signals from the VIX index with trend confirmation from the Nasdaq-100 (NDX) to generate long entry signals. The strategy employs multiple exit conditions to manage risk and lock in profits systematically.
## Strategy Logic
### Entry Condition
The strategy initiates a long position when:
- **VIX Crossunder**: The VIX closing price crosses below its 5-bar simple moving average (SMA), signaling a decrease in implied volatility
- **AND NDX Confirmation**: The Nasdaq-100 closes above its 21-bar exponential moving average (EMA), confirming uptrend strength
This dual-signal approach reduces false entries by requiring both volatility normalization and positive market momentum.
### Exit Conditions
The strategy automatically closes positions when any of the following conditions are met:
1. **VIX Crossover (Volatility Exit)**: VIX closes above its SMA, indicating rising volatility
2. **Time-Based Exit**: Position is force-closed after 10 bars from entry, preventing prolonged drawdowns
3. **Take-Profit Exit**: Position closes when unrealized profit exceeds $3,000 per contract
4. **Stop-Loss Exit**: Position closes when unrealized loss exceeds $1,500 per contract
Exit conditions are evaluated each bar while the position is open, with explicit logging of the exit reason for trade analysis.
## Configuration Parameters
| Parameter | Default | Purpose |
|-----------|---------|---------|
| VIX SMA Length | 5 | Smoothing period for VIX volatility baseline |
| NDX EMA Length | 21 | Smoothing period for Nasdaq-100 trend confirmation |
| Force Close After X Bars | 10 | Maximum holding period in bars |
| TP Amount per Contract | $3,000 | Profit target per contract |
| SL Amount per Contract | $1,500 | Loss limit per contract |
## Risk Management Features
- **Position Sizing**: Capital allocation based on profit/loss per contract rather than fixed units, allowing for scalable risk
- **Dual Risk Controls**: Combined time-based and price-based exits prevent extended exposure
- **Profit Asymmetry**: 2:1 profit-to-loss ratio encourages risk/reward discipline
- **Contract-Based Accounting**: Profit targets and stop losses scale with position size
## Capital Requirements
- **Initial Capital**: $50,000
- **Commission**: $3 per contract (cash-based)
- **Instrument**: Designed for index-based derivatives or equities with liquid options markets
## Technical Indicators Used
- Simple Moving Average (SMA) for VIX smoothing
- Exponential Moving Average (EMA) for NDX trend detection
- Crossover/Crossunder detection for signal generation
## Underlying Assumptions
1. VIX crossunder events represent mean-reversion opportunities in Nasdaq-heavy portfolios
2. NDX EMA confirmation filters out uncorrelated volatility spikes
3. 10-bar holding period aligns with typical mean-reversion timeframes
4. Contract-based profit targets accommodate varying leverage levels
BNF (Kotegawa) Strategy [CB Algos]STRATEGY: BNF (Kotegawa) Mean Reversion Strategy
DEVELOPED BY: CB Algos
DESCRIPTION:
This indicator replicates the trading style of Takashi Kotegawa (BNF).
It calculates the percentage deviation of the price from the 25-period SMA.
HOW TO USE:
1. Look for 'Lime' bars (Extreme Buy) or 'Teal' bars (Moderate Buy). These indicate the price has dropped significantly below the average.
2. Look for 'Red' bars (Extreme Sell) as profit-taking zones.
3. Use the Info Panel to see the exact current deviation %.
Tao of Trading Moving Averages (MM)This is the Tao of Trading script with color shifts for Muffin Man's color needs.
RS Proxy Suite (Sector-Weighted) - by kuokkuokIndicator Description
RS Proxy Suite (Sector-Weighted) is a Pine Script indicator for TradingView, designed for stock traders to calculate a stock's Relative Strength (RS) proxy score. This indicator simulates a market proxy universe by weighting multiple sector ETFs, evaluating a stock's strength relative to a benchmark like the SPX. Inspired by the M.E.T.S. (Multiple Edge Trading Strategy) system, it helps users identify market-leading stocks, potential breakout opportunities, and low-risk entry points.
Key Features and Benefits:
RS Proxy Rating (1–99 Score): Computes the stock's RS score (higher is stronger), aiding in screening super-strong stocks. A score above 80 indicates the stock outperforms most peers, making it a prime buy candidate.
RS Line and Blue Dot Divergence: Displays the RS line trend and marks RS-leading new high divergences. This acts like an "early warning light," signaling potential low-risk entries (e.g., when RS hits a new high but price hasn't caught up yet).
Sector-Weighted Design: Integrates Growth, Cyclical, Defensive, and Policy ETFs to simulate a comprehensive market environment. Weights are adjustable for flexibility across market phases.
Dashboard Display: A concise panel shows RS Rating, RS Trend, and Blue Dot status for quick decision-making.
Application Scenarios: Ideal for technical analysts to screen leaders, spot trend reversals, or confirm breakouts with VCP patterns (Volatility Contraction Patterns). Its strength lies in avoiding single-index bias for more stable RS assessments.
This indicator avoids subjective judgments, relying on quantitative momentum calculations to help traders "go with the flow" and reduce false breakout risks. Shared for community use—feedback welcome for improvements.
User Manual -
This manual guides you on installing and using the RS Proxy Suite (Sector-Weighted) indicator on TradingView. It's suited for daily or weekly charts, applicable to US stocks or markets correlated with SPX. Ensure your TradingView account supports Pine Script v6.
1. Installation Steps
Step 1: Log in to TradingView and open the Chart page.
Step 2: Click the "Indicators" button in the top toolbar, search for "RS Proxy Suite (Sector-Weighted)" (or paste the Pine Script code into the Pine Editor and add it).
Step 3: If installing from the Community Scripts library, click "Add to Chart"; for custom code, save and add to the chart.
Step 4: The indicator will appear below the chart (overlay=false). Confirm no error messages.
2. Parameter Adjustment Guide
The indicator offers multiple input parameters in TradingView's "Settings" panel. Defaults are optimized, but adjust based on market conditions. Here's a grouped breakdown:
Data Source:
Market Index SPX: Default "SP:SPX", changeable to other indices (e.g., "TVC:NDX").
Calculation Price: Default close (closing price), switch to high/low/open for sensitivity tweaks.
RS Momentum Periods (Adjustable):
Short Term (Default 63 days): Short-term momentum; larger values smooth it out.
Medium Term (Default 126 days): Mid-term momentum.
Long Term (Default 252 days): Long-term momentum for capturing major trends.
Momentum Weights:
Short Term Weight: Default 0.4, emphasizes recent performance.
Medium Term Weight: Default 0.2.
Long Term Weight: Default 0.4. Sum doesn't need to be 1; system normalizes automatically.
Sector Weights: Each ETF weight is independently adjustable (step 0.1). Defaults reflect sector importance, e.g., higher for growth ETFs.
XLK Weight (Technology): Default 1.5.
SOXX Weight (Semiconductors): Default 1.3.
XLY Weight (Consumer Discretionary): Default 1.2.
XLC Weight (Communication Services): Default 1.1.
XLG Weight (Large Cap Growth): Default 1.3.
XLI Weight (Industrials): Default 1.0.
XLF Weight (Financials): Default 1.0.
XLB Weight (Materials): Default 0.9.
XLE Weight (Energy): Default 0.9.
XLV Weight (Health Care): Default 0.8.
XLP Weight (Consumer Staples): Default 0.8.
XLU Weight (Utilities): Default 0.7.
XLRE Weight (Real Estate): Default 0.7.
PPA Weight (Aerospace & Defense): Default 0.9.
Adjustment Tips: Boost XLK/SOXX for tech-favorable markets; increase XLV/XLP for defensive phases.
Visualization Settings:
Show RS Line: Displays RS line (black) and 50-day MA (gray).
Show Blue Dot Divergence (Blue Dot): Marks divergence signals.
Show Dashboard: Enables the dashboard.
Dashboard Position: Choose locations like "Bottom Right".
3. Output Interpretation
RS Line: Black line shows stock strength vs. SPX; upward trend means outperforming. Gray line is 50-day MA—breaking above signals strength.
Blue Dot: Blue circle appears for RS leading price new highs (like a "coiled spring"), indicating potential low-risk entries. Confirm with: RS > 50-day MA and volume surge.
Dashboard:
RS Rating: Score 1–99; green (>80) for strong, yellow (50–80) neutral, red (<50) weak.
RS Trend: Green "Strong" or red "Weak".
Blue Dot: Blue "Present" or red "None".
Interpretation Analogy: RS Rating is like a stock's "health score"—above 80 is an "athlete" worth tracking for breakouts; Blue Dot is a "green light," but pair with volume to confirm true breakouts (avoid fakes).
4. Usage Examples
Screening Leaders: Add to AAPL chart—if RS Rating > 85 and Blue Dot appears, check if price nears VCP pivot; this is a low-risk buy setup.
Trend Judgment: Rising RS line with M.E.T.S. Stage 2 (uptrend) confirms trend-following trades.
Weight Tweaks: For defensive markets, raise XLV/XLU weights and recalculate RS Proxy.
5. Common Issues and Warnings
Q: Indicator not showing? A: Verify ETF symbols (e.g., AMEX:XLK) or switch timeframes.
Q: Inaccurate scores? A: Adjust periods/weights and backtest on historical data.
Q: Avoiding false breakouts? A: Combine with volume and support/resistance; Blue Dot is a alert, not a buy signal.
Warnings: Based on historical data; markets are volatile—use with other tools. Results are for reference only, not investment advice. Test in a demo account.
10x Multi-Timeframe SMA Suite📊 Professional Multi-Timeframe Simple Moving Average Indicator
Track up to 10 independent Simple Moving Averages from different timeframes on a single chart with full customization control.
✨ KEY FEATURES:
- 10 independent SMA lines
- Individual timeframe selection for each SMA (Daily, Weekly, Monthly, 4H, 1H, etc.)
- Flexible source options (Close, Open, High, Low, HL2, HLC3, OHLC4)
- Fully customizable colors
- Adjustable line thickness (1-5)
- Toggle on/off for each SMA
- Clean and intuitive interface
- Optimized for performance
🎯 DEFAULT SETTINGS:
First 4 SMAs are enabled by default:
- SMA 1: 200-period Daily (Red)
- SMA 2: 50-period Weekly (Blue)
- SMA 3: 100-period Weekly (Green)
- SMA 4: 200-period Weekly (Orange)
Additional 6 SMAs are ready to activate and customize as needed!
💡 PERFECT FOR:
- Multi-timeframe trend analysis
- Support and resistance level identification
- Long-term and short-term momentum tracking
- Professional traders who need multiple MAs simultaneously
⚡ Simple to use, powerful in functionality - All your moving averages in one indicator!
Daily SMA (Historical Plotting with RTH/ETH, (5))Daily SMA (RTH/ETH Dynamic Session Handling) — Midnight + RTH Open Locks
This indicator plots projected daily Simple Moving Averages (SMAs) on intraday charts by anchoring calculations to a Regular Trading Hours (RTH) daily SMA reference, while visualizing how the daily SMA evolves intraday during Extended Trading Hours (ETH) and RTH sessions.
When daily SMAs are evaluated strictly at the daily timeframe, they do not form a continuous intraday history and may appear flat on historical intraday bars until realtime bars begin updating. This script visualizes the daily SMA’s intraday progression while keeping the underlying daily SMA reference unchanged.
Purpose
Standard daily SMAs plotted on intraday charts are evaluated at the daily timeframe and therefore do not form a continuous intraday history. When charts are refreshed or reloaded, these values may appear flat until realtime data resumes.
This script addresses that visualization limitation by projecting the daily SMA across historical and realtime intraday bars, while keeping the daily SMA reference intact.
How it works
• Daily SMA seed values are sourced exclusively from an RTH-only daily timeframe series.
• At ETH midnight, the SMA seed is locked using completed daily closes from the RTH daily series.
• At the RTH open, the seed is re-locked using the completed RTH daily window.
• After each seed event, the SMA is projected intraday using the active chart bar’s price.
Price semantics
• Historical bars use fully closed candle data only.
• The realtime bar uses the last traded price until the candle closes.
• Once a bar closes, its value is final and does not repaint.
Higher-timeframe data usage
• request.security() is used intentionally to access daily SMA data.
• lookahead=barmerge.lookahead_on is used only to reference the developing daily timeframe value during the active session for projection purposes.
• No future bars are accessed and no historical values are retroactively altered.
Data integrity
• SMA seed values are derived solely from the daily timeframe and do not depend on intraday bar history.
• SMA values are computed forward from the locked seed and do not revise prior bars.
• If insufficient daily history exists for a symbol, values safely return na.
Scope and limitations
• Intended for chart timeframes up to and including daily.
• Designed for instruments with defined RTH sessions (such as equities and equity-based products).
• This script does not replace or modify the underlying daily SMA reference; it visualizes an intraday projection anchored to the RTH daily SMA.
Other notes
• Pine Script version: v6
• No future data access
• No historical repainting; only the active realtime bar updates until close
6 Moving Averages (SMA, WMA, EMA etc.)6 Moving Averages is a simple and flexible overlay indicator that lets you plot up to six moving averages on the price chart. Each moving average can be customized by type (SMA, EMA, WMA, etc.), length, color, and visibility, making it ideal for trend analysis, dynamic support and resistance, and moving-average confluence across any market or timeframe.
EMA 8 48 System v1Short Description:
A trend-following indicator using EMA crossovers, ATR-based volatility filter, and a cooldown period to reduce false signals. Designed for clear buy/sell signals in trending markets.
Full Description:
What is this indicator?
This script implements a dual EMA crossover system (8-period and 48-period EMAs) with a trend filter (EMA200), ATR-based volatility filter, and a cooldown period to avoid overtrading.
It visually plots EMAs, buy/sell signals, and ATR-based stop loss/target levels.
Why is it useful?
Helps traders identify high-probability trend entries and avoid choppy, low-volatility conditions.
Reduces false signals by requiring trend confirmation, sufficient volatility, and spacing out trades.
Suitable for intraday and swing trading on most liquid assets.
When to use:
Best used in markets showing clear trends (not sideways).
Works on most timeframes, but higher timeframes (15m, 1h, 4h, daily) tend to give more reliable signals.
How to spot buy and sell:
Buy: Green “BUY” label appears when EMA8 crosses above EMA48, price is above EMA200, and ATR is above the minimum threshold.
Sell: Red “SELL” label appears when EMA8 crosses below EMA48, price is below EMA200, and ATR is above the minimum threshold.
ATR-based stop loss and target levels are plotted for each signal.
Additional tips:
Adjust the minimum ATR and cooldown settings to match your asset’s volatility and your trading style.
Use in conjunction with price action or higher timeframe analysis for best results.
Avoid trading during low volatility or sideways markets, as signals may be less reliable.
Always backtest and forward-test before using live.
How to add signals and update settings:
Use the script’s input panel to adjust EMA lengths, ATR settings, minimum ATR, and cooldown period.
To add alerts, use TradingView’s “Add Alert” feature and select the buy or sell conditions from the script’s alert options.
For further customization, you can edit the script to add additional filters or notification logic.
This indicator is for educational purposes only. Always use proper risk management and do your own research before trading.
Disclaimer:
This script is for informational and educational purposes only and does not constitute financial advice or a recommendation to buy or sell any financial instrument.
Trading involves risk. Past performance is not indicative of future results. Always do your own research and use proper risk management.
The author is not responsible for any losses incurred from the use of this script. By using this script, you agree to take full responsibility for your trading decisions.
GK1 Long only Daily Trend Strategy Max 4 Positions Risk-BasedThis strategy buys strong uptrends on the daily chart, risks a fixed % of capital per trade, limits how many trades are open at once, and exits using a trailing volatility stop or when the trend weakens.
What kind of market does this work best in?
1.Strong, persistent trends
2.Index ETFs, sector ETFs, large-cap stocks
3.Bull markets or strong sector rotations
It will underperform in:
Sideways markets
Choppy ranges
High-frequency reversals
The market condition this is looking for " A healthy, established uptrend"
It only goes LONG (no shorts) and only when all of these are true:
Short-term trend is up:
14-day moving average > 50-day moving average
Long-term trend is bullish:
Price is above the 200-day moving average
Primary trend is improving:
200-day MA is rising (today > yesterday)
Volume is normal (not dead, not crazy):
Avoids illiquid days and blow-off spikes
Translation: “I only buy when the market is already strong and behaving normally.”
It can hold up to 4 positions at the same time
Designed for multiple signals across time, not over-trading
You choose a Risk % per trade (default = 1%)
That means: If the stop loss is hit, you lose ~1% of your total account
It uses ATR (Average True Range):
ATR measures how much the market normally moves
Stop loss = 2.5 × ATR
Position size =
(1% of account) ÷ stop distance
So:
Volatile market → smaller position
Calm market → bigger position
Exit #1: Trailing ATR stop (main exit)
Tracks the highest close since entry
Stop moves up only, never down
If price reverses by ~2.5 ATR → exit
📌 Translation:
“Let winners run, cut losers automatically.”
Exit #1: Trailing ATR stop (main exit)
Tracks the highest close since entry
Stop moves up only, never down
If price reverses by ~2.5 ATR → exit
📌 Translation:
“Let winners run, cut losers automatically.”
SMA Indicator Signals [MK]Overview
The SMA Indicator Signals indicator is designed to identify high-probability trend-following entries using a dual SMA system and RSI filtering. Unlike traditional crossover indicators that rely on ta.crossover (which often fails during volatile market gaps), this script uses state-based logic to capture signals even when the price "jumps" over the moving average.
The "Gap-Over" Problem Solved
In fast-moving markets or at market open, price often gaps significantly. If the price opens above the SMA 20 after being below it, a standard indicator usually misses the signal because no "physical" cross occurred on the chart.
This indicator compares the current state to the previous state. If the price is now above the SMA while previously being below, the signal triggers regardless of the gap.
Key Features
Persistent Signals: Unlike strategies that hide signals while a trade is active, this indicator plots an icon for every valid occurrence, allowing you to scale into positions or identify secondary entries.
Trend-Filtered: Long signals only appear when the 20 SMA is above the 50 SMA (and vice-versa for shorts).
RSI Guardrail: Built-in RSI logic prevents you from chasing "Longs" into overbought territory or "Shorts" into oversold conditions.
Universal Alerts: Includes pre-configured alertcondition calls for Longs, Shorts, or both.
How to Trade it
The Signal: Look for the Green (Long) or Red (Short) triangles.
User Discretion: Since this version removes automated ADX/Expansion filters, the trader should look at the "width" of the gap between the Blue (20) and Orange (50) SMAs. Wider gaps usually indicate stronger momentum.
Alerts: Create an alert and select "Any SSMA Signal" to be notified on your phone or desktop the moment a setup forms.
Settings
Fast SMA (20): Your primary trigger line.
Slow SMA (50): Your primary trend filter.
RSI Thresholds: Customize how "early" or "late" you want to be filtered out of a move based on momentum.
MA Momentum Score by WizkaThis is my explorative study script which I have named as MA Momentum Score. It calculates one score number (-10,+10) to describe the price and MA structure. It gives points on the order and direction of price and three moving averages so that bullish order (Price>MA20>MA50>MA200) gives +1 point to each pair, and bearish order gives -1 point. There are 6 comparisons (price and 3 MAs against each other). Addition to this +1 point is given if the direction of each is upwards, and -1 if downwards. So, altogether score can be from -10p (fully bearish structure) to +10p (fully bullish structure). This is shown as blue line in the indicator. It uses classic SMAs of 20,50,200 and it is called Slow score. Next, the similar score is calculated for faster MAs (5,12,26) and it is called Fast score (orange line). Finally, the differential Fast-Slow is calculated and visualized as histogram. Green, when Fast>Slow (bullish), and Red, when Fast
Day Trading Signals Trend & Momentum Buy/Sell [CocoChoco]Day Trading Signals: Trend & Momentum Buy/Sell
Overview
The indicator is a comprehensive day-trading tool designed to identify high-probability entries by aligning short-term momentum with long-term trend confluence.
It filters out low-volatility "choppy" markets using ADX and ensures you are always trading in the direction of the dominant higher-timeframe trend.
Important: Use on timeframes from 15 min to 2 hours, as the indicator is for day trading only.
How It Works
The script uses a three-layer confirmation system:
Trend Alignment: Uses a Fast/Slow SMA cross (10/50) on the current chart. Signal prints only if price closes above (for bullish) or below (for bearish) the 10-period SMA.
Higher Timeframe Confluence: The script automatically looks at a higher timeframe (1H for charts <=15m, and 4H for others) and checks if the price is above/below a 200-period SMA.
Momentum & Volatility: Signals are only triggered if the Stochastic Oscillator is rising/falling and the ADX is above 20, ensuring there is enough "strength" behind the move.
Visual Signals Buy/Sell
Green Label (Up Arrow): Bullish entry signal
Red Label (Down Arrow): Bearish entry signal.
Red "X": Exit signal based on a moving average crossover (trend exhaustion).
Visual Risk/Reward (1:1) Boxes: When a signal appears, the script automatically draws a projection of your Stop Loss (Red) and Take Profit (Green) based on the current ATR (Average True Range).
How to Use
Entry: Enter when a Label appears. Ensure the candle has closed to confirm the signal.
Stop Loss/Take Profit: Use the visual boxes as a guide. The default is 1.0 ATR for risk and 1.0 RR ratio, which can be adjusted in the settings.
Exit: Exit the trade either at the target boxes or when the Red "X" appears, indicating the trend has shifted.
Please note that this is just a tool, not financial advice. Perform your own analysis before entering a trade.
SMA Strategy [MK]Overview
This strategy is a momentum-based trend-following system designed to capture sustained market moves while minimizing "whipsaws" often found in sideways markets. It utilizes a dual-SMA filter for trend direction, a precise price-crossover trigger for entry, and the Average Directional Index (ADX) to gauge market strength.
How It Works
The strategy follows a strict "Trend + Momentum + Strength" hierarchy:
1. Trend Identification (The Filter) The script uses a Fast SMA (20) and a Slow SMA (50).
Long Bias: SMA-20 > SMA-50.
Short Bias: SMA-20 < SMA-50.
2. Precise Entry (The Trigger) Unlike strategies that enter simply because the price is above a line, this script requires a Price Crossover.
Long Entry: Price must actively cross from below to above the SMA-20.
Short Entry: Price must actively cross from above to below the SMA-20.
3. Trend Strength (The ADX Gatekeeper) To solve the problem of sideways markets where moving averages run parallel, we’ve integrated the ADX (Average Directional Index). The strategy will only trigger a trade if the ADX is above a user-defined threshold (default is 25), ensuring we only enter when the market is trending.
4. RSI Safety Filter To prevent "buying the top" or "selling the bottom," the RSI checks for overextended conditions. It prevents long entries if the RSI is already overbought and short entries if it is oversold.
Exit Logic
The strategy features three layers of protection:
Trend Reversal Exit: Closes the position if the price crosses back over the SMA-20 while the macro trend (SMA-20/SMA-50) has flipped.
Fixed Take Profit: A percentage-based target to lock in gains during sharp moves.
Fixed Stop Loss: A percentage-based safety net to protect capital.
Key Features
Directional Selector: Choose between "Long Only," "Short Only," or "Both."
Visual Feedback: Background colors highlight "Trending" (Green) vs "Sideways" (Red) market regimes.
Fully Customizable: All lengths and thresholds for SMAs, RSI, and ADX can be adjusted to fit different assets and timeframes.
Instructions for Use
Timeframe: This strategy is optimized for trending timeframes such as the 1-Hour (1H), 4-Hour (4H), or Daily (D). Using it on very low timeframes (1-minute or 5-minute) may increase the number of false signals due to market noise.
Asset Classes: Best suited for high-volume assets like Major Forex Pairs, Large-Cap Stocks, and Blue-Chip Cryptocurrencies.
Parameter Tuning: Use the "Strategy Tester" to find the ideal ADX Threshold for your specific asset. Volatile assets usually require a higher ADX (30+) to filter out fake breakouts.
Disclaimer
Financial Risk Warning: The script provided is for educational and informational purposes only. Trading involves significant risk, and there is always the potential for loss. Past performance, whether simulated or real, is not a guarantee of future results.
The author of this script is not a financial advisor. This indicator is not a signal service or a recommendation to buy or sell any security. Always perform your own due diligence and test any strategy thoroughly on a demo account before risking live capital. By using this script, you acknowledge that you are solely responsible for your trading decisions and any resulting financial outcomes.
Step SMAStep SMA – Block-Based Moving Average
Description:
Step SMA is a simple, block-based moving average that shows price trends in discrete steps. Instead of a continuous moving average, it divides the chart into fixed-length blocks and calculates an SMA within each block. At the start of each new block, the average resets, creating a clear “step” effect.
How it Works:
• Block Length: Set the number of bars per block (Block SMA Length).
• Step SMA Calculation: Computes the average of closes within each block. At the end of a block, the calculation resets for the next one.
• Restart Circles: Optional circles mark the first bar of each block for easy visual reference.
• Visual Defaults: The SMA line defaults to bright cyan (width 3) and restart circles default to orange (max size). All colors, line width, and circle size can be customized in the Style tab.
Key Features:
• Stepwise SMA for clear, block-level trend visualization
• Optional restart circles to highlight block starts
• Fully customizable styling via the Style tab
• Simple block length input to adjust sensitivity
Use Cases:
• Easily see short-term trends within discrete blocks
• Identify points where trend averages reset
• Compare block-level trends to standard SMA or EMA
Momentum Trend & Ignition DashboardDescription
Rationale & Originality Traders often struggle with chart clutter, needing separate indicators for Moving Averages, Volume anomalies, and Fundamental stats (like 52-week highs or Float). This script solves this problem by creating a unified "Momentum Dashboard." It is not just a collection of averages; it is a purpose-built tool for Breakout and Trend Following strategies (such as CAN SLIM or VCP).
The uniqueness of this script lies in its "Confluence Logic": it allows a trader to instantly validate a setup by checking three pillars simultaneously without changing tabs:
Trend: Are the key MAs (20, 50, 100, 200) stacked correctly?
Ignition: Is there a "Power Play" (Big Price Move + Heavy Volume) occurring right now?
Stats: Is the stock near its 52-week high, and does it have a supportive Up/Down Volume Ratio?
How It Works (Detailed Calculations)
1. Custom Trend Ribbon (4x MA Mix):
The script plots 4 independent Moving Averages.
Innovation: Unlike standard inputs, each MA can be individually toggled between SMA (Simple) or EMA (Exponential). This allows traders to mix "Fast" trend lines (e.g., 10 or 20 EMA) with "Slow" institutional lines (e.g., 50 or 200 SMA) in one overlay.
2. "Purple Dot" Ignition Detection:
This features a custom detection algorithm for "Ignition Bars."
Logic: It compares the current candle's Close to the previous Close. If the move exceeds a user-defined threshold (default 5%) AND the Volume exceeds a fixed liquidity threshold (default 500k), a Purple Dot is plotted.
This filters out "low volume drift" and highlights true institutional participation.
3. Relative Volume (RVol) Engine:
Calculates the ratio of Current Volume to the 50-period SMA of Volume.
Visuals: If the ratio exceeds the user threshold (e.g., 1.5x average), the dashboard highlights the data, and optionally the chart bars, alerting the trader to unusual activity.
4. Statistical Dashboard (Data Panel):
Using request.security, the panel fetches daily timeframe data regardless of the chart view.
52-Week & 13-Week H/L: Calculates the percentage distance from these key levels to gauge overhead supply.
U/D Ratio: Calculates the sum of volume on "Up Days" vs. "Down Days" over 50 periods. A value > 1.0 suggests institutional accumulation.
Float %: (Stocks Only) Fetches financial data to show the percentage of shares available for trading.
How to Use This Script
This script is designed for Trend Following and Breakout Trading:
The Setup: Use the Data Panel to find stocks with a U/D Ratio > 1.0 and price within 15% of the 52-Week High.
The Trend: Ensure price is above the MA 2 (set to 50 SMA) and MA 4 (set to 200 SMA) to confirm a Stage 2 uptrend.
The Trigger: Watch for the Purple Dot.
If a Purple Dot appears as price breaks out of a consolidation (base), it confirms institutional buying.
Use the RVol panel to confirm that volume is at least 1.5x normal levels.
Risk Management: Use the MA 1 (set to 20 EMA) as a trailing stop-loss during strong trends.
Settings & Configuration
MAs: Fully adjustable Length and Type (SMA/EMA).
Big Move (Purple Dot): Adjust the % Move based on asset volatility (e.g., use 3% for Large Caps, 10% for Crypto).
Table: The data panel is fully dynamic. You can toggle specific rows (like Float or SMA distance) On/Off to save screen space, and position it anywhere on the chart.
Credits & References
The concept of Relative Volume (RVol) and U/D Ratio is derived from standard Volume Analysis used by William O'Neil.
The "Big Move" combined with Volume thresholds is based on standard Volume Spread Analysis (VSA) concepts regarding "Effort vs. Result."
Financial data fetch (Float) utilizes TradingView's built-in financial() library.
SMAcross-mvrOverview
SMAcross-mvrNew is a flexible, non-repainting moving-average strategy designed for clarity, configurability, and reliable backtesting.
It supports multiple entry styles, optional layered exits, and full-capital position sizing, while remaining stable during chart zooming and dragging.
🚀 What’s New in v2
✅ Multiple Entry Modes
You can now choose how trades are entered:
Entry Mode A: Short SMA crosses Long SMA
Entry Mode B: Price crosses Long SMA
This allows both classic MA-crossover trading and trend-continuation pullback entries using the same strategy.
✅ Modular Exit System (Checkbox-Based)
Exit logic is now fully modular using independent checkboxes:
☑ Exit on opposite signal
☑ Exit when price closes beyond Short SMA
You may enable one, both, or neither.
If both are enabled, the strategy exits on whichever condition occurs first.
✅ Terminology Clarity
All labels, inputs, and alerts now use semantic naming:
Short SMA (formerly 13 SMA)
Long SMA (formerly 30 SMA)
This makes the strategy easier to understand and future-proof if SMA lengths are changed.
✅ Full-Capital Position Sizing
Each trade uses 100% of available equity, allowing performance to naturally compound over time during backtests.
✅ Optional Visual Enhancements
Optional cross price labels (can be toggled on/off)
Color-filled zone between Short and Long SMAs for quick trend recognition
Optional 200 SMA (off by default) for higher-timeframe context
✅ Alert-Ready (TV-Safe)
All alerts use static messages compatible with TradingView’s alert system, making the strategy suitable for:
Manual trade notifications
Webhook-based automation
Broker integrations
🔒 Design Principles
No repainting
No line continuations (TradingView-safe formatting)
Stable behavior when zooming or scrolling
Clear separation of entry logic, exit logic, and visuals
⚠️ Notes
This script is intended for educational and research purposes.
Always forward-test and apply proper risk management before live trading.
Simple ema and sma cross
A simple EMA and SMA cross is an indicator that uses alpha from two moving averages: SMA (simple moving average) and EMA (exponential moving average).
The point where the EMA and SMA cross is usually a good place to enter a position.
The indicator includes smoothing settings to help you find the right calibration for your trading needs.
It also marks signals with triangles for easier use and includes alerts so you never miss a cross.






















