BankNifty 9:15 Breakout - Fixed Qty 30. 🎯 Strategy Objective
To trade the Bank Nifty Futures based on the breakout of the 9:15 AM candle (15-min) using a fixed quantity of 30 lots, with intraday reversal and exit logic.
Indicators and strategies
Strat 3-1 Setup FinderFor users of the Strat this easily identifies a 3-1 set up on different time frames. Enjoy!
MFI Candle Trend🎯 Purpose:
The MFI Candle Trend is a custom TradingView indicator that transforms the Money Flow Index (MFI) into candle-style visuals using various smoothing and transformation techniques. Rather than displaying MFI as a line, this script generates synthetic candles from MFI values, helping traders visualize money flow trends, strength, and potential reversals with more clarity.
📌 Trend strength can be analyzed based on buying and selling pressures in the trend direction.
🧩 How It Works:
Calculates MFI values for open, high, low, and close prices.
Applies optional smoothing using the user-selected moving average (EMA, SMA, WMA, etc.).
Transforms the smoothed MFI data into synthetic candles using a selected method:
Normal: Uses raw MFI data
Heikin-Ashi: Applies HA transformation to MFI
Linear: Uses linear regression on MFI values
Rational Quadratic: Applies advanced rational quadratic filtering via an external kernel library
Colors candles based on MFI momentum:
Cyan: Strong positive MFI movement
Red: Strong negative MFI movement
⚙️ Key Inputs:
Method:
The type of smoothing method to apply to MFI
Options: None, EMA, SMA, SMMA (RMA), WMA, VWMA, HMA, Mode
Length:
Period for both the MFI and smoothing calculation
Candle:
Selects the transformation mode for generating synthetic candles
Options: Normal, Heikin-Ashi, Linear, Rational Quadratic
Rational Quadratic:
Adjusts the depth of smoothing for the Rational Quadratic filter (applies only if selected)
📊 Outputs:
Synthetic MFI Candlesticks:
Plotted using the smoothed and transformed MFI values.
Dynamic Coloring:
Cyan when MFI momentum is increasing
Red when MFI momentum is decreasing
Horizontal Lines:
80: Overbought zone
20: Oversold zone
🧠 Why Use This Indicator?
Unlike traditional MFI indicators that use a line plot, this tool gives traders:
A candle-based visualization of money flow momentum
Enhanced trend and reversal detection using color-coded MFI candles
A choice of smoothing filters and transformations for noise reduction
A powerful combination of momentum and structure-based analysis
To combine volume and price strength into a single chart element
❗Important Note:
This indicator is for educational and analytical purposes only. It does not constitute financial advice. Always use proper risk management and validate with additional tools or analysis.
Market Map – AK_Trades📌 Market Map – AK_Trades
A real-time context engine designed to enhance your entries, exits, and overall trade confidence.
Built to complement any scalping or breakout strategy — or function as a reliable standalone guide.
🧠 What It Does:
📊 Detects market structure shifts
📍 Draws clean Support/Resistance zones (non-repainting)
🟥 Displays trend background shading + trend label
🚨 Flags breakouts, reversals, and invalidations
📈 Adds a real-time confidence ribbon for quick decision-making
🧭 LEGEND
Element Description
🟩🟥 Background Color Trend direction based on 21/50 EMA (green = uptrend, red = downtrend)
🟥🟩 Dashed Lines Dynamic support (green) and resistance (red) from pivot highs/lows
🔼 BREAKOUT ↑ Triggered only if price breaks key level + 0.25 ATR and volume confirms
🔽 BREAKDOWN ↓ Triggered only on valid breakdown with volume and trend alignment
🟡 Triangle (Up/Down) Reversal Warning – candle closes against current trend & EMAs
❌ Orange X Invalidation Marker – price reversed after breakout within 2 bars
📉 Confidence Strip (Green/Red) Shows strength/weakness of each bar based on trend and EMA proximity
🔤 UPTREND / DOWNTREND Trend label shown top-right of chart
⚠️ Notes:
Use this for bias confirmation, clean visual structure, and exit management.
Best paired with a high-conviction entry signal.
❗Disclaimer:
This script is for educational purposes only. It is not financial advice. Use at your own risk. The author assumes no responsibility for any trading losses incurred.
RSI 14 Cross Below RSI 28Identify points where 14 period RSI crosses below 28 period RSI on chart with understudy.
Pi Cycle Gap (SMA Convergence, Normalized Option)This indicator visualizes the “gap” between the classic Pi Cycle Top moving averages, used for Bitcoin cycle analysis: the 111-day Simple Moving Average (SMA) and 2 × 350-day SMA.
Histogram Bars: Show the distance between these lines, highlighting when the cycle is healthy (green), near a historic “top” (orange), or at a rare crossover (red).
Normalization Option: You can view the gap as either:
Percent of 2 × 350-day SMA (recommended for multi-cycle analysis)
— This is the default.
Absolute USD difference (classic mode)
Orange bars warn when the gap is within a configurable proximity to zero (cycle convergence).
Red triangle marks the rare actual crossover event, historically correlated with market cycle tops.
Settings:
Fast MA Length (SMA): Default 111
Slow MA Length (SMA): Default 350 (doubled internally)
Proximity Warning (%): How close (as percent) to flag convergence
Show Normalized Gap (%): Toggle between percent and absolute USD
How to Use:
Green bars: Market is safely in “bull cycle mode”—top is not near
Orange bars: Approaching cycle convergence (potential top)
Red: Actual crossover—historically a signal of major cycle tops
MACD COM PONTOS//@version=5
indicator(title="MACD COM PONTOS", shorttitle="MACD COM PONTOS")
//Plot Inputs
res = input.timeframe("", "Indicator TimeFrame")
fast_length = input.int(title="Fast Length", defval=12)
slow_length = input.int(title="Slow Length", defval=26)
src = input.source(title="Source", defval=close)
signal_length = input.int(title="Signal Smoothing", minval = 1, maxval = 999, defval = 9)
sma_source = input.string(title="Oscillator MA Type", defval="EMA", options= )
sma_signal = input.string(title="Signal Line MA Type", defval="EMA", options= )
// Show Plots T/F
show_macd = input.bool(true, title="Show MACD Lines", group="Show Plots?", inline="SP10")
show_macd_LW = input.int(3, minval=0, maxval=5, title = "MACD Width", group="Show Plots?", inline="SP11")
show_signal_LW= input.int(2, minval=0, maxval=5, title = "Signal Width", group="Show Plots?", inline="SP11")
show_Hist = input.bool(true, title="Show Histogram", group="Show Plots?", inline="SP20")
show_hist_LW = input.int(5, minval=0, maxval=5, title = "-- Width", group="Show Plots?", inline="SP20")
show_trend = input.bool(true, title = "Show MACD Lines w/ Trend Color", group="Show Plots?", inline="SP30")
show_HB = input.bool(false, title="Show Highlight Price Bars", group="Show Plots?", inline="SP40")
show_cross = input.bool(false, title = "Show BackGround on Cross", group="Show Plots?", inline="SP50")
show_dots = input.bool(true, title = "Show Circle on Cross", group="Show Plots?", inline="SP60")
show_dots_LW = input.int(5, minval=0, maxval=5, title = "-- Width", group="Show Plots?", inline="SP60")
//show_trend = input(true, title = "Colors MACD Lines w/ Trend Color", group="Show Plots?", inline="SP5")
// MACD Lines colors
col_macd = input.color(#FF6D00, "MACD Line ", group="Color Settings", inline="CS1")
col_signal = input.color(#2962FF, "Signal Line ", group="Color Settings", inline="CS1")
col_trnd_Up = input.color(#4BAF4F, "Trend Up ", group="Color Settings", inline="CS2")
col_trnd_Dn = input.color(#B71D1C, "Trend Down ", group="Color Settings", inline="CS2")
// Histogram Colors
col_grow_above = input.color(#26A69A, "Above Grow", group="Histogram Colors", inline="Hist10")
col_fall_above = input.color(#B2DFDB, "Fall", group="Histogram Colors", inline="Hist10")
col_grow_below = input.color(#FF5252, "Below Grow", group="Histogram Colors",inline="Hist20")
col_fall_below = input.color(#FFCDD2, "Fall", group="Histogram Colors", inline="Hist20")
// Alerts T/F Inputs
alert_Long = input.bool(true, title = "MACD Cross Up", group = "Alerts", inline="Alert10")
alert_Short = input.bool(true, title = "MACD Cross Dn", group = "Alerts", inline="Alert10")
alert_Long_A = input.bool(false, title = "MACD Cross Up & > 0", group = "Alerts", inline="Alert20")
alert_Short_B = input.bool(false, title = "MACD Cross Dn & < 0", group = "Alerts", inline="Alert20")
// Calculating
fast_ma = request.security(syminfo.tickerid, res, sma_source == "SMA" ? ta.sma(src, fast_length) : ta.ema(src, fast_length))
slow_ma = request.security(syminfo.tickerid, res, sma_source == "SMA" ? ta.sma(src, slow_length) : ta.ema(src, slow_length))
macd = fast_ma - slow_ma
signal = request.security(syminfo.tickerid, res, sma_signal == "SMA" ? ta.sma(macd, signal_length) : ta.ema(macd, signal_length))
hist = macd - signal
// MACD Trend and Cross Up/Down conditions
trend_up = macd > signal
trend_dn = macd < signal
cross_UP = signal >= macd and signal < macd
cross_DN = signal <= macd and signal > macd
cross_UP_A = (signal >= macd and signal < macd) and macd > 0
cross_DN_B = (signal <= macd and signal > macd) and macd < 0
// Condition that changes Color of MACD Line if Show Trend is turned on..
trend_col = show_trend and trend_up ? col_trnd_Up : trend_up ? col_macd : show_trend and trend_dn ? col_trnd_Dn: trend_dn ? col_macd : na
//Var Statements for Histogram Color Change
var bool histA_IsUp = false
var bool histA_IsDown = false
var bool histB_IsDown = false
var bool histB_IsUp = false
histA_IsUp := hist == hist ? histA_IsUp : hist > hist and hist > 0
histA_IsDown := hist == hist ? histA_IsDown : hist < hist and hist > 0
histB_IsDown := hist == hist ? histB_IsDown : hist < hist and hist <= 0
histB_IsUp := hist == hist ? histB_IsUp : hist > hist and hist <= 0
hist_col = histA_IsUp ? col_grow_above : histA_IsDown ? col_fall_above : histB_IsDown ? col_grow_below : histB_IsUp ? col_fall_below :color.silver
// Plot Statements
//Background Color
bgcolor(show_cross and cross_UP ? col_trnd_Up : na, editable=false)
bgcolor(show_cross and cross_DN ? col_trnd_Dn : na, editable=false)
//Highlight Price Bars
barcolor(show_HB and trend_up ? col_trnd_Up : na, title="Trend Up", offset = 0, editable=false)
barcolor(show_HB and trend_dn ? col_trnd_Dn : na, title="Trend Dn", offset = 0, editable=false)
//Regular Plots
plot(show_Hist and hist ? hist : na, title="Histogram", style=plot.style_columns, color=color.new(hist_col ,0),linewidth=show_hist_LW)
plot(show_macd and signal ? signal : na, title="Signal", color=color.new(col_signal, 0), style=plot.style_line ,linewidth=show_signal_LW)
plot(show_macd and macd ? macd : na, title="MACD", color=color.new(trend_col, 0), style=plot.style_line ,linewidth=show_macd_LW)
hline(0, title="0 Line", color=color.new(color.gray, 0), linestyle=hline.style_dashed, linewidth=1, editable=false)
plot(show_dots and cross_UP ? macd : na, title="Dots", color=color.new(trend_col ,0), style=plot.style_circles, linewidth=show_dots_LW, editable=false)
plot(show_dots and cross_DN ? macd : na, title="Dots", color=color.new(trend_col ,0), style=plot.style_circles, linewidth=show_dots_LW, editable=false)
//Alerts
if alert_Long and cross_UP
alert("Symbol = (" + syminfo.tickerid + ") TimeFrame = (" + timeframe.period + ") Current Price (" + str.tostring(close) + ") MACD Crosses Up.", alert.freq_once_per_bar_close)
if alert_Short and cross_DN
alert("Symbol = (" + syminfo.tickerid + ") TimeFrame = (" + timeframe.period + ") Current Price (" + str.tostring(close) + ") MACD Crosses Down.", alert.freq_once_per_bar_close)
//Alerts - Stricter Condition - Only Alerts When MACD Crosses UP & MACD > 0 -- Crosses Down & MACD < 0
if alert_Long_A and cross_UP_A
alert("Symbol = (" + syminfo.tickerid + ") TimeFrame = (" + timeframe.period + ") Current Price (" + str.tostring(close) + ") MACD > 0 And Crosses Up.", alert.freq_once_per_bar_close)
if alert_Short_B and cross_DN_B
alert("Symbol = (" + syminfo.tickerid + ") TimeFrame = (" + timeframe.period + ") Current Price (" + str.tostring(close) + ") MACD < 0 And Crosses Down.", alert.freq_once_per_bar_close)
//End Code
wma+ tendance🟢 Wma+ tendance– Trend Ribbon with Weighted Moving Averages and Alerts
Description:
Wma+ tendance is a visual trend indicator that uses two Weighted Moving Averages (WMA) – a fast and a slow one – to clearly highlight market direction. It fills the space between the two WMAs with dynamic colors and includes alerts for trend changes.
🟩 Green: Uptrend – the fast WMA is above the slow WMA, and both are rising.
🟥 Red: Downtrend – the fast WMA is below the slow WMA, and both are falling.
⬜ Gray: No clear trend – indicating potential sideways or consolidating price action.
Features:
Trend ribbon visualized between fast and slow WMAs
Alerts for bullish and bearish trend detection
Customizable inputs for MA lengths and price source
Use cases:
Spot early trend formations
Combine with other indicators for confirmation
Adaptable for intraday and swing trading strategies
This script helps traders stay on the right side of the trend with minimal noise and real-time alerts.
Combo RSI + MACD + ADX MTF (Avec Alertes)✅ Recommended Title:
Multi-Signal Oscillator: ADX Trend + DI + RSI + MACD (MTF, Cross Alerts)
✅ Detailed Description
📝 Overview
This indicator combines advanced technical analysis tools to identify trend direction, capture reversals, and filter false signals.
It includes:
ADX (Multi-TimeFrame) for trend and trend strength detection.
DI+ / DI- for directional bias.
RSI + ZLSMA for oscillation analysis and divergence detection.
Zero-Lag Normalized MACD for momentum and entry timing.
⚙️ Visual Components
✅ Green/Red Background: Displays overall trend based on Multi-TimeFrame ADX.
✅ DI+ / DI- Lines: Green and red curves showing directional bias.
✅ Normalized RSI: Blue oscillator with orange ZLSMA smoothing.
✅ Zero-Lag MACD: Violet or fuchsia/orange oscillator depending on the version.
✅ Crossover Points: Colored circles marking buy and sell signals.
✅ ADX Strength Dots: Small black dots when ADX exceeds the strength threshold.
🚨 Included Alert System
✅ RSI / ZLSMA Crossovers (Buy / Sell).
✅ MACD / Signal Line Crossovers (Buy / Sell).
✅ DI+ / DI- Crossovers (Buy / Sell).
✅ Double Confirmation DI+ / RSI or DI+ / MACD.
✅ Double Confirmation DI- / RSI or DI- / MACD.
✅ Trend Change Alerts via Background Color.
✅ ADX Strength Alerts (Above Threshold).
🛠️ Suggested Configuration Examples
1. Short-Term Reversal Detection:
RSI Length: 7 to 14
ZLSMA Length: 7 to 14
MACD Fast/Slow: 5 / 13
ADX MTF Period: 5 to 15
ADX Threshold: 15 to 20
2. Long-Term Trend Following:
RSI Length: 21 to 30
ZLSMA Length: 21 to 30
MACD Fast/Slow: 12 / 26
ADX MTF Period: 30 to 50
ADX Threshold: 20 to 25
3. Scalping / Day Trading:
RSI Length: 5 to 9
ZLSMA Length: 5 to 9
MACD Fast/Slow: 3 / 7
ADX MTF Period: 5 to 10
ADX Threshold: 10 to 15
🎯 Why Use This Tool?
Filters false signals using ADX-based background coloring.
Provides multi-source alerting (RSI, MACD, ADX).
Helps identify true market strength zones.
Works on all markets: Forex, Crypto, Stocks, Indices.
Leverage Liquidation LevelsThis indicator visualizes static leverage liquidation levels calculated from a user-defined base price. It helps traders understand potential price impacts at different leverage ratios by displaying multiple thresholds (x2, x5, x10, x20, x50, x75, x100) for both long and short positions.
🔹 What This Indicator Shows
The indicator creates horizontal lines representing price levels where liquidations might occur for traders using various leverage multiples. Lines above the base price show potential short liquidation levels, while lines below show potential long liquidation levels.
🔹 How To Use
1. Set your base price parameter (default: 27319)
2. The indicator will display color-coded lines for each leverage level
3. Use these visual references to better understand risk when trading with leverage
🔹 Key Features
- Color-coded lines for easy identification of different leverage levels
- Visual distinction between long and short liquidation zones
- Customizable base price to adapt to any asset or price range
🔹 Disclaimer
This indicator provides static reference points based on mathematical calculations only. It does not use real-time liquidation data from exchanges and should be used for educational purposes and risk visualization only. Actual liquidation levels depend on multiple factors including exchange-specific parameters, funding rates, and market conditions.
For educational purposes only. Not financial advice.
OBV OverlayOBV overlay
Rising OBV: Buying pressure; may indicate price will move up.
Falling OBV: Selling pressure; may signal a coming drop.
Multi EMADescription – Multi-EMA Indicator (10/21/66/110/200 EMA)
This indicator combines five essential Exponential Moving Averages (EMAs) into one tool: the 10, 21, 66, 110, and 200 EMA. It's designed for traders who want a clear view of short-, medium-, and long-term trends all in one place.
With this indicator, you can:
Quickly assess trend direction across multiple timeframes
Identify dynamic support and resistance levels
Spot EMA crossovers that may signal potential trade entries or exits
Each EMA is color-coded and can be toggled on or off individually, giving you full control over your chart setup.
Relative Performance Spread**Relative Performance Spread Indicator – Overview**
This indicator compares the **relative performance between two stocks** by normalizing their prices and calculating the **spread**, **area under the curve (AUC)**, or **normalized price ratio**.
### **How It Works**
* **Input**: Select a second stock (`ticker2`) and a moving average window.
* **Normalization**: Each stock is normalized by its own moving average → `norm = close / MA`.
* **Spread**: The difference `spread = norm1 - norm2` reflects which stock is outperforming.
* **AUC**: Cumulative spread over time shows prolonged dominance or underperformance.
* **Bounds**: Bollinger-style bands are drawn around the spread to assess deviation extremes.
### **Usage**
* **Plot Type Options**:
* `"Spread"`: Spot outperformance; crossing bands may signal rotation.
* `"AUC"`: Track long-term relative trend dominance.
* `"Normalized"`: Directly compare scaled price movements.
Use this tool for **pair trading**, **relative momentum**, or **rotation strategies**. It adapts well across assets with different price scales.
老墨趋势交易系统Three Vegas channels, combined with two SMAs and integrated with VWAP; when the Vegas channels align, and the money momentum is positive along with a relative strength index that is also positive, a green signal is generated.
RSI + MACD Cross StrategyRSI + MACD Cross Strategy (No Trailing SL)
When your trade goes into profit, the best thing to do is to move your Stop Loss to a logical point behind the most recent swing low or swing high, depending on whether you're in a Buy or Sell position. This way, if the market reverses, you’ll at least secure the profit you had up to that point.
VOLATISPHERE + AlertVOLATISPHERE — Volatility-Based Trend & Reversion Indicator
The VOLATISPHERE is a powerful multi-functional indicator designed to detect volatility-driven price extremes, mean-reversion opportunities, and multi-timeframe trend direction using adaptive dynamic bands.
🔍 Core Features
Volatility Bands: Calculates dynamic upper, middle, and lower bands based on average high-low range and ATR, scaled by a customizable standard deviation.
Mean Reversion Signal: A normalized oscillator identifies potential overbought/oversold zones and triggers mean reversion signals (🞛 for bullish, 🞜 for bearish) when price deviates strongly from the bands.
Band Color Logic: The color of the middle band adapts based on trend momentum — green for bullish shifts and red for bearish turns.
Auto-Labeling: Real-time dynamic labels display current band levels for better readability on the chart (upper and lower bands in white, middle band in trend color).
📊 Multi-Timeframe Trend Dashboard
A built-in TrendMeter table displays the current trend status (Bullish / Bearish / Neutral) across multiple timeframes: 5m, 15m, 1H, 4H, Daily, and Weekly. This provides a quick overview of broader market alignment.
🔔 Alerts
Custom alert conditions are available for:
Price crossing each band (upper, middle, lower)
Entry signals from overbought/oversold zones
Liquidity Grab Strategy (Volume Trap)🧠 Strategy Logic:
Liquidity Grab Detection:
The script looks for a sharp drop in price (bearish engulfing or breakdown candle).
However, volume remains flat (within 5% of the 20-period moving average), suggesting the move is manipulated, not genuine.
Fair Value Gap Confirmation (FVG):
It confirms that a Fair Value Gap exists — a gap between recent candle bodies that price is likely to retrace into.
This gap represents a high-probability entry zone.
Trade Setup:
A limit BUY order is placed at the base of the FVG.
Stop Loss (SL) is placed below the gap.
Take Profit (TP) is placed at the most recent swing high.
📈 How to Use It:
Add the strategy to your TradingView chart (1–5 min or 15 min works well for intraday setups).
Look for green BUY labels and plotted lines:
💚 Green = Entry price
🔴 Red = Stop loss
🔵 Blue = Take profit
The script will automatically simulate entries when conditions are met and exit either at TP or SL.
Use TradingView’s Strategy Tester to review:
Win rate
Net profit
Risk-adjusted performance
Gold Breakout Strategy - RR 4Strategy Name: Gold Breakout Strategy - RR 4
🧠 Main Objective
This strategy aims to capitalize on breakouts from the Donchian Channel on Gold (XAU/USD) by filtering trades with:
Volume confirmation,
A custom momentum indicator (LWTI - Linear Weighted Trend Index),
And a specific trading session (8 PM to 8 AM Quebec time — GMT-5).
It takes only one trade per day, either a buy or a sell, using a fixed stop-loss at the wick of the breakout candle and a 4:1 reward-to-risk (RR) ratio.
📊 Indicators Used
Donchian Channel
Length: 96
Detects breakouts of recent highs or lows.
Volume
Simple Moving Average (SMA) over 30 bars.
A breakout is only valid if the current volume is above the SMA.
LWTI (Linear Weighted Trend Index)
Measures momentum using price differences over 25 bars, smoothed over 5.
Used to confirm trend direction:
Buy when LWTI > its smoothed version (uptrend).
Sell when LWTI < its smoothed version (downtrend).
⏰ Time Filter
The strategy only allows entries between 8 PM and 8 AM (GMT-5 / Quebec time).
A timestamp-based filter ensures the system recognizes the correct trading session even across midnight.
📌 Entry Conditions
🟢 Buy (Long)
Price breaks above the previous Donchian Channel high.
The current channel high is higher than the previous one.
Volume is above its moving average.
LWTI confirms an uptrend.
The time is within the trading session (20:00 to 08:00).
No trade has been taken yet today.
🔴 Sell (Short)
Price breaks below the previous Donchian Channel low.
The current channel low is lower than the previous one.
Volume is above its moving average.
LWTI confirms a downtrend.
The time is within the trading session.
No trade has been taken yet today.
💸 Trade Management
Stop-Loss (SL):
For long entries: placed below the wick low of the breakout candle.
For short entries: placed above the wick high of the breakout candle.
Take-Profit (TP):
Set at a fixed 4:1 reward-to-risk ratio.
Calculated as 4x the distance between the entry price and stop-loss.
No trailing stop, no break-even, no scaling in/out.
🎨 Visuals
Green triangle appears below the candle on a buy signal.
Red triangle appears above the candle on a sell signal.
Donchian Channel lines are plotted on the chart.
The strategy is designed for the 5-minute timeframe.
🔄 One Trade Per Day Rule
Once a trade is taken (buy or sell), no more trades will be executed for the rest of the day. This prevents overtrading and limits exposure.
Precise EMA Cross Strategy (20, 50, 200)Precise EMA Cross Strategy (20, 50, 200)
🧠 Core Concept:
This strategy is designed to capture major trend reversals using Exponential Moving Averages (EMAs) and avoid false signals by requiring:
A confirmed EMA crossover (Golden/Death Cross).
Confirmation from the trend direction (slope) of the 200 EMA.
The price to be aligned with the direction of the signal (above or below EMAs).
📊 Components:
EMA 20 (Green): Short-term price momentum.
EMA 50 (Red): Medium-term trend reference.
EMA 200 (Yellow): Long-term trend foundation.
✅ Trade Entry Rules:
🔼 Buy Signal (Golden Cross):
Occurs when:
EMA 50 crosses above EMA 200.
The slope of EMA 200 is upward, confirming long-term uptrend.
Price is above both EMA 50 and EMA 200, showing bullish market strength.
🔔 You'll see a green "BUY" marker below the candle.
This is a high-probability long entry setup.
🔽 Sell Signal (Death Cross):
Occurs when:
EMA 50 crosses below EMA 200.
The slope of EMA 200 is downward, confirming a bearish trend.
Price is below both EMA 50 and EMA 200, confirming weakness.
🔔 You'll see a red "SELL" marker above the candle.
This is a high-probability short entry setup.
📅 Best Timeframes to Use:
Swing trading: 1H, 4H, Daily
Position trading: Daily, Weekly
Not suitable for scalping on low timeframes (e.g. 1min or 5min) due to EMA smoothing delay
🧪 Backtesting Tips:
Look for confirmation on higher timeframes (e.g., 4H or 1D).
Combine this strategy with:
RSI divergence
Volume spikes
Support/resistance zones
⚠️ Avoid False Signals:
Do not trade if the slope of EMA 200 is flat or conflicting with the crossover.
Avoid trading in sideways markets or low-volatility environments.
🔔 Alerts:
The script includes built-in alert conditions:
Golden Cross Alert
Death Cross Alert
Set them in TradingView’s alert panel to get notified when a valid trade setup forms.
💡 Example Trade Flow:
BUY Example:
1H chart: EMA 50 crosses above EMA 200 ✅
Slope of EMA 200 is rising ✅
Price is above both EMAs ✅
➡️ Enter a long position
🎯 Set take profit at previous resistance or use trailing stop
🛑 Stop loss just below recent swing low or EMA 200
SELL Example:
4H chart: EMA 50 crosses below EMA 200 ✅
Slope of EMA 200 is falling ✅
Price is below both EMAs ✅
➡️ Enter a short position
🎯 Set TP at support or use trailing
🛑 SL above recent swing high or EMA 200
🧩 Combine With:
Candlestick patterns (e.g., engulfing, pin bar)
Breakout levels
Fibonacci retracement zones
Multi-VP POC Divergence AlertThis is a very effective POC divergence alert system I've used—hope it helps you too.
Inside/Outside Bar Sequence Detector# Inside/Outside Bar Sequence Detector
## English Description
**Inside/Outside Bar Sequence Detector**
This indicator identifies and visualizes sequences of Inside and Outside bars on any chart. It highlights important price action patterns that can signal potential market reversals or continuation moves.
**Key Features:**
- Automatically detects consecutive Inside bars (where price action is contained within the previous bar's range) and Outside bars (where price action exceeds the previous bar's range)
- Displays sequences with customizable labels showing the pattern type
- Highlights the price range of each sequence with a transparent box
- Marks individual Inside bars with "i" and Outside bars with "o" below each candle
- Applies special pattern recognition rules for more accurate trade signals
- Fully customizable appearance including colors, opacity, and label positioning
Adjust the minimum sequence length according to your trading timeframe and strategy to filter out noise and focus on significant patterns.
## 中文描述
**内包/外包K线序列检测器**
这个指标可以识别并可视化任何图表上的内包和外包K线序列。它突出显示重要的价格行为模式,这些模式可能预示市场潜在的反转或延续走势。
**主要特点:**
- 自动检测连续的内包K线(价格活动被限制在前一根K线范围内)和外包K线(价格活动超出前一根K线范围)
- 通过可自定义的标签显示模式类型
- 用透明框突出显示每个序列的价格范围
- 在每根K线下方用"i"标记内包蜡烛,用"o"标记外包蜡烛
- 应用特殊模式识别规则,提供更准确的交易信号
- 完全可自定义的外观,包括颜色、透明度和标签位置
根据您的交易时间框架和策略调整最小序列长度,以过滤噪音并专注于重要模式。
Enhanced Cycle IndicatorEnhanced Cycle Indicator Guide
DISCLAIMER
"This PineScript indicator evolved from a foundational algorithm designed to visualize cycle-based center average differentials. The original concept has been significantly enhanced and optimized through collaborative refinement with AI, resulting in improved functionality, performance, and visualization capabilities while maintaining the core mathematical principles of the original design"
Overview
The Enhanced Cycle Indicator is designed to identify market cycles with minimal lag while ensuring the cycle lows and highs correspond closely with actual price bottoms and tops. This indicator transforms price data into observable cycles that help you identify when a market is likely to change direction.
Core Principles
Cycle Detection: Identifies natural market rhythms using multiple timeframes
Dynamic Adaptation: Adjusts to changing market conditions for consistent performance
Precise Signals: Provides clear entry and exit points aligned with actual market turns
Reduced Lag: Uses advanced calculations to minimize delay in cycle identification
How To Use
1. Main Cycle Interpretation
Green Histogram Bars: Bullish cycle phase (upward momentum)
Red Histogram Bars: Bearish cycle phase (downward momentum)
Cycle Extremes: When the histogram reaches extreme values (+80/-80), the market is likely approaching a turning point
Zero Line: Crossovers often indicate a shift in the underlying market direction
2. Trading Signals
Green Triangle Up (bottom of chart): Strong bullish signal - ideal for entries or covering shorts
Red Triangle Down (top of chart): Strong bearish signal - ideal for exits or short entries
Diamond Shapes: Indicate divergence between price and cycle - early warning of potential reversals
Small Circles: Minor cycle turning points - useful for fine-tuning entries/exits
3. Optimal Signal Conditions
Bullish Signals Work Best When:
The cycle is deeply oversold (below -60)
RSI is below 40 or turning up
Price is near a significant low
Multiple confirmation bars have occurred
Bearish Signals Work Best When:
The cycle is heavily overbought (above +60)
RSI is above 60 or turning down
Price is near a significant high
Multiple confirmation bars have occurred
4. Parameter Adjustments
For Shorter Timeframes: Reduce cycle periods and smoothing factor for faster response
For Daily/Weekly Charts: Increase cycle periods and smoothing for smoother signals
For Volatile Markets: Reduce cycle responsiveness to filter noise
For Trending Markets: Increase signal confirmation requirement to avoid false signals
Recommended Settings
Default (All-Purpose)
Main Cycle: 50
Half Cycle: 25
Quarter Cycle: 12
Smoothing Factor: 0.5
RSI Filter: Enabled
Signal Confirmation: 2 bars
Faster Response (Day Trading)
Main Cycle: 30
Half Cycle: 15
Quarter Cycle: 8
Smoothing Factor: 0.3
Cycle Responsiveness: 1.2
Signal Confirmation: 1 bar
Smoother Signals (Swing Trading)
Main Cycle: 80
Half Cycle: 40
Quarter Cycle: 20
Smoothing Factor: 0.7
Cycle Responsiveness: 0.8
Signal Confirmation: 3 bars
Advanced Features
Adaptive Period
When enabled, the indicator automatically adjusts cycle periods based on recent price volatility. This is particularly useful in markets that alternate between trending and ranging behaviors.
Momentum Filter
Enhances cycle signals by incorporating price momentum, making signals more responsive during strong trends and less prone to whipsaws during consolidations.
RSI Filter
Adds an additional confirmation layer using RSI, helping to filter out lower-quality signals and improve overall accuracy.
Divergence Detection
Identifies situations where price makes a new high/low but the cycle doesn't confirm, often preceding significant market reversals.
Best Practices
Use the indicator in conjunction with support/resistance levels
Look for signal clusters across multiple timeframes
Reduce position size when signals appear far from cycle extremes
Pay special attention to signals that coincide with divergences
Customize cycle periods to match the natural rhythm of your traded instrument
Troubleshooting
Too Many Signals: Increase signal confirmation bars or reduce cycle responsiveness
Missing Major Turns: Decrease smoothing factor or increase cycle responsiveness
Signals Too Late: Decrease cycle periods and smoothing factor
False Signals: Enable RSI filter and increase signal confirmation requirement