40 SMA Scaling StrategyThis trend-following strategy focuses on capturing momentum when price breaks above the 40-period Simple Moving Average (SMA) while utilizing a systematic scale-out (Take Profit) approach to lock in gains during extended runs.
Strategy Logic
Entry: Opens a Long position with 100% of current equity when the price closes above the 40 SMA. This ensures maximum capital efficiency at the start of a new perceived trend.
Scaling Take Profits: To reduce risk as the trade progresses, the strategy automatically closes 25% of the initial position for every 1% increase in price from the entry point.
Exit: The entire remaining position is closed immediately if the price closes below the 40 SMA, acting as a trailing stop that adapts to the moving average.
Key Features
Capital-Efficient: Starts with a full account allocation to maximize exposure to the initial breakout.
Systematic De-risking: By scaling out in 25% increments, the strategy banks profits early while leaving a portion of the trade active for potential "moon shots."
Trend-Following Exit: Uses a classic SMA filter to exit, aiming to stay in the trade as long as the medium-term trend remains bullish.
Rata-Rata Pergerakan / Moving Averages
Ultimate Lines Statistical Backtest @MaxMaseratiUltimate lines (MAs/MACD/VWAP,DWA etc..) Statistical Backtest
This is a comprehensive statistical backtesting tool that allows traders to objectively measure the performance of 27+ different trading lines across multiple timeframes and sessions. Instead of guessing which moving averages, VWAPs, or volume levels actually work for your trading style, this indicator provides hard data showing exactly how price behaves around each line at specific times of day.
The indicator solves a critical problem: most lines create whipsaws in choppy markets, but knowing which lines have the highest continuation rates vs reversal rates at specific session times helps you avoid false signals and focus on setups with proven statistical edges.
🎯 LINES YOU CAN TEST
MMM Core Lines:
Mid MA: Trend velocity tracker using simple moving average
MMPD Line: Premium/Discount change-of-direction indicator
Fair Value Golden Ratio: 0.618 equilibrium level between premium and discount zones
Volume-Based Lines:
VWAP Daily/Weekly: Volume-weighted average price (daily and weekly sessions)
Volume POC Multi-TF: Multi-timeframe Point of Control (highest volume price level)
Volume POC Weekly: Weekly momentum pivot based on volume distribution
Range Midpoints:
Range Midpoint 50: 50-period high/low midpoint
Range Midpoint 14 TF1/TF2: Configurable timeframe range midpoints with smoothing options
Moving Averages (10 MA Types):
MACD Fast (12) / Signal (26): Standard MACD moving averages
Fast MA 20 / Mid MA 50 / Slow MA 200: Classic trend-following averages
Available MA Types: SMA, EMA, WMA, HMA, DEMA, TEMA, LSMA, KAMA, ALMA, VWMA
Volatility Indicators:
MVM Upper/Lower Bands: Momentum-based volatility bands with adaptive option
HVC Bullish/Bearish: High Volume Candle support/resistance levels
Ultimate Suite Advanced Lines:
DWAP (Delta Weighted Average Price): Directional volume-weighted price with upper/lower bands
HVN (High Volume Node): High-frequency trading node detection
Hybrid Line: Volume-weighted momentum composite
Trend Filter: Two-pole smoothing filter for trend clarity
STL Lines:
iBuSTL / iBeSTL: Internal Bullish/Bearish Structural Trend Liquidity levels
⚙️ HOW TO TEST
Select Lines: Check the boxes for lines you want to analyze (Mid MA, VWAP Daily, Volume POC, etc.)
Choose Times: Enable tracking for specific session times (default: 8:30 AM, 9:30 AM, 10:00 AM, Daily Close - EST)
Set Lookback: Choose how many days of historical data to analyze (default: 60 days)
Enable Pattern Analysis: Turn on "Enable Pattern Analysis" in settings
Wait for Data: The indicator needs 20 bars after each signal time to complete analysis
Review Statistics: Check the statistics table for detailed breakdowns
📈 STATISTICS EXPLAINED
For Each Tracked Time, You'll See:
🟢 Above Selected Lines (X samples):
Continued↑: Price stayed above the lines = bullish continuation
Reversed↓: Price broke below the lines = reversal/rejection
→Kept Going↓: After reversing down, price continued lower (bars 11-20)
→Stalled: After reversing down, price came back up (consolidation)
Neutral: Price didn't make a clear move either way
🔴 Below Selected Lines (X samples):
Continued↓: Price stayed below the lines = bearish continuation
Reversed↑: Price broke above the lines = reversal/support bounce
→Kept Going↑: After reversing up, price continued higher (bars 11-20)
→Stalled: After reversing up, price came back down (consolidation)
Neutral: No clear directional move
⭐ Star Ratings: Show which outcome happens most frequently (best probability)
🔬 HYBRID DETECTION SYSTEM (ADVANCED)
When enabled, the indicator uses a multi-signal composite scoring system that goes beyond simple percentage movements:
Signal A - % Movement Direction (40% weight):
Measures the strength and direction of price movement. Strong directional moves (>0.8%) score higher, while opposite-direction moves score negatively.
Signal B - Inside Candles (30% weight):
Detects true consolidation by counting how many candles close within a defined range. High inside-candle counts indicate choppy, stalled price action rather than clean continuation.
Signal C - Successive Closes (30% weight):
Tracks momentum persistence by counting consecutive closes in the expected direction. Long streaks (6+ bars) indicate strong follow-through, while breaks in the sequence suggest weakness.
Composite Score Classification:
⭐⭐⭐ Strong (75-100 points): All three signals align - high-confidence pattern
⭐⭐ Moderate (50-75 points): Two signals agree - reliable pattern
⭐ Weak (25-50 points): Mixed signals - lower confidence
⚠️ Strong Stalled (0-25 points): Signals show consolidation/reversal
This provides nuanced pattern detection that identifies not just IF a pattern succeeded, but HOW STRONGLY it performed.
💡 INTERPRETING RESULTS
Good Lines Show:
High continuation % when price is above/below (>60% is strong)
Clean "Kept Going" patterns after reversals (>50% indicates reliable rejection)
Low stalled % (less whipsaw/consolidation)
Consistent patterns across multiple times (validates the line's reliability)
Poor Lines Show:
50/50 continuation vs reversal (coin flip = no edge)
High stalled % (lots of whipsaw/false signals)
Inconsistent patterns across different times (unreliable)
Example Interpretation:
9:30 AM - VWAP Daily (120 samples)
🟢 Above:
Continued↑ 75 (62.5%) ⭐ BEST
Reversed↓ 30 (25.0%)
Meaning: When price is above VWAP Daily at 9:30 AM, it continues higher 62.5% of the time - this is a statistically strong bullish signal for that session time.
🎯 PRACTICAL VALUE
Solves the Whipsaw Problem:
Most moving averages and lines work beautifully in trending markets but create endless false signals in choppy, range-bound conditions. By analyzing specific session times and continuation vs reversal patterns, you can:
Identify high-probability setups: Focus on lines that show >60% continuation at your preferred trading times
Avoid weak signals: Skip lines with high stall rates or 50/50 outcomes
Time your entries better: Know which session times produce the cleanest patterns
Combine complementary lines: Stack multiple high-scoring lines for confluence
Adapt to market conditions: Switch to different lines when market structure changes
Real-World Application:
Instead of blindly trading VWAP crosses or MA bounces, you'll have objective data showing: "At 9:30 AM on ES, when price is above Mid MA + VWAP Daily + Volume POC, it continues higher 68% of the time with strong momentum (⭐⭐⭐)." This transforms discretionary guesswork into data-driven decision making.
⚙️ LINE DEFINITIONS
Moving Averages: Smooth price data over X periods to identify trend direction and dynamic support/resistance.
VWAP: Anchored average price weighted by volume - institutional traders' benchmark for "fair value."
Volume POC (Point of Control): Price level with the most traded volume - represents maximum market acceptance.
Fair Value Golden Ratio: Fibonacci 0.618 level between recent premium (high) and discount (low) - equilibrium zone.
DWAP (Delta Weighted): Price average weighted by buying vs selling volume delta - shows directional money flow.
Range Midpoints: Geometric center of recent high/low range - mean reversion pivot.
Volatility Bands: Envelope around momentum lines showing normal price deviation ranges.
HVN (High Volume Node): Automated detection of high-volume price clusters - institutional accumulation/distribution zones.
Note: This indicator is purely for statistical analysis and backtesting. It does not generate trade signals or provide entry/exit recommendations. Use the statistics to inform your own trading decisions and strategy development.
ATR Bands (MA Distance)ATR Bands (MA Distance) plots volatility-based bands at a multiple of ATR away from a selected moving average.
Unlike percentage envelopes or standard deviation bands, this indicator measures distance from the moving average using ATR, representing the market’s normal “breathing range” rather than statistical probability.
Key Features
The center line is a selectable moving average (EMA, SMA, RMA/Wilder, or WMA).
Upper and lower bands are calculated as:
Moving Average ± ATR × Multiplier
Band width automatically adapts to changing market volatility.
Designed for consistent use across different markets and timeframes without parameter re-optimization.
Non-repainting: all values are calculated only from confirmed historical bars.
Intended Use
ATR Bands (MA Distance) is best used as a context and preparation tool , not as a direct entry or exit signal.
Typical use cases include:
Identifying areas where price is extended relative to its recent volatility.
Visualizing normal vs. stretched price distance from the moving average.
Supporting range-based analysis or trade preparation when combined with other indicators (e.g., oscillators).
Important Notes / How NOT to Use
This indicator does NOT generate buy or sell signals by itself .
Touching or crossing a band does not imply an automatic reversal.
In strong trending markets, price may stay outside the bands for extended periods.
ATR Bands should not be interpreted as overbought/oversold levels on their own.
This indicator does NOT repaint. Once a bar is closed, its values will not change.
For best results:
Use ATR Bands as a preparation zone, then wait for confirmation from your own entry logic.
Disable or ignore band-based mean-reversion ideas during strong trend conditions.
Concept Summary (Short)
ATR Bands (MA Distance) visualize how far price has moved from its moving average in terms of volatility, without repainting and without relying on percentage deviation or statistical assumptions.
Optional Short Description (Preview)
Volatility-based, non-repainting ATR bands plotted at a distance from a moving average.
Designed for market context and trade preparation — not standalone signals.
Tabla de EMA's y TimeframesGraphic and permanent representation of the trend of an action/CFD/stock/crypto, directly related to the technical analysis of its EMA's.
SB - VWDEMAScalping @ 1 Minute time frame.
Rules : -
1. Call entry - If Dema and ATR both turns green ( 1 minute TF )
2. Put Entry - If Dema and ATR both turns red ( 1minute TF )
If one is red and other is green wait till both align in same direction.
Vwap - Price above VWAP, call side entry will be rewarded well ( Try to find entry in calls) and if price is below Vwap Put side entry will be rewarded well ( Try to find entry in Puts).
Exit - Follow ATR stop loss line at 1 minute TF ( candle closing basis ).
Can be used on option charts directly.
Best results - Nifty derivatives @ 1 Minute TF, however it can work well with other instruments too.
Make your display setting as per your convenience.
AlgoDesk SENSEX Option Buyer v1.4//@version=6
indicator("AlgoDesk SENSEX Option Buyer v1.4", overlay=true) // timeframe removed
//---------------------- Inputs --------------------------
rsiLength = input.int(14,"RSI Length")
macdFast = input.int(12,"MACD Fast")
macdSlow = input.int(26,"MACD Slow")
macdSig = input.int(9,"MACD Signal")
bbLength = input.int(20,"Bollinger Length")
bbMult = input.float(2.0,"BB Multiplier")
//---------------------- Indicator Calculations ----------
rsi = ta.rsi(close, rsiLength)
macd = ta.ema(close, macdFast) - ta.ema(close, macdSlow)
signal = ta.ema(macd, macdSig)
basis = ta.sma(close, bbLength)
dev = bbMult * ta.stdev(close, bbLength)
upperBand = basis + dev
lowerBand = basis - dev
vwap = ta.vwap(close)
//---------------------- Conditions ----------------------
bullish_rsi = rsi > 60
bearish_rsi = rsi < 40
macd_bull = ta.crossover(macd, signal)
macd_bear = ta.crossunder(macd, signal)
above_vwap = close > vwap
below_vwap = close < vwap
bb_up = close > upperBand
bb_dn = close < lowerBand
//---------------------- Signal Logic --------------------
callSignal = bullish_rsi and macd_bull and above_vwap and bb_up
putSignal = bearish_rsi and macd_bear and below_vwap and bb_dn
//---------------------- ATM Strike Detect ---------------
atm = math.round(close/100) * 100
//---------------------- Plot Signals --------------------
plotshape(callSignal,
title="CALL BUY",
style=shape.labelup,
location=location.belowbar,
color=color.new(color.green,0),
size=size.large,
text="CALL")
plotshape(putSignal,
title="PUT BUY",
style=shape.labeldown,
location=location.abovebar,
color=color.new(color.red,0),
size=size.large,
text="PUT")
plotshape(not callSignal and not putSignal,
title="NO TRADE",
style=shape.circle,
location=location.bottom,
color=color.new(color.gray,70),
size=size.tiny,
text="NT")
//---------------------- Display BB + VWAP ----------------
plot(upperBand,"Upper BB",color=color.green)
plot(lowerBand,"Lower BB",color=color.red)
plot(vwap,"VWAP",color=color.yellow)
//---------------------- Webhook JSON --------------------
alertMessageCall = str.format(
'{"sensex":"{0}","rsi":"{1}","signal":"CALL","strike":"{2}"}',
close, rsi, atm)
alertMessagePut = str.format(
'{"sensex":"{0}","rsi":"{1}","signal":"PUT","strike":"{2}"}',
close, rsi, atm)
// Alerts fire on signal confirmation
if callSignal
alert(alertMessageCall, alert.freq_once_per_bar_close)
if putSignal
alert(alertMessagePut, alert.freq_once_per_bar_close)
Currency VolumeShows the volumes in the currency of the chart including a custom moving average for noise attenuation.
THE ELVINATORTHE ELVINATOR is my trend-following momentum indicator built on the 20 EMA, 50 EMA, and 200 EMA, designed for trading **XAUUSD during the New York session (9:30–17:00 NY time), Monday through Friday**.
**How to trade it:**
* **Trend filter:** Only take **longs above the 200 EMA** and **shorts below the 200 EMA**. This keeps trades aligned with Gold’s dominant direction.
* **Long setups:** A **20 EMA cross above the 50 EMA** signals bullish momentum. Best entries come after a pullback into the 20–50 EMA zone followed by strong continuation candles.
* **Short setups:** A **20 EMA cross below the 50 EMA** signals bearish momentum. Look for pullbacks into the EMA zone and rejection before continuation lower.
* **Timing:** Focus on NY open and high-volume moves. Avoid choppy conditions and late-session exhaustion.
* **Risk & exits:** Place stops beyond recent swings or EMA structure. Targets can be prior highs/lows or scaled with trend continuation.
THE ELVINATOR is built for **structure, patience, and disciplined execution**, allowing traders to capitalize on Gold’s volatility without chasing noise.
ChillLax Distance From Moving Average// show the % distance from the moving average, in colorful histogram
// you can choose :
// : the moving average of the close, default to 200 ma
// : sma or ema, default to sma
// : choose calculation from open or high or low or close (to the ma), default is close
// : threshold % above/below ma, default is 70%. when the stock is above/below
// this threshold, histogram is red (default)
// : otherwise, histogram is blue (default)
// Why this? In William O'neil's book, How to make money in stock, 4th edition, page 264,
// in Climax Top:
// 200-day moving average line. Some stocks may be sold when they are
// 70% to 100% or more above their 200-day moving average price line
50 SMA Slope Change with TrendlineThe 50 MA is a good indicator if medium term price direction whether bull or bear. It shows the 50 MA and the rate of change. A positive slope is green and negative slope is red.
My first script I made and it's nothing special just something I thought would be interesting
Commodity Channel Index CCI + EMA strategy
================================================================================
COMMODITY CHANNEL INDEX CCI + EMA STRATEGY - STRATEGY GUIDE 📊
================================================================================
💡 COLLABORATION & SUPPORT
---------------------------
If you want to collaborate, have an idea for a strategy, or need help writing
or customizing code, send an email to burdytrader@gmail.com or send me a
message. Suggestions, ideas, and comments are always welcome! 🤝
I also develop automated trading codes for other trading platforms including:
- CTrader (C#)
- MetaTrader 4 (MQL4)
- MetaTrader 5 (MQL5)
If you need a strategy converted or developed for any of these platforms, feel
free to contact me!
================================================================================
⚠️ IMPORTANT: INSTRUMENT SELECTION 📈
-------------------------------------
This strategy performs BEST with currency pairs (forex). The CCI indicator
works particularly well in the forex market due to the nature of currency
movements and the effectiveness of the CCI in identifying overbought and
oversold conditions in trending markets.
Why Currency Pairs? 🎯
- CCI is highly effective in identifying reversals in forex markets
- Currency pairs show clear overbought/oversold patterns
- EMA filter (50/200) aligns well with major forex trends
- High liquidity ensures reliable signal execution
Performance Highlights:
In specific currency pairs, when properly configured, this strategy can achieve:
- Profit Factor: Over 2.0
- Win Rate: Up to 70%
- Particularly effective pairs: USDCAD, EURUSD, GBPJPY
While the strategy can work with other instruments (stocks, indices, commodities),
currency pairs provide the most consistent and reliable results. For optimal
performance, focus on major forex pairs with good liquidity and clear trending
characteristics.
================================================================================
WHAT DOES THIS STRATEGY DO? 🎯
---------------------------
This strategy combines the Commodity Channel Index (CCI) with Exponential
Moving Averages (EMA) to identify high-probability trading opportunities.
The strategy uses CCI crossovers with a smoothing moving average and filters
signals using EMA trend confirmation. The strategy automatically enters trades
when CCI crosses the smoothing MA in specific zones, indicating potential trend
reversals or continuations.
HOW IT WORKS? ⚙️
---------------
1. CCI CALCULATION 📈
The strategy calculates the Commodity Channel Index using:
- CCI = (Price - SMA(Price, length)) / (0.015 × Deviation(Price, length))
- Default length: 20 periods
- Source: HLC3 (typical price)
The CCI shows:
- Values above +100 = Overbought conditions
- Values below -100 = Oversold conditions
- Values around 0 = Neutral conditions
2. SMOOTHING MOVING AVERAGE 📊
A moving average is applied to the CCI to smooth out fluctuations:
- Types available: SMA, EMA, SMMA (RMA), WMA, VWMA
- Default: SMA with length 14
- Can be disabled (set to "None")
This smoothed line acts as a reference for crossover signals.
3. EMA TREND FILTER 🎯
Two EMAs are calculated on the CCI:
- EMA 50 (fast EMA)
- EMA 200 (slow EMA)
When the EMA filter is enabled:
- LONG signals only occur when EMA50 > EMA200 (uptrend confirmation)
- SHORT signals only occur when EMA50 < EMA200 (downtrend confirmation)
This filter can be enabled/disabled via the "Use EMA Filter" option.
4. ENTRY CONDITIONS 🎲
LONG ENTRY (Buy Signal):
- CCI crosses ABOVE the Smoothing MA (crossover)
- CCI is between Lower Level (-100) and Middle Level (0)
- EMA Filter: EMA50 > EMA200 (if filter enabled)
- No existing positions (or close opposite positions first)
SHORT ENTRY (Sell Signal):
- CCI crosses BELOW the Smoothing MA (crossunder)
- CCI is between Middle Level (0) and Upper Level (+100)
- EMA Filter: EMA50 < EMA200 (if filter enabled)
- No existing positions (or close opposite positions first)
5. POSITION MANAGEMENT 💰
The strategy uses a simple position management approach:
- Only ONE position at a time (no pyramiding)
- If a signal occurs in the opposite direction, closes existing position first
- Then opens new position in the new direction
- This prevents overexposure and simplifies risk management
6. TAKE PROFIT & STOP LOSS SETTINGS 🎯
The strategy uses percentage-based TP/SL:
- Take Profit: 1.0% (default, configurable)
- Stop Loss: 0.5% (default, configurable)
- Risk/Reward Ratio: 2:1 (TP is double the SL)
TP/SL are calculated once when the position opens and remain fixed.
AVAILABLE PARAMETERS ⚙️
-----------------------
CCI SETTINGS:
1. CCI Length (Default: 20)
- Period for CCI calculation
- Lower values = More sensitive to recent price action
- Higher values = More smoothed, less sensitive
2. CCI Source (Default: HLC3)
- Price source for CCI calculation
- Options: close, open, high, low, hlc3, hlcc4, ohlc4
3. CCI Lower Level (Default: -100)
- Lower boundary for LONG entry zone
- Typically -100 for oversold conditions
4. CCI Middle Level (Default: 0)
- Neutral level separating LONG and SHORT zones
5. CCI Upper Level (Default: +100)
- Upper boundary for SHORT entry zone
- Typically +100 for overbought conditions
SMOOTHING MA:
6. Type (Default: SMA)
- Moving average type: None, SMA, EMA, SMMA (RMA), WMA, VWMA
- Set to "None" to disable smoothing
7. Length (Default: 14)
- Period for smoothing MA
- Range: 7-28, step 7
EMA FILTER:
8. EMA 1 Length (Default: 50)
- Fast EMA period applied to CCI
9. EMA 2 Length (Default: 200)
- Slow EMA period applied to CCI
10. Use EMA Filter (Default: true)
- Enable/disable EMA trend filter
- When enabled: LONG only if EMA50 > EMA200, SHORT only if EMA50 < EMA200
RISK MANAGEMENT:
11. Take Profit (%) (Default: 1.0%)
- Profit target as percentage of entry price
- For LONG: Entry × (1 + TP%)
- For SHORT: Entry × (1 - TP%)
12. Stop Loss (%) (Default: 0.5%)
- Stop loss as percentage of entry price
- For LONG: Entry × (1 - SL%)
- For SHORT: Entry × (1 + SL%)
VISUALIZATION 📊
---------------
The strategy displays in a separate panel below the price chart:
1. CCI LINE
- Blue line showing the CCI value
- Oscillates around zero
2. SMOOTHING MA LINE
- Yellow line showing the smoothed CCI
- Reference line for crossover signals
3. CCI LEVEL LINES
- Red dashed line: Upper Level (+100)
- Green dashed line: Lower Level (-100)
- Yellow dashed line: Middle Level (0)
4. ENTRY SIGNALS
- Green cross: LONG entry signal (when CCI crosses above MA)
- Red cross: SHORT entry signal (when CCI crosses below MA)
RECOMMENDED SETTINGS 🎯
-----------------------
To get started, you can use these settings:
CCI SETTINGS:
- CCI Length: 20 (default)
- CCI Source: HLC3 (default)
- CCI Lower Level: -100 (default)
- CCI Middle Level: 0 (default)
- CCI Upper Level: +100 (default)
SMOOTHING MA:
- Type: SMA (default) or EMA for faster response
- Length: 14 (default)
EMA FILTER:
- EMA 1 Length: 50 (default)
- EMA 2 Length: 200 (default)
- Use EMA Filter: true (recommended for better signal quality)
RISK MANAGEMENT:
- Take Profit (%): 1.0% (adjust based on your risk/reward preference)
- Stop Loss (%): 0.5% (adjust based on your risk tolerance)
For more aggressive trading:
- Reduce CCI Length to 14-16
- Reduce Smoothing MA Length to 7
- Disable EMA Filter
For more conservative trading:
- Increase CCI Length to 24-30
- Increase Smoothing MA Length to 21-28
- Keep EMA Filter enabled
RECOMMENDED CURRENCY PAIRS 💱
------------------------------
This strategy is optimized for currency pairs and performs exceptionally well
on the following pairs when properly configured:
TOP PERFORMING PAIRS:
- USDCAD: Can achieve Profit Factor > 2.0 and Win Rate up to 70%
- EURUSD: Excellent performance with consistent signals
- GBPJPY: Strong results with proper EMA filter configuration
These pairs have shown the best historical performance due to:
- Clear trending characteristics
- Good response to CCI overbought/oversold levels
- Strong alignment with EMA 50/200 trend filter
- High liquidity ensuring reliable execution
When trading these pairs, use the default settings or slightly adjusted
parameters based on the pair's volatility. Always backtest on historical
data before using real money to find the optimal configuration for each
specific pair.
PRACTICAL EXAMPLE 📝
--------------------
Scenario: LONG Entry on EUR/USD
1. Market conditions:
- Price: 1.1000
- CCI: -80 (in oversold zone)
- Smoothing MA: -90
- CCI crosses above Smoothing MA (crossover occurs)
- EMA50: -50, EMA200: -70 (EMA50 > EMA200, uptrend confirmed)
2. Strategy checks conditions:
✓ Smoothing MA enabled: Yes
✓ Crossover: Yes (CCI crosses above MA)
✓ CCI in range: Yes (-100 <= -80 <= 0)
✓ EMA Filter: Yes (EMA50 > EMA200)
✓ No existing position: Yes
3. Strategy opens position:
- Direction: LONG (Buy)
- Entry: 1.1000 (current close)
- Take Profit: 1.1110 (1.0% above entry)
- Stop Loss: 1.0945 (0.5% below entry)
- Risk/Reward: 2:1
4. Outcome scenarios:
- If price rises to 1.1110 → Take Profit hit (profit)
- If price falls to 1.0945 → Stop Loss hit (loss limited)
IMPORTANT NOTE ⚠️
-----------------
This strategy is a technical analysis tool based on CCI and EMA indicators.
Like all trading strategies, it does NOT guarantee profits. Trading involves
significant risks and you can lose money, including your entire investment.
Past performance does not guarantee future results.
Always:
- Use appropriate risk management
- Never risk more than you can afford to lose
- Test the strategy on historical data (backtesting) before using real money
- Start with small position sizes or paper trading
- Understand that no strategy works 100% of the time
- Consider market conditions, news events, and other factors
- Keep a trading journal to learn and improve
The author and contributors are NOT responsible for any losses incurred from
using this strategy. Trading decisions are your own responsibility. Profits
are NOT guaranteed, and losses are possible.
LICENSE 📄
----------
This code is open source and available for modification. You are free to use,
modify, and distribute this strategy. If you republish or share a modified
version, please kindly mention the original author.
================================================================================
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.
Quality-Controlled Trend Strategy v2 (Expectancy Focused)This script focuses on quality control rather than curve-fitting.
No repainting, no intrabar tricks, no fake equity curves.
It uses confirmed-bar entries, ATR-based risk, and clean trend logic so backtests reflect what could actually be traded live.
If you publish scripts, this is the minimum structure worth sharing.
Why this script exists
TradingView’s public scripts are flooded with:
repainting indicators
no stop-loss logic
curve-fit entries that collapse live
strategies that look good only in hindsight
This script is intentionally boring but honest.
No repainting.
No intrabar tricks.
No fake equity curves
The goal is quality control, not hype.
What this strategy enforces
✔ Confirmed bars only
✔ Single source of truth for indicators
✔ Fixed risk structure
✔ No signal repainting
✔ Clean exits with unique IDs
✔ Works on any liquid market
Trading Logic (simple & auditable)
Trend filter
EMA 50 vs EMA 200
Entry
Pullback to EMA 50
RSI confirms momentum (not oversold/overbought)
Risk
ATR-based stop
Fixed R:R
One position at a time
This is the minimum bar for a strategy to be considered publish-worthy.
Why this helps TradingView quality
Most low-value scripts fail because they:
hide repainting logic
skip exits entirely
use inconsistent calculations
rely on hindsight candles
This strategy forces discipline:
every signal is confirmed
every trade has defined risk
behavior is repeatable across symbols & timeframes
If more scripts followed this baseline, TradingView’s public library would be far more usable.
Delta Volume EMA Strategy
================================================================================
DELTA VOLUME EMA STRATEGY - STRATEGY GUIDE 📊
================================================================================
💡 COLLABORATION & SUPPORT
---------------------------
If you want to collaborate, have an idea for a strategy, or need help writing
or customizing code, send an email to burdytrader@gmail.com or send me a
message. Suggestions, ideas, and comments are always welcome! 🤝
================================================================================
⚠️ IMPORTANT: INSTRUMENT SELECTION 📈
-------------------------------------
This strategy performs BEST with instruments that have a centralized data flow,
such as Futures contracts. Centralized markets provide more accurate and
reliable volume data, which is essential for Volume Delta analysis to work
effectively.
Why Futures? 🎯
- Centralized exchange = Accurate volume data
- All trades flow through a single exchange
- Volume reflects true buying/selling pressure
- Better correlation between volume and price movements
While the strategy can work with other instruments (stocks, forex, etc.),
volume data quality may vary, which can affect the reliability of Volume Delta
signals. For optimal performance, use Futures contracts or other instruments
with centralized, high-quality volume data.
================================================================================
WHAT DOES THIS STRATEGY DO? 🎯
---------------------------
This strategy uses Volume Delta analysis combined with Exponential Moving
Averages (EMA) to identify high-probability trading opportunities. The Volume
Delta measures the difference between buying and selling pressure, helping to
identify when strong institutional or smart money movements occur. The strategy
automatically enters trades when volume delta reaches extreme levels, indicating
potential trend continuation or reversal points.
HOW IT WORKS? ⚙️
---------------
1. VOLUME DELTA CALCULATION 📈
The strategy calculates the Volume Delta using the following formula:
- Volume Ratio (v) = Current Volume / Previous Volume
- EMA of Close (mac) = EMA(Close, MA Length) × Volume Ratio
- EMA of Open (mao) = EMA(Open, MA Length) × Volume Ratio
- Volume Delta (vd) = mac - mao
The Volume Delta shows:
- Positive values (green) = Buying pressure (buyers are more active)
- Negative values (red) = Selling pressure (sellers are more active)
2. VOLUME DELTA MOVING AVERAGE 📊
The strategy calculates an EMA of the Volume Delta (vdma) to smooth out
fluctuations and identify the overall trend of buying/selling pressure:
- vdma = EMA(Volume Delta, EMA Length)
- When vdma is above zero = Overall buying pressure
- When vdma is below zero = Overall selling pressure
3. PERCENTILE-BASED ENTRY CONDITIONS 🎲
Instead of using fixed thresholds, the strategy uses percentile analysis to
identify extreme volume delta movements:
For LONG entries:
- Analyzes seller volumes (negative volume delta) over the lookback period
- Calculates the percentile threshold (default: 80th percentile)
- Enters LONG when volume delta becomes positive AND exceeds the threshold
- This indicates a strong shift from selling to buying pressure
For SHORT entries:
- Analyzes buyer volumes (positive volume delta) over the lookback period
- Calculates the percentile threshold (default: 80th percentile)
- Enters SHORT when volume delta becomes negative AND exceeds the threshold
- This indicates a strong shift from buying to selling pressure
4. POSITION SIZING 💰
The strategy offers two position sizing methods:
a) RISK VALUE (Fixed Risk in Dollars):
- Calculates position size based on a fixed dollar risk amount
- Formula: Position Size = Risk Amount / (Entry Price × Stop Loss %)
- Ensures consistent risk per trade regardless of price level
b) LOTS SIZE:
- Uses a fixed lot size for all trades
- Simple and straightforward approach
- Useful when you want consistent position sizes
5. TAKE PROFIT & STOP LOSS SETTINGS 🎯
The strategy offers flexible TP/SL configuration in three modes:
a) PERCENTAGE (%):
- TP/SL calculated as a percentage of entry price
- Example: 2% TP means entry price × 1.02 (for LONG) or × 0.98 (for SHORT)
- Adapts automatically to different price levels
b) CURRENCY:
- TP/SL set as a fixed currency amount
- Example: $100 TP means entry price + $100 (for LONG) or - $100 (for SHORT)
- Useful for instruments with consistent price movements
c) PIPS:
- TP/SL set as a fixed number of pips
- Automatically converts pips to price using the instrument's minimum tick
- Ideal for forex and other pip-based instruments
6. AUTOMATIC TRADE EXECUTION ⚡
When entry conditions are met:
- Opens a position (LONG or SHORT) at market price
- Automatically sets Take Profit and Stop Loss based on selected mode
- Sends an alert with all trade information
- Only one position at a time (waits for current position to close)
AVAILABLE PARAMETERS ⚙️
----------------------
1. MA LENGTH (Default: 10)
- Length of the Exponential Moving Average used for close and open prices
- Lower values = More sensitive to recent price action
- Higher values = More smoothed, less sensitive
2. EMA LENGTH (Default: 20)
- Length of the EMA applied to Volume Delta
- Controls the smoothing of the volume delta signal
- Lower values = Faster signals, more trades
- Higher values = Slower signals, fewer but potentially more reliable trades
3. POSITION SIZE MODE
- "Risk Value": Calculate position size based on fixed dollar risk
- "Lots Size": Use fixed lot size for all trades
4. FIXED RISK IN $ (Default: 50)
- Only used when Position Size Mode = "Risk Value"
- The dollar amount you're willing to risk per trade
- Strategy calculates position size automatically
5. LOT SIZE (Default: 0.01)
- Only used when Position Size Mode = "Lots Size"
- Fixed lot size for all trades
6. TAKE PROFIT MODE
- "%": Percentage of entry price
- "Currency": Fixed currency amount
- "Pips": Fixed number of pips
7. STOP LOSS MODE
- "%": Percentage of entry price
- "Currency": Fixed currency amount
- "Pips": Fixed number of pips
8. TAKE PROFIT / STOP LOSS VALUES
- Different input fields appear based on selected mode
- Configure TP and SL independently
9. VOLUME LOOKBACK PERIOD (Default: 20)
- Number of bars used to calculate percentile thresholds
- Lower values = More sensitive, adapts faster to recent conditions
- Higher values = More stable, uses longer-term statistics
10. PERCENTILE THRESHOLD (Default: 80%)
- The percentile level used to identify extreme volume delta movements
- 80% means: only enter when volume delta exceeds 80% of recent values
- Higher values = Fewer but potentially stronger signals
- Lower values = More frequent signals
VISUALIZATION 📊
---------------
The strategy displays on the chart:
1. VOLUME DELTA COLUMNS
- Green columns = Positive volume delta (buying pressure)
- Red columns = Negative volume delta (selling pressure)
- Height represents the magnitude of buying/selling pressure
2. VOLUME DELTA MA AREA
- Two overlapping area plots showing the smoothed volume delta
- Black area (base layer) for overall visualization
- Green area (when positive) = Overall buying pressure trend
- Red area (when negative) = Overall selling pressure trend
- Helps identify the dominant market sentiment
3. ZERO LINE
- Horizontal line at zero
- Helps visualize when buying/selling pressure crosses the neutral point
ALERTS 🔔
--------
When enabled, the strategy sends alerts when a trade is opened. The alert
message includes:
- Direction: "Buy" for LONG positions or "Sell" for SHORT positions
- Entry Price: The price at which the position was opened
- TP (Take Profit): The target profit price
- SL (Stop Loss): The stop loss price
Example alert message:
"Buy | Entry: 1.2050 | TP: 1.2250 | SL: 1.1950"
Alerts can be configured in TradingView to send notifications via email,
SMS, webhooks, or other platforms.
RECOMMENDED SETTINGS 🎯
-----------------------
To get started, you can use these settings:
STRATEGY PARAMETERS:
- MA Length: 10 (default)
- EMA Length: 20 (default)
- Volume Lookback Period: 20 (default)
- Percentile Threshold: 80% (default)
POSITION SIZING:
- Position Size Mode: "Risk Value" (for risk management)
- Fixed Risk in $: Adjust based on your account size (e.g., 1-2% of account)
- OR use "Lots Size" with 0.01 lots for small accounts
TAKE PROFIT & STOP LOSS:
- TP Mode: "%" (recommended for most instruments)
- SL Mode: "%" (recommended for most instruments)
- Take Profit (%): 2.0% (adjust based on your risk/reward preference)
- Stop Loss (%): 1.0% (adjust based on your risk tolerance)
For Forex:
- Consider using "Pips" mode for TP/SL
- Typical values: 20-50 pips TP, 10-30 pips SL
For Stocks/Indices:
- Use "%" mode for TP/SL
- Typical values: 2-5% TP, 1-2% SL
PRACTICAL EXAMPLE 📝
-------------------
Scenario: LONG Entry on EUR/USD
1. Market conditions:
- Price: 1.1000
- Volume Delta becomes strongly positive
- Volume Delta exceeds 80th percentile of recent seller volumes
2. Strategy calculates:
- Entry Price: 1.1000 (current close)
- Position Size Mode: "Risk Value"
- Fixed Risk: $50
- Stop Loss Mode: "%"
- Stop Loss: 1.0%
- Position Size = $50 / (1.1000 × 0.01) = 4.55 lots
3. Strategy opens position:
- Direction: LONG (Buy)
- Entry: 1.1000
- Take Profit: 1.1220 (2% above entry)
- Stop Loss: 1.0890 (1% below entry)
- Alert sent: "Buy | Entry: 1.1000 | TP: 1.1220 | SL: 1.0890"
4. Outcome scenarios:
- If price rises to 1.1220 → Take Profit hit (profit)
- If price falls to 1.0890 → Stop Loss hit (loss limited to $50)
IMPORTANT NOTE ⚠️
-----------------
This strategy is a technical analysis tool based on volume delta analysis.
Like all trading strategies, it does NOT guarantee profits. Trading involves
significant risks and you can lose money, including your entire investment.
Past performance does not guarantee future results.
Always:
- Use appropriate risk management
- Never risk more than you can afford to lose
- Test the strategy on historical data (backtesting) before using real money
- Start with small position sizes or paper trading
- Understand that no strategy works 100% of the time
- Consider market conditions, news events, and other factors
- Keep a trading journal to learn and improve
The author and contributors are NOT responsible for any losses incurred from
using this strategy. Trading decisions are your own responsibility. Profits
are NOT guaranteed, and losses are possible.
LICENSE 📄
---------
This code is open source and available for modification. You are free to use,
modify, and distribute this strategy. If you republish or share a modified
version, please kindly mention the original author.
================================================================================
IPO MA Start DetectorWhat is this tool?
This indicator is designed specifically for Fresh IPOs and recently listed stocks. Standard indicators like the 50-day or 200-day Moving Averages do not appear on a chart until the stock has traded for enough days. This tool solves that problem by telling you exactly when these key levels will appear.
It visualizes the "birth" of a Moving Average, both in the past and in the future.
Key Features:
Future Forecasting: Projects vertical lines into the future to show exactly when a specific MA (e.g., 50 DMA) will start calculating.
Countdown Timer: Displays a countdown (e.g., "Starts in 12 days") so you don't have to count candles manually.
Historical Start Points: Marks the exact candle where an MA (like the 10 or 20 EMA) first appeared historically.
Clean & Subtle: Uses floating text without heavy background boxes to keep your chart clutter-free.
Dark Mode Optimized: Uses bright, neon colors (Lime, Cyan, Orange) that pop against dark backgrounds.
How it works:
The script calculates the age of the stock (bar count).
If the stock is younger than the required MA length (e.g., only 30 days old), it projects a dashed line to the 50th day.
It anchors a label to that future date, showing you the countdown.
Settings:
Toggle MAs: Turn on/off 10 EMA, 20 EMA, 50 SMA, 100 SMA, or 200 SMA individually.
Label Location: Customize where the future labels appear (Above Price, Below Price, or At Price) to avoid overlapping with candles.
Use Case: Perfect for traders tracking new listings who are waiting for the "20 EMA pullback" or "50 DMA anchor" strategies to become valid.
VWAP Long Entry PROVWAP Long Entry PRO - Instruction Manual
Overview
VWAP Long Entry PRO is a Pine Script v6 indicator designed for day traders following Andrew Aziz's VWAP trading methodology from "How to Day Trade for a Living." The indicator identifies high-probability long entry opportunities when stocks bounce off VWAP with proper trend, volume, and timing confirmation.
What This Indicator Does
The indicator monitors multiple conditions simultaneously and alerts you only when ALL criteria are met for a valid VWAP long entry:
1. ✅ Price is near VWAP (within customizable proximity)
2. ✅ Price crosses above VWAP (bullish candle confirmation)
3. ✅ Uptrend confirmed (EMA 20 > EMA 50)
4. ✅ Volume spike present (volume > 1.5x average)
5. ✅ Within optimal trading hours (default: first 2 hours after market open)
Visual Elements on the Chart
1. VWAP Line (Yellow)
* Shows the Volume Weighted Average Price for the current session
* Acts as dynamic support/resistance
2. EMA Lines
* Blue Line: 20-period Exponential Moving Average
* Red Line: 50-period Exponential Moving Average
* Trend is bullish when blue is above red
3. Green Triangle Markers
* Appear below candles when ALL entry conditions are met
* These are your entry signals
4. Background Colors
* Light Yellow Background: Price is within proximity zone of VWAP
* Light Red Background: Price crossed VWAP but filters failed (helps identify missed opportunities)
5. Filter Status Table (Top Right)
Real-time dashboard showing current status of all filters:
Filter Status
Trend ✓ (green) or ✗ (red)
Volume ✓ (green) or ✗ (red)
Time ✓ (green) or ✗ (red)
Near VWAP ✓ (green) or ✗ (red)
Entry OK ✓ GO (lime) or ✗ (orange)
How to Use the Indicator
Step 1: Apply to Your Watchlist
1. Add VWAP Long Entry PRO to charts of stocks on your morning gappers watchlist
2. Use 1-minute, 2-minute, or 5-minute timeframes
3. Monitor multiple stocks simultaneously
Step 2: Wait for Setup
Watch the Filter Status Table in the top right corner. A valid entry requires:
* All filters showing green ✓
* "Entry OK" showing ✓ GO in lime/green
Step 3: Execute the Trade
When a green triangle appears below a candle:
* Entry: Enter long at or near the close of that candle
* Stop Loss: Place stop just below VWAP (typically 2-5 cents below)
* Profit Target: Use resistance levels, previous highs, or VWAP + ATR
Step 4: Manage the Trade
* Hold as long as price stays above VWAP
* Exit if price closes back below VWAP
* Scale out at resistance levels
Customizable Settings
Access settings by clicking the gear icon next to the indicator name.
VWAP Proximity
* Default: 0.002 (0.2%)
* Purpose: Defines how close price must be to VWAP
* Adjust If:
* Too many signals → increase (e.g., 0.001 = 0.1%)
* Too few signals → decrease (e.g., 0.003 = 0.3%)
Filters Group
Trend Filter
* Use Trend Filter: Toggle on/off
* EMA 20 Length: Default 20
* EMA 50 Length: Default 50
* Purpose: Ensures you're trading with the trend
* Disable If: Trading reversals or range-bound stocks
Volume Filter
* Use Volume Filter: Toggle on/off
* Volume Multiplier: Default 1.5 (volume must be 1.5x average)
* Volume Average Period: Default 20 bars
* Purpose: Confirms institutional participation
* Adjust If:
* Too restrictive → lower to 1.2x
* Need stronger confirmation → increase to 2.0x
Time Filter
* Use Time Filter: Toggle on/off
* Start Hour (EST): Default 9
* Start Minute: Default 30
* Hours to Trade: Default 2
* Purpose: Focus on highest probability time window (9:30-11:30 AM EST)
* Adjust If:
* Trading afternoon momentum → extend hours to 4-6
* Power hour trading → change start to 15:00, 1 hour
Alert Setup
Creating an Alert
1. Click the Alert Icon (clock) in top toolbar
2. Condition: Select "VWAP Long Entry PRO"
3. Alert Trigger: Choose "VWAP Long Entry PRO"
4. Options: Select "Once Per Bar Close"
5. Expiration: Set to desired timeframe (default: 60 days)
6. Alert Actions: Enable:
* ✓ Notify on App
* ✓ Show Popup
* ✓ Send Email (optional)
* ✓ Play Sound
7. Message: The default message includes:
* Ticker symbol
* Close price
* VWAP value
* Confirmation that all filters passed
Multi-Symbol Alert
To monitor multiple stocks with one alert:
1. In the alert creation dialog, use the Symbol dropdown
2. Select multiple tickers from your watchlist
3. The alert will fire when ANY of those stocks meet the criteria
Trading Strategy
Based on Andrew Aziz's VWAP Methodology
Setup Requirements:
* Stock must be "in play" (gap, news, high relative volume from morning scanner)
* Price pulls back to VWAP during the trading day
* VWAP acts as support for longs (or resistance for shorts)
Entry Rules:
1. Wait for price to approach VWAP
2. Confirm VWAP as support with a bullish candle closing above it
3. Enter long on confirmation candle close or next candle open
4. All filters (trend, volume, time) must be green
Stop Loss:
* Place stop 2-5 cents below VWAP
* Adjust based on stock volatility and your risk tolerance
Profit Targets:
* First target: Previous resistance or swing high
* Second target: Daily pivot or Fibonacci extension
* Trailing stop: Move stop to breakeven once up 1:1 risk/reward
Risk Management:
* Risk 1-2% of account per trade
* Position size based on distance from stop loss
* Aim for 2:1 or 3:1 reward-to-risk ratio
Common Scenarios
Scenario 1: Clean VWAP Bounce
* All filters green ✓
* Price pulls back to VWAP
* Green triangle appears
* Action: Enter long immediately
Scenario 2: Failed Volume
* Trend ✓, Time ✓, Near VWAP ✓
* Volume ✗ (red X)
* Action: Wait for volume increase or skip trade
Scenario 3: Wrong Time Window
* All filters green except Time ✗
* Action: If you trade mid-day, consider extending time window in settings
Scenario 4: Downtrend
* Trend ✗ (EMA 20 < EMA 50)
* Action: Skip long entry; consider short setup instead
Scenario 5: False Breakout
* Light red background appears (filters failed)
* Price crossed VWAP but no confirmation
* Action: No entry; indicator correctly filtered out weak signal
Best Practices
1. Pre-Market Preparation
* Run your gappers scanner at 9:00 AM EST
* Identify 3-5 stocks "in play"
* Add VWAP Long Entry PRO to each chart
* Set up alerts for your watchlist
2. Chart Timeframe Selection
* 1-minute: Scalping, high-frequency entries (more signals, more noise)
* 2-minute: Balanced (recommended for beginners)
* 5-minute: Swing entries, fewer but higher-quality signals
3. Combine with Price Action
The indicator is a filter and alert system, not a complete strategy. Also consider:
* Support/resistance levels
* Candlestick patterns (hammer, engulfing)
* Overall market trend (SPY, QQQ)
* Stock-specific news and catalysts
4. Backtesting
* Use TradingView's Bar Replay feature
* Review past signals on your favorite stocks
* Adjust filter settings based on your results
* Document win rate and average R:R
5. Paper Trading First
* Test the indicator with paper trading for 1-2 weeks
* Track all signals and outcomes
* Refine settings before risking real capital
Troubleshooting
Problem: No Signals Appearing
Solutions:
* Check if all filters are enabled (they may be too restrictive)
* Verify stock has sufficient volume and volatility
* Try increasing VWAP proximity from 0.2% to 0.3%
* Disable time filter if trading mid-day
* Check if stock is actually near VWAP on chart
Problem: Too Many Signals
Solutions:
* Decrease VWAP proximity from 0.2% to 0.1%
* Increase volume multiplier from 1.5x to 2.0x
* Enable all filters (trend, volume, time)
* Use 5-minute chart instead of 1-minute
Problem: Filter Status Table Not Visible
Solutions:
* Scroll chart to right (table is in top right corner)
* Check if indicator is loaded (should appear in indicator list on left)
* Refresh chart and re-add indicator
* Close other overlapping indicators
Problem: Alert Not Firing
Solutions:
* Verify alert is set to "Once Per Bar Close" (not "Only Once")
* Check alert hasn't expired
* Ensure correct symbols are selected in alert
* Confirm indicator is applied to chart with alert
Limitations
What This Indicator Does NOT Do:
* ❌ Automatically enter/exit trades
* ❌ Calculate position size
* ❌ Account for fundamental news or earnings
* ❌ Work on stocks without sufficient liquidity
* ❌ Guarantee profitable trades
When NOT to Use:
* Pre-market or after-hours (VWAP resets at market open)
* Low-volume penny stocks (< 100K daily volume)
* Stocks without clear trend or catalyst
* During major news events or FOMC meetings
* First 5 minutes after market open (price discovery phase)
Example Trade Walkthrough
Stock: XYZ (from morning gappers, +5% gap on earnings)
Time: 10:15 AM EST
Timeframe: 2-minute chart
Filter Status Table Shows:
* Trend: ✓ (EMA 20 > EMA 50)
* Volume: ✓ (2.3x average)
* Time: ✓ (within 9:30-11:30 window)
* Near VWAP: ✓ (price at $50.05, VWAP at $50.00)
* Entry OK: ✗ (waiting for bullish close)
Next Candle:
* Opens at $50.02
* Drops to $49.98 (testing VWAP)
* Closes at $50.08 (bullish candle, above VWAP)
* Green triangle appears!
* Entry OK: ✓ GO
Trade Execution:
* Entry: $50.10 (next candle open)
* Stop Loss: $49.95 (5 cents below VWAP)
* Risk: $0.15 per share
* Target 1: $50.40 (previous resistance) = 2:1 R:R
* Target 2: $50.70 (daily high) = 4:1 R:R
Outcome:
* Price rallies to $50.45
* Scale out 50% at Target 1
* Move stop to breakeven ($50.10)
* Exit remaining 50% at $50.65
* Result: Profitable trade with 3:1 average R:R
Frequently Asked Questions
Q: Can I use this for short entries?
A: The current version is for long entries only. For shorts, you'd need to reverse the logic (price rejecting VWAP as resistance, downtrend, etc.).
Q: What stocks work best with this indicator?
A: Mid-cap momentum stocks ($1B-$10B market cap), price $10-$100, daily volume > 1M, with a clear catalyst (earnings, news, sector move).
Q: Can I trade this on daily or weekly charts?
A: No. VWAP is an intraday indicator that resets each trading day. Use only on intraday timeframes (1m, 2m, 5m, 15m, 30m).
Q: Should I take every signal?
A: No. Use the indicator as a filter, not a mechanical system. Consider overall market conditions, stock-specific catalysts, and your own price action analysis.
Q: How accurate is this indicator?
A: Accuracy depends on market conditions, stock selection, and your execution. Expect 50-65% win rate with proper 2:1+ risk/reward, similar to Aziz's methodology.
Resources
* Book: "How to Day Trade for a Living" by Andrew Aziz
* VWAP Strategy: Focus on Chapters 7.6 (VWAP Strategy) and supporting examples
* Community: Bear Bull Traders (www.bearbulltraders.com)
* Practice: Use TradingView's Bar Replay and Paper Trading features
Support & Updates
For questions, issues, or feature requests, refer to the TradingView script comments or the Bear Bull Traders community.
Version: 1.0
Pine Script Version: v6
Last Updated: December 30, 2025
Disclaimer: This indicator is for educational purposes only. Trading involves substantial risk. Past performance does not guarantee future results. Always practice proper risk management and never risk more than you can afford to lose.
1. www.tradingview.com
Price % Distance from 52 Weeks High, and EMAs"Stop guessing how far extended the price is—measure it instantly."
As a swing trader, knowing the exact distance between the current price and your key moving averages is critical. It tells you if a stock is overextended (too far) or offering a low-risk pullback entry (near 0%).
This lightweight utility script calculates the real-time percentage distance of the closing price from three critical levels:
10 EMA (Short-term momentum)
20 EMA (Swing trend baseline)
52-Week High (Major structural resistance)
It displays this data in a single, clean Smart Label attached to the latest candle, keeping your chart clutter-free.
Key Features
📊 Instant Calculation: See exactly how far (%) the price is from the 10 EMA, 20 EMA, and 52-Week High without using a measuring tool.
🧠 Intelligent Trend Coloring: The text color changes dynamically based on the immediate trend:
🟢 Green Text: Price is ABOVE both 10 & 20 EMAs (Bullish / Buy-the-dip zone).
🔴 Red Text: Price is BELOW both 10 & 20 EMAs (Bearish / Caution).
⚪ White Text: Price is mixed/choppy (between the EMAs).
👁️ High Contrast Design: Uses a semi-transparent dark background that ensures the data is clearly visible on both Light and Dark mode charts.
How to Use for Swing Trading
Pullback Entries: In a strong uptrend (Green Text), watch for the 10 EMA or 20 EMA % value to drop near 0.0% to 0.5%. This indicates a pullback to the average—often a high-probability entry point.
Overextension Warning: If the % distance becomes unusually large (e.g., Price is +5% above the 10 EMA), the move may be overextended, signaling to tighten stops or take profit.
52-Week Breakouts: Monitor the 52W % distance. As it approaches 0.0%, the stock is challenging its yearly high, alerting you to potential breakout plays.
Settings
EMA Lengths: Fully customizable (Default: 10 & 20).
Lookback: Adjust the high lookback period (Default: 260 bars for 52 Weeks).
Position: Toggle the label to appear Above or Below the candle.
MTF EMAs: 200 EMA (1hr & 15m), 8 EMA (5m)Using the 200 ema on 1hr and 15 min timeframe to ID entry points for scalping.
Bar Countdown ClockBar Countdown Clock
Description:
Displays the remaining time for the current bar on the chart. The countdown label follows the previous EMA5 price to stay stable during high-volatility markets. Font size and label position are fully customizable. Works well on BTC, Gold, Forex, and other trading instruments.
How to Use:
Add the indicator to your chart.
Adjust Clock Color, Font Size, and X Offset to suit your preference.
The label will automatically track the previous EMA5 price.
The countdown updates in real-time until the current bar closes.
Tips:
Increase X Offset if the label overlaps the current bar.
For high-volatility instruments, the label remains stable by following EMA5.
EMA Length can be adjusted to change the anchor point for the label.
MTF EMA50/200 // ADX (Auto TF Pairing) with SL/TP // v6Strategy overview (EMA50/EMA200 + ADX, multi-timeframe):
This system trades only in the direction of the higher-timeframe trend and uses the current chart timeframe for precise entries.
Trend filter (Higher TF):
Bull trend: EMA50 > EMA200 and ADX ≥ threshold → only LONGs allowed
Bear trend: EMA50 < EMA200 and ADX ≥ threshold → only SHORTs allowed
If ADX is below the “no-trend” threshold, the market is considered choppy and trades are avoided.
Entry (Lower TF / chart TF):
Enter only when the chart timeframe confirms momentum in the HTF direction using one of:
Touch: price pulls back to EMA50 and closes back on the trend side
Rejection: stricter “touch + reject” near EMA50
Cross: close crosses EMA50 in the trend direction
Stop Loss (structure + volatility):
LONG: below the safer of last swing low or EMA50, minus an ATR buffer
SHORT: above the safer of last swing high or EMA50, plus an ATR buffer
Take Profit (risk-based):
Targets are set as multiples of risk (R) from entry:
TP1 = 2R (default)
TP2 = 3R (optional)
The indicator plots only the latest trade’s Entry (black line), Stop (red dashed), and TP (green dashed), and it auto-pairs the chart timeframe with a “next level up” higher timeframe for the trend filter.
Golden Vector Trend Orchestrator (GVTO)Golden Vector Trend Orchestrator (GVTO) is a composite trend-following strategy specifically engineered for XAUUSD (Gold) and volatile assets on H4 (4-Hour) and Daily timeframes.
This script aims to solve a common problem in trend trading: "Whipsaws in Sideways Markets." Instead of relying on a single indicator, GVTO employs a Multi-Factor Confluence System that filters out low-probability trades by requiring alignment across Trend Structure, Momentum, and Volatility.
🛠 Methodology & Logic
The strategy executes trades only when four distinct technical conditions overlap (Confluence). If any single condition is not met, the trade is filtered out to preserve capital.
1. Market Structure Filter (200 EMA)
Indicator: Exponential Moving Average (Length 200).
Logic: The 200 EMA acts as the baseline for the long-term trend regime.
Bullish Regime: Price must close above the 200 EMA.
Bearish Regime: Price must close below the 200 EMA.
Purpose: Prevents counter-trend trading against the macro direction.
2. Signal Trigger & Trailing Stop (Supertrend)
Indicator: Supertrend (ATR Length 14, Factor 3.5).
Logic: Uses Average True Range (ATR) to detect trend reversals while accounting for volatility.
Purpose: Provides the specific entry signal and acts as a dynamic trailing stop-loss to let profits run while cutting losses when the trend invalidates.
3. Volatility Gatekeeper (ADX Filter)
Indicator: Average Directional Index (Length 14).
Threshold: > 25.
Logic: A high ADX value indicates a strong trend presence, regardless of direction.
Purpose: This is the most critical filter. It prevents the strategy from entering trades during "choppy" or ranging markets (consolidation zones) where trend-following systems typically fail.
4. Momentum Confirmation (DMI)
Indicator: Directional Movement Index (DI+ and DI-).
Logic: Checks if the buying pressure (DI+) is physically stronger than selling pressure (DI-), or vice versa.
Purpose: Ensures that the price movement is backed by genuine momentum, not just a momentary price spike.
📋 How to Use This Strategy
🟢 LONG (BUY) Setup
A Buy signal is generated only when ALL of the following occur simultaneously:
Price Action: Price closes ABOVE the 200 EMA (Orange Line).
Trigger: Supertrend flips to GREEN (Bullish).
Strength: ADX is greater than 25 (Strong Trend).
Momentum: DI+ (Plus Directional Indicator) is greater than DI- (Minus).
🔴 SHORT (SELL) Setup
A Sell signal is generated only when ALL of the following occur simultaneously:
Price Action: Price closes BELOW the 200 EMA (Orange Line).
Trigger: Supertrend flips to RED (Bearish).
Strength: ADX is greater than 25 (Strong Trend).
Momentum: DI- (Minus Directional Indicator) is greater than DI+ (Plus).
🛡 Exit Strategy
Stop Loss / Take Profit: The strategy utilizes the Supertrend Line as a dynamic Trailing Stop.
Exit Long: When Supertrend turns Red.
Exit Short: When Supertrend turns Green.
Note: Traders can also use the real-time P/L Dashboard included in the script to manually secure profits based on their personal Risk:Reward ratio.
📊 Included Features
Real-Time P/L Dashboard: A table in the top-right corner displays the current trend status, ADX strength, and the Unrealized Profit/Loss % of the current active position.
Smart Labeling: Buy/Sell labels are coded to appear only on the initial entry trigger. They do not repaint and do not spam the chart if the trend continues (no pyramiding visualization).
Visual Aids: Background color changes (Green/Red) to visually represent the active trend based on the Supertrend status.
⚠️ Risk Warning & Best Practices
Asset Class: Optimized for XAUUSD (Gold) due to its high volatility nature. It also works well on Crypto (BTC, ETH) and Major Forex Pairs.
Timeframe: Highly recommended for H4 (4 Hours) or D1 (Daily). Using this on lower timeframes (M5, M15) may result in false signals due to market noise.
News Events: Automated strategies cannot predict economic news (CPI, NFP). Exercise caution or pause trading during high-impact economic releases.
Multi-Indicator DashboardMulti-timeframe trading dashboard overlay on your chart. Analyzes Trend, Momentum, Swing, Strength, Direction, Volatility, and delivers a final VIEW (Bullish/Bearish/Flat) across 5 key timeframes. Perfect for quick multi-TF alignment checks! W → D → 2H → 1H → 15M
Features
Color-Coded Cells: Green (Bullish), Red (Bearish), Gray (Neutral).
Historical Mode: Toggle "Enable Historical View" → Slider picks N bars back (chart TF-aware: e.g., 10 bars = 2.5H on 15M).
Yellow vertical line + date label marks the exact bar
Quick Setup
Add to chart → Customize inputs.
Historical: Enable + slide "Bars Back" for past data snapshots.
Views Update Live: Real-time on current/historical bars.






















