Moving Average Simple 1_M colorThis is a simple moving average. There is an option to show the last 1 month or last 20 bars in a different color. This can more clearly show the most recent change in direction
Indicatori e strategie
Quarterly-Inspired EMA Swing Strategy🚀 Quarterly EMA Strategy: Simplified
This strategy uses quarterly trends and pullbacks to EMAs (Exponential Moving Averages) to buy low and sell high in strong uptrends (longs) or short weak stocks in strong downtrends.
⸻
🔧 Core Setup
• Timeframe: Quarterly (1 candle = 3 months or ~65 trading days).
• Stocks: Liquid NSE F&O stocks (e.g., Reliance, Bajaj Finance, Tata Motors, etc.).
• Indicators Used:
• 10-quarter EMA → Shorter-term trend.
• 21-quarter EMA → Long-term trend.
• 13-week EMA → Weekly confirmation.
• ATR → For stop-loss.
• VIX → Volatility control.
• Relative Strength vs Nifty → Filter strong/weak stocks.
⸻
🟢 LONG SETUP (Buy on Pullback in Uptrend)
✅ Conditions:
1. Quarterly Trend is Bullish
Price > 10Q EMA > 21Q EMA
2. Pullback Happens
Price closes within 3% of 10Q or 21Q EMA, or touches it and bounces.
• E.g., Stock close = 8200, 10Q EMA = 8000 → Pullback = Valid (2.5% gap)
3. Previous Trend is Strong
• Last 1-2 quarters were making higher highs OR closing well above 10Q EMA
4. Candle Shows Rejection
• Lower wick (buying pressure from EMA)
• Small body (<5% total candle range)
5. Market Support Filters
• Nifty > its 4-quarter EMA (sloping upward)
• India VIX < 20 (low panic)
• Stock’s last 2 quarters’ return > 1.1× Nifty’s return
6. Weekly Confirmation
• Price > 13-week EMA
• 13W EMA is rising
• Bullish pattern in last 2 candles
• Volume ≥ 75% of 20-week average
⸻
📈 Example (Bajaj Finance):
• Close: 8200,
• 10Q EMA: 8000 (bullish),
• 21Q EMA: 7800
• Weekly price > 13W EMA → Confirmation ✅
⸻
🎯 Trade Plan (Long):
• Entry: 8200 (Quarterly) or near 13W EMA (Weekly)
• Stop-Loss: 2× ATR below 21Q EMA or candle low
• Target: 2:1 reward
• Exit 1: Book 50% at target
• Exit 2: Trail 21Q EMA
• Optional Hedge: Buy Nifty PUT if VIX > 15
⸻
🔴 SHORT SETUP (Sell on Pullback in Downtrend)
✅ Conditions:
1. Quarterly Trend is Bearish
Price < 10Q EMA < 21Q EMA
2. Pullback to EMA
Price closes within 3% of 10Q or 21Q EMA, or touches and gets rejected
3. Prior Trend is Down
Last 1-2 quarters had lower lows or closing >5% below 10Q EMA
4. Bearish Candle Setup
• Upper wick (rejection from EMA)
• Small body
5. Market Support Filters
• Nifty < its 4-quarter EMA (sloping down)
• India VIX < 20
• Stock’s 2-quarter return < 0.9× Nifty’s return
6. Weekly Confirmation
• Price < 13-week EMA
• 13W EMA is falling
• Bearish candles (engulfing, lower highs)
• Volume ≥ 75% of 20-week average
⸻
📉 Example (Vodafone Idea):
• Close: ₹8
• 10Q EMA: ₹8.2 → Close is 2.5% below
• Weekly close < 13W EMA
• Bearish candle → Confirmation ✅
⸻
🔻 Trade Plan (Short):
• Entry: 8
• Stop-Loss: 2× ATR above 21Q EMA or candle high
• Target: 2:1 reward
• Exit 1: Book 50% at target
• Exit 2: Trail 21Q EMA
• Optional Hedge: Buy Nifty CALL if VIX > 15
⸻
📊 Position Sizing (Same for Long & Short):
• Risk per trade: 0.5–1% of total capital
• Example:
• Capital = ₹10 lakh
• Risk = ₹10,000
• Stop = 800 points → Buy 12 shares
⸻
✅ Exit Rules Summary
AekFreedom Trading OscillatorAekFreedom Trading Oscillator: User Guide
Overview
The AekFreedom Trading Oscillator is a comprehensive, all-in-one technical analysis tool designed for TradingView. It consolidates a powerful suite of essential indicators into a single, highly customizable indicator pane. The primary goal is to reduce chart clutter and provide traders with a multi-faceted view of the market, combining momentum, trend strength, volatility, and divergence signals in one place.
Core Features & Indicators
This script includes the following fully customizable indicators:
Relative Strength Index (RSI): A core momentum oscillator used to measure the speed and change of price movements. It features gradient fills for overbought (70-100) and oversold (0-30) zones, along with an optional smoothing moving average.
Stochastic Oscillator: Another momentum indicator that compares a particular closing price of a security to a range of its prices over a certain period of time to identify overbought and oversold conditions.
MACD (Moving Average Convergence Divergence): A trend-following momentum indicator that shows the relationship between two exponential moving averages (EMAs). It includes the MACD line, Signal line, and Histogram.
Awesome Oscillator (AO): A momentum indicator that measures the market's driving force by comparing recent momentum with general momentum over a wider timeframe.
ADX (Average Directional Index): An indicator used to quantify the strength of a trend, regardless of its direction (up or down). An ADX value over 25 typically suggests a strong trend.
ATR (Average True Range): A key indicator for measuring market volatility.
Advanced Divergence Engine
One of the most powerful features of this script is its built-in Divergence Engine. It can automatically detect and display both Regular Bullish and Regular Bearish divergences.
Supported Indicators: Divergence detection is available for RSI, Awesome Oscillator (AO), and the MACD Line.
Visual Signals: When a divergence is found, the script will:
Draw a line on the oscillator connecting the relevant pivot points.
Display a "Bull" or "Bear" label directly below or above the signal for easy identification.
Alerts: You can set up alerts in TradingView that will trigger whenever a new divergence signal appears.
How to Use: Settings Panel
The indicator is fully customizable via the settings panel.
Indicator Visibility
This is your main control panel for toggling visuals on and off to keep your chart clean.
Show...: Check or uncheck any indicator (e.g., Show RSI & MA, Show Stochastic, Show ATR) to display or hide it instantly.
Show... Divergence: Use these checkboxes (e.g., Show RSI Divergence) to control the visibility of the divergence lines and labels on the chart.
Indicator-Specific Settings
Each indicator has its own group of settings for fine-tuning its parameters.
RSI / AO / MACD Settings:
Here you can adjust standard parameters like Length, Source, etc.
IMPORTANT: Each of these has a Calculate Divergence checkbox. You must enable this checkbox for the script to perform the resource-intensive calculation for that indicator's divergence.
Stochastic Settings: Adjust the %K Length, %K Smoothing, and %D Smoothing.
ADX Settings: Adjust the ADX Smoothing and DI Length.
ATR Settings: Adjust the Length for the ATR calculation.
📌 How to Enable Divergence Signals (2 Steps):
To see divergence for an indicator (e.g., MACD), you must do two things:
Go to "MACD Settings" and check the box for Calculate Divergence.
Go to "Indicator Visibility" and ensure the box for Show MACD Divergence is also checked.
FTBBT📘 FTBBT (Filtered Two Bar Break Through)
Overview
FTBBT is a filtered breakout indicator based on the Two Bar Break Through concept.
It generates Buy and Sell signals when the current bar breaks above or below the previous bar’s high/low, but filters out duplicate signals in the same direction.
This ensures that only the **first breakout** in each sequence is shown, keeping the chart clean and focused.
---
Key Features
1. Filtered Breakouts
• Only the first breakout is displayed.
• Prevents clutter when multiple candles break in the same direction.
2. Visuals
• Light pink labels (60% transparency).
• "Buy" appears below the bar when the high is broken.
• "Sell" appears above the bar when the low is broken.
3. Alerts
• Alerts are triggered only for filtered signals.
• Custom alert messages for both Buy and Sell events.
---
How to Use
• Add FTBBT to your chart.
• Focus on the first breakout signal after a move begins.
• Combine with trend filters, volume, or higher timeframe context for stronger confirmation.
---
👉 In short:
**FTBBT delivers clean, filtered breakout signals.**
It highlights meaningful shifts by removing duplicate noise, showing traders only the key moments.
NY Session Candle (09:30-16:00 ET, Mon-Fri)This indicator plots one synthetic candle per day that represents the official New York trading session (09:30–16:00 ET).
It aggregates the open, high, low, and close across the entire session and draws a single candle on your chart, making it easier to compare session ranges, direction, and volatility.
Features
Aggregates intraday OHLC into one candle per session.
Colors the candle green/red depending on close vs. open.
Excludes weekends (Sat/Sun) automatically.
Adjustable timezone and session window in settings.
Works on any intraday chart.
Use case
Helps traders visually analyze how each New York session behaved without changing chart timeframes. It is a visualization tool only and does not generate trading signals or predictions.
Notes
The script does not repaint and does not use lookahead.
It is for analysis purposes only, not a trading strategy.
Original code; no third-party scripts reused.
Custom ORBIT — GSK-VIZAG-AP-INDIA 📌 Description
Custom ORBIT — Opening Range Breakout Indicator Tool
Created by GSK-VIZAG-AP-INDIA
This indicator calculates and visualizes the Opening Range (OR) of the trading session, with customizable start/end times and flexible range duration. The Opening Range is defined by the highest and lowest prices during the selected initial market window.
🔹 Key Features:
User-defined Opening Range duration (default: 15 minutes from 9:15).
Adjustable session start and end times.
Plots Opening Range High (ORH) and Opening Range Low (ORL).
Extends OR levels across the session with multiple line style options (Dotted, Dashed, Solid, Smoothed).
Highlights breakouts (price crossing above/below OR) and reversals (price returning back inside).
Simple chart markers (triangles/labels) for quick visual recognition.
⚠️ Disclaimer:
This tool is intended for educational and analytical purposes only. It does not generate buy/sell signals or provide financial advice. Always use independent analysis and risk management.
STUDENT WYCKOFF PUNCHIdea Larry W
for day,week,intraday
Idea Larry W
for day,week,intradayIdea Larry W
for day,week,intradayIdea Larry W
for day,week,intradayIdea Larry W
for day,week,intradayIdea Larry W
for day,week,intradayIdea Larry W
for day,week,intradayIdea Larry W
for day,week,intradayIdea Larry W
for day,week,intraday
VVIX/VIX Ratio with Interpretation LevelsVVIX/VIX Ratio with Interpretation Levels
This indicator plots the ratio of VVIX (Volatility of Volatility Index) to VIX (CBOE Volatility Index) in a separate panel.
The ratio highlights when the options market is pricing unusually high volatility in volatility (VVIX) relative to the base volatility index (VIX).
Ratio < 5 → Complacency: Markets expect stability; often a pre-shock zone.
5–6 → Tension Building: Traders begin hedging volatility risk while VIX remains low.
6–7 → Elevated Risk: Divergence warns of potential regime change in volatility.
> 7 → High-Risk Zone: Options market pricing aggressive swings; can precede volatility spikes in equities.
The script also includes dashed interpretation lines (5, 6, 7) and automatic labels when key thresholds are crossed.
Background shading helps visualize current regime.
Use cases:
Detect hidden stress when VIX remains calm but VVIX rises.
Anticipate potential volatility regime shifts.
Support risk management and timing of long/short volatility strategies.
Chandili ex aksh//@version=5
indicator("Chandelier Exit", overlay=true)
// === Inputs ===
length = input.int(22, "ATR Length")
mult = input.float(3.0, "ATR Multiplier")
// === ATR Calculation ===
atr = ta.atr(length)
// === Chandelier Exit Formulas ===
longExit = ta.highest(high, length) - atr * mult
shortExit = ta.lowest(low, length) + atr * mult
// === Plot Stops ===
plot(longExit, title="Long Stop", color=color.green, linewidth=2)
plot(shortExit, title="Short Stop", color=color.red, linewidth=2)
av chandielier exit//@version=5
indicator("Chandelier Exit", overlay=true)
// Inputs
length = input.int(10, "ATR Length")
mult = input.float(1.0, "ATR Multiplier")
// ATR calculation
atr = ta.atr(length)
// Long Exit (trailing stop for longs)
longStop = ta.highest(high, length) - mult * atr
// Short Exit (trailing stop for shorts)
shortStop = ta.lowest(low, length) + mult * atr
// Plotting
plot(longStop, color=color.green, title="Chandelier Long Stop", linewidth=2)
plot(shortStop, color=color.red, title="Chandelier Short Stop", linewidth=2)
BTC Macro Composite Index -Offsettingthis is an indicator using Howell's Thesis of BTC moved by liquidity :
instead of using global M2, it composes :
Global Liquidity (41%) = USD-adjusted CB balance sheets (WALCL, EUCBBS, JPCBBS, CNCBBS)
Investor Risk Appetite (22%)=Copper/Gold ratio, inverted VIX (risk-on), HY vs IG OAS
Gold-related factors(15-20%)= XAUUSD + BTC/Gold ratio (Gold influence on Bitcoin)
All of it offset foward 90 days , and it does a better job on identifying where the btc price will be headed .....
Stochastic (Tri Band Strategy)Based on DayTraderRockStar 1m strategy, but instead of 4 band, there is only 3 and are all overlayed onto the same chart. for how the strategy works refer to this guide www.youtube.com
Smart Money Windows- X7Smart Money Windows 📊💰
Unlock the secret moves of the big players! This indicator highlights key liquidity traps, smart money zones, and market kill zones for the Asian, London, and New York sessions. See where the pros hide their orders and spot potential price flips before they happen! 🚀🔥
Features:
Visual session boxes with high/low/mid levels 🟪🟫
NY session shifted 60 mins for precise timing 🕒
Perfect for spotting traps, inducements & smart money maneuvers 🎯
Works on Forex, crypto, and stocks 💹
Get in the “Smart Money Window” and trade like the pros! 💸🔑
By HH
Retail Herd Index (RSI + MACD + Stoch) [mqsxn]The Retail Herd Index is a sentiment-style indicator that tracks how many of the “classic retail indicators”: RSI, MACD, and Stochastic are screaming the same thing at once.
Instead of following each tool separately, this script unifies them into a single index score ranging from strongly bearish to strongly bullish. The more they agree, the stronger the signal.
This gives you an immediate snapshot of when retail-favorite signals are aligned (high probability of “herd” behavior), versus when they’re mixed and uncertain.
-----
🔎 How It Works
RSI contributes bullish when it’s oversold (and optionally rising), bearish when it’s overbought (and optionally falling).
MACD contributes bullish when MACD is above Signal (and optionally histogram > 0), bearish when MACD is below Signal (and optionally histogram < 0).
Stochastic contributes bullish on a %K > %D cross in the oversold zone, bearish on a %K < %D cross in the overbought zone.
Each module can be weighted individually, disabled, or tuned with custom thresholds. The total is combined into the Herd Index, plotted as columns above/below zero. Extreme zones can trigger bar coloring, labels, and alerts.
-----
⚙️ Inputs & Settings
Modules
Use RSI / Use MACD / Use Stochastic → Toggle each component on or off.
RSI
RSI Length → Period length for RSI calculation.
RSI Overbought / Oversold → Thresholds that trigger bearish/bullish conditions.
RSI Slope Confirmation → Requires RSI to be rising when oversold or falling when overbought.
RSI Source → Input price source for RSI.
MACD
MACD Fast / Slow / Signal → Standard MACD settings.
Require MACD hist above/below zero → Adds an extra filter: bullish only if histogram > 0, bearish only if histogram < 0.
Stochastic
%K Length / Smoothing / %D Length → Standard stochastic parameters.
Overbought / Oversold → Band levels for extreme signals.
Only count crosses inside bands → Restricts signals to crosses that occur fully inside the OB/OS zones.
Weights
Weight: RSI / MACD / Stoch → Adjust each module’s importance. Setting a weight to 0 disables its contribution.
Display
Color Bars By Herd Index → Colors candles when index is extreme.
Show Extremes Labels → Labels bars when the Herd Index reaches extreme bullish or bearish.
Extreme Threshold → Absolute value at which the index is considered “extreme” (default = 2).
Polynomial Regression HeatmapPolynomial Regression Heatmap – Advanced Trend & Volatility Visualizer
Overview
The Polynomial Regression Heatmap is a sophisticated trading tool designed for traders who require a clear and precise understanding of market trends and volatility. By applying a second-degree polynomial regression to price data, the indicator generates a smooth trend curve, augmented with adaptive volatility bands and a dynamic heatmap. This framework allows users to instantly recognize trend direction, potential reversals, and areas of market strength or weakness, translating complex price action into a visually intuitive map.
Unlike static trend indicators, the Polynomial Regression Heatmap adapts to changing market conditions. Its visual design—including color-coded candles, regression bands, optional polynomial channels, and breakout markers—ensures that price behavior is easy to interpret. This makes it suitable for scalping, swing trading, and longer-term strategies across multiple asset classes.
How It Works
The core of the indicator relies on fitting a second-degree polynomial to a defined lookback period of price data. This regression curve captures the non-linear nature of market movements, revealing the true trajectory of price beyond the distortions of noise or short-term volatility.
Adaptive upper and lower bands are constructed using ATR-based scaling, surrounding the regression line to reflect periods of high and low volatility. When price moves toward or beyond these bands, it signals areas of potential overextension or support/resistance.
The heatmap colors each candle based on its relative position within the bands. Green shades indicate proximity to the upper band, red shades indicate proximity to the lower band, and neutral tones represent mid-range positioning. This continuous gradient visualization provides immediate feedback on trend strength, market balance, and potential turning points.
Optional polynomial channels can be overlaid around the regression curve. These three-line channels are based on regression residuals and a fixed width multiplier, offering additional reference points for analyzing price deviations, trend continuation, and reversion zones.
Signals and Breakouts
The Polynomial Regression Heatmap includes statistical pivot-based signals to highlight actionable price movements:
Buy Signals – A triangular marker appears below the candle when a pivot low occurs below the lower regression band.
Sell Signals – A triangular marker appears above the candle when a pivot high occurs above the upper regression band.
These markers identify significant deviations from the regression curve while accounting for volatility, providing high-quality visual cues for potential entry points.
The indicator ensures clarity by spacing markers vertically using ATR-based calculations, preventing overlap during periods of high volatility. Users can rely on these signals in combination with heatmap intensity and regression slope for contextual confirmation.
Interpretation
Trend Analysis :
The slope of the polynomial regression line represents trend direction. A rising curve indicates bullish bias, a falling curve indicates bearish bias, and a flat curve indicates consolidation.
Steeper slopes suggest stronger momentum, while gradual slopes indicate more moderate trend conditions.
Volatility Assessment :
Band width provides an instant visual measure of market volatility. Narrow bands correspond to low volatility and potential consolidation, whereas wide bands indicate higher volatility and significant price swings.
Heatmap Coloring :
Candle colors visually represent price position within the bands. This allows traders to quickly identify zones of bullish or bearish pressure without performing complex calculations.
Channel Analysis (Optional) :
The polynomial channel defines zones for evaluating potential overextensions or retracements. Price interacting with these lines may suggest areas where mean-reversion or trend continuation is likely.
Breakout Signals :
Buy and Sell markers highlight pivot points relative to the regression and volatility bands. These are statistical signals, not arbitrary triggers, and should be interpreted in context with trend slope, band width, and heatmap intensity.
Strategy Integration
The Polynomial Regression Heatmap supports multiple trading approaches:
Trend Following – Enter trades in the direction of the regression slope while using the heatmap for momentum confirmation.
Pullback Entries – Use breakouts or deviations from the regression bands as low-risk entry points during trend continuation.
Mean Reversion – Price reaching outer channel boundaries can indicate potential reversal or retracement opportunities.
Multi-Timeframe Alignment – Overlay on higher and lower timeframes to filter noise and improve entry timing.
Stop-loss levels can be set just beyond the opposing regression band, while take-profit targets can be informed by the distance between the bands or the curvature of the polynomial line.
Advanced Techniques
For traders seeking greater precision:
Combine the Polynomial Regression Heatmap with volume, momentum, or volatility indicators to validate signals.
Observe the width and slope of the regression bands over time to anticipate expanding or contracting volatility.
Track sequences of breakout signals in conjunction with heatmap intensity for systematic trade management.
Adjusting regression length allows customization for different assets or timeframes, balancing responsiveness and smoothing. The combination of polynomial curve, adaptive bands, heatmap, and optional channels provides a comprehensive statistical framework for informed decision-making.
Inputs and Customization
Regression Length – Determines the number of bars used for polynomial fitting. Shorter lengths increase responsiveness; longer lengths improve smoothing.
Show Bands – Toggle visibility of the ATR-based regression bands.
Show Channel – Enable or disable the polynomial channel overlay.
Color Settings – Customize bullish, bearish, neutral, and accent colors for clarity and visual preference.
All other internal parameters are fixed to ensure consistent statistical behavior and minimize potential misconfiguration.
Why Use Polynomial Regression Heatmap
The Polynomial Regression Heatmap transforms complex price action into a clear, actionable visual framework. By combining non-linear trend mapping, adaptive volatility bands, heatmap visualization, and breakout signals, it provides a multi-dimensional perspective that is both quantitative and intuitive.
This indicator allows traders to focus on execution, interpret market structure at a glance, and evaluate trend strength, overextensions, and potential reversals in real time. Its design is compatible with scalping, swing trading, and long-term strategies, providing a robust tool for disciplined, data-driven trading.
Dave Trading Indicator (with Arrows)//@version=5
indicator("A1 SMC Clean Entry (Arrows + SL/TP) - Publishable", overlay=true,
max_labels_count=500, max_lines_count=500, max_boxes_count=200)
// === USER SETTINGS ===
rsiLength = input.int(14, "RSI Length")
slATRMult = input.float(1.5, "Stop Loss (ATR Multiplier)", step=0.1)
tpRR = input.float(2.0, "Take Profit (R:R)", step=0.1)
htfEMA = input.int(200, "Trend EMA (filter)", minval=1)
lookbackHigh = input.int(20, "Liquidity High Lookback")
lookbackLow = input.int(20, "Liquidity Low Lookback")
obLookback = input.int(8, "Order Block Lookback")
keepOnlyLast = input.bool(true, "Keep only latest drawings", tooltip="Deletes previous label/box/lines when a new signal appears")
// === INDICATORS / FILTERS ===
rsi = ta.rsi(close, rsiLength)
atr = ta.atr(14)
trendEMA = ta.ema(close, htfEMA)
// === LIQUIDITY SWEEP LOGIC ===
// A "grab" means price briefly sweeps the recent extreme then closes back beyond it
liqHigh = ta.highest(high, lookbackHigh)
liqLow = ta.lowest(low, lookbackLow)
grabHigh = high > liqHigh and close < liqHigh // stop-hunt above recent highs
grabLow = low < liqLow and close > liqLow // stop-hunt below recent lows
// === CORE ENTRY RULES ===
// Multi-confirmation: liquidity sweep + RSI + EMA trend
longCondition = grabLow and rsi > 50 and close > trendEMA
shortCondition = grabHigh and rsi < 50 and close < trendEMA
// === GLOBAL ARROWS (must be in global scope) ===
plotshape(longCondition, title="BUY Arrow", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.large, text="BUY")
plotshape(shortCondition, title="SELL Arrow", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.large, text="SELL")
// === ALERTS ===
alertcondition(longCondition, title="BUY setup", message="{{ticker}} BUY setup")
alertcondition(shortCondition, title="SELL setup", message="{{ticker}} SELL setup")
// === OBJECT MANAGEMENT: keep only last drawings if enabled ===
var label lastLabel = na
var line lastSL = na
var line lastTP = na
var box lastBox = na
f_delete_prev() =>
if not na(lastLabel)
label.delete(lastLabel)
lastLabel := na
if not na(lastSL)
line.delete(lastSL)
lastSL := na
if not na(lastTP)
line.delete(lastTP)
lastTP := na
if not na(lastBox)
box.delete(lastBox)
lastBox := na
// === WHEN LONG TRIGGERS ===
if longCondition
if keepOnlyLast
f_delete_prev()
entryPrice = close
stopLoss = entryPrice - atr * slATRMult
takeProfit = entryPrice + (entryPrice - stopLoss) * tpRR
// Label (entry)
lastLabel := label.new(bar_index, entryPrice, text="BUY", style=label.style_label_up, color=color.green, textcolor=color.white, size=size.small)
// SL and TP lines (extend a few bars to the right)
lastSL := line.new(bar_index, stopLoss, bar_index + 20, stopLoss, color=color.red, style=line.style_dashed, width=1)
lastTP := line.new(bar_index, takeProfit, bar_index + 20, takeProfit, color=color.green, style=line.style_dashed, width=1)
// Order Block (approx): use last bearish range before move up
bearOB_top = ta.highest(high, obLookback)
bearOB_bot = ta.lowest(low, obLookback)
// draw a box that covers last obLookback candles and spans bot..top
lastBox := box.new(bar_index - obLookback, bearOB_top, bar_index, bearOB_bot, bgcolor=color.new(color.green, 85), border_color=color.green)
// === WHEN SHORT TRIGGERS ===
if shortCondition
if keepOnlyLast
f_delete_prev()
entryPrice = close
stopLoss = entryPrice + atr * slATRMult
takeProfit = entryPrice - (stopLoss - entryPrice) * tpRR
// Label (entry)
lastLabel := label.new(bar_index, entryPrice, text="SELL", style=label.style_label_down, color=color.red, textcolor=color.white, size=size.small)
// SL and TP lines
lastSL := line.new(bar_index, stopLoss, bar_index + 20, stopLoss, color=color.red, style=line.style_dashed, width=1)
lastTP := line.new(bar_index, takeProfit, bar_index + 20, takeProfit, color=color.green, style=line.style_dashed, width=1)
// Order Block (approx): last bullish range before move down
bullOB_top = ta.highest(high, obLookback)
bullOB_bot = ta.lowest(low, obLookback)
lastBox := box.new(bar_index - obLookback, bullOB_top, bar_index, bullOB_bot, bgcolor=color.new(color.red, 85), border_color=color.red)
// === OPTIONAL DEBUG PLOTS (comment out if you don't want them) ===
// plot(rsi, title="RSI", color=color.orange) // off by default to keep chart clean
// plot(trendEMA, title="EMA200", color=color.blue)
// keep indicator valid even if nothing plotted
plot(na)
trending -Separate Pane Color BandThe "Donchian trendi multi time frame Color Band" is designed to identify trend directions based on swing highs and lows (similar to Donchian channel concepts, where trends are determined by breakouts from recent highs/lows). The indicator operates in a separate pane (overlay = false) and primarily visualizes:
Trend Direction: Determined by the relative positions of the most recent swing high and swing low. If the last swing high occurred after the last swing low, it's considered an uptrend (bullish); otherwise, a downtrend (bearish).
Adaptive Trend Band: A colored area plot in the indicator pane that represents an adaptive tracking period (influenced by volatility if enabled), filled with a color indicating the current trend (green for up, red for down).
Multi-Timeframe (MTF) Table: An optional table displayed in the top-right corner, showing the trend signal (Bullish or Bearish) for up to 6 user-defined higher timeframes. Each cell is colored based on the trend.
The indicator uses swing detection to gauge trend, incorporates optional volatility-based adaptation for responsiveness, and focuses on multi-timeframe analysis for broader market context. It's not a direct Donchian channel (which typically plots upper/lower bands), but borrows the idea of using highest/lowest prices over a period to detect pivots. It doesn't generate buy/sell signals explicitly but can be used for trend confirmation across timeframes.
Key features include tooltips for inputs, making it user-friendly, and limits on bars/labels for performance.
Key Inputs and Their Roles
The indicator provides customizable inputs grouped into "Swing Points", "Style", and "Multi Timeframe". Here's a breakdown:
Swing Period (prd): Default 50, minimum 2. This sets the lookback period (in bars) for identifying swing highs and lows. Higher values capture major swings (less noise, more lag); lower values detect minor swings (more responsive, but noisier).
Adaptive Price Tracking (baseAPT): Default 20, minimum 1. This base value controls the responsiveness of an adaptive tracking mechanism (similar to a VWAP or moving average length). Lower values make it tighter to price action; higher values smooth it out.
Adapt APT by ATR ratio (useAdapt): Default false. If enabled, the tracking period dynamically adjusts based on market volatility (measured via ATR - Average True Range). High volatility shortens the period for faster reaction; low volatility lengthens it for smoothness.
Volatility Bias (volBias): Default 10.0, minimum 0.1. This amplifies or dampens how much volatility affects the adaptive tracking. Values >1 make it more sensitive to volatility changes; <1 make it less reactive.
Up Color (S): Default lime (green). Color for bullish trends in the band and table.
Down Color (R): Default red. Color for bearish trends in the band and table.
Show MTF Table (show_table): Default true. Toggles the display of the multi-timeframe trend table.
Time frames (tf1 to tf6): Defaults: '1' (1-minute), '3' (3-minute), '15' (15-minute), '60' (1-hour), '240' (4-hour), 'D' (daily). These are the higher timeframes for which trend directions are calculated and shown in the table.
Usage and Interpretation
On the Chart: Add this to a TradingView chart (e.g., for stocks, crypto, forex). The colored area in the indicator pane shows the current timeframe's trend: green band = bullish, red = bearish. The band's height reflects the adaptive period (wider in low volatility if adaptation is on).
MTF Table: Use this for alignment across timeframes. If most/higher timeframes are bullish, it might confirm an uptrend on the current chart. Ideal for trend-following strategies (e.g., trade in the direction of higher TFs).
Customization Tips:
Increase prd for longer-term trends.
Enable useAdapt in choppy markets for better responsiveness.
Adjust timeframes to match your trading style (e.g., scalping: lower TFs; swing: higher).
Limitations:
Relies on historical bars (max_bars_back=5000), so it may not load on very long charts.
No alerts or signals built-in; it's visual-only.
The "Donchian" in the name is loose—it's more pivot-based than full channels.
Adaptation uses ATR, which assumes volatility drives trend responsiveness, but may lag in ranging markets.
AltCoin & MemeCoin Index Correlation [Eddie_Bitcoin]🧠 Philosophy of the Strategy
The AltCoin & MemeCoin Index Correlation Strategy by Eddie_Bitcoin is a carefully engineered trend-following system built specifically for the highly volatile and sentiment-driven world of altcoins and memecoins.
This strategy recognizes that crypto markets—especially niche sectors like memecoins—are not only influenced by individual price action but also by the relative strength or weakness of their broader sector. Hence, it attempts to improve the reliability of trading signals by requiring alignment between a specific coin’s trend and its sector-wide index trend.
Rather than treating each crypto asset in isolation, this strategy dynamically incorporates real-time dominance metrics from custom indices (OTHERS.D and MEME.D) and combines them with local price action through dual exponential moving average (EMA) crossovers. Only when both the asset and its sector are moving in the same direction does it allow for trade entries—making it a confluence-based system rather than a single-signal strategy.
It supports risk-aware capital allocation, partial exits, configurable stop loss and take profit levels, and a scalable equity-compounding model.
✅ Why did I choose OTHERS.D and MEME.D as reference indices?
I selected OTHERS.D and MEME.D because they offer a sector-focused view of crypto market dynamics, especially relevant when trading altcoins and memecoins.
🔹 OTHERS.D tracks the market dominance of all cryptocurrencies outside the top 10 by market cap.
This excludes not only BTC and ETH, but also major stablecoins like USDT and USDC, making it a cleaner indicator of risk appetite across true altcoins.
🔹 This is particularly useful for detecting "Altcoin Season"—periods where capital rotates away from Bitcoin and flows into smaller-cap coins.
A rising OTHERS.D often signals the start of broader altcoin rallies.
🔹 MEME.D, on the other hand, captures the speculative behavior of memecoin segments, which are often driven by retail hype and social media activity.
It's perfect for timing momentum shifts in high-risk, high-reward tokens.
By using these indices, the strategy aligns entries with broader sector trends, filtering out noise and increasing the probability of catching true directional moves, especially in phases of capital rotation and altcoin risk-on behavior.
📐 How It Works — Core Logic and Execution Model
At its heart, this strategy employs dual EMA crossover detection—one pair for the asset being traded and one pair for the selected market index.
A trade is only executed when both EMA crossovers agree on the direction. For example:
Long Entry: Coin's fast EMA > slow EMA and Index's fast EMA > slow EMA
Short Entry: Coin's fast EMA < slow EMA and Index's fast EMA < slow EMA
You can disable the index filter and trade solely based on the asset’s trend just to make a comparison and see if improves a classic EMA crossover strategy.
Additionally, the strategy includes:
- Adaptive position sizing, based on fixed capital or current equity (compound mode)
- Take Profit and Stop Loss in percentage terms
- Smart partial exits when trend momentum fades
- Date filtering for precise backtesting over specific timeframes
- Real-time performance stats, equity tracking, and visual cues on chart
⚙️ Parameters & Customization
🔁 EMA Settings
Each EMA pair is customizable:
Coin Fast EMA: Default = 47
Coin Slow EMA: Default = 50
Index Fast EMA: Default = 47
Index Slow EMA: Default = 50
These control the sensitivity of the trend detection. A wider spread gives smoother, slower entries; a narrower spread makes it more responsive.
🧭 Index Reference
The correlation mechanism uses CryptoCap sector dominance indexes:
OTHERS.D: Dominance of all coins EXCLUDING Top 10 ones
MEME.D: Dominance of all Meme coins
These are dynamically calculated using:
OTHERS_D = OTHERS_cap / TOTAL_cap * 100
MEME_D = MEME_cap / TOTAL_cap * 100
You can select:
Reference Index: OTHERS.D or MEME.D
Or disable the index reference completely (Don't Use Index Reference)
💰 Position Sizing & Risk Management
Two capital allocation models are supported:
- Fixed % of initial capital (default)
- Compound profits, which scales positions as equity grows
Settings:
- Compound profits?: true/false
- % of equity: Between 1% and 200% (default = 10%)
This is critical for users who want to balance growth with risk.
🎯 Take Profit / Stop Loss
Customizable thresholds determine automatic exits:
- TakeProfit: Default = 99999 (disabled)
- StopLoss: Default = 5 (%)
These exits are percentage-based and operate off the entry price vs. current close.
📉 Trend Weakening Exit (Scale Out)
If the position is in profit but the trend weakens (e.g., EMA color signals trend loss), the strategy can partially close a configurable portion of the position:
- Scale Position on Weak Trend?: true/false
- Scaled Percentage: % to close (default = 65%)
This feature is useful for preserving profits without exiting completely.
📆 Date Filter
Useful for segmenting performance over specific timeframes (e.g., bull vs bear markets):
- Filter Date Range of Backtest: ON/OFF
- Start Date and End Date: Custom time range
OTHER PARAMETERS EXPLANATION (Strategy "Properties" Tab):
- Initial Capital is set to 100 USD
- Commission is set to 0.055% (The ones I have on Bybit)
- Slippage is set to 3 ticks
- Margin (short and long) are set to 0.001% to avoid "overspending" your initial capital allocation
📊 Visual Feedback and Debug Tools
📈 EMA Trend Visualization
The slow EMA line is dynamically color-coded to visually display the alignment between the asset trend and the index trend:
Lime: Coin and index both bullish
Teal: Only coin bullish
Maroon: Only index bullish
Red: Both bearish
This allows for immediate visual confirmation of current trend strength.
💬 Real-Time PnL Labels
When a trade closes, a label shows:
Previous trade return in % (first value is the effective PL)
Green background for profit, Red for losses.
📑 Summary Table Overlay
This table appears in a corner of the chart (user-defined) and shows live performance data including:
Trade direction (yellow long, purple short)
Emojis: 💚 for current profit, 😡 for current loss
Total number of trades
Win rate
Max drawdown
Duration in days
Current trade profit/loss (absolute and %)
Cumulative PnL (absolute and %)
APR (Annualized Percentage Return)
Each metric is color-coded:
Green for strong results
Yellow/orange for average
Red/maroon for poor performance
You can select where this appears:
Top Left
Top Right
Bottom Left
Bottom Right (default)
📚 Interpretation of Key Metrics
Equity Multiplier: How many times initial capital has grown (e.g., “1.75x”)
Net Profit: Total gains including open positions
Max Drawdown: Largest peak-to-valley drop in strategy equity
APR: Annualized return calculated based on equity growth and days elapsed
Win Rate: % of profitable trades
PnL %: Percentage profit on the most recent trade
🧠 Advanced Logic & Safety Features
🛑 “Don’t Re-Enter” Filter
If a trade is closed due to StopLoss without a confirmed reversal, the strategy avoids re-entering in that same direction until conditions improve. This prevents false reversals and repetitive losses in sideways markets.
🧷 Equity Protection
No new trades are initiated if equity falls below initial_capital / 30. This avoids overleveraging or continuing to trade when capital preservation is critical.
Keep in mind that past results in no way guarantee future performance.
Eddie Bitcoin
TNP/BB Trend IndicatorThis indicator identifies trend shifts on the 1H timeframe by combining trigger candle patterns with daily support/resistance zones. It helps traders align lower-timeframe entries with higher-timeframe context.
🔹 Core Logic
Daily Zones
Uses the daily chart to mark bullish zones (support) and bearish zones (resistance).
A valid trend signal only occurs when price action aligns with these zones.
Trigger Candles (1H)
TNP (Triple Negative/Positive Price): A structured 3-bar pattern indicating strong directional intent.
BB (Big Body Candle): A wide-range candle with significant body size compared to recent volatility, signaling momentum.
Trend Confirmation
A Bullish Trend is signaled when a bullish trigger forms inside a daily bullish zone.
A Bearish Trend is signaled when a bearish trigger forms inside a daily bearish zone.
Signals are plotted with arrows on the chart, and the current trend state (Bullish / Bearish / Neutral) is displayed live.
Bollinger Bandit + TP EscalonadoDescription:
The Bollinger Bandit is a clean, visual mean reversion strategy designed to help traders identify potential reversal opportunities using Bollinger Bands. This strategy offers two distinct exit methods, giving you the flexibility to choose between classic band-based exits or precise fixed take-profit/stop-loss levels.
How It Works (Simple Explanation):
Basic Concept:
Prices often tend to return to their average after moving too far away. Bollinger Bands help identify these extreme moments.
Entry Signals:
BUY (Green Triangle): When price crosses above the lower Bollinger Band
SELL (Red Triangle): When price crosses below the upper Bollinger Band
Exit Options (CHOOSE ONE ONLY):
Option 1: Band & Mean Exits (Traditional)
Exit when price touches the opposite band
Optional exit at the middle moving average
Option 2: Fixed SL/TP Exits (Precise Risk Management)
Stop Loss: Fixed points from entry
Take Profit 1: First profit target (closes 50% of position)
Take Profit 2: Second profit target (closes remaining 50%)
Key Features:
Clear Visual Signals - Easy-to-see triangles for entries
Color-Coded Levels - Instant visual understanding
Fully Customizable - Adjust everything to your preference
Two Exit Strategies - Choose what works for your style
Risk Management - Fixed SL/TP with proper risk-reward ratios
Input Settings:
Bollinger Bands Configuration:
Period (20): Length of the moving average
Multiplier (1.0): Band width adjustment
Exit Strategy Selection:
Use Custom SL/TP - Switch between exit methods
Close on Moving Average - Enable/disable mean exits
Risk Management (SL/TP Mode):
SL Points (5): Stop Loss distance in points
TP1 Points (3): First Take Profit target
TP2 Points (5): Second Take Profit target
Important Notes:
CHOOSE ONLY ONE EXIT METHOD:
You can use EITHER Band/Mean exits OR Fixed SL/TP exits
Never enable both simultaneously
Ideal Market Conditions:
Works best in ranging markets
May give false signals in strong trends
Test different timeframes (1H-4H recommended)
How to Use:
Add the strategy to your chart
Choose your preferred exit method
Adjust settings to match your risk tolerance
Observe the visual signals on your chart
Practice with historical data first
Risk Disclaimer:
Trading involves significant risk of loss. This is not financial advice. Past performance is not indicative of future results. Test thoroughly before live trading. Only risk capital you can afford to lose.
This strategy is for educational purposes only. Always understand how any strategy works before using real capital.
Recommended Settings for Beginners:
Timeframe: 5M
SL: 5 points, TP1: 3 points, TP2: 5 points
Start with small position sizes
CM Indicator About Indicator:-
1) This is best Indicator for trend identification.
2) This is based on 42 EMA with Upper Band and Lower bands for trend identification.
3) This should be used for Line Bar chart only.
4) Line bar chart should be used at 1 hour for 15 line breaks.
How to Use:-
1) To go with trend is best use of this indicator.
2) This is for stocks and options not for index. Indicator used for Stocks at one hour and options for 10-15 minutes line break.
3) There will be 5% profitability defined for each entry, 3 entries with profit are best posible in same continuous trend 4 and 5th entry is in riskier zone in continuous trend.
4) Loss will only happen if there is trend reversal.
5) Loss could only be one trade of profit out of three profitable trades.
6) Back tested on 200 stocks and 100 options.
Justin's Bitcoin Power Law PredictorJustin's MSTR Powerlaw Price Predictor is a Pine Script v6 indicator for TradingView that adapts Giovanni Santostasi’s Bitcoin power law model to forecast MicroStrategy (MSTR) stock prices. Using the formula Price = A * (daysSinceGenesis)^B, it calculates fair, upper, and floor prices with constants A_fair = 1.16e-17, A_floor = 0.42e-17, and B = 5.82, starting from Bitcoin’s genesis (January 3, 2009). The script plots these prices, displays values in a table.
Source: www.ccn.com
LEAP Put Edge — Top Risk Oscillator (v6, divergences + HTF)Pinpoint market tops with precision — a composite oscillator built to spot exhaustion, bearish divergences, and high-probability LEAP Put entry zones.
The LEAP Put Edge — Top Risk Oscillator is designed specifically to help identify high-probability entry points for long-dated Put options (LEAPs) by highlighting exhaustion at market tops. Unlike generic overbought/oversold tools, it combines slower MACD and DMI/ADX for trend quality, RSI and Stochastic RSI for momentum extremes, volume spike and upper-wick exhaustion signals for capitulation risk, and optional bearish divergences in RSI and MACD to confirm weakening strength. The output is a smoothed composite score scaled from -100 to +100, where higher values indicate rising top-risk and bearish edge conditions. Clear thresholds, color-coded plots, and built-in alerts make it straightforward and practical for traders seeking simple, actionable signals to time Put entries with confidence.