Zacks EMAs&MAs//@version=6
indicator(title="ZzzTrader EMAs&MAs", shorttitle="Zacks_crypt0", overlay=true)
// === Inputs ===
// ema13
ema13Source = input.source(close, "EMA13 Source")
ema13Length = input.int(13, "EMA13 Length", minval=1)
// ema25
ema25Source = input.source(close, "EMA25 Source")
ema25Length = input.int(25, "EMA25 Length", minval=1)
// ema32
ema32Source = input.source(close, "EMA32 Source")
ema32Length = input.int(32, "EMA32 Length", minval=1)
// ma100
ma100Source = input.source(close, "MA100 Source")
ma100Length = input.int(100, "MA100 Length", minval=1)
// ema200 - actually SMMA99
ema200Source = input.source(close, "EMA200 Source")
ema200Length = input.int(99, "EMA200 Length", minval=1)
// ma300
ma300Source = input.source(close, "MA300 Source")
ma300Length = input.int(300, "MA300 Length", minval=1)
// === Calculations ===
// Moving Averages
ma100 = ta.sma(ma100Source, ma100Length)
ma300 = ta.sma(ma300Source, ma300Length)
ema13 = ta.ema(ema13Source, ema13Length)
ema25 = ta.ema(ema25Source, ema25Length)
ema32 = ta.ema(ema32Source, ema32Length)
EMA200() =>
var float ema200 = 0.0
ema200 := na(ema200 ) ? ta.sma(ema200Source, ema200Length) : (ema200 * (ema200Length - 1) + ema200Source) / ema200Length
ema200
h4ema200 = request.security(syminfo.tickerid, "240", EMA200())
// === Plotting ===
// Draw lines
plot(series=ema13, title="EMA13", color=color.new(#6f20ee, 0), linewidth=1)
plot(series=ema25, title="EMA25", color=color.new(#1384e1, 0), linewidth=1, style=plot.style_stepline)
plot(series=ema32, title="EMA32", color=color.new(#ea4e2f, 0), linewidth=1, style=plot.style_circles)
plot(series=ma100, title="MA100", color=color.new(#47b471, 0), linewidth=1, style=plot.style_circles)
plot(series=ma300, title="MA300", color=color.new(#7f47b4, 0), linewidth=1, style=plot.style_cross)
plot(series=EMA200(), title="EMA200", color=color.new(#8d8a8a, 0), linewidth=1, style=plot.style_stepline)
// === Labels ===
// Initialize labels
var label ema13_label = na
var label ema25_label = na
var label ema32_label = na
var label ma100_label = na
var label ma300_label = na
var label ema200_label = na
// Calculate label position (offset to the right)
label_x = time + (ta.change(time) * 5)
show_prices = true
ema13_p_str = show_prices ? " - " + str.tostring(math.round_to_mintick(ema13)) : ""
ema25_p_str = show_prices ? " - " + str.tostring(math.round_to_mintick(ema25)) : ""
ema32_p_str = show_prices ? " - " + str.tostring(math.round_to_mintick(ema32)) : ""
ma100_p_str = show_prices ? " - " + str.tostring(math.round_to_mintick(ma100)) : ""
ma300_p_str = show_prices ? " - " + str.tostring(math.round_to_mintick(ma300)) : ""
ema200_p_str = show_prices ? " - " + str.tostring(math.round_to_mintick(EMA200())) : ""
h4ema200_p_str = show_prices ? " - " + str.tostring(math.round_to_mintick(h4ema200)) : ""
labelpadding = " "
ema13_label_txt = "EMA13" + ema13_p_str + labelpadding
ema25_label_txt = "EMA25" + ema25_p_str + labelpadding
ema32_label_txt = "EMA32" + ema32_p_str + labelpadding
ma100_label_txt = "MA100" + ma100_p_str + labelpadding
ma300_label_txt = "MA300" + ma300_p_str + labelpadding
ema200_label_txt = "EMA200" + ema200_p_str + labelpadding
// Delete previous labels to prevent duplicates
if not na(ema13_label )
label.delete(ema13_label )
if not na(ema25_label )
label.delete(ema25_label )
if not na(ema32_label )
label.delete(ema32_label )
if not na(ma100_label )
label.delete(ma100_label )
if not na(ma300_label )
label.delete(ma300_label )
if not na(ema200_label )
label.delete(ema200_label )
// Create new labels (no background/border)
ema13_label := label.new(
x=label_x,
y=ema13,
text=ema13_label_txt,
xloc=xloc.bar_time,
yloc=yloc.price,
textcolor=color.new(#6f20ee, 0),
style=label.style_none,
textalign=text.align_left
)
ema25_label := label.new(
x=label_x,
y=ema25,
text=ema25_label_txt,
xloc=xloc.bar_time,
yloc=yloc.price,
color=color.white,
textcolor=color.new(#1384e1, 0),
style=label.style_none,
textalign=text.align_left
)
ema32_label := label.new(
x=label_x,
y=ema32,
text=ema32_label_txt,
xloc=xloc.bar_time,
yloc=yloc.price,
color=color.white,
textcolor=color.new(#ea4e2f, 0),
style=label.style_none,
textalign=text.align_left
)
ma100_label := label.new(
x=label_x,
y=ma100,
text=ma100_label_txt,
xloc=xloc.bar_time,
yloc=yloc.price,
color=color.white,
textcolor=color.new(#47b471, 0),
style=label.style_none,
textalign=text.align_left
)
ma300_label := label.new(
x=label_x,
y=ma300,
text=ma300_label_txt,
xloc=xloc.bar_time,
yloc=yloc.price,
color=color.white,
textcolor=color.new(#7f47b4, 0),
style=label.style_none,
textalign=text.align_left
)
ema200_label := label.new(
x=label_x,
y=EMA200(),
text=ema200_label_txt,
xloc=xloc.bar_time,
yloc=yloc.price,
color=color.white,
textcolor=color.new(#8d8a8a, 0),
style=label.style_none,
textalign=text.align_left)
Đường Trung bình trượt
RSI - 5UP Overview
The "RSI - 5UP" indicator is a versatile tool that enhances the traditional Relative Strength Index (RSI) by adding smoothing options, Bollinger Bands, and divergence detection. It provides a clear visual representation of RSI levels with customizable bands and optional moving averages, helping traders identify overbought/oversold conditions and potential trend reversals through divergence signals.
Features
Customizable RSI: Adjust the RSI length and source to fit your trading style.
Overbought/Oversold Bands: Visualizes RSI levels with intuitive color-coded bands (red for overbought at 70, white for neutral at 50, green for oversold at 30).
Smoothing Options: Apply various types of moving averages (SMA, EMA, SMMA, WMA, VWMA) to the RSI, with optional Bollinger Bands for volatility analysis.
Divergence Detection: Identifies regular bullish and bearish divergences, with visual labels ("Bull" for bullish, "Bear" for bearish) and alerts.
G radient Fills: Highlights overbought and oversold zones with gradient fills (green for overbought, red for oversold).
How to Use
1. Add to Chart: Apply the "RSI - 5UP" indicator to any chart. It works well on timeframes from 5 minutes to daily.
2. Configure Settings:
RSI Settings:
RSI Length: Adjust the period for RSI calculation (default: 14).
Source: Choose the price source for RSI (default: close).
Calculate Divergence: Enable to detect bullish/bearish divergences (default: disabled).
Smoothing:
Type: Select the type of moving average to smooth the RSI ("None", "SMA", "SMA + Bollinger Bands", "EMA", "SMMA (RMA)", "WMA", "VWMA"; default: "SMA").
Length: Set the period for the moving average (default: 14).
BB StdDev: If "SMA + Bollinger Bands" is selected, adjust the standard deviation multiplier for the bands (default: 2.0).
3.Interpret the Indicator:
RSI Levels: The RSI line (purple) oscillates between 0 and 100. Levels above 70 (red band) indicate overbought conditions, while levels below 30 (green band) indicate oversold conditions. The 50 level (white band) is neutral.
Gradient Fills: The background gradients (green above 70, red below 30) highlight overbought and oversold zones for quick reference.
Moving Average (MA): If enabled, a yellow MA line smooths the RSI. If "SMA + Bollinger Bands" is selected, green bands appear around the MA to show volatility.
Divergences: If "Calculate Divergence" is enabled, look for "Bull" (green label) and "Bear" (red label) signals:
Bullish Divergence: Indicates a potential upward reversal when the price makes a lower low, but the RSI makes a higher low.
Bearish Divergence: Indicates a potential downward reversal when the price makes a higher high, but the RSI makes a lower high.
4. Set Alerts:
Use the "Regular Bullish Divergence" and "Regular Bearish Divergence" alert conditions to be notified when a divergence is detected.
Notes
The indicator does not provide direct buy/sell signals. Use the RSI levels, moving averages, and divergence signals as part of a broader trading strategy.
Divergence detection requires the "Calculate Divergence" option to be enabled and may not work on all timeframes or assets due to market noise.
The Bollinger Bands are only visible when "SMA + Bollinger Bands" is selected as the smoothing type.
Credits
Developed by Marrulk. Enjoy trading with RSI - 5UP! 🚀
Ichimoku Signals PROBuy (green background):
The green background will remain until there are 2 red candles completely under the Kijun.
If the conditions change (two red candles under the Kijun), the green background is removed.
Sale (red background):
The red background will remain until there are 2 green candles completely on the Kijun.
If the conditions change (two green candles over the Kijun), the red background is removed.
Background change conditions:
We use a logic that keeps the bottom until the opposite condition is met (2 red candles under the Kijun for purchase or 2 green candles on the Kijun for sale).
Advanced Momentum Scanner [QuantAlgo]The Advanced Momentum Scanner is a sophisticated technical indicator designed to identify market momentum and trend direction using multiple exponential moving averages (EMAs), momentum metrics, and adaptive visualization techniques. It is particularly valuable for those looking to identify trading and investing opportunities based on trend changes and momentum shifts across any market and timeframe.
🟢 Technical Foundation
The Advanced Momentum Scanner utilizes a multi-layered approach with four different EMA periods to identify market momentum and trend direction:
Ultra-Fast EMA for quick trend changes detection (default: 5)
Fast EMA for short-term trend analysis (default: 10)
Mid EMA for intermediate confirmation (default: 30)
Slow EMA for long-term trend identification (default: 100)
For momentum detection, the indicator implements a Rate of Change (RoC) calculation to measure price momentum over a specified period. It further enhances analysis by incorporating RSI readings for overbought/oversold conditions, volatility measurements through ATR, and optional volume confirmation. When these elements align, the indicator generates trading signals based on the selected sensitivity mode (Conservative, Balanced, or Aggressive).
🟢 Key Features & Signals
1. Multi-Period Trend Identification
The indicator combines multiple EMAs of different lengths to provide comprehensive trend analysis within the same timeframe, displaying the information through color-coded visual elements on the chart.
When an uptrend is detected, chart elements are colored with the bullish theme color (default: green/teal).
Similarly, when a downtrend is detected, chart elements are colored with the bearish theme color (default: red).
During neutral or indecisive periods, chart elements are colored with a neutral gray color, providing clear visual distinction between trending and non-trending market conditions.
This visualization provides immediate insights into underlying trend direction without requiring separate indicators, helping traders and investors quickly identify the market's current state.
2. Trend Strength Information Panel
The trend panel operates in three different sensitivity modes (Conservative, Aggressive, and Balanced), each affecting how the indicator processes and displays market information.
The Conservative mode prioritizes trend sustainability over frequency, showing only strong trend movements with high probability.
The Aggressive mode detects early trend changes, providing more frequent signals but potentially more false positives.
The Balanced mode offers a middle ground with moderate signal frequency and reliability.
Regardless of the selected mode, the panel displays:
Current trend direction (UPTREND, DOWNTREND, or NEUTRAL)
Trend strength percentage (0-100%)
Early detection signals when applicable
The active sensitivity mode
This comprehensive approach helps traders and investors:
→ Assess the strength of current market trends
→ Identify early potential trend changes before full confirmation
→ Make more informed trading and investing decisions based on trend context
3. Customizable Visualization Settings
This indicator offers extensive visual customization options to suit different trading styles and preferences:
Display options:
→ Fully customizable uptrend, downtrend, and neutral colors
→ Color-coded price bars showing trend direction
→ Dynamic gradient bands visualizing potential trend channels
→ Optional background coloring based on trend intensity
→ Adjustable transparency levels for all visual elements
These visualization settings can be fine-tuned through the indicator's interface, allowing traders and investors to create a personalized chart environment that emphasizes the most relevant information for their strategy.
The indicator also features a comprehensive alert system with notifications for:
New trend formations (uptrend, downtrend, neutral)
Early trend change signals
Momentum threshold crossovers
Other significant market conditions
Alerts can be customized and delivered through TradingView's notification system, making it easy to stay informed of important market developments even when you are away from the charts.
🟢 Practical Usage Tips
→ Trend Analysis and Interpretation: The indicator visualizes trend direction and strength directly on the chart through color-coding and the information panel, allowing traders and investors to immediately identify the current market context. This information helps in assessing the potential for continuation or reversal.
→ Signal Generation Strategies: The indicator generates potential trading signals based on trend direction, momentum confirmation, and selected sensitivity mode. Users can choose between Conservative (fewer but more reliable signals), Balanced (moderate approach), or Aggressive (more frequent but potentially less reliable signals).
→ Multi-Period Trend Assessment: Through its layered EMA approach, the indicator enables users to understand trend conditions across different lookback periods within the same timeframe. This helps in identifying the dominant trend and potential turning points.
🟢 Pro Tips
Adjust EMA periods based on your timeframe:
→ Lower values for shorter timeframes and more frequent signals
→ Higher values for higher timeframes and more reliable signals
Fine-tune sensitivity mode based on your trading style:
→ "Conservative" for position trading/long-term investing and fewer false signals
→ "Balanced" for swing trading/medium-term investing with moderate signal frequency
→ "Aggressive" for scalping/day trading and catching early trend changes
Look for confluence between components:
→ Strong trend strength percentage and direction in the information panel
→ Overall market context aligning with the expected direction
Use for multiple trading approaches:
→ Trend following during strong momentum periods
→ Counter-trend trading at band extremes during overextension
→ Early trend change detection with sensitivity adjustments
→ Stop loss placement using dynamic bands
Combine with:
→ Volume indicators for additional confirmation
→ Support/resistance analysis for strategic entry/exit points
→ Multiple timeframe analysis for broader market context
5 custom moving averages5 custom moving averages
5 custom moving averages is an original TradingView indicator that lets you plot and manage five independent moving averages on one chart—each with customizable type, period, color, and data source. Rather than a simple mash‑up of defaults, it’s designed to help you synchronize short‑, mid‑, long‑term trends and volume dynamics for better entry timing and trend confirmation.
1. Key Features & Originality
Five fully independent lines (MA1–MA5), each selectable as SMA, EMA, WMA, or VWMA.
Default periods of 10, 21, 50, 200, 325—but all periods are freely customizable.
Default color scheme for clarity: transparent pink (10), green (21), red (50), black (200), light blue (325)—colors are also fully customizable.
Synergy rationale: Ultra‑short (10) through extra‑long/volume‑weighted (325) layered together create a multi‑filter that no single MA can match.
2. Calculation Logic
SMA (Simple Moving Average)
(P₁ + P₂ + … + Pₙ) ÷ N
EMA (Exponential Moving Average)
α = 2 ÷ (N + 1)
EMA_today = (Price_today – EMA_yesterday) × α + EMA_yesterday
WMA (Weighted Moving Average)
(P₁×N + P₂×(N–1) + … + Pₙ×1) ÷
VWMA (Volume‑Weighted MA)
Σ(Pᵢ × Vᵢ) ÷ Σ(Vᵢ) for i = 1…N
3. Usage Scenarios & Examples
Short‑Mid Cross Entry
MA1 (10) crossing above MA2 (21) when price is above MA3 (50) signals a potential buy.
Trend Confirmation
Price consistently above MA3 (50) and an upward‑sloping MA4 (200) confirms a strong uptrend.
Volume‑Backed Rebound
Set MA5 to VWMA‑325—if price bounces on rising volume, institutional buying is likely.
Combined Filter Workflow
Apply the indicator
Look for MA1×MA2 cross on the daily chart
Check price vs. MA3/MA4 for trend alignment
Confirm with MA5/VWMA volume signal
4. Parameters
MA1–MA5 Type: SMA / EMA / WMA / VWMA
Period 1–5: Default 10 / 21 / 50 / 200 / 325 (editable; all periods freely customizable)
Source: Close, Open, High, Low, HL2, etc.
Colors & Line Width: Default transparent colors (fully customizable in code)
Total Oscillator Matrix Total Oscillator Matrix provides reliable buy/sell signals based on the alignment of multiple momentum oscillators relative to the SMA 200. Designed for swing trading on higher timeframes or scalping strategies on lower timeframes, it filters opportunities using the SMA 200 as a trend benchmark
Scalping strategy [EMA 9/21/200 + VWAP]This strategy works best during high-volume periods on the 1-minute and 5-minute charts.
🟢 Buy Setup:
EMA 9 crosses above EMA 21 (bullish momentum)
Price is above VWAP (bullish bias)
Look for bullish candlestick patterns (engulfing, pin bar, etc.)
Optional: Entry on a pullback to EMA 9 or 21
🔴 Sell Setup:
EMA 9 crosses below EMA 21 (bearish momentum)
Price is below VWAP (bearish bias)
Look for bearish candlestick patterns
Optional: Entry on pullback to EMA 9 or 21
📈 Exit Strategy:
Take profit at predefined risk-reward
Or use EMA 9 crossing back over 21 in the opposite direction
Stop loss just below/above recent swing
Like this indicator? Boost it ♡
Multi-Scale Slope Alignment FilterMulti-Scale Slope Alignment Filter (MSSA)
█ OVERVIEW
This indicator identifies periods where the market trend, measured by the slope of a linear regression line, is aligned across multiple time scales (short, medium, and long-term). It acts as a trend confirmation filter, visually highlighting when different trend perspectives agree. The core idea is that signals or trades taken in the direction of aligned slopes might have a higher probability of success.
It plots the calculated slopes in a separate pane and colors the main chart background based on the alignment status: green for bullish alignment, red for bearish alignment.
█ HOW IT WORKS
The indicator calculates the slope of a linear regression line for three different lookback periods defined by the user inputs (`Short-Term`, `Medium-Term`, `Long-Term`).
The "slope" is determined by comparing the value of the linear regression line at the current bar (`offset=0`) to its value on the previous bar (`offset=1`).
A positive difference indicates an upward sloping regression line (potential uptrend).
A negative difference indicates a downward sloping regression line (potential downtrend).
The core calculation for a single slope is:
ta.linreg(source, length, 0) - ta.linreg(source, length, 1)
Based on these three slopes, the alignment state is determined:
Bullish Alignment: All three slopes (Short, Medium, Long) are positive (greater than 0). This suggests an uptrend is confirmed across all measured scales.
Bearish Alignment: All three slopes are negative (less than 0). This suggests a downtrend is confirmed across all measured scales.
Neutral/Mixed: The slopes do not unanimously agree (i.e., some are positive while others are negative, or some are zero). This indicates conflicting signals or a potential consolidation phase.
█ HOW TO USE
The primary use of the Multi-Scale Slope Alignment Filter (MSSA) is as a trend confirmation tool or trade filter .
Consider taking long trades only when the background is green ( Bullish Alignment ). This acts as confirmation that the broader trend context supports the long idea.
Consider taking short trades only when the background is red ( Bearish Alignment ). This acts as confirmation that the broader trend context supports the short idea.
Consider being cautious or avoiding trades when there is no background color ( Neutral/Mixed Alignment ), as the trend direction is unclear or conflicting across different timeframes.
This indicator is generally not designed to provide direct entry or exit signals on its own. It works best when combined with your primary trading strategy or other indicators to filter their signals based on multi-timeframe trend agreement.
Example filter logic:
// Example Long Condition
primaryLongSignal = ta.crossover(fastMA, slowMA) // Your primary signal
longCondition = primaryLongSignal and isBullishAligned // Filter with MSSA
// Example Short Condition
primaryShortSignal = ta.crossunder(fastMA, slowMA) // Your primary signal
shortCondition = primaryShortSignal and isBearishAligned // Filter with MSSA
█ INPUTS / SETTINGS
Short-Term Slope Length: (Default: 20) The lookback period for calculating the short-term linear regression slope.
Medium-Term Slope Length: (Default: 50) The lookback period for calculating the medium-term linear regression slope.
Long-Term Slope Length: (Default: 100) The lookback period for calculating the long-term linear regression slope.
Source: (Default: close) The price data source used for the linear regression calculations (e.g., close, HLC3, OHLC4).
█ VISUALIZATION
Background Coloring: The background of the main price chart is colored to indicate the alignment state:
Green: Bullish Alignment (all slopes positive).
Red: Bearish Alignment (all slopes negative).
No Color: Neutral/Mixed Alignment.
Indicator Pane: A separate pane below the main chart displays:
Three lines representing the calculated slope values for the short (red), medium (blue), and long (yellow) terms.
A dashed horizontal line at zero, making it easy to visually distinguish positive (above zero) from negative (below zero) slopes.
█ SUMMARY
The MSSA indicator provides a visual filter based on the consensus of trend direction across short, medium, and long-term perspectives using linear regression slopes. It helps traders align their strategies with the prevailing multi-scale trend environment. Remember to use it as part of a comprehensive trading plan and always practice sound risk management. This tool provides analysis and is not financial advice.
Trend-Following Strategy with Keltner ChannelsTrend Filter ( All Timeframes):
Price must be above the 200 EMA for a bullish setup
Price must be below the 200 EMA for a bearish setup
Keltner Channels for dynamic support/resistance
Buy when price pulls back to the midline or lower channel in an uptrend
Sell when price pulls back to the midline or upper channel in a downtrend
Entry trigger: Price pulls back to Keltner midline then crosses it
Exits: ATR-based SL & TP with optional trailing stops
Gold Smart Scanner [EMA/Wick/Volume/RSI/VWAP] +Live Dashboard Smart Scanner indicator for Gold (XAUUSD) to get the best high-probability trade setups using EMA 200, wick exhaustion, volume drop, RSI divergence and VWAP — all shown in one visual dashboard.
🧠 What This Indicator Does
This indicator helps you detect potential tops and bottoms with high probability by combining:
EMA 200 trend direction
Wick exhaustion logic (long upper/lower wicks)
Volume drop detection
RSI divergence
VWAP confirmation
These are the building blocks of professional price action + smart money trading strategies.
📊 How to Use It – Step by Step
1. Determine Market Bias (Trend Filter)
Check the Dashboard > EMA 200 Trend
💚 "Bullish": Only look for buy setups
❤️ "Bearish": Only look for sell setups
Confirm price is above or below the bright yellow EMA 200 line on the chart.
2. Look for Exhaustion Signals
Watch for red or green "Exh" arrows above/below candles:
🔴 Red Exh arrow = possible top (sell exhaustion)
🟢 Green Exh arrow = possible bottom (buy exhaustion)
These show when wicks are long and volume drops, with RSI divergence.
3. Confirm With the Dashboard (Top Right Corner)
This tells you everything at a glance:
Field - What It Means - What to Do
EMA 200 Trend - Market direction - Trade in this direction
Wick Signal - Long wick detected - Reversal zone clue
Volume Drop - Low volume = less momentum - Signals exhaustion
RSI Divergence - Bullish/Bearish divergence - Confirms hidden strength/weakness
VWAP Position - Where price is vs VWAP - Use as dynamic S/R filter
Use this to wait for all pieces to align for a high-probability setup
Timeframes
Designed for 1H and 15M (or you can use 4H for confirmation)
Works great on Gold (XAUUSD) but you can use on any asset
🛑 Don’t Forget:
This is not a "buy/sell now" tool, it’s a scanner to help you build confidence in trade setups.
Combine it with your own entry/exit strategy (e.g., break of a structure, order blocks, stop-loss below wick).
Like this indicator? Boost it ❤️
Multi-TF T1W E1DTest
MA of 3 line cross with multi time frame
This one is for test how stock price react to each moving average
5ma + O’Neil & Minervini Buy ConditionIndicator Overview
5ma + O’Neil & Minervini Buy Condition is an original TradingView indicator that extends beyond a simple collection of standard moving averages by offering:
- Five Fully Independent Lines : Each of MA1–MA5 can be configured as SMA, EMA, WMA, or VWMA with its own period and data source. This level of customization unlocks unique combinations no existing script provides.
- Synergy of Multiple Timeframes : Default settings (10, 21, 50, 200, 325) reflect ultra‑short, short, medium, long, and volume‑weighted long‑term perspectives. The layered structure functions as a multi‑filter, sharpening entry signals and trend confirmation beyond any single MA.
- Integrated Buy Conditions : Built‑in O’Neil and Minervini buy filters use fixed SMA‑based rules (50 & 200 SMA rising within 15% of 52‑week high; 10 > 21 > 50 SMA rising within high/low thresholds), plus a combined condition highlighting when both methods align.
- Clean Visualization & Style Controls : Background coloring for each buy condition appears only in the Style tab under clearly named parameters (O’Neil Buy Condition, Minervini Buy Condition, Both Conditions). MA lines support transparent default colors and customizable line width for optimal readability without clutter.
Calculation & Logic
SMA: (P₁ + P₂ + … + Pₙ) ÷ N
EMA: α = 2 ÷ (N + 1)
EMA_today = (Price_today – EMA_yesterday) × α + EMA_yesterday
WMA: (P₁×N + P₂×(N–1) + … + Pₙ×1) ÷
VWMA: Σ(Pᵢ×Vᵢ) ÷ Σ(Vᵢ) for i = 1…N
```
Buy Condition Logic
- O’Neil: Price > 50 SMA & 200 SMA (both rising) **and** within 15% of the 52‑week high.
- Minervini : 10 SMA > 21 SMA > 50 SMA (both short‑term SMAs rising) **and** within 25% of the 52‑week high **and** at least 25% above the 52‑week low.
- Combined : Both O’Neil and Minervini conditions true.
Usage Examples
1. Short‑Mid Cross : Observe MA1/MA2 crossover while MA3/MA4 confirm trend strength.
2. Volume‑Weighted Long‑Term : Use VWMA as MA5 to filter institutional‑strength pullbacks.
3. Multi‑Filter Entry : Look for purple background (Both Conditions) on daily chart as high‑confidence entry.
Why It’s Unique
- Not a Mash‑Up : Though built on standard MA formulas, the customizable layering and built‑in buy filters create a novel multi‑dimensional analysis tool.
- Trader‑Friendly : Detailed comments in the code explain parameter choices, calculation methods, and practical entry scenarios so that even Pine novices can understand the underlying mechanics.
- Publication‑Ready : Description and code demonstrate originality, add clear value, and comply with house‑rule requirements by explaining why and how components interact, not just listing features.
- Combined Custom MA & Buy Conditions : By integrating customizable moving averages with built-in buy filters, users can easily recognize O’Neil and Minervini recommended setups.
Multi-Indicator Strategy By Arvind Dodke [EMA+MACD+RSI+ADX]This strategy is base on EMA+MACD+RSI+ADX.
You can backtest it.
Top & Bottom Search🧩 ~ Experimental🔧📌 Top & Bottom Search🧩 ~ Experimental🔧
This script is designed to identify potential market reversal zones using a combination of classic candlestick patterns (Piercing Line & Dark Cloud Cover) and trend confirmation tools like EMA positioning and optional RSI filters.
🔍 Core Features:
✅ Detects Piercing Line and Dark Cloud Cover patterns.
✅ Optional EMA filter to confirm bullish or bearish alignment.
✅ Optional RSI filter to confirm oversold or overbought conditions.
✅ Visual plot of the selected EMA (customizable thickness & color).
✅ Clean and toggleable inputs for user flexibility.
⚙️ Customizable Settings:
Enable/disable EMA confirmation.
Enable/disable RSI confirmation.
Choose whether to display the EMA on the chart.
Adjust EMA period, RSI thresholds, and candle visuals.
🧪 Note:
This is an experimental tool, best used as a supplement to your existing analysis. Not every signal is a guaranteed reversal—this script aims to highlight potential turning points that deserve closer attention.
I HIGHLY recommend using this in coherence with many other indicators in a robust system of indicators that meet your desired time frames and signal periods.
NOTES*
1.) An alternative way to view this indicator is as a "Piercing & Dark Cloud Candle Indicator/Strategy w/ EMA & RSI Logic - Either EMA or RSI Logics are Optional."
2.) When toggling between the RSI and EMA Filters, the default is set to EMA filter applied, however you cannot have both RSI signals and EMA filters on the chart at the same time, it can only be one or the other. So be aware that if you have EMA filter ON and select RSI filter, it will only be displaying the RSI filtered outputs. The ONLY WAY to see the EMA filtered outputs is to only have the EMA filter box checked and NOT the RIS filter box.
Multi-Timeframe EMA Signal - StyledTrend reminder, what is based on the 39 MA. Looking after 14 CLOSED candles. The minute TF is calculated from the 1m chart, the 1H, 4h, 1D is calculated from the 1h TF.
If you go higher on the minute TF you see that the calculation goes bad, so you dont see the minute TF-s trend if you are on the 5m or on the 15M or higher TF. It's ok for my needs i usualy trade on the 1m chart so i see everything.
It's simple.
I was looking for a srcipt like this, and did not find anything.
It's not my work, its Veronika's script from chatGPT based on my needs. :)
MACD_V1New Features:
Golden/Death Crossover Markers
Golden/Death Crossover Alerts
新增功能
1、金叉死叉标识
2、金叉死叉警报
20 & 50 EMA + ATR, TR & DATRIndicator Name: 20 & 50 EMA + ATR, TR & DATR
This custom indicator combines trend and volatility analysis into a single tool, helping you make smarter trading decisions with fewer indicators on your chart.
---
1. 20 & 50 Exponential Moving Averages (EMAs)
EMA 20 (Blue Line): A short-term trend indicator that reacts quickly to price changes.
EMA 50 (Orange Line): A medium-term trend indicator that smooths out more of the noise.
How to Use:
Bullish signal: EMA 20 crosses above EMA 50
Bearish signal: EMA 20 crosses below EMA 50
Use crossovers or distance between EMAs to confirm trends or potential reversals
---
2. True Range (TR)
Definition: The greatest of the following:
High - Low
High - Previous Close
Previous Close - Low
Use: Shows how much the asset moved during the candle. Useful for understanding raw price movement.
---
3. Average True Range (ATR)
Definition: The average of the True Range over a 14-bar period
Line color: Red (shown in the status line above your chart)
How to Use:
High ATR = High volatility
Low ATR = Low volatility
Use ATR to help determine stop-loss and take-profit levels, or to avoid low-volatility periods
---
4. Daily ATR (DATR)
Definition: ATR calculated from the daily timeframe, regardless of the chart's current timeframe
Line color: Green (also shown in the status line)
How to Use:
Know how much the asset typically moves in a full day
Helps intraday traders set realistic targets or detect when the market is unusually quiet or active
Visionary Insights (200 EMA on 1H + 20 EMA on 15m)How to use this script?
Open the 15 min chart and u will see the 200 EMA from the 1 hour chart and the 20 EMA of the 15 min chart
Trend Filter (1H Timeframe):
Price must be above the 200 EMA for a bullish setup
Price must be below the 200 EMA for a bearish setup
Entry Conditions (15m Timeframe):
Bullish:
Pullback to 20 EMA (close is near or below EMA 20)
RSI > 50
Bullish engulfing pattern
Bearish:
Pullback to 20 EMA (close is near or above EMA 20)
RSI < 50
Bearish engulfing pattern
EMA Crossover Strategy with Trailing Stop and AlertsPowerful EMA Crossover Strategy with Dynamic Trailing Stop and Real-Time Alerts
This strategy combines the simplicity and effectiveness of EMA crossovers with a dynamic trailing stop-loss mechanism for robust risk management.
**Key Features:**
* **EMA Crossover Signals:** Identifies potential trend changes using customizable short and long period Exponential Moving Averages.
* **Trailing Stop-Loss:** Automatically adjusts the stop-loss level as the price moves favorably, helping to protect profits and limit downside risk. The trailing stop percentage is fully adjustable.
* **Visual Buy/Sell Signals:** Clear buy (green upward label) and sell (red downward label) signals are plotted directly on the price chart.
* **Customizable Inputs:** Easily adjust the lengths of the short and long EMAs, as well as the trailing stop percentage, to optimize the strategy for different assets and timeframes.
* **Real-Time Alerts:** Receive instant alerts for buy and sell signals, ensuring you don't miss potential trading opportunities.
**How to Use:**
1. Add the strategy to your TradingView chart.
2. Customize the "Short EMA Length," "Long EMA Length," and "Trailing Stop Percentage" in the strategy's settings.
3. Enable alerts in TradingView to receive notifications when buy or sell signals are generated.
This strategy is intended to provide automated trading signals based on EMA crossovers with built-in risk management. Remember to backtest thoroughly on your chosen instruments and timeframes before using it for live trading.
#EMA
#Crossover
#TrailingStop
#Strategy
#TradingView
#TechnicalAnalysis
#Alerts
#TradingStrategy
网格交易v1.0### Strategy Function Overview
**Grid Trading Framework:**
- Set up 11 grid buy levels evenly distributed between `maxPrice` and `minPrice`.
- Fund allocation increases progressively with each lower grid level (weights 1–11), resulting in more buying at lower prices.
- The grid range is controlled by the `range1` parameter (default: -10%).
**Semi-Final and Final DCA (Dollar-Cost Averaging) Buys:**
- A larger buy order is triggered when the price drops to the `semifinal` level (default: -12%).
- The largest buy order is triggered when the price drops to the `final` level (default: -15%).
**Take-Profit Mechanism:**
- **Primary Take-Profit:** All holdings are sold for profit when the average entry price rises by `tp%`.
- **First Order Trailing Take-Profit:** If only the first order has been executed, a dynamic trailing take-profit is set based on ATR.
**Visualization Elements:**
- **Grid Lines and Labels:** Show the price and quantity at each buy level.
- **Price Lines:** Indicate the highest grid price, the current average entry price, and the take-profit target.
- **Event Markers:** Flag for start time, 🛑 for semi-final trigger, and 🚀 for final trigger.
3 EMAs w G/D Cross// This script plots three Exponential Moving Averages (EMAs): 20, 50, and 200.
// It highlights key trend signals by detecting:
// 🔹 Golden Cross – when the 50 EMA crosses above the 200 EMA (bullish signal)
// 🔹 Death Cross – when the 50 EMA crosses below the 200 EMA (bearish signal)
//
// A green cross will appear above the bar for a Golden Cross,
// and a red cross will appear below the bar for a Death Cross.
//
// These crossovers are commonly used to identify long-term trend shifts in the market.
// Suitable for trend-following strategies and identifying entry/exit zones.
//
// Script developed for educational and analytical use on TradingView. bu BusMart
Anchored VWAP - RTH + ON + Previous VWAPRegular trading hours Anchored VWAP, Overnight Anchored VWAP, and Prior Day VWAP as Price Level
Jack's ADX with 5TF TABLEUpdated the table to show 5 timeframes.
When trend momentum aligns for added confirmation
CVD (Cumulative Volume Delta)
Cumulative Volume Delta
Use a moving average with three different
I thought about determining the volatility and direction of the price of the stock price and finding a place to break through.
I made some Mistake coz I'm new corder
I'm reposting this simple script due to house rule violation. (Whatever can haha) 😁
I'm erasing all the comments in my native language that I had in my script... I thought it would make the User uncomfortable, so I locked the code, and I thought maybe that's the problem
Anyway, I'm sorry 😅