Two MA Crossover with Labels//@version=5
indicator("Two MA Crossover with Labels", overlay=true)
// === Input Parameters ===
shortPeriod = input.int(10, title="Short MA Period")
longPeriod = input.int(100, title="Long MA Period")
// === Moving Averages ===
shortMA = ta.sma(close, shortPeriod)
longMA = ta.sma(close, longPeriod)
// === Plotting MAs ===
plot(shortMA, color=color.orange, title="Short MA")
plot(longMA, color=color.blue, title="Long MA")
// === Crossover Conditions ===
bullishCross = ta.crossover(shortMA, longMA)
bearishCross = ta.crossunder(shortMA, longMA)
// === Labels ===
if bullishCross
label.new(bar_index, low, "Buy", style=label.style_label_up, color=color.green, textcolor=color.white)
if bearishCross
label.new(bar_index, high, "Sell", style=label.style_label_down, color=color.red, textcolor=color.white)
Moving Averages
Trend StrengthTrend Strength Dashboard (11-Point System)
Description:
This indicator is a visually enhanced dashboard that evaluates 11 key technical signals to assess bullish momentum for stocks and ETFs. Each condition is displayed in a easy reading table for quick interpretation and visual appeal.
Signals include:
Higher highs and higher lows
Price above EMA21 and SMA200
SMA50 > SMA200
Positive slope on SMA50 and SMA200
RSI trending upward
Ideal for traders who want a clean, at-a-glance summary of market strength without scanning multiple charts or indicators.
Gabriel's Weibull Stdv. SuperTrend📈 Gabriel's Weibull Stdv. SuperTrend
Description:
Gabriel’s Weibull Stdv. SuperTrend is a custom trend-following indicator that blends the statistical rigor of the Weibull Moving Average with the adaptive nature of the Standard Deviation-based SuperTrend.
This hybrid system dynamically adjusts its trend bands using a Weibull-weighted average, emphasizing more recent price action while allowing the curve to flexibly adapt based on two key Weibull parameters: Shape (k) and Scale (λ). The bands themselves are shifted by a multiple of standard deviation, offering a volatility-sensitive approach to trend detection.
🔧 Key Components:
Weibull Moving Average (WMA):
A smoothing function that assigns weights to historical prices using the Weibull distribution, controlled via Shape and Scale parameters.
SuperTrend Logic with Adaptive Bands:
Standard deviation is calculated over a user-defined length and scaled with a factor to set upper and lower thresholds around the WMA.
Trend Direction Detection:
The algorithm identifies bullish or bearish states based on crossover logic relative to the dynamic bands.
Visual Enhancements:
Bright green/red lines for SuperTrend direction.
Midpoint overlay and color-coded candles for clarity.
Filled zones between price and trend for visual emphasis.
⚙️ User Inputs:
Source: Price data to analyze (default: close).
Stdv. Length: Period for calculating standard deviation.
Factor: Multiplier to widen or narrow the SuperTrend bands.
Window Length: Lookback period for the Weibull MA.
Shape (k): Controls the skewness of the Weibull distribution.
Scale (λ): Stretches or compresses the weighting curve.
🔔 Alerts:
Long Entry Alert: Triggered when the trend flips bullish.
Short Entry Alert: Triggered when the trend flips bearish.
🧠 Use Cases:
Catch early reversals using custom-tailored smoothing.
Identify high-confidence trend shifts with dynamic volatility.
Combine with other confirmation indicators for enhanced entries.
HMA Trend Line (Croc Signal Line)HMA Trend Line (Croc Signal Line) — The Ultimate Hull Moving Average Trend Indicator
Full English description here:
What is the HMA Trend Line (Croc Signal Line)?
The HMA Trend Line (Croc Signal Line) is a powerful, adaptive trend indicator for TradingView, based on the Hull Moving Average (HMA). This indicator is designed to help traders identify real market trends with less lag and reduced noise compared to traditional moving averages like SMA (Simple Moving Average) and EMA (Exponential Moving Average).
Why use the HMA Trend Line?
+ Faster Trend Detection: The Hull Moving Average (HMA) responds more quickly to price action, giving you earlier buy and sell signals.
+ Smoother and Cleaner: It provides a visually clean trend line that avoids the choppiness of classic EMAs and SMAs.
+ Reduced Lag: The HMA Trend Line follows the market closer, helping you avoid late entries or exits and spot trend reversals sooner.
+ Dynamic Support and Resistance: Use the line as a dynamic support or resistance to manage trades and identify pullbacks or breakouts.
What does “Croc Signal Line” mean?
The “Croc” in Croc Signal Line stands for:
+ Clean
+ Responsive
+ Optimized
+ Curve
This highlights the unique advantage of this indicator: a curve that is both fast-reacting and smooth, helping traders focus on real trends and filter out market noise.
How does the Hull Moving Average (HMA) work?
The HMA was developed by Alan Hull and uses weighted moving averages and a unique calculation to deliver both responsiveness and smoothness. Unlike standard moving averages, the HMA reacts faster to new price moves and avoids false signals in ranging or volatile markets.
How to use the HMA Trend Line (Croc Signal Line) on TradingView?
+ Watch for price crossing above the trend line for potential bullish signals, and below for bearish signals.
+ Use on any timeframe: from 1-minute scalping to daily, weekly, or even monthly charts.
+ Works with all asset classes: Forex, stocks, indices, cryptocurrencies, commodities, and futures.
+ Combine with other indicators (like Stochastics, RSI, or volume) for confirmation and to build your unique trading strategy.
+ Adjust the Signal Line Period for your market and style: shorter periods for faster markets, longer for smoother trends.
Who should use this indicator?
+ Day traders, swing traders, and long-term investors looking for reliable, actionable trend signals.
+ Anyone seeking a cleaner, more responsive alternative to the classic moving averages.
+ Traders who want a simple, visually clear way to filter out market noise and see real price direction.
Disclaimer:
This indicator is for educational and study purposes only. Please perform your own backtesting and analysis before using it in live trading. This script does not constitute financial advice. Use at your own risk.
--------
EMA9 vs EMA20 (Estilo MACD, eje acotado)🔷 What does it do?
Plots a moving line that represents the difference between the 9-period EMA and the 20-period EMA.
The zero level acts as the baseline (i.e., EMA20).
Every time the line crosses zero:
📈 Bullish crossover → EMA9 crosses above EMA20.
📉 Bearish crossover → EMA9 crosses below EMA20.
🔒 Visual clarity:
The chart is locked between -600 and +600, making crossovers easy to see without scaling issues.
Perfect for confirming trend direction or momentum shifts.
🔔 Built-in alerts:
You can set alerts for both bullish and bearish crossovers directly in TradingView.
🧠 MACD-inspired, but cleaner:
Instead of multiple lines and a histogram, you get one clean line moving around a fixed axis. Simple and powerful.
⚙️ Works with:
✅ TradingView (Pine Script v5)
✅ Any asset and any timeframe
📩 Want the source code? DM me and I’ll send it to you 🔧
Let me know if you'd like me to make a flyer or visual version of this too!
Momentum_EMABand📢 Reposting this script as the previous version was shut down due to house rules. Follow for future updates.
The Momentum EMA Band V1 is a precision-engineered trading indicator designed for intraday traders and scalpers. This first version integrates three powerful technical tools — EMA Bands, Supertrend, and ADX — to help identify directional breakouts while filtering out noise and choppy conditions.
How the Indicator Works – Combined Logic
This script blends distinct but complementary tools into a single, visually intuitive system:
1️⃣ EMA Price Band – Dynamic Zone Visualization
Plots upper and lower EMA bands (default: 9-period) to form a dynamic price zone.
Green Band: Price > Upper Band → Bullish strength
Red Band: Price < Lower Band → Bearish pressure
Yellow Band: Price within Band → Neutral/consolidation zone
2️⃣ Supertrend Overlay – Reliable Trend Confirmation
Based on customizable ATR length and multiplier, Supertrend adds a directional filter.
Green Line = Uptrend
Red Line = Downtrend
3️⃣ ADX-Based No-Trade Zone – Choppy Market Filter
Manually calculated ADX (default: 14) highlights weak trend conditions.
ADX below threshold (default: 20) + Price within Band → Gray background, signaling low-momentum zones.
Optional gray triangle marker flags beginning of sideways market.
Why This Mashup & How the Indicators Work Together
This mashup creates a high-conviction, rules-based breakout system:
Supertrend defines the primary trend direction — ensuring trades are aligned with momentum.
EMA Band provides structure and timing — confirming breakouts with retest logic, reducing false entries.
ADX measures trend strength — filtering out sideways markets and enhancing trade quality.
Each component plays a specific role:
✅ Supertrend = Trend bias
✅ EMA Band = Breakout + Retest validation
✅ ADX = Momentum confirmation
Together, they form a multi-layered confirmation model that reduces noise, avoids premature entries, and improves trade accuracy.
💡 Practical Application
Momentum Breakouts: Enter when price breaks out of EMA Band with Supertrend confirmation
Avoid Whipsaws: Skip trades during gray-shaded low-momentum periods
Intraday Scalping Edge: Tailored for lower timeframes (5min–15min) where noise is frequent
⚠️ Important Disclaimer
This is Version 1 — expect future enhancements based on trader feedback.
This tool is for educational purposes only. No indicator guarantees profitability. Use with proper risk management and strategy validation.
Mickey's EMAMickey’s EMA is a lightweight, overlay indicator that combines two Exponential Moving Averages (EMAs) with automatic entry, stop-loss and target visual signals—plus dynamic JSON alerts for seamless webhook integration. It’s designed for both day-traders and swing-traders who want clear, on-chart cues and fully-customizable risk parameters.
🔍 Overview
Dual EMAs (fast & slow) to capture trend changes.
Automated “BUY” / “SELL” markers at every EMA crossover.
Customizable Stop-Loss % and Target % levels, plotted as ❌ and 🎯 bubbles.
“SL Hit (Custom)” if the opposite EMA crossover occurs before price touches your stop level.
JSON-formatted alerts containing ticker, instrument type, timeframe, trend (“CE” for bullish, “PE” for bearish), and price—ready for webhooks.
⚙️ Inputs
| Setting | Default | Description |
| ------------------------ | ------- | ----------------------------------------------- |
| **Fast EMA Length** | 20 | Period for the faster EMA. |
| **Slow EMA Length** | 200 | Period for the slower EMA. |
| **Price Source** | Close | Data series to calculate EMAs on. |
| **Custom Stop Loss %** | 0.1% | Stop-loss level as a percentage of entry price. |
| **Target %** | 0.5% | Profit-target level as a percentage of entry. |
| **Show Entry/SL/Target** | ON | Toggle all entry, SL and target visuals. |
📊 What It Plots
Fast EMA (blue) & Slow EMA (white) overlayed on price.
BUY 🟢 label below bar when Fast EMA crosses above Slow EMA.
SELL 🔴 label above bar when Fast EMA crosses below Slow EMA.
❌ (Custom) bubble at entry price if an opposite EMA crossover occurs before price hits your custom stop-loss.
❌ bubble at the stop-loss price when price actually breaches the stop level.
🎯 bubble at target price when price first reaches your profit-target level.
🔔 Alerts & Webhooks
On-screen alert conditions “Mickey’s EMA → BUY” and “Mickey’s EMA → SELL” appear in the Create-Alert dialog.
Dynamic JSON payload sent via alert() when a crossover fires, e.g.:
{
"script": "AAPL",
"scriptType": "equity",
"instrumentType": "NASDAQ",
"timeframe": "5",
"trend": "CE",
"price": 174.25
}
Use these alerts to integrate with bots, chat systems, manual, or any webhook-driven workflow.
🚀 Why Use Mickey’s EMA?
Clarity & Precision: All signals appear exactly at the EMA or price-level of interest.
Custom Risk Management: Define your own stop-loss and target percentages.
Seamless Automation: Dynamic JSON alerts mean zero manual setup for webhooks.
Versatile: Equally effective on intraday charts or daily/weekly timeframes.
Add Mickey’s EMA to your TradingView chart today and get instant, aesthetically-pleasing guidance on trend entries, risk exits, and profit targets—all in one elegant overlay.
Fractal Flow BandsFractal Flow Bands
A high-precision trend-following system combining HalfTrend logic with ALMA smoothing — built for clarity, speed, and smart alerts.
🔷 What is Fractal Flow Bands?
Fractal Flow Bands merges the best of both worlds:
HalfTrend for accurate trend detection
ALMA (Arnaud Legoux Moving Average) for smooth, low-lag confirmation
This unique synergy delivers clean, non-repainting Buy/Sell signals, filtering out market noise and keeping your chart crystal clear.
🔍 How It Works
Blue HalfTrend Line + Green ALMA Crossover → BUY
Red HalfTrend Line + Red ALMA Crossover → SELL
You get only ONE alert per trend change, eliminating spammy notifications. Perfect for swing traders, scalpers, and trend followers alike.
⚙️ Core Features
✅ Dual Confirmation Engine
ALMA must confirm HalfTrend — no single-line tricks here.
✅ One Alert per Trend Shift
Clean signals, no noise, no repeats.
✅ Visual Clarity
Color-coded trends. No channels, ribbons, or clutter.
✅ Customizable Settings
Tune HalfTrend amplitude and ALMA smoothness to your strategy.
🎯 Best For
Swing traders wanting confirmation before entries
Scalpers needing fast, accurate signal flow
Anyone who hates messy charts but loves sharp decisions
🛠 Settings Explained
Setting Description
HT Amplitude Controls HalfTrend sensitivity
ALMA Length / Offset / Sigma Adjusts the smoothness of ALMA
Source Choose price source (Close, Open, etc.)
Display Toggles Enable/disable arrows and ribbons
Colors Fully customizable trend color schemes
✅ Built-in Alerts — So you never miss a signal again.
⚡ Lag-free performance — Works on multiple timeframes.
📈 Real strategy-ready code — Not just another repainting overlay.
Fractal Flow BandsFractal Flow Bands
A high-precision trend-following system combining HalfTrend logic with ALMA smoothing — built for clarity, speed, and smart alerts.
🔷 What is Fractal Flow Bands?
Fractal Flow Bands merges the best of both worlds:
HalfTrend for accurate trend detection
ALMA (Arnaud Legoux Moving Average) for smooth, low-lag confirmation
This unique synergy delivers clean, non-repainting Buy/Sell signals, filtering out market noise and keeping your chart crystal clear.
🔍 How It Works
Blue HalfTrend Line + Green ALMA Crossover → BUY
Red HalfTrend Line + Red ALMA Crossover → SELL
You get only ONE alert per trend change, eliminating spammy notifications. Perfect for swing traders, scalpers, and trend followers alike.
⚙️ Core Features
✅ Dual Confirmation Engine
ALMA must confirm HalfTrend — no single-line tricks here.
✅ One Alert per Trend Shift
Clean signals, no noise, no repeats.
✅ Visual Clarity
Color-coded trends. No channels, ribbons, or clutter.
✅ Customizable Settings
Tune HalfTrend amplitude and ALMA smoothness to your strategy.
🎯 Best For
Swing traders wanting confirmation before entries
Scalpers needing fast, accurate signal flow
Anyone who hates messy charts but loves sharp decisions
🛠 Settings Explained
Setting Description
HT Amplitude Controls HalfTrend sensitivity
ALMA Length / Offset / Sigma Adjusts the smoothness of ALMA
Source Choose price source (Close, Open, etc.)
Display Toggles Enable/disable arrows and ribbons
Colors Fully customizable trend color schemes
✅ Built-in Alerts — So you never miss a signal again.
⚡ Lag-free performance — Works on multiple timeframes.
📈 Real strategy-ready code — Not just another repainting overlay.
Delorean EMAs NSYNC Bye, Bye, Bye# Delorean EMA Trend Alerts - Multi-Timeframe Edition
A Pine Script indicator for TradingView that tracks exponential moving averages (EMAs) across multiple timeframes and generates alerts only when both 1-hour and 4-hour charts agree on the trend direction. As NSYNC says, if the timeframes don't agree, your money will go "Bye, Bye, Bye!"
## Features
- Displays 5 EMAs (5, 13, 50, 200, 800 periods)
- **Multi-Timeframe Analysis**: Checks both 1H and 4H charts simultaneously
- **Trend Agreement Required**: Only signals when BOTH timeframes show the same trend
- Detects bullish trends: 50 EMA > 200 EMA > 800 EMA (on both 1H and 4H)
- Detects bearish trends: 50 EMA < 200 EMA < 800 EMA (on both 1H and 4H)
- **NSYNC Warning**: Orange warning when timeframes disagree
- Visual trend signals with up/down arrows (only when timeframes agree)
- Background coloring: Green (bullish), Red (bearish), Orange (no sync)
- **Status Table**: Shows trend status for each timeframe
- Customizable alert conditions
- Multiple alert types: Bullish, Bearish, NSYNC Warning, Alignment
Panel Pro+ Quantum SmartPromptPanel Pro+ Check 2.0
*It's a panel with integrated artificial intelligence in offline mode.
*It provides live chart prompts.
*It recognizes market types, such as bullish, bearish, box, sideways, volatile, etc.
*It performs a comprehensive evaluation and takes buy or sell actions, with the corresponding profit-taking.
[Top] LHAMA Consolidation DetectorIntroducing the Low-High Adaptive Moving Average (LHAMA 🦙), a powerful tool designed to help traders visually distinguish between trending and consolidating market phases. Unlike traditional moving averages that can produce false signals in choppy markets, the LHAMA is engineered to flatten out during periods of consolidation and become more responsive when a clear trend emerges.
This indicator's primary function is to act as a "Consolidation Detector." When the LHAMA line goes flat and adopts its "Flat Color," it serves as a clear visual cue that the market is range-bound. Conversely, when the line begins to slope and changes to its Bullish or Bearish color, it signals a potential breakout or the start of a new trend.
How It Works
The LHAMA is a type of adaptive moving average. Its adaptiveness is derived from a unique calculation that measures market "trendiness." It does this by tracking whether new highs or new lows are being made within a specified lookback period.
In a Trending Market: When the price consistently makes new highs or lows, the indicator's responsiveness increases, causing the LHAMA to track the price much more closely and responsively.
In a Consolidating Market: When the price is range-bound and fails to make new highs or lows, the responsiveness decreases significantly. This causes the LHAMA to flatten out and become less sensitive to minor price fluctuations, effectively filtering out market noise.
Key Features
Adaptive Calculation: The core engine of the indicator, which automatically adjusts its smoothing based on trend strength.
Slope-Based Coloring: The line's color dynamically changes based on its slope, providing an at-a-glance view of market conditions: bullish, bearish, or flat.
Multi-Line & Multi-Timeframe (MTF): You can enable up to six fully customizable LHAMA lines. Each line can be configured with its own length, colors, and can even be set to a different timeframe, allowing for comprehensive multi-timeframe analysis on a single chart.
Volatility Clouds: Each LHAMA can display an optional cloud around it. The cloud's width is based on your choice of either the Average True Range (ATR) or Standard Deviation (StdDev), offering a visual representation of volatility.
Volume Weighting: An option to incorporate volume into the adaptive calculation, making the LHAMA even more responsive during high-volume price movements.
How to Use
Identify Consolidation: The primary use case. A flat and consistently colored LHAMA line is a strong indication of a sideways or consolidating market. This can help traders avoid taking trend-following trades in choppy conditions.
Confirm Trends: When the LHAMA begins to slope upwards or downwards and changes to its trend color, it can be used to confirm the direction and strength of a new trend. The steeper the slope, the stronger the momentum, and more solid the directional color.
Dynamic Support & Resistance: Like other moving averages, the LHAMA can act as a dynamic level of support in an uptrend or resistance in a downtrend. The optional cloud can further define these zones.
Multi-MA Ribbon Strategy: By enabling multiple LHAMAs with different lengths (e.g., Fibonacci sequence like 14, 21, 34, 55), you can create a ribbon. The expansion of the ribbon indicates a strong trend, while its contraction signals a weakening trend or consolidation.
Settings Explained
Enable 🦙 Line: A simple checkbox to turn each of the six LHAMA lines on or off.
Length: The lookback period for the LHAMA calculation. Shorter lengths are more responsive, while longer lengths are smoother.
Timeframe: Set a specific timeframe for each LHAMA. Leave blank to use the chart's current timeframe.
Volume Weight: If checked, adds volume weighting to make the LHAMA more responsive to high-volume moves.
Colors (Bullish, Bearish, Flat): Customize the colors for each market state. To only see the line during consolidation, set the Bullish and Bearish colors to 100% transparency. To hide the line during consolidation, set the Flat color to 100% transparency.
Color Sensitivity: This is a crucial setting. Because price scales (tick sizes) vary widely between symbols, this setting allows you to adjust the sensitivity of the slope detection. A lower value requires a steeper slope to trigger a trend color, while a higher value is more sensitive.
Recommended settings are provided in the input tooltip as a starting point:
$5 Tick: 0.25 Sensitivity
$1 Tick: 0.75 Sensitivity
$0.25 Tick: 3 Sensitivity
$0.01 Tick: 50 Sensitivity
$0.005 Tick: 100 Sensitivity
Cloud Settings:
Show Cloud: Toggles the visibility of the volatility cloud around the LHAMA.
Width Based On: Choose between "ATR" or "StdDev" to calculate the cloud's width.
Cloud Length & Width: Set the lookback period and multiplier for the ATR/StdDev calculation to control the size of the cloud.
Renko Brick Zone NeelBrick indicator is a brick zone indicator, plotted not in histogram style but instead with a moving average plotted along with it.
40 period is count of same color brick difference between green and red is always 40
40-period brick indicator line and 40-period moving average line of the brick indicator.
Advanced Trend Panel v3.0Advanced Trend Panel v3.0 is a comprehensive indicator that analyzes market trends across multiple timeframes. It combines long-term and short-term EMAs, ADX for trend strength, RSI, Volume Profile (POC), and volume comparisons. The script calculates trend duration (in bars or time units) and provides a higher-timeframe forecast for context. All data is displayed in a customizable table with adjustable position and text size.
Key Features:
- Long/Short Trend States with Duration
- Trend Strength via ADX
- Price vs. POC
- RSI Overbought/Oversold
- Volume Analysis
- Higher TF Trend Forecast
- Optional Plots for EMAs and POC Line
Customize inputs to fit your strategy. This script is for educational purposes and not financial advice. Use at your own risk.
rEMAExpColor Moving Average Indicator This indicator can intuitively show the current state of market power
Suitable for price action traders
Sma-vwap @AnlATAbiliyormuyumThis indicator uses a simple moving average (SMA). When the price moves above the average, it can be considered as a buy signal, and when it falls below, as a sell signal. In addition, weekly, monthly, 3-month, 6-month, and yearly VWAPs have been added. The price's movements above and below these VWAPs can also be evaluated accordingly. Stay in peace and enjoy.
Multiple SMAsPlots multiple SMAs in a single indicator.
This script only plots the SMAs if the timeframe is set to daily.
- SMA10 in light blue
- SMA20 in yellow
- SMA50 in red
- SMA100 in green
- SMA200 in blue
It also plots the crosses between SMA20 and SMA50
EMA Pullback Indicator [ATR-based]🟦 EMA Pullback Indicator
This indicator identifies pullbacks in trending markets using the crossover of two EMAs (Fast and Slow). When a pullback occurs during a valid trend, an entry is triggered after price resumes in the trend direction. ATR is used to dynamically calculate stop-loss and take-profit levels.
🔍 Strategy Logic:
Trend Detection: EMA(8) vs EMA(21)
Pullback Zones:
In a bullish trend, a pullback is when price dips below the Fast EMA
In a bearish trend, a pullback is when price rises above the Fast EMA
Entry Trigger: Re-entry into trend direction after pullback
Stop Loss / Take Profit:
Based on ATR × SL/TP multipliers
Exit Options:
TP/SL Hit
Exit on new pullback (optional toggle)
Multiple Entry Toggle: Choose whether to allow multiple pullback entries or not
⚙️ Inputs:
Fast EMA Length
Slow EMA Length
ATR Period
SL Multiplier
TP Multiplier
Allow Multiple Entries
Exit on New Pullback
📊 Visuals:
Colored EMAs and fill zone between them
Grey bars during pullback
Blue/Black trend bar colors
Entry markers and TP/SL levels with labels
Real-time ATR display in corner
📢 Alerts Included:
Long/Short Pullback Entry
Take Profit Hit
Stop Loss Hit
10kaDum by NAVHere's a comprehensive description for publishing your "10kaDum by NAV" script on TradingView:
---
# 🎯 10kaDum by NAV - Advanced SMA Alignment Trading System
**A comprehensive trading strategy that combines SMA alignment signals with intelligent dip-buying and automated profit-taking mechanisms.**
## 📊 Strategy Overview
The 10kaDum system identifies optimal entry and exit points using Simple Moving Average (SMA) alignment patterns, while providing additional opportunities through systematic dip buying and profit taking.
### Core Signals:
🟢 **MAIN BUY**: Triggers when Close < SMA20 < SMA50 < SMA200 (bearish alignment - potential reversal)
🟡 **10kaDum BUY**: Secondary buy signal when price drops 10% after main buy (dollar-cost averaging)
🟠 **10kaDum SELL**: Exit signal when price rises 10% from 10kaDum buy (quick profit taking)
🔴 **MAIN SELL**: Exit signal when Close > SMA20 > SMA50 > SMA200 (bullish alignment - trend reversal)
## 🔥 Key Features
### Smart Signal Management
- **One-time signals**: Each signal triggers only once until the opposite condition occurs
- **No signal spam**: Clean, actionable entries without repetitive alerts
- **Cycle-based logic**: Complete trading cycles from entry to exit
### Performance Analytics
- **Real-time statistics table** with configurable position and styling
- **Closed Trades**: Total number of completed 10kaDum cycles
- **Average Days**: Mean holding period for 10kaDum positions
- **Minimum Days**: Fastest trade completion time
- **Min Days Date**: When the fastest trade occurred
### Advanced Label System
- **Performance metrics**: Days held, gain percentage, and CAGR on exit signals
- **Calendar days calculation**: Accurate time-based performance (not just bars)
- **Anti-overlap positioning**: Smart label placement to avoid chart clutter
- **Fully customizable**: Colors, sizes, and text styling
### Professional Customization
- **Label colors**: Separate color controls for each signal type
- **Table styling**: Full control over fonts, colors, and positioning
- **Position controls**: Precise offset adjustments for optimal visibility
- **Alert system**: Built-in alerts for all signal types
## 📈 Trading Logic
**Entry Strategy:**
1. Wait for bearish SMA alignment (potential bottom)
2. Enter initial position on MAIN BUY
3. Add to position on 10% dips (10kaDum BUY)
**Exit Strategy:**
1. Take quick profits on 10kaDum positions (+10% gain)
2. Hold main position until bullish SMA alignment
3. Full exit on MAIN SELL signal
## 🎨 Visual Elements
- **SMA Lines**: 20, 50, and 200-period moving averages
- **Colored Labels**: Distinct visual signals for each action
- **Statistics Table**: Live performance tracking
- **Clean Design**: Minimal chart clutter with maximum information
## ⚡ Best Practices
- Use on daily or higher timeframes for best results
- Combine with volume analysis for confirmation
- Monitor the statistics table for strategy performance
- Adjust position sizes based on signal type
- Set alerts for hands-free trading
## 🔧 Customization Options
- **9 table positions** (top, middle, bottom × left, center, right)
- **5 font sizes** (tiny to huge)
- **Full color customization** for all elements
- **Adjustable label spacing** for different chart scales
- **Toggle statistics display** on/off
---
**Disclaimer**: This indicator is for educational purposes. Past performance doesn't guarantee future results. Always practice proper risk management and consider your financial situation before trading.
**Created by**: NAV
**Version**: 1.0
**Category**: Strategy / Trend Analysis
---
This description highlights the key features, provides clear usage instructions, and maintains a professional tone suitable for TradingView's marketplace.
SMA Crossover Strategy📈 Indicator: SMA Crossover Strategy
This strategy uses optimized fast and slow SMA values tailored to popular timeframes for more responsive trend detection. You can let the script auto-select values or manually define your own crossover settings. Clean visual cues and per-candle signal filtering keep your chart sharp and actionable.
🔧 Key Features:
- Auto Mode: Smart defaults for each timeframe with trader-tested pairs
- Manual Mode: User-defined flexibility when custom values are needed
- Signal Clarity: BUY/SELL labels are plotted only once per confirmed candle
🧠 Default Auto Values (Based on Chart Timeframe)
- 1-min: Fast = 5, Slow = 20
- 5-min: Fast = 5, Slow = 10
- 15-min: Fast = 5, Slow = 13
- 30-min: Fast = 15, Slow = 30
- 1-hr: Fast = 50, Slow = 200
- 4-hr: Fast = 20, Slow = 50
- Daily: Fast = 50, Slow = 200
- Weekly: Fast = 10, Slow = 30
If your timeframe isn't matched exactly, the script falls back to sensible defaults.
📊 How to Improve Conviction
SMA crossovers are strong signals when confirmed by other tools. Here are some add-ons you can layer into your chart:
🔍 Confirmation Indicators
- RSI (14): Look for crossovers near RSI crossing 50 or at oversold/overbought zones for momentum confirmation.
- MACD: Use histogram alignment with crossover signals to detect real trend shifts.
- Volume Filters: Pair signals with rising volume for institutional confirmation.
🌀 Trend & Volatility Filters
- ATR (Average True Range): Helps filter signals during consolidation—watch for expanding ATR as a volatility cue.
- ADX: Trade only when ADX > 20 to avoid false signals in ranging markets.
- HMA (Hull MA): A smoother, faster MA that can act as a trend bias overlay.
🔭 Multi-Timeframe Awareness
Overlay higher-timeframe trend indicators (like a daily 200 SMA on an intraday chart) to avoid trading against macro momentum.
Pegasus Returns EMAs (Green Above, Red Below)This indicator plots up to four customizable Exponential Moving Averages (EMAs) on the price chart, each with user-defined settings for visibility and period length. It is designed to provide a clear visual representation of bullish and bearish momentum based on the closing price relative to each EMA.
Key Features:
Custom EMA Periods: Easily modify the length of each EMA (default: 20, 50, 100, 200).
Dynamic Color Coding:
Green Line when the closing price is above the EMA (bullish signal).
Red Line when the closing price is below the EMA (bearish signal).
Toggle Visibility: You can choose to display or hide any of the four EMAs via checkboxes in the settings.
Overlay on Price Chart: EMAs are plotted directly on the candlestick chart for intuitive analysis.
Inputs:
Show EMA 1–4: Enable or disable each EMA.
EMA 1–4 Period: Set a custom period for each EMA (min 1).
Use Cases:
Identifying trend direction and strength.
Spotting dynamic support and resistance zones.
Entry/exit confirmation in trending markets
TeeLek-HedgingLineXThis indicator is suitable for use with charts that are Down Trend and are about to change to Sideway or Up Trend. It works opposite to another indicator that I created called TeeLek Hedging Line.
Calculation method :
We will use the Highest value of 600 candlesticks in the past to create the average line. After that, we will create the All Time Low line.
How to use :
It is used to tell that this point is the lowest historical High value. This means that this is the point where the best Short buyers start to reach the loss point. At the same time, it is the point where the worst Long buyers start to make a profit. Therefore, it is suitable to be the point of changing from Down Trend to Up Trend.
There are 2 lines that are used to divide the range. If the graph is at the bottom, it will be Down Trend. If the graph is in the middle, it will be Sideway. And if the graph is at the top of both lines, it will be Up Trend.
//-------------------------------------------------------------------
อินดิเคเตอร์นี้ เหมาะสำหรับใช้กับกราฟที่เป็น Down Trend และกำลังจะเปลี่ยนเป็น Sideway หรือ Up Trend จะทำงานตรงข้ามกับ อินดิเคเตอร์อีกตัวที่ผมสร้างขึ้นมา ที่ชื่อว่า TeeLek Hedging Line
วิธีการคำนวณ
เราจะใช้ค่า Highest 600 แท่งเทียนย้อนหลัง ในการสร้างเส้นค่าเฉลี่ย หลังจากนั้น ก็จะสร้างเส้น All Time Low ขึ้นมา
วิธีใช้งาน
เอาไว้บอกว่า จุดนี้คือ ค่า High ย้อนหลังที่ต่ำที่สุด หมายความว่า นี่คือจุดที่คนซื้อ Short ที่ดีที่สุดก็เริ่มถึงจุดขาดทุน ขณะเดียวกัน ก็เป็นจุดที่คนที่ซื้อ Long ที่แย่ที่สุด เริ่มกำไร จึงเหมาะจะเป็นจุดเปลี่ยนจาก Down Trend ไปเป็น Up Trend
มี 2 เส้น ก็เอาไว้ใช้แบ่งช่วง ถ้ากราฟอยู่ด้านล่าง จะเป็น Down Trend ถ้ากราฟอยู่ระหว่างกลางก็จะเป็น Sideway และถ้ากราฟอยู่ด้านบนของทั้งสองเส้น ก็จะเป็น Up Trend