Liquidity Compression Coil (Full Recovery)TLDR:
This indicator maps key market structure levels with clear visual cues and emojis:
Swing High/Low Detection:
Identifies swing highs (Monastery) and swing lows (School) as key market pivot points.
Trendlines & Rays:
Draws trendlines connecting these pivots and horizontal rays extending into the future for visual reference.
Dynamic Swing Labels:
Each pivot is labeled with its price and a positive percentage that tells you how far the live price must move to reach that level.
If the live price is below the pivot, it shows the percentage "up" needed.
If above, it shows the percentage "down" needed.
Range Calculations:
🧱 Structure Origin: The original range between the swing high and low.
🎯 Projection Bracket: The current active price range.
🌪️ Volatility Span: The total range including extreme price movements.
Dynamic Tracker & Alerts:
📊 Position Metric: Displays where the live price sits within the current range.
⚠️ Breakout/Breakdown Alerts: Signals when the price moves beyond the tracked range.
Overall, it’s a comprehensive tool that visually communicates where price is relative to key support/resistance levels and alerts you to potential reversals or breakouts—all in a straightforward, emoji-enhanced format.
Bands and Channels
Indices Scalping Strategy (5min&30minTF)BB+P.Sar by TBTPHPine Script code is a trading strategy using Bollinger Bands and a 50-period Simple Moving Average (SMA) to generate buy and sell signals. You've also incorporated session-specific background coloring for both the London Stock Exchange (LSE) and the New York Stock Exchange (NYSE), which adds extra context for users. Here's a breakdown of the key parts:
Bollinger Bands Calculation:
The script calculates Bollinger Bands using a moving average (basis) and a multiplier for the standard deviation (dev).
It plots the upper, lower, and middle Bollinger Bands (upper_band, lower_band, and basis).
50-period Simple Moving Average (SMA):
It calculates a 50-period SMA (sma_50).
The color of the 50 SMA changes based on the price's relationship to it. It turns green if the price is above the SMA, and red if the price is below it.
Buy and Sell Signals:
A Buy Signal is generated when the price crosses above the lower Bollinger Band.
A Sell Signal is generated when the price crosses below the upper Bollinger Band.
The signals are plotted on the chart as green and red shapes, respectively.
Candle Color Change:
The candle color turns white when the price crosses the middle Bollinger Band (basis), which visually indicates a potential reversal or shift.
Alerts:
Alerts are set up for both Buy and Sell signals, so you can receive notifications when these conditions are met.
Session Times:
The script defines trading hours for both the LSE and NYSE, and changes the background color to blue for LSE and purple for NYSE.
Shan Alerts v6This indicator appears to be a volatility-based trailing stop system that generates buy and sell signals. It uses ATR (Average True Range) to determine stop levels and can work with either regular price data or Heikin-Ashi candles.
Strengths
ATR-Based Stops: The use of ATR makes the stops adaptive to market volatility, which is generally better than fixed percentage stops.
Heikin-Ashi Option: The ability to use Heikin-Ashi candles can help filter out some market noise, potentially reducing false signals.
Visual Clarity: The indicator provides clear visual signals with colored bars and buy/sell labels.
Alert Functionality: The built-in alert conditions make it practical for real-world trading.
2m 20T Trend Reversal SignalsI don't understand this generation. I kissed like 5 fricking girls and one of them have a boyfriend. I swear at one point she was gonna start fricking me. Like what the frick.
Scalping Strategy: EMA + RSIthis is best for 1 to 3 min scalping,this stratagy base on long ema and short ema, i use rsi level 30 to 70, fpr comfarmation .
Reversal Detection Indicator / Pro Panel EditionThe Reversal Detection Indicator – Pro Panel Edition is a powerful technical analysis tool designed to help traders identify high-probability market reversal zones with precision and confidence. Whether you're day trading, swing trading, or scalping, this indicator enhances your decision-making process by combining real-time price action analysis with dynamic visual alerts.
Liquidity Compression Coil (6 Lines, 8-Bar Breakout)✅ The script you posted is fully compliant, error-free, and ready to run in Pine Script v6 with no issues. You’ve structured it clearly and modularly.
Here’s a quick breakdown of the enhancements you've implemented in this version:
✅ Fully Modular User Control
Color Controls for All Labels:
Anchor Range
Projection Range
Total Range (Volatility Span)
Position Metric
Breakout / Breakdown Alerts
Separate Line Width Control:
Independent thickness for composite bars vs. pivot rays.
Dynamic Line Style Selector:
Choose between solid, dashed, and dotted for pivots and rays.
Custom Label Sizes and Transparency for background fills.
📊 Key Features Recap
Swing High/Low Detection with adjustable lookback.
Dynamic Trendlines from pivot to current price.
Projection & Anchor Boxes rendered as vertical bars in logical back-to-front stacking.
Percentage Distance Tracking between price and swings.
Position Tracker (% within latest range).
Breakout / Breakdown Alert Zones visually triggered when price exits the latest range.
Full Label Customization including emojis, label size, and color transparency.
💡 What You Could Add Next (Optional Ideas):
Historical Box Trail Option:
Keep a configurable number of previous range boxes as visual memory (for structure replay).
Alerts:
Use alertcondition() to trigger sound/notification when:
Price exits coil range (breakout/breakdown).
Compression level tightens below threshold.
Compression Score Display:
Add a visual label or plot for (projLen / originLen) ratio to measure tightening.
Color Modes by State (e.g.):
If projLen < originLen * 0.75, color could shift to signal “tight compression”.
OBV-SMA-BBOn-Balance Volume (OBV) is a technical indicator that measures buying and selling pressure by adding volume on rising days and subtracting it on falling days. It helps traders identify trends and confirm price movements. An increasing OBV suggests strong buying pressure, while a decreasing OBV indicates selling pressure.
Smart Buy Sell (RSI + MACD + EMA + Price Action)//@version=5
indicator("Smart Buy Sell (RSI + MACD + EMA + Price Action)", overlay=true)
// === RSI Settings ===
rsiSource = close
rsiPeriod = input.int(14, title="RSI Period")
rsi = ta.rsi(rsiSource, rsiPeriod)
// === MACD Settings ===
= ta.macd(close, 12, 26, 9)
// === EMA Settings ===
ema50 = ta.ema(close, 50)
plot(ema50, title="EMA 50", color=color.orange)
// === Price Action: Previous High/Low ===
prevHigh = ta.highest(high, 10)
prevLow = ta.lowest(low, 10)
// === Buy Signal ===
buyCond = rsi > 30 and ta.crossover(macdLine, signalLine) and close > ema50 and close > prevHigh
// === Sell Signal ===
sellCond = rsi < 70 and ta.crossunder(macdLine, signalLine) and close < ema50 and close < prevLow
// === Plot Buy/Sell Signals ===
plotshape(buyCond, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(sellCond, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
Transient Impact Model [ScorsoneEnterprises]This indicator is an implementation of the Transient Impact Model. This tool is designed to show the strength the current trades have on where price goes before they decay.
Here are links to more sophisticated research articles about Transient Impact Models than this post arxiv.org and arxiv.org
The way this tool is supposed to work in a simple way, is when impact is high price is sensitive to past volume, past trades being placed. When impact is low, it moves in a way that is more independent from past volume. In a more sophisticated system, perhaps transient impact should be calculated for each trade that is placed, not just the total volume of a past bar. I didn't do it to ensure parameters exist and aren’t na, as well as to have more iterations for optimization. Note that the value will change as volume does, as soon as a new candle occurs with no volume, the values could be dramatically different.
How it works
There are a few components to this script, so we’ll go into the equation and then the other functions used in this script.
// Transient Impact Model
transient_impact(params, price_change, lkb) =>
alpha = array.get(params, 0)
beta = array.get(params, 1)
lambda_ = array.get(params, 2)
instantaneous = alpha * volume
transient = 0.0
for t = 1 to lkb - 1
if na(volume )
break
transient := transient + beta * volume * math.exp(-lambda_ * t)
predicted_change = instantaneous + transient
math.pow(price_change - predicted_change, 2)
The parameters alpha, beta, and lambda all represent a different real thing.
Alpha (α):
Represents the instantaneous impact coefficient. It quantifies the immediate effect of the current volume on the price change. In the equation, instantaneous = alpha * volume , alpha scales the current bar's volume (volume ) to determine how much of the price change is due to immediate market impact. A larger alpha suggests that current volume has a stronger instantaneous influence on price.
Beta (β):
Represents the transient impact coefficient.It measures the lingering effect of past volumes on the current price change. In the loop calculating transient, beta * volume * math.exp(-lambda_ * t) shows that beta scales the volume from previous bars (volume ), contributing to a decaying effect over time. A higher beta indicates a stronger influence from past volumes, though this effect diminishes with time due to the exponential decay factor.
Lambda (λ):
Represents the decay rate of the transient impact.It controls how quickly the influence of past volumes fades over time in the transient component. In the term math.exp(-lambda_ * t), lambda determines the rate of exponential decay, where t is the time lag (in bars). A larger lambda means the impact of past volumes decays faster, while a smaller lambda implies a longer-lasting effect.
So in full.
The instantaneous term, alpha * volume , captures the immediate price impact from the current volume.
The transient term, sum of beta * volume * math.exp(-lambda_ * t) over the lookback period, models the cumulative, decaying effect of past volumes.
The total predicted_change combines these two components and is compared to the actual price change to compute an error term, math.pow(price_change - predicted_change, 2), which the script minimizes to optimize alpha, beta, and lambda.
Other parts of the script.
Objective function:
This is a wrapper function with a function to minimize so we get the best alpha, beta, and lambda values. In this case it is the Transient Impact Function, not something like a log-likelihood function, helps with efficiency for a high iteration count.
Finite Difference Gradient:
This function calculates the gradient of the objective function we spoke about. The gradient is like a directional derivative. Which is like the direction of the rate of change. Which is like the direction of the slope of a hill, we can go up or down a hill. It nudges around the parameter, and calculates the derivative of the parameter. The array of these nudged around parameters is what is returned after they are optimized.
Minimize:
This is the function that actually has the loop and calls the Finite Difference Gradient each time. Here is where the minimizing happens, how we go down the hill. If we are below a tolerance, we are at the bottom of the hill.
Applied
After an initial guess, we optimize the parameters and get the transient impact value. This number is huge, so we apply a log to it to make it more readable. From here we need some way to tell if the value is low or high. We shouldn’t use standard deviation because returns are not normally distributed, an IQR is similar and better for non normal data. We store past transient impact values in an array, so that way we can see the 25th and 90th percentiles of the data as a rolling value. If the current transient impact is above the 90th percentile, it is notably high. If below the 25th percentile, notably low. All of these values are plotted so we can use it as a tool.
Tool examples:
The idea around it is that when impact is low, there is room for big money to get size quickly and move prices around.
Here we see the price reacting in the IQR Bands. We see multiple examples where the value above the 90th percentile, the red line, corresponds to continuations in the trend, and below the 25th percentile, the purple line, corresponds to reversals. There is no guarantee these tools will be perfect, that is outlined in these situations, however there is clearly a correlation in this tool and trend.
This tool works on any timeframe, daily as we saw before, or lower like a two minute. The bands don’t represent a direction, like bullish or bearish, we need to determine that by interpreting price action. We see at open and at close there are the highest values for the transient impact. This is to be expected as these are the times with the highest volume of the trading day.
This works on futures as well as equities with the same context. Volume can be attributed to volatility as well. In volatile situations, more volatility comes in, and we can perceive it through the transient impact value.
Inputs
Users can enter the lookback value.
No tool is perfect, the transient impact value is also not perfect and should not be followed blindly. It is good to use any tool along with discretion and price action.
STFS-EZ, SMA200, FI TriggerThe Force Index is a technical indicator that measures the strength behind a price movement by combining three elements:
1. Price direction (up or down)
2. Price range (the difference between prices)
3. Trading volume
5-Minute Price Action Scalper5-Minute Scalping Strategy Based on Price Action:
Timeframe & Chart Setup:
Chart Timeframe: 5-minute chart for analysis.
Indicators (if any): Although price action is key, you could use simple tools like trendlines and support/resistance levels for additional context. For your strategy, we can skip most indicators to keep the setup minimal.
Price Action Setup:
Candlestick Patterns: Focus on common patterns like pin bars, engulfing candles, inside bars, and doji patterns. These patterns are significant for potential reversals or continuation signals.
Support & Resistance Levels: Mark clear levels of support and resistance on the 5-minute chart. These levels will be crucial for identifying entry points.
Break of Structure (BoS): Identify market structure shifts. For instance, if the price breaks above a recent high (uptrend), it could signal a continuation of the trend.
Trend Confirmation (Optional):
Higher Timeframe Trend Analysis (15-minute or 1-hour): To avoid trading against the trend, check the higher timeframe (15-minute) for a broader trend. This ensures you're trading with the market’s momentum.
Trendlines: Draw trendlines to capture the overall market direction. If the market is trending up, look for buy signals at support. If it's trending down, look for sell signals at resistance.
Entry Strategy:
Buy Entry: Look for a strong bullish candlestick pattern near a support level. Entry should be taken after the candlestick pattern is confirmed, with a stop loss placed just below the support zone.
Sell Entry: Similarly, look for a bearish candlestick pattern near a resistance level. A sell can be triggered once the pattern is confirmed, with a stop loss above the resistance zone.
Breakout Strategy: If the price breaks out above resistance or below support with a strong candlestick (like an engulfing candle), consider entering in the direction of the breakout.
Exit Strategy:
Target 1-2 R:R (Risk-Reward Ratio): Set a target that provides a good risk-reward ratio (typically 1:1 to 1:2).
Exit at Opposing Zone: You could exit at the next key support or resistance level, or if you see price action signaling exhaustion, such as a long upper wick on a bullish candle or a strong reversal pattern.
Risk Management:
Stop Loss: Always place a stop loss below/above key levels (support/resistance) depending on whether you're in a buy or sell trade.
Position Size: Ensure proper position sizing to risk a small percentage of your account (usually 1-2%) on each trade
FOR EDUCATIONAL PURPOSE ONLY
BTC Live Trade Setup with TP/SL//@version=6
indicator("BTC Live Trade Setup with TP/SL", overlay=true)
// === INPUTS ===
emaLen = input.int(200, "EMA Length")
rsiLen = input.int(14, "RSI Length")
rsiOver = input.int(60, "RSI Buy Threshold")
rsiUnder = input.int(40, "RSI Sell Threshold")
atrLen = input.int(14, "ATR Length")
rrRatio = input.float(2.0, "Risk/Reward Ratio")
// === INDICATORS ===
ema = ta.ema(close, emaLen)
rsi = ta.rsi(close, rsiLen)
atr = ta.atr(atrLen)
// === CONDITIONS ===
longSignal = close > ema and rsi > rsiOver
shortSignal = close < ema and rsi < rsiUnder
// === STATE TRACKING ===
var bool inTrade = false
var bool isLong = false
var float entryPrice = na
var float tpLevel = na
var float slLevel = na
// === TRADE ENTRY ===
if not inTrade and longSignal
entryPrice := close
tpLevel := close + atr * rrRatio
slLevel := close - atr
isLong := true
inTrade := true
else if not inTrade and shortSignal
entryPrice := close
tpLevel := close - atr * rrRatio
slLevel := close + atr
isLong := false
inTrade := true
// === TRADE EXIT (TP or SL hit) ===
if inTrade
if isLong and (close >= tpLevel or close <= slLevel)
inTrade := false
entryPrice := na
tpLevel := na
slLevel := na
else if not isLong and (close <= tpLevel or close >= slLevel)
inTrade := false
entryPrice := na
tpLevel := na
slLevel := na
// === PLOT ENTRY SIGNAL ===
plotshape(longSignal and not inTrade, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(shortSignal and not inTrade, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
// === PLOT TP/SL LINES ===
plot(inTrade ? tpLevel : na, title="Take Profit", color=color.green, style=plot.style_line, linewidth=2)
plot(inTrade ? slLevel : na, title="Stop Loss", color=color.red, style=plot.style_line, linewidth=2)
Liquidity Compression Coil (Full Composite, Separate Thickness)✅ The script you posted is fully compliant, error-free, and ready to run in Pine Script v6 with no issues. You’ve structured it clearly and modularly.
Here’s a quick breakdown of the enhancements you've implemented in this version:
✅ Fully Modular User Control
Color Controls for All Labels:
Anchor Range
Projection Range
Total Range (Volatility Span)
Position Metric
Breakout / Breakdown Alerts
Separate Line Width Control:
Independent thickness for composite bars vs. pivot rays.
Dynamic Line Style Selector:
Choose between solid, dashed, and dotted for pivots and rays.
Custom Label Sizes and Transparency for background fills.
📊 Key Features Recap
Swing High/Low Detection with adjustable lookback.
Dynamic Trendlines from pivot to current price.
Projection & Anchor Boxes rendered as vertical bars in logical back-to-front stacking.
Percentage Distance Tracking between price and swings.
Position Tracker (% within latest range).
Breakout / Breakdown Alert Zones visually triggered when price exits the latest range.
Full Label Customization including emojis, label size, and color transparency.
💡 What You Could Add Next (Optional Ideas):
Historical Box Trail Option:
Keep a configurable number of previous range boxes as visual memory (for structure replay).
Alerts:
Use alertcondition() to trigger sound/notification when:
Price exits coil range (breakout/breakdown).
Compression level tightens below threshold.
Compression Score Display:
Add a visual label or plot for (projLen / originLen) ratio to measure tightening.
Color Modes by State (e.g.):
If projLen < originLen * 0.75, color could shift to signal “tight compression”.
Cảnh báo Breakout nâng cao (Sideway + Volume + RSI)Sideway Zone High and Low Calculation Conditions: You have used ta.highest() and ta.lowest() to calculate the high and low correctly.
Volume Spike: You have used SMA to determine if the current volume is above average.
RSI Check: The condition for RSI has also been checked correctly.
Moving Average Tolerance BandsDraws a set of Moving Averages with a dynamic band around each average. The band acts as tolerance, to recognize even near-by touches of specified moving averages.
12 Week Low and Cummulative 5 Week dropThis script is designed to identify and visually highlight specific candlestick bars on a TradingView chart where two custom conditions overlap:
Additionally, it filters and flags only the latest overlapping candle within the last 5 candles.
Shan AlertsKey Features:
ATR-Based Trailing Stop:
Uses Average True Range (ATR) to determine stop distance
Adjustable multiplier (1.0 by default) for sensitivity
Configurable ATR period (10 by default)
Flexible Price Source:
Can use either regular candles or Heikin-Ashi candles
Toggle with the "Use Heikin-Ashi Candles" input
Visual Elements:
Plots the trailing stop line in orange
Shows BUY/SELL labels (configurable)
Colors bars green/red based on position
Trading Signals:
Generates BUY signals when price crosses above the trailing stop
Generates SELL signals when price crosses below the trailing stop
Includes alert conditions for both signals
Debug Information:
Shows current stop value and position on the last bar
ICT & SMC Multi-Timeframe by [KhedrFX]Transform your trading experience with the ICT & SMC Multi-Timeframe by indicator. This innovative tool is designed for traders who want to harness the power of multi-timeframe analysis, enabling them to make informed trading decisions based on key market insights. By integrating concepts from the Inner Circle Trader (ICT) and Smart Money Concepts (SMC), this indicator provides a comprehensive view of market dynamics, helping you identify potential trading opportunities with precision.
Key Features
- Multi-Timeframe Analysis: Effortlessly switch between various timeframes (5 minutes, 15 minutes, 30 minutes, 1 hour, 4 hours, daily, and weekly) to capture the full spectrum of market movements.
- High and Low Levels: Automatically calculates and displays the highest and lowest price levels over the last 20 bars, highlighting critical support and resistance zones.
- Market Structure Visualization: Identifies the last swing high and swing low, allowing you to recognize current market trends and potential reversal points.
- Order Block Detection: Detects significant order blocks, pinpointing areas of strong buying or selling pressure that can indicate potential market reversals.
- Custom Alerts: Set alerts for when the price crosses above or below identified order block levels, enabling you to act swiftly on trading opportunities.
How to Use the Indicator
1. Add the Indicator to Your Chart
- Open TradingView.
- Click on the "Indicators" button at the top of the screen.
- Search for "ICT & SMC Multi-Timeframe by " in the search bar.
- Click on the indicator to add it to your chart.
2. Select Your Timeframe
- Use the dropdown menu to choose your preferred timeframe (5, 15, 30, 60, 240, D, W) for analysis.
3. Interpret the Signals
- High Level (Green Line): Represents the highest price level over the last 20 bars, acting as a potential resistance level.
- Low Level (Red Line): Represents the lowest price level over the last 20 bars, acting as a potential support level.
- Last Swing High (Blue Cross): Indicates the most recent significant high, useful for identifying potential reversal points.
- Last Swing Low (Orange Cross): Indicates the most recent significant low, providing insight into market structure.
- Order Block High (Purple Line): Marks the upper boundary of a detected order block, suggesting potential selling pressure.
- Order Block Low (Yellow Line): Marks the lower boundary of a detected order block, indicating potential buying pressure.
4. Set Alerts
- Utilize the alert conditions to receive notifications when the price crosses above or below the order block levels, allowing you to stay informed about potential trading opportunities.
5. Implement Risk Management
- Always use proper risk management techniques. Consider setting stop-loss orders based on the identified swing highs and lows or the order block levels to protect your capital.
Conclusion
The ICT & SMC Multi-Timeframe by indicator is an essential tool for traders looking to enhance their market analysis and decision-making process. By leveraging multi-timeframe insights, market structure visualization, and order block detection, you can navigate the complexities of the market with confidence. Start using this powerful indicator today and take your trading to the next level.
⚠️ Trade Responsibly
This tool helps you analyze the market, but it’s not a guarantee of profits. Always do your own research, manage risk, and trade with caution.
Nifty Range % and Points by Time BlocksPine Script that gives you day-wise intraday range percentage for these 3 time blocks (9:16–10:45, 10:45–1:15, 1:15–3:15), we can:
Detect time blocks during the day
Track High/Low for each block
Calculate range % for each block:
\text{Range %} = \frac{(High - Low)}{\text{Previous Day Close}} \times 100
Plot / Label it on the chart at the end of each block
Adjustable EMA 20/50/100/200Adjustable EMA Indicator (20/50/100/200)
This indicator plots four customizable Exponential Moving Averages (EMAs) directly on the chart. Originally set to the popular 20, 50, 100, and 200 periods, each EMA length can be easily adjusted through the input settings, making it flexible for different trading styles and timeframes.
🔧 Features:
4 EMA Lines: Default lengths are 20 (short-term), 50 (medium-term), 100 (long-term), and 200 (very long-term).
Customizable Inputs: Adjust each EMA period to match your strategy or analysis needs.
Color-Coded Lines:
Red: EMA 1
Orange: EMA 2
Aqua: EMA 3
Blue: EMA 4
Overlay on Price Chart: The EMAs are plotted directly over the price candles for easy reference.
✅ Use Cases:
Identifying trend direction and strength
Spotting dynamic support/resistance zones
Finding potential crossover signals
Whether you're a day trader, swing trader, or investor, this tool helps enhance your chart analysis with clean, flexible moving average lines.