EMA 3 vs EMA 21 % Difference AdjustableTitle: EMA 3 vs EMA 21 % Difference with Adjustable Labels
Description:
This script calculates the percentage difference between EMA 3 and EMA 21 and displays it directly on the chart as a label. Labels are shown only when the difference exceeds a user-defined threshold, helping traders easily spot significant deviations.
Features:
Calculates EMA 3 and EMA 21.
Displays percentage difference as labels above or below candles.
Adjustable label style and size.
User-defined percentage threshold for label visibility.
Plots EMA lines for visual reference.
Ideal for traders who want to monitor short-term EMA divergence relative to a longer-term trend in a clean and customizable way.
Bänder und Kanäle
Turtle cloudsTurtle clouds is a clean trading indicator that combines the classic Turtle 20-bar breakout strategy with an EMA cloud filter. It only generates signals when price wicks into the EMA cloud and rejects, confirming the breakout direction. Arrows appear bar-aligned, highlighting high-probability long and short setups while filtering trades with trend confluence.
✅ How it works now:
Long signal only triggers when:
The price wicks into the EMA cloud (low <= EMA zone)
Closes above the EMA cloud
Breaks the previous 20-bar high
EMA trend confirms bullish (emaFast > emaSlow)
Short signal only triggers when:
The price wicks into the EMA cloud (high >= EMA zone)
Closes below the EMA cloud
Breaks the previous 20-bar low
EMA trend confirms bearish (emaFast < emaSlow)
Arrows are bar-aligned and will not float or repaint.
H1 Pivot Close Lines (Blue) — gaps_on v4H1 Pivot Close Lines (Blue) — gaps_on v4
Auto draw line for close price in pivot
Prism Ribbon LitePrism Ribbon Lite (Free)
What it is: A glossy, on-chart trend ribbon that makes market state obvious at a glance—perfect for streamers and screenshots.
What you see: Three EMAs with a smooth color-fill, a soft Bollinger channel glow, optional session VWAP, and a compact HUD (trend, RVOL, BB z-width).
When to use it: Any timeframe, any symbol, when you want a beautiful, low-noise read of expansion vs balance.
Why it’s free: It’s a visual compass—no signals, no backtesting—so you can learn market structure without distractions.
Pro tip: Use the ribbon color + VWAP alignment to decide if you should even be looking for longs/shorts before applying your actual system.
Preston Pysh - BTC Power Law in Any Fiat CurrencyThis tool helps a user understand what the power law suggests the expected annual CAGR is for any currency (can be adjusted in the settings). It also shows the project price (in said fiat currency) for the next ten years.
Logarithmic Bollinger Bands with Secondary BandThe Logarithmic Bollinger Bands indicator is a variation of standard Bollinger Bands that applies the calculation on a logarithmic scale rather than directly on price values. This approach is particularly useful in markets where assets experience exponential growth or large percentage-based moves, as it allows the bands to adapt proportionally instead of being distorted by absolute price changes. The indicator calculates a moving average of the log-transformed price (the basis), then adds and subtracts multiples of the standard deviation of the log price to form the upper and lower bands. Finally, the results are converted back to normal price scale for plotting. In addition to the primary bands set at 2.0 standard deviations, this version includes a secondary band set at 0.5 standard deviations, offering a closer inner envelope around the mean.
To use this indicator
Traders can observe how price interacts with both the inner and outer bands. The outer 2.0 standard deviation bands represent traditional Bollinger-style boundaries, highlighting potential overbought or oversold conditions when price pushes beyond them.
The inner 0.5 bands provide an earlier signal of price compression and breakout potential, as moves outside these tighter bands often precede larger volatility expansions.
Together, these dual layers give traders a way to monitor both short-term fluctuations and broader trend extremes, making it easier to spot opportunities for entries, exits, or risk management in markets where percentage-based scaling is more meaningful than raw price levels.
SLefebvre The Trading DeskGUS Stats
Double Top Stats and lines
Open price
Gap info
Double Top bottom alert
TheWave + Supertrend Hybrid w/ Signals• Green triangle below bar → Long entry signal
• Red triangle above bar → Short entry signal
• Small lime cross above/below → Take-profit hit
• Small maroon cross above/below → Stop-loss hit
• SMA5 and Supertrend lines for trend context
This version makes all entries and exits visually obvious while keeping the hybrid TheWave + Supertrend logic intact.
TheWaveStrategy v6 - QQE + ATR (Optional Trailing)New Version Of the wave with QQE and ATR
• Compiles cleanly in Pine v6.
• Optional trailing stop toggle via useTrailingATR.
• Market exit uses strategy.close() properly.
• ATR spike filter uses 5m ATR.
• QQE confluence with 30m timeframe included.
MA Ribbon ExtendedCombines multiple moving averages (SMA, EMA, WMA, ALMA, HMA, DEMA, TEMA, SMMA, KAMA, FRAMA, McGinley) and VWAP ±σ bands into one indicator. The indicator is fully customizable based on type, period length, timeframe, visibility, and color settings.
Simple Volume Analyzer..This is a simple yet powerful volume indicator that colors volume bars based on whether they are above or below a moving average. Useful for identifying breakouts and low-volume zones.
Wahrscheinlichkeits-OszillatorWhat the Indicator Measures (Short Version)
The indicator measures, over several different time windows (eight different historyLength values), the probability that the current indicator value (here, a 14-period SMA of the closing price) is higher than past values in that window.
These probabilities (named prob1 … prob8) are expressed as percentages (0–100). The arithmetic mean of these eight percentages is avgLine. Additionally, there are smoothings (SMMA) and a baseline (SMA of avgLine), similar to Bollinger Bands.
Step-by-Step: How the Values Are Calculated
Source:
sma_val = ta.sma(close, 14) → This is the 14-period simple moving average of the closing price. This smoothed price is used as the "current comparison value" (instead of raw close) to reduce noise.
Historical Array & Counting (Function calculateProbability)
For each probX, the function maintains an array of the most recently stored current values (up to historicalLength entries).
For the current sma_val, it counts how many entries in the historical array are smaller than current.
Then this number is divided by the total number of historical entries → result is a decimal between 0 and 1.
Multiplying by 100 gives probX in percent.
Mathematical (Pseudo):
ini
Kopieren
Bearbeiten
prob = (1 / total) * sum_{i=0}^{total-1} [ current > historical ] * 100
→ This is equivalent to the empirical percentile/rank position of the current value within the history.
Eight Windows / Ensemble:
prob1 … prob8 are calculated with different historyLength values (400, 350, 175, 130, 83, 42, 21, 15).
Longer windows measure “long-term” trend strength; shorter windows measure short-term relative strength/momentum.
avgLine:
ini
Kopieren
Bearbeiten
avgLine = (prob1 + ... + prob8) / 8
→ Ensemble average of all eight percentiles. Useful for smoothing extreme values from individual windows.
Smoothing (SMMA):
SMMA on prob1 and SMMA1 on avgLine reduce short-term fluctuations and make signals more stable.
Baseline & “Bands”:
Finally, basis = ta.sma(avgLine, length) and dev = mult * ta.stdev(avgLine, length) are calculated — this is exactly the baseline + band logic of a Bollinger-style representation, applied to avgLine.
Why It’s Meaningful
Percentiles/ranks are robust to scale changes. Instead of absolute price differences, the indicator answers: “Is the current (smoothed) price higher than usual over the last N periods?”
The ensemble of multiple window lengths captures different market regimes: short windows react quickly to momentum, long windows provide context and reduce false signals.
Smoothing (SMA/SMMA) reduces noise, making signals less sensitive to intraday jitter.
Interpretation: When Is the Market “Overheated” / “Not Overheated”?
High values (e.g., avgLine ≈ 80–100 or individual probX > 90):
The current SMA is higher than almost all previous values in the considered window → strong bullish dominance. This can indicate a strong rally (momentum), but also potential overbought conditions, especially if:
Volume growth is slowing, or
avgLine has remained very high for several periods (overextension).
Low values (e.g., avgLine ≈ 0–20):
The current SMA is below most of the historical values → market is under pressure or potentially oversold. Short-term reversal/recovery opportunities are more likely, especially if multiple windows are simultaneously low.
Values around ~50: Neutral — the current value is typical, in the middle of its historical distribution.
Concrete Rule (Your Specification): Buy / Sell
Buy Signal: When all eight lines (prob1 … prob8) are below lowerLine (e.g., lowerLine = 20).
→ Meaning: In all short- to long-term windows, the current SMA is below most historical values → strong, broadly confirmed undervaluation signal (potential rebound or end of correction).
Recommendation: Strong convergent long signal, especially if accompanied by volume increase or support confirmation.
Sell Signal: When all eight lines are above upperLine (e.g., upperLine = 90).
→ Meaning: In all windows, the current SMA is higher than almost all historical values → broadly confirmed overbought / overheating.
Recommendation: Strong convergent short/take-profit signal, especially if coinciding with divergences, weakening volume, or resistance areas.
Important Limitations & Risks (Pay Attention!)
Trend vs. Mean-Reversion: In a strong trend, all windows can stay high for a long time (trend continuation risk). An “all below lower → buy” signal can continue to fall in a strong downtrend → use stop-loss and trend filter (higher TF).
Historical Length & Sampling: Chosen historyLength values determine sensitivity. Very long windows make the indicator slower; very short windows increase noise.
Statistical Stationarity: Percentile signals assume the distribution remains comparable — in crashes/news events, distributions can break.
Smoothing / Lag: SMMA reduces false breakouts but adds delay — trade entries may occur later.
Practical Examples (Concrete)
Example Buy: prob1..prob8 = , lowerLine = 20 → all below 20 → strong long signal.
Example Sell: prob1..prob8 = , upperLine = 90 → all above 90 → take-profit / short signal.
Conclusion (Short)
Your indicator is a percentile/ranking oscillator over multiple windows — a robust ensemble measuring the relative position of the (smoothed) price to its own history.
Overheated = high, broadly confirmed prob values (e.g., all > upperLine).
Oversold = low, broadly confirmed prob values (e.g., all < lowerLine) → your rule: all below lowerLine = buy, all above upperLine = sell.
Never trade blindly — always use risk management and confirmation (volume, higher timeframes, structure).
EMA Cross + KC Breakout + ATR StopThis uses an adjustable EMA Cross with an adjustable Keltner Channel breakout filter to identify trend breakouts for Long/Short entries. An adjustable ATR Stop is also provided for your entries.
Auto-Anchored MA with Deviation BandsAuto-Anchored MA with Deviation Bands
✨ Features
📈 Auto-Anchored MA: Calculates moving averages (EMA, SMA, EWMA, WMA, VWAP, TEMA) anchored to user-defined periods (Hour, Day, Week, etc.).📏 Deviation Bands: Plots upper/lower bands using Percentage or Standard Deviation modes for volatility analysis.⚙️ Customizable Timeframes: Choose anchor periods from Hour to Year for flexible trend analysis.🎨 Visuals: Displays MA and bands with gradient fills, customizable colors, and adjustable display bars.⏱️ Countdown Table: Shows bars since the last anchor for easy tracking.🛠️ Smoothing: Applies smoothing to bands for cleaner visuals.
🛠️ How to Use
Add to Chart: Apply the indicator on TradingView.
Configure Inputs:
Anchor Settings: Select anchor period (e.g., Day, Week).
MA Settings: Choose MA type (e.g., VWAP, TEMA).
Deviation Settings: Set deviation mode (Percentage/Std Dev) and multipliers.
Display Settings: Adjust bars to display, colors, and gradient fill.
Analyze: View MA, deviation bands, and countdown table on the chart.
Track Trends: Use bands as dynamic support/resistance and monitor anchor resets.
🎯 Why Use It?
Dynamic Analysis: Auto-anchors MA to key timeframes for adaptive trend tracking.
Volatility Insight: Deviation bands highlight potential breakouts or reversals.
Customizable: Tailor MA type, timeframe, and visuals to your trading style.
User-Friendly: Clear visuals and countdown table simplify analysis.
📝 Notes
Ensure sufficient bars for accurate MA and deviation calculations.
Gradient fill enhances readability but can be disabled for simplicity.
Best used with complementary indicators like RSI or Bollinger Bands for robust strategies.
Happy trading! 🚀📈
MoneyZone_SmartEleZone of action which helps identify smart money actioned. This bands help identify possible areas to expect action.
SMC + FVG + EMA + TrendlinesSMC + FVG + EMA + Trendlines legRange = math.abs(structureHigh - structureLow) // <-- เปลี่ยนชื่อจาก range -> legRange
if showCurrentStruct and not na(structureHigh) and not na(structureLow)
if na(curHighLine) == false
line.delete(curHighLine)
if na(curLowLine) == false
line.delete(curLowLine)
curHighLine := line.new(sHighIdx, structureHigh, bar_index, structureHigh, xloc.bar_index, color=currentStructColor, style=currentStructStyle, width=currentStructWidth)
curLowLine := line.new(sLowIdx, structureLow, bar_index, structureLow, xloc.bar_index, color=currentStructColor, style=currentStructStyle, width=currentStructWidth)
// ---------- Fibonacci on current leg ----------
if showFibo and legRange > 0
for k = 0 to array.size(fLevels) - 1
lvl = array.get(fLevels, k)
price = sDir == 1 ? structureHigh - (legRange - legRange * lvl)
: structureLow + (legRange - legRange * lvl)
l = line.new(sDir == 1 ? sHighIdx : sLowIdx, price, bar_index, price, xloc.bar_index, color=fiboColorMain, style=fiboStyle, width=fiboWidth)
label.new(bar_index + 10, price, str.tostring(lvl) + " (" + str.tostring(price) + ")", style=label.style_none, textcolor=fiboColorMain)
PCV (Darren.L-V2)Description:
This indicator combines Bollinger Bands, CCI, and RVI to help identify high-probability zones on M15 charts.
Features:
Bollinger Bands (BB) – displayed on the main chart in light gray. Helps visualize overbought and oversold price levels.
CCI ±100 levels + RVI – displayed in a separate sub-window:
CCI only shows the ±100 reference lines.
RVI displays a cyan main line and a red signal line.
Valid Zone Detection:
Candle closes outside the Bollinger Bands.
RVI crosses above +100 or below -100 (CCI level reference).
Candle closes back inside the BB, confirming a price rebound.
Requires two touches in the same direction to confirm the zone.
Only zones within 20–30 pips range are considered valid.
Usage:
Helps traders spot reversal or bounce zones with clear visual signals.
Suitable for all indices, Forex, and crypto on M15 timeframe.
VWAP Pro v6 (Color + Bands)AI helped me code VWAP
When price goes above VWAP line, VWAP line will turn green to indicate buyers are in control.
When price goes below VWAP line, VWAP line will turn red to indicate sellers are in control.
VWAP line stays blue when price is considered fair value.
Hilly's Advanced Crypto Scalping Strategy - 5 Min ChartTo determine the "best" input parameters for the Advanced Crypto Scalping Strategy on a 5-minute chart, we need to consider the goals of optimizing for profitability, minimizing false signals, and adapting to the volatile nature of cryptocurrencies. The default parameters in the script are a starting point, but the optimal values depend on the specific cryptocurrency pair, market conditions, and your risk tolerance. Below, I'll provide recommended input values based on common practices in crypto scalping, along with reasoning for each parameter. I’ll also suggest how to fine-tune them using TradingView’s backtesting and optimization tools.
Recommended Input Parameters
These values are tailored for a 5-minute chart for liquid cryptocurrencies like BTC/USD or ETH/USD on exchanges like Binance or Coinbase. They aim to balance signal frequency and accuracy for day trading.
Fast EMA Length (emaFastLen): 9
Reasoning: A 9-period EMA is commonly used in scalping to capture short-term price movements while remaining sensitive to recent price action. It reacts faster than the default 10, aligning with the 5-minute timeframe.
Slow EMA Length (emaSlowLen): 21
Reasoning: A 21-period EMA provides a good balance for identifying the broader trend on a 5-minute chart. It’s slightly longer than the default 20 to reduce noise while confirming the trend direction.
RSI Length (rsiLen): 14
Reasoning: The default 14-period RSI is a standard choice for momentum analysis. It works well for detecting overbought/oversold conditions without being too sensitive on short timeframes.
RSI Overbought (rsiOverbought): 75
Reasoning: Raising the overbought threshold to 75 (from 70) reduces false sell signals in strong bullish trends, which are common in crypto markets.
RSI Oversold (rsiOversold): 25
Reasoning: Lowering the oversold threshold to 25 (from 30) filters out weaker buy signals, ensuring entries occur during stronger reversals.
MACD Fast Length (macdFast): 12
Reasoning: The default 12-period fast EMA for MACD is effective for capturing short-term momentum shifts in crypto, aligning with scalping goals.
MACD Slow Length (macdSlow): 26
Reasoning: The default 26-period slow EMA is a standard setting that works well for confirming momentum trends without lagging too much.
MACD Signal Smoothing (macdSignal): 9
Reasoning: The default 9-period signal line is widely used and provides a good balance for smoothing MACD crossovers on a 5-minute chart.
Bollinger Bands Length (bbLen): 20
Reasoning: The default 20-period Bollinger Bands are effective for identifying volatility breakouts, which are key for scalping in crypto markets.
Bollinger Bands Multiplier (bbMult): 2.0
Reasoning: A 2.0 multiplier is standard and captures most price action within the bands. Increasing it to 2.5 could reduce signals but improve accuracy in highly volatile markets.
Stop Loss % (slPerc): 0.8%
Reasoning: A tighter stop loss of 0.8% (from 1.0%) suits the high volatility of crypto, helping to limit losses on false breakouts while keeping risk manageable.
Take Profit % (tpPerc): 1.5%
Reasoning: A 1.5% take-profit target (from 2.0%) aligns with scalping’s goal of capturing small, frequent gains. Crypto markets often see quick reversals, so a smaller target increases the likelihood of hitting profits.
Use Candlestick Patterns (useCandlePatterns): True
Reasoning: Enabling candlestick patterns (e.g., engulfing, hammer) adds confirmation to signals, reducing false entries in choppy markets.
Use Volume Filter (useVolumeFilter): True
Reasoning: The volume filter ensures signals occur during high-volume breakouts, which are more likely to sustain in crypto markets.
Signal Arrow Size (signalSize): 2.0
Reasoning: Increasing the arrow size to 2.0 (from 1.5) makes buy/sell signals more visible on the chart, especially on smaller screens or volatile price action.
Background Highlight Transparency (bgTransparency): 85
Reasoning: A slightly higher transparency (85 from 80) keeps the background highlights subtle but visible, avoiding chart clutter.
How to Apply These Parameters
Copy the Script: Use the Pine Script provided in the previous response.
Paste in TradingView: Open TradingView, go to the Pine Editor, paste the code, and click "Add to Chart."
Set Parameters: In the strategy settings, manually input the recommended values above or adjust them via the input fields.
Test on a 5-Minute Chart: Apply the strategy to a liquid crypto pair (e.g., BTC/USDT, ETH/USDT) on a 5-minute chart.
Fine-Tuning for Optimal Performance
To find the absolute best parameters for your specific trading pair and market conditions, use TradingView’s Strategy Tester and optimization features:
Backtesting:
Run the strategy on historical data for your chosen pair (e.g., BTC/USDT on Binance).
Check metrics like Net Profit, Profit Factor, Win Rate, and Max Drawdown in the Strategy Tester.
Focus on a sample period of at least 1–3 months to capture various market conditions (bull, bear, sideways).
Parameter Optimization:
In the Strategy Tester, click the settings gear next to the strategy name.
Enable optimization for key inputs like emaFastLen (test range: 7–12), emaSlowLen (15–25), slPerc (0.5–1.5), and tpPerc (1.0–3.0).
Run the optimization to find the combination with the highest net profit or best Sharpe ratio, but avoid over-optimization (curve-fitting) by testing on out-of-sample data.
Market-Specific Adjustments:
Volatile Pairs (e.g., DOGE/USDT): Use tighter stop losses (e.g., 0.5–0.7%) and smaller take-profit targets (e.g., 1.0–1.2%) to account for rapid price swings.
Stable Pairs (e.g., BTC/USDT): Slightly wider stop losses (e.g., 1.0–1.2%) and take-profit targets (e.g., 1.8–2.5%) may work better.
Trending Markets: Increase emaSlowLen (e.g., to 25–30) to follow stronger trends.
Choppy Markets: Tighten bbMult (e.g., to 1.8) and lower rsiOverbought/rsiOversold (e.g., to 70/30) to filter noise.
Forward Testing:
After backtesting, run the strategy in real-time on a demo account for 1–2 weeks to validate performance under current market conditions.
Important Notes
No Universal "Best" Numbers: Optimal parameters vary by crypto pair, exchange, and market conditions (e.g., bull vs. bear market). The suggested values are a starting point based on common scalping practices.
Risk Management: Never risk more than 1–2% of your account per trade. Adjust position sizing in TradingView’s strategy settings to align with your risk tolerance.
Market Volatility: Crypto markets are highly volatile. Test the strategy on your specific pair and adjust parameters if signals are too frequent or too rare.
Not Financial Advice: This is an educational tool. Backtest thoroughly and use a demo account before trading with real funds.
If you want me to generate a chart showing backtest performance for specific parameters or to tweak the script further (e.g., adding more indicators or adjusting signal logic), let me know!can you add clear buy ans sell signs above the candles in this codeTo add clear buy and sell signals above the candles in the provided Pine Script, I'll modify the existing code to include prominent text labels directly above (for sell signals) and below (for buy signals) the candles. These labels will be larger, color-coded, and positioned to avoid clutter, ensuring they are easily visible on the chart. The core strategy logic (EMA, RSI, MACD, Bollinger Bands, candlestick patterns, and volume filter) will remain unchanged, and I'll reuse the same artifact_id since this is an update to the previous script.AdvancedCryptoScalpingStrategy.pinex-pine
PCV Setup (By Darren.L)The PCV Setup is designed for M15 scalping trading.
It combines Bollinger Bands (volatility), CCI (momentum), and RVI (trend confirmation) to filter false signals and improve accuracy.
Sinyal Gabungan Lengkap (TWAP + Vol + Waktu)Sinyal Gabungan Lengkap (TWAP + Vol + Waktu) volume btc dan total3 dan ema
Order Blocks & FVG (Kostya)the indicator is the attempt to visualize the trading opportunities - price magnets and potential reversal zones for intraday and swing trading.