Stock-Specific SMA200 Volatility NormalizedIt is used for swing treding it is shows for 0 to 100 range for every stock
Candlestick analysis
moving_averages_library_public🔍 Overview
A comprehensive open‑source Pine Script library offering a wide variety of moving average functions, including dynamic int-series support for variable-length MA calculations
Reddit
✨ Features
Dozens of moving averages supported:
SMA, EMA, WMA, TMA
Advanced types: ALMA, VRAMA, EFRAMA, EHMA, THMA, etc.
Each function supports both fixed-length and series-length input
Easily integrated into other indicators and strategies via dynamic length parameters
⚙️ How to Use
Import the library:
import T69/Moving_Averages/1 as ma
Call your desired MA function using source and length:
ma.hma(src, len)
ma.frama(src, len)
For dynamic integration, use an input type and pass to the matching function.
🛠 Example Code
src = input.source(close, "Source")
len = input.int(14, "Length")
type = input.string("HMA", "MA Type", options= )
ma_value = switch type
"EMA" => ma.ema(src,len)
"HMA" => ma.hma(src,len)
"FRAMA" => ma.frama(src,len)
=> na
plot(ma_value, color=color.blue)
⚠️ Limitations
Internal calculation precision may differ slightly from TradingView’s built‑in MA functions
Users must manually map input strings to MA functions
Does not include built‑in GUI dropdowns for selecting type
💡 Tips
Use adaptive MAs like VIDYA, JMA, or KAMA for volatility-aware smoothing
Combine with oscillators or ATR bands to define trend strength or entry zones
Utilize series‑based MA inputs for backtesting variability or optimization
📘 Credits
Author: MightyZinger
Published: June 2022 (Public Library), regularly updated
License: Open‑source. Reuse subject to TradingView House Rules
//====================TECHNICAL STUFFS====================
Library "moving_averages_library_public"
TODO: add library description here
new_def_teyoparams()
get_all_ma_enums()
get_ma_out(p_type, src, len, update_instances)
TODO: add function description here
Parameters:
p_type (series ma_type)
src (float) : TODO: Source of the candle for computation
len (simple int) : TODO: Length of lookback of the candle for computation
update_instances (teyo_parameters)
Returns: TODO: add what function returns
==============================================================================
Moving Average Selector
==============================================================================
teyo_parameters
Fields:
p1 (series float)
p2 (series float)
p3 (series float)
p4 (series float)
p5 (series float)
p6 (series float)
p7 (series float)
p8 (series float)
p9 (series float)
p10 (series float)
p11 (series float)
p12 (series float)
p13 (series float)
p14 (series float)
p15 (series float)
p16 (series float)
p17 (series float)
p18 (series float)
p19 (series float)
p20 (series float)
Confirmed Entry Grid Pro//@version=5
indicator("Confirmed Entry Grid Pro", overlay=true,
max_lines_count=500, max_labels_count=500,
title="Confirmed Entry Grid Pro")
// === إعدادات المستخدم ===
showImpulse = input.bool(true, "Show Impulse Wave")
showShrinkWarning = input.bool(true, "Shrink Warning")
minConfirmations = input.int(5, "Minimum Confirmations", minval=3, maxval=10)
// === المتوسطات ===
ma9 = ta.sma(close, 9)
ma21 = ta.sma(close, 21)
ma200 = ta.sma(close, 200)
// === الاتجاه ===
trendBull = close > ma200
trendBear = close < ma200
// === الزخم ===
rsi = ta.rsi(close, 14)
rsiBull = rsi > 50
rsiBear = rsi < 50
// === الحجم ===
volMA = ta.sma(volume, 20)
volHigh = volume > volMA
// === شموع ابتلاعية ===
bullEngulf = close > open and open < close and close > open
bearEngulf = close < open and open > close and close < open
// === بولنجر باند ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
upper = basis + 2 * dev
lower = basis - 2 * dev
bbBreakUp = close > upper
bbBreakDown = close < lower
// === دعم / مقاومة ديناميكية ===
support = ta.lowest(low, 20)
resistance = ta.highest(high, 20)
nearSupport = math.abs(close - support) / close < 0.015
nearResistance = math.abs(close - resistance) / close < 0.015
// === تقاطع المتوسطات ===
crossUp = ta.crossover(ma9, ma21)
crossDown = ta.crossunder(ma9, ma21)
// === ATR ===
atr = ta.atr(14)
atrActive = atr > ta.sma(atr, 14)
// === SMC: BOS + CHOCH + Impulsive Wave ===
bosUp = high > high and low > low
bosDown = low < low and high < high
chochUp = close > high and close < high
chochDown = close < low and close > low
smcBuy = bosUp and chochUp
smcSell = bosDown and chochDown
// === الموجة الدافعة (مؤشر اختياري لإشارة دخول قوية)
impulseWaveSell = close <= close and close <= close and close <= close and close < open
impulseWave = close >= close and close >= close and close >= close and close > open
// === مناطق السيولة ===
liqHigh = ta.highest(high, 30)
liqLow = ta.lowest(low, 30)
liquidityBuyZone = close < liqLow
liquiditySellZone = close > liqHigh
// === حساب النقاط لكل صفقة ===
buyScore = (trendBull ? 1 : 0) + (rsiBull ? 1 : 0) + (volHigh ? 1 : 0) + (bullEngulf ? 1 : 0) + (smcBuy ? 1 : 0) + (bbBreakUp ? 1 : 0) + (nearSupport ? 1 : 0) + (crossUp ? 1 : 0) + (atrActive ? 1 : 0) + (liquidityBuyZone ? 1 : 0)
sellScore = (trendBear ? 1 : 0) + (rsiBear ? 1 : 0) + (volHigh ? 1 : 0) + (bearEngulf ? 1 : 0) + (smcSell ? 1 : 0) + (bbBreakDown ? 1 : 0) + (nearResistance ? 1 : 0) + (crossDown ? 1 : 0) + (atrActive ? 1 : 0) + (liquiditySellZone ? 1 : 0)
// === شروط الإشارات مع منع التكرار خلال آخر 5 شموع ===
var int lastBuyBar = na
var int lastSellBar = na
canBuy = buyScore >= 5 and impulseWave and (na(lastBuyBar) or bar_index - lastBuyBar > 3)
canSell = sellScore >= 5 and impulseWaveSell and (na(lastSellBar) or bar_index - lastSellBar > 3)
if canBuy
lastBuyBar := bar_index
if canSell
lastSellBar := bar_index
showBuy = canBuy and buyScore >= minConfirmations
showSell = canSell and sellScore >= minConfirmations
// === طول الخطوط ===
var int lineLen = 5
// === رسم الإشارات ===
plotshape(showBuy, title="BUY", location=location.belowbar, style=shape.triangleup, size=size.small, color=color.green)
plotshape(showImpulse and impulseWave, title="Impulsive Buy", location=location.belowbar, style=shape.labelup, size=size.tiny, color=color.lime, text="IB")
plotshape(showSell, title="SELL", location=location.abovebar, style=shape.triangledown, size=size.small, color=color.red)
plotshape(showImpulse and impulseWaveSell, title="Impulsive Sell", location=location.abovebar, style=shape.labeldown, size=size.tiny, color=color.maroon, text="IS")
// === خطوط الصفقة ===
var line buyLines = array.new_line(0)
var line sellLines = array.new_line(0)
if (showBuy)
entry = close
label.new(bar_index, entry, "Entry " + str.tostring(entry, format.mintick), style=label.style_label_left, textcolor=color.white, size=size.normal)
tpLevels = array.from(0.618, 1.0, 1.272, 1.618, 2.0)
for i = 0 to array.size(tpLevels) - 1
fib = array.get(tpLevels, i)
tp = entry + fib * atr
fibLabel = "TP" + str.tostring(i + 1) + " - Fib " + str.tostring(fib)
line = line.new(bar_index, tp, bar_index + lineLen, tp, color=color.green)
label.new(bar_index + lineLen, tp, fibLabel + " " + str.tostring(tp, format.mintick), style=label.style_label_right, textcolor=color.lime, size=size.normal)
array.push(buyLines, line)
sl = entry - 0.618 * atr
slLine = line.new(bar_index, sl, bar_index + lineLen, sl, color=color.red)
label.new(bar_index + lineLen, sl, "SL " + str.tostring(sl, format.mintick), style=label.style_label_right, textcolor=color.red, size=size.normal)
array.push(buyLines, slLine)
if (showSell)
entry = close
label.new(bar_index, entry, "Entry " + str.tostring(entry, format.mintick), style=label.style_label_left, textcolor=color.white, size=size.normal)
tpLevels = array.from(-0.618, -1.0, -1.272, -1.618, -2.0)
for i = 0 to array.size(tpLevels) - 1
fib = array.get(tpLevels, i)
tp = entry + fib * atr
fibLabel = "TP" + str.tostring(i + 1) + " - Fib " + str.tostring(math.abs(fib))
line = line.new(bar_index, tp, bar_index + lineLen, tp, color=color.green)
label.new(bar_index + lineLen, tp, fibLabel + " " + str.tostring(tp, format.mintick), style=label.style_label_right, textcolor=color.green, size=size.normal)
array.push(sellLines, line)
sl = entry + 0.618 * atr
slLine = line.new(bar_index, sl, bar_index + lineLen, sl, color=color.red)
label.new(bar_index + lineLen, sl, "SL " + str.tostring(sl, format.mintick), style=label.style_label_right, textcolor=color.red, size=size.normal)
array.push(sellLines, slLine)
God's Plan 7.2 - FVGP EnhancedThis is a buy/sell indicator containing the code for the Top Bottom indicator, VWAP and 9 EMA.
Buy conditions are Top Bottom buy and 9 EMA crossing above the VWAP.
Sell conditions are Top Bottom sell and 9 EMA crossing below the VWAP.
C signals indicate continuations.
Zero TOD constraints.
This is a simple strategy to help train the eye to recognize trend shifts and potential entries.
It is important for the users of this strategy to use their own logic when determining stop loss and targets.
Thank you to all of the coders and creators that have provided us with inspiration for this strategy. Happy trading!
Kairos BarakahTrade with precision during high-probability windows using this advanced Pine Script indicator, designed specifically for Indian Standard Time (IST). The tool identifies key reversal opportunities within a user-defined trading session, combining time-based reference levels, sequence-validated signals, and multi-factor win probability analysis for confident decision-making.
Key Features
1. Time-Based Reference Levels
Automatically sets high/low reference levels at a customizable start time (default: 19:00 IST).
Active trading window with adjustable duration (default: 135 minutes).
Clear visual reference lines for easy tracking.
2. Intelligent Signal Generation
Initial Signals:
Buy (B): Triggered when price closes above the reference high.
Sell (S): Triggered when price closes below the reference low.
Reversal Signals (R):
Valid only after an initial signal, ensuring proper sequence.
Buy Reversal: Price closes above reference high (after a Sell signal).
Sell Reversal: Price closes below reference low (after a Buy signal).
3. Multi-Dimensional Win Probability
Body Strength: Measures candle conviction (body size / total range).
Volume Confirmation: Compares current volume to 20-period average.
Trend Alignment: Uses EMA crosses (9/21) and RSI (14) for momentum.
Composite Score: Weighted blend of all factors, color-coded for quick interpretation:
🟢 >70%: High-confidence signal.
🟠 40-69%: Moderate confidence.
🔴 <40%: Weak signal.
4. Professional Visualization
Clean labels (B/S/R) at signal points.
Real-time reference table showing levels, active signal, and probabilities.
Customizable alerts for all signal types.
Why Use This Indicator?
IST-Optimized: Tailored for Indian market hours.
Rules-Based Reversals: Avoids false signals with strict sequence checks.
Data-Driven Confidence: Win probability metrics reduce guesswork.
Flexible Setup: Adjust time windows and parameters to fit your strategy.
SMC Core Concepts TradingNexus (BOS, CHoCH, FVG, OB) - Stage 1🔍 SMC Core Concepts TradingNexus – Stage 1 (BOS, CHoCH, FVG, OB)
Smart Money Concepts made visual and accessible.
This indicator helps traders identify key institutional structures such as Break of Structure (BOS), Change of Character (CHoCH), Fair Value Gaps (FVG), and Order Blocks (OB) – all automatically detected and visualized on the chart.
✅ Features in Stage 1:
🔹 BOS Detection – Detects bullish and bearish structure breaks based on swing points
🔹 CHoCH Identification – Spots potential change of character after a trend
🔹 Fair Value Gap Zones – Highlights imbalances between candles
🔹 Order Block Zones – Detects key OB zones before strong price moves
🔹 Smart Auto-Cleanup – Automatically removes old boxes to optimize performance
🔹 User Inputs – Configure swing sensitivity and toggle each feature
🧠 Built for Traders Seeking Clarity
This script is ideal for SMC traders who want clear structure-based setups without drawing everything manually. Designed for both scalpers and swing traders who follow institutional logic.
🚀 Stage 2 (Coming Soon):
Liquidity zones (EQH/EQL)
Internal vs. external BOS
Mitigation blocks
Bias detection
Buy/Sell signal system
Smart SL/TP zones
Alerts system
👤 Created by TradingNexus
💬 Open-source & community-driven. Feel free to fork, contribute, or suggest improvements.
Worthy Asset StrategyThis strategy is designed with a two-part philosophy: a regime filter and a value-based accumulation approach.
🟩 Regime Filter:
If the S&P 500 (SPX) is trading above its 200-period EMA, a green background is shown below the chart, signaling a favorable market regime.
If the SPX is below the 200 EMA, the background turns red, indicating a less favorable environment.
📉 Buy Signals:
Buy signals are generated by red candles that drop a certain percentage from their open — essentially treating these pullbacks as discount opportunities.
The idea is to accumulate more of a selected asset when it becomes temporarily cheaper.
💎 Philosophy & Execution:
I only apply this strategy to assets I’ve personally researched and believe to be fundamentally valuable.
If a Buy signal occurs and the SPX is trading above its 200 EMA (i.e., the background is green), I enter the position.
Once in the trade, I follow this logic:
If the position reaches +1.5% profit, I sell it.
If it doesn’t reach profit and goes into a loss, I simply hold.
I don’t sell at a loss because I believe in the long-term value of the asset.
If the price drops further, I accumulate more — aiming to lower my average cost and eventually exit at a profit once the asset recovers.
This approach is based on the mindset of treating drawdowns as discounts, not danger.
"The more it drops, the more I accumulate — because I see value, not risk."
This is still a work in progress, and I’m actively refining it over time.
⚠️ Note: The sell logic is not yet visible on the chart and will be added in a future update.
🚀 Hopefully 🤲🏻It’s a simple yet effective indicator. Its power level is high. Its secret lays in its dynamics. Simply “BUY’ when you see green triangle & "SELL" when you see red triangle 🔺. Do your own due diligence and remember to always be disciplined and focused 🧘
Happy trading to you all ☮️
EMA Crossover Candle Colorema crossover for the 21 and 8 ema cross that changes the candle a different color
Daily % MoveThis indicator notates each candle with the total percentage that the stock moved for that candle.
ICT Concepts Toolkit [TWS]
ICT Concepts Toolkit – by Trade With Stevie
Unlock the full power of Inner Circle Trader (ICT) concepts with this all-in-one indicator built for serious traders.
The ICT Concepts Toolkit combines the most powerful price action tools into one clean, efficient, and highly customizable interface — perfect for mastering market structure and timing precision entries.
✅ Features Included:
🟩 Order Blocks – Automatically detect key institutional levels for potential reversals and entries.
📉 Fair Value Gaps (FVGs) – Visualize imbalances in price action to spot high-probability targets and mitigation zones.
📊 Support & Resistance – Dynamically plotted levels to track market structure and trend shifts in real-time.
📅 Previous Daily Highs/Lows – Key liquidity zones marked for precision scalping and swing setups.
🕒 Session Zones – Clearly defined Asian, London, and New York sessions with customizable times and colors.
📌 Extension Lines – Extends each session’s high and low to the current candle for ongoing bias and liquidity mapping.
🚦ICT Morning Signal – Your personal directional bias assistant: smart signals showing when to Buy or Sell based on ICT’s powerful Morning Model logic.
Whether you're trading Forex, Futures, or Crypto — this toolkit gives you a cleaner chart, clearer bias, and more confidence in your setups.
💡 Created by Trade With Stevie — follow for more smart tools and signal insights.
10/20 EMA + 50/200 SMA10/20 EMA + 50/200 SMA all in one indicator to help you analyze your trades in a more efficient way.
Gustavo Zone Indicator JULYThis indicator watches for runs of at least three consecutive green (or red) candles followed by an opposite-color candle, then marks that reversal zone by drawing a rectangle from the wicks of the first two run candles. It optionally plots a horizontal “target” line at the wick of the third run candle. While the zone is active, if three bars in a row close beyond both the zone boundary and the target line, it issues a customizable “Sell” label above the bar (after bullish runs) or a “Buy” label below the bar (after bearish runs). All colors, text labels, sizes, offsets, and toggles for the zones, lines, and signals can be adjusted in the input settings.
God's Plan 7.1This is a buy/sell indicator containing the code for the Top Bottom indicator, VWAP and 9 EMA.
Buy conditions are Top Bottom buy and 9 EMA crossing above the VWAP.
Sell conditions are Top Bottom sell and 9 EMA crossing below the VWAP.
C signals indicate continuations.
Zero TOD constraints.
This is a simple strategy to help train the eye to recognize trend shifts and potential entries.
It is important for the users of this strategy to use their own logic when determining stop loss and targets.
Thank you to all of the coders and creators that have provided us with inspiration for this strategy. Happy trading!
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
todaywewin73
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
0 comments
Líneas VerticalesVertical lines in different time frames to select and analyze candles according to time frames in a lower TF.
The Kyber Cell's – TTM Squeeze ProThe Kyber Cell’s TTM Squeeze Pro
TTM Squeeze + ALMA + VWAP for Precision Trade Timing
⸻
1. Introduction
Kyber Cell’s Squeeze Pro is a comprehensive, all-in-one overlay indicator built on top of John Carter’s famous TTM Squeeze concept. It integrates advanced momentum and trend analysis using Arnaud Legoux Moving Averages (ALMA), a scroll-aware VWAP with optional deviation bands, and a clean, user-friendly visual system. The goal is simple: give traders a clear and configurable chart that identifies price compression, detects release moments, confirms direction, and helps manage risk and reward visually and effectively.
This tool is intended for traders of all styles — scalpers, swing traders, or intraday strategists — looking for cleaner signals, better visual cues, and more confidence in entry/exit timing.
⸻
2. Core Concepts
At its heart, the Squeeze Pro builds an in-chart visualization of the TTM Squeeze, a strategy that identifies when price volatility compresses inside a Bollinger Band that is narrower than a Keltner Channel. These moments often precede explosive breakouts. This version categorizes squeezes into three levels of compression:
• Blue Dot – Low Compression
• Orange Dot – Medium Compression
• Red Dot – High Compression
When the squeeze “fires” (i.e., the Bollinger Bands expand beyond all Keltner thresholds), the indicator flips to a Green Dot, signaling potential entry if confirmed by trend direction.
The indicator also includes a momentum model using linear regression on smoothed price deviation to determine directional bias. Momentum is further reinforced by a customizable trend engine, allowing you to switch between EMA-21 or HMA 34/144 logic.
An ALMA ribbon is plotted across the chart to represent smoothed trend strength with minimal lag, and a scroll-aware VWAP (Volume-Weighted Average Price) line, optionally with ±σ bands, helps confirm mean-reversion or momentum continuation setups.
⸻
3. Visual Components
Squeeze Pro replaces the traditional histogram with bar coloring logic based on your selected overlay mode:
• Momentum Mode colors bars based on whether momentum is rising or falling and in which direction (aqua/blue for bullish, red/yellow for bearish).
• Trend Mode colors bars using EMA or HMA logic to identify whether price is in a bullish, bearish, or neutral trend state.
A colored backdrop is triggered when a squeeze fires and momentum direction is confirmed. It remains green for bullish runs and red for bearish runs. The background disappears when the trend exhausts or reverses.
Each squeeze level (low, medium, high) is plotted as tiny dots above or below candles, with configurable colors. On the exact bar where the squeeze fires, the indicator optionally plots entry markers — either arrows or triangles — which can be placed with adjustable padding using ATR. These provide an at-a-glance signal of possible long or short entries.
EXPERIMENTAL : For risk and reward management, protective stop lines and limit targets can be toggled on. Stops are calculated using either recent swing highs/lows or a fixed ATR multiple, depending on user preference. Limit targets are calculated from entry price using ATR-based projections.
All colors are customizable.
⸻
4. Multi-Timeframe Squeeze Panel
An optional MTF Squeeze Panel appears in the top-right corner of the chart, displaying the squeeze status across multiple timeframes — from 1-minute to Monthly. Each timeframe is color-coded:
• Red for High Compression
• Orange for Medium Compression
• Blue for Low Compression
• Yellow for Open/No Compression
This provides rapid context for whether multiple timeframes are simultaneously compressing (a common precursor to explosive moves), helping traders align higher- and lower-timeframe signals. Colors are customizable.
The MTF panel dynamically adjusts to chart space and only renders the selected intervals for clarity and performance.
⸻
5. Inputs and Configuration Options
Squeeze Pro offers a rich configuration suite:
• Squeeze Settings: Control the Bollinger Band standard deviation, and three separate Keltner Channel multipliers (for low, medium, and high compression zones).
• ALMA Controls: Adjust the smoothing length, offset, and σ factor to control ribbon sensitivity.
• VWAP Options: Toggle VWAP on/off and optionally show ±σ bands for mean reversion signals.
• Entry Markers: Customize marker shape (arrow or triangle), size (tiny to huge), color, and padding using ATR multipliers.
• Stops and Targets:
• Choose between Swing High/Low or ATR-based stop logic.
• Define separate ATR lengths and multipliers for stops and targets.
• Independently toggle their visibility and color.
• Bar Coloring Mode: Select either Momentum or Trend logic for bar overlays.
• Trend Engine: Choose between EMA-21 or HMA 34/144 for identifying trend direction.
• Squeeze Dot Colors: Customize the colors for each compression level and release state.
• MTF Panel: Toggle visibility per timeframe — from 1m to Monthly.
This high degree of customization ensures that the indicator can adapt to nearly any trading style or preference.
⸻
6. Trade Workflow Suggestions
To get the most out of this tool, traders can follow a consistent workflow:
1. Watch Dot Progression: Blue → Orange → Red indicates increasing compression and likelihood of breakout.
2. Enter on Green Dot: When the squeeze fires (green dot), confirm entry direction with bar color and backdrop.
3. Use Confirmation Tools:
• ALMA should slope in the trade direction.
• VWAP should support the price move or confirm expansion away from mean.
4. Manage Risk and Reward (experimental):
• Respect stop-loss placements (Swing/ATR).
• Use ATR-based limit targets if enabled.
5. Exit:
• Consider exiting when momentum crosses zero.
• Or exit when the background color disappears, signaling potential trend exhaustion.
⸻
7. Alerts
Includes built-in alert conditions to notify you when a squeeze fires in either direction:
• “Squeeze Long”: Triggers when a green dot appears and momentum is bullish.
• “Squeeze Short”: Triggers when a green dot appears and momentum is bearish.
You can use these alerts for automation or to stay notified of new setups even when away from the screen.
⸻
8. Disclaimer
This indicator is designed for educational purposes only and should not be interpreted as financial advice. Trading is inherently risky, and any decisions based on this tool should be made with full awareness of personal risk tolerance and capital exposure.
God's Plan 7This is a buy/sell indicator containing the code for the Top Bottom indicator, VWAP and 9 EMA.
Buy conditions are Top Bottom buy and 9 EMA crossing above the VWAP.
Sell conditions are Top Bottom sell and 9 EMA crossing below the VWAP.
C signals indicate continuations.
Zero TOD constraints.
This is a simple strategy to help train the eye to recognize trend shifts and potential entries.
It is important for the users of this strategy to use their own logic when determining stop loss and targets.
Thank you to all of the coders and creators that have provided us with inspiration for this strategy. Happy trading!
🔔 NIFTY 100+ Points Early Move Signal (1H)//@version=5
indicator("🔔 NIFTY 100+ Points Early Move Signal (1H)", overlay=true)
// === Inputs === //
squeezePeriod = input.int(20, title="Price Squeeze Lookback")
rangeTrigger = input.float(100.0, title="Target Move (in Points)")
rsiLength = input.int(14, title="RSI Length")
macdFast = input.int(12)
macdSlow = input.int(26)
macdSignal = input.int(9)
volMultiplier = input.float(1.5, title="Volume Spike Multiplier")
// === RSI & MACD === //
rsi = ta.rsi(close, rsiLength)
= ta.macd(close, macdFast, macdSlow, macdSignal)
macdBullish = macdLine > signalLine
macdBearish = macdLine < signalLine
// === Price Compression === //
hh = ta.highest(high, squeezePeriod)
ll = ta.lowest(low, squeezePeriod)
compressionRange = hh - ll
tightCompression = compressionRange < (rangeTrigger * 0.6) // Pre-expansion
// === Volume Spike === //
avgVol = ta.sma(volume, 20)
volSpike = volume > avgVol * volMultiplier
// === Early Signal Logic === //
bullSetup = tightCompression and rsi > 50 and macdBullish and volSpike
bearSetup = tightCompression and rsi < 50 and macdBearish and volSpike
// === Plotting Signals === //
plotshape(bullSetup, title="Bullish Setup", location=location.belowbar, color=color.green, style=shape.labelup, text="100↑")
plotshape(bearSetup, title="Bearish Setup", location=location.abovebar, color=color.red, style=shape.labeldown, text="100↓")
bgcolor(bullSetup ? color.new(color.green, 85) : na)
bgcolor(bearSetup ? color.new(color.red, 85) : na)
// === Alerts === //
alertcondition(bullSetup, title="Bullish 100pt Setup", message="🚀 NIFTY: 100+ point UP move likely!")
alertcondition(bearSetup, title="Bearish 100pt Setup", message="🔻 NIFTY: 100+ point DOWN move likely!")
3 EMA Signal with Cleaned Dual Entry Logic3-EMA Trend Following Indicator with Buy/Sell Signals
EMA1 = Slow EMA (default 100)
EMA2 = Fast EMA (default 10)
EMA3 = Medium EMA (default 20)
Trend is bullish when EMA2 and EMA3 are above EMA1
Buy when EMA2 crosses above EMA3 in bullish trend
Sell when EMA2 crosses below EMA3 in bearish trend
Entry and exit points are plotted on chart