Liquidity Squeeze Indicator 1The provided Pine Script code implements a "Liquidity Squeeze Indicator" in TradingView, designed to detect potential bullish or bearish market squeezes based on EMA slopes, candle wicks, and body sizes.
Code Breakdown
EMAs Calculation: Calculates the 21-period (ema_21) and 50-period (ema_50) exponential moving averages (EMAs) on closing prices.
EMA Slope Calculation: Computes the slope of the 21-period EMA over a 21-period lookback to estimate trend direction, with a threshold of 0.45 to approximate a 45-degree angle.
Candle Properties: Measures the size of the candle's body and its upper and lower wicks for comparison to detect wick-to-body ratios.
Trend Identification: Defines a bullish trend when ema_21 is above ema_50 and a bearish trend when ema_21 is below ema_50.
Wick Conditions
Bullish Condition : In a bullish trend with the EMA slope up, checks if the upper wick is at least 3x the body size and the closing price is above the 21 EMA.
Bearish Condition: In a bearish trend with the EMA slope down, checks if the lower wick is at least 3x the body size and the closing price is below the 21 EMA.
Signal Plotting: Plots a green dot above the bar for bullish signals and a red dot below the bar for bearish signals.
Alerts: Defines alert conditions for both bullish and bearish signals, providing specific alert messages when conditions are met.
Summary
This indicator helps identify potential bullish or bearish liquidity squeezes by looking at trends, EMA slopes, and wick-to-body ratios in candlesticks. The primary signals are visualized through dots on the chart and can trigger alerts for notable market conditions.
Indikator dan strategi
ICT & SMC Strategy//@version=5
strategy("ICT & SMC Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=5)
// إعدادات الهيكل السوقي
swingHigh = ta.highest(high, 5)
swingLow = ta.lowest(low, 5)
// تعريف كتل الأوامر - تعريف شمعة ذات زخم قوي
isBullishOrderBlock = (close > open) and (high - low > 1.5 * (close - open ))
isBearishOrderBlock = (close < open) and (high - low > 1.5 * (open - close ))
// مناطق السيولة (اعتمادًا على أعلى القمم وأدنى القيعان)
liquidityZoneHigh = ta.highest(high, 20)
liquidityZoneLow = ta.lowest(low, 20)
// إشارات الشراء والبيع بناءً على الهيكل السوقي وكتل الأوامر
longCondition = (ta.crossover(low, swingLow) or isBullishOrderBlock) and (close > liquidityZoneLow)
shortCondition = (ta.crossunder(high, swingHigh) or isBearishOrderBlock) and (close < liquidityZoneHigh)
// تنفيذ الأوامر
if (longCondition)
strategy.entry("Buy", strategy.long)
if (shortCondition)
strategy.entry("Sell", strategy.short)
// عرض مناطق السيولة وكتل الأوامر على الرسم البياني
plot(liquidityZoneHigh, color=color.red, linewidth=1, title="Liquidity Zone High")
plot(liquidityZoneLow, color=color.green, linewidth=1, title="Liquidity Zone Low")
bgcolor(isBullishOrderBlock ? color.new(color.green, 80) : na, title="Bullish Order Block")
bgcolor(isBearishOrderBlock ? color.new(color.red, 80) : na, title="Bearish Order Block")
Gap Finder with Box FillSetup and Inputs
The indicator checks the current and previous candles to find gaps, using a color input for filling the gap area on the chart.
Gap Detection:
If the current candle opens higher than the previous close and doesn’t overlap with the previous candle’s range, it marks this as a gap-up.
If the current candle opens lower than the previous close without overlap, it’s marked as a gap-down.
Drawing the Gap:
When a gap-up or gap-down is found, the script draws a box from the previous close to the current candle’s low or high, filling it with the chosen color.
Benefits
Visual Aid: The filled box highlights gaps, making them easy to spot on the chart.
Trade Signals: Gaps can show strong market moves, helping traders spot potential entries or watch for reversals.
Customizable: You can adjust the color to fit your chart style, making the gaps stand out clearly.
This simple tool gives traders a quick view of gaps, which are often key points of interest in technical analysis.
SMA- Ashish SinghSMA
This script implements a Simple Moving Average (SMA) crossover strategy using three SMAs: 200-day, 50-day, and 20-day, with buy and sell signals triggered based on specific conditions involving these moving averages. The indicator is overlaid on the price chart, providing visual cues for potential buy and sell opportunities based on moving average crossovers.
Key Features:
Moving Averages:
The 200-day, 50-day, and 20-day SMAs are calculated and plotted on the price chart. These are key levels that traders use to assess trends.
The 200-day SMA represents the long-term trend, the 50-day SMA is used for medium-term trends, and the 20-day SMA is for short-term analysis.
Buy Signal:
A buy signal is triggered when the price is below all three moving averages (200 SMA, 50 SMA, 20 SMA) and the SMAs are in a specific downward trend (200 SMA > 50 SMA > 20 SMA). This is an indication of a potential upward reversal.
The buy signal is marked with a green triangle below the price bar.
Sell Signal:
A sell signal is triggered when the price is above all three moving averages and the SMAs are in a specific upward trend (200 SMA < 50 SMA < 20 SMA). This signals a potential downward reversal.
The sell signal is marked with a red triangle above the price bar.
Trade Information:
After a buy signal, the buy price, bar index, and timestamp are recorded. When a sell signal occurs, the percentage gain or loss is calculated along with the number of days between the buy and sell signals.
The script automatically displays a label on the chart showing the gain or loss percentage along with the number of days the trade lasted. Green labels represent gains, and red labels represent losses.
User-friendly Visuals:
The buy and sell signals are plotted as small triangles directly on the chart for easy identification.
Detailed trade information is provided with well-formatted labels to highlight the profit or loss after each trade.
How It Works:
This strategy helps traders to identify trend reversals by leveraging long-term and short-term moving averages.
A single buy or sell signal is triggered based on price movement relative to the SMAs and their order.
The tool is designed to help traders quickly spot buying and selling opportunities with clear visual indicators and gain/loss metrics.
This indicator is ideal for traders looking to implement a systematic SMA-based strategy with well-defined buy/sell points and automatic performance tracking for each trade.
Disclaimer: The information provided here is for educational and informational purposes only. It is not intended as financial advice or as a recommendation to buy or sell any stocks. Please conduct your own research or consult a financial advisor before making any investment decisions. ProfitLens does not guarantee the accuracy, completeness, or reliability of any information presented.
[SHAHAB] Buy Sell IndicatorIt's a combination of some indicators for reaction trading.
Use at your own risk and do not forget to back test and forward test.
It doesn't work properly for some assets. Do not forget back testing.
Strategy is developed and ready. Just uncomment the code.
Alerts are working for buy and sell signals.
It can ruin your account so be careful. Do your own research and don't forget risk management.
RSI cyclic smoothed with RSI-SMAich hab das Script von Lars Thiemen verwendet und dem Indikator noch ein SMA hinzugefügt sowie eine RSI Middle Line.
DAnk an LArs für das super Script.
STDEMA Z-ScoreSTDEMA Z-Score Indicator
Overview
The STDEMA Z-Score Indicator provides a statistical approach to understanding price movements relative to its trend, using the Standard Deviation Exponential Moving Average (StdEMA) and Z-Score calculations.
Key Features
Z-Score Calculation: The Z-Score measures how far the current price deviates from its StdEMA, providing insight into whether the price is statistically overbought or oversold.
EMA of Z-Score: This smooths the Z-Score for easier interpretation and signals potential reversals or continuation patterns.
Customizable Inputs: Users can easily adjust the EMA length, standard deviation multiplier, and smoothing length to fit their trading style and market conditions.
How to Use
Buy Signals: Look for the Z-Score EMA to cross above the 0 line, indicating potential bullish momentum.
Sell Signals: Watch for the Z-Score EMA to cross below the 0 line, suggesting potential bearish momentum.
Forex Relative Strength MatrixTraders often feel uncertain about which Forex pair to open a position with. This indicator is designed to help in that regard.
This indicator was created as described in the book Swing Trading with Heiken Ashi and Stochastics. In the original, the author suggests using it for swing trading. The author recommends applying it to a monthly chart with an 8-period moving average to analyze the context.
The logic of the indicator is to measure the relative strength of each currency by checking if the price of each Forex pair is above or below a chosen moving average. If the price is above the moving average, the base currency is awarded 1 point, indicating strength. If below, it scores 0, indicating weakness. By accumulating points across multiple pairs, the indicator ranks currencies from strongest to weakest, helping traders identify potential pairs for trading.
Trend Identification:
After identifying relative strength, the trader should observe the general trend using a 100-period SMA on 4-hour charts. If the price is above the SMA, the trend is bullish; if below, it is bearish.
Buy Logic:
A buy is triggered when the base currency is strong (price is above the moving average) and the quote currency is weak (price is below the moving average). After identifying the trend direction, the entry is confirmed by a color change in Heiken Ashi candles (from red to green in an uptrend) and a stochastic crossover in the trend’s direction.
Sell Logic:
A sell is triggered when the base currency is weak (price is below the moving average) and the quote currency is strong (price is above the moving average). The sell entry is confirmed by a color change in Heiken Ashi candles (from green to red in a downtrend) and a stochastic crossover aligned with the trend.
Entry Chart:
The entry chart used is the 4-hour chart. The trader should look for entry signals following a pullback in the trend direction, using Heiken Ashi candles. Entry is made when the Heiken Ashi candles change color (from red to green in an uptrend) and there is a smooth crossover of the stochastic indicator in the trend’s direction.
It would also be possible to adapt the indicator for day trading strategies with targets of 1 to 2 days. Here is a recommended setup:
Relative Strength Identification (1-Hour Chart):
Instead of monthly charts, use a 1-hour chart to identify currency strength with a 20-period moving average.
The 20-period moving average on the 1-hour chart captures a balanced view of short- to medium-term direction, covering nearly a day’s worth of trading but with enough sensitivity for day trading.
General Trend (5-Minute Chart with 100 SMA):
On the 5-minute chart, observe the 100-period SMA to identify the general trend direction throughout the day.
Price above the 100 SMA indicates an uptrend, and below indicates a downtrend, confirming the movement in shorter timeframes.
Entry Chart and Signals (5-Minute Chart):
Use the 15-minute chart to look for entry opportunities, focusing on pullbacks in the main trend direction.
Entry Signals: Enter the position when Heiken Ashi candles change color in the trend direction (from red to green in an uptrend) and the stochastic indicator makes a smooth crossover in the trend’s direction.
Optimized Liquidity Squeeze IndicatorThis TradingView Pine Script is for an "Optimized Liquidity Squeeze Indicator," which identifies potential bullish or bearish reversals based on price action and exponential moving averages (EMAs).
Key Features
Inputs for Wick Multipliers:
User-defined multipliers for upper and lower wick sizes, which help determine the strength of reversal signals.
EMA Calculations:
21-period and 50-period EMAs based on closing prices.
An EMA slope is calculated to estimate the trend direction (bullish or bearish) by assessing the slope over a 21-period span.
Candle Components:
The script measures candle body size and the lengths of upper and lower wicks.
Trend Conditions:
A bullish condition is when the 21 EMA is above the 50 EMA, with a positive EMA slope exceeding a 45-degree threshold.
A bearish condition is the reverse (21 EMA below 50 EMA, and a negative slope).
Wick Condition Check:
The script defines separate conditions for upper and lower wick sizes, relative to candle body size.
If the upper wick exceeds the body size by a certain multiplier during a bullish trend (or vice versa for bearish), the script triggers a signal.
Signal Plotting:
Bullish signals are shown as green dots above bars, and bearish signals are shown as red dots below bars.
Alert Conditions:
Alerts are created for both bullish and bearish signals, specifying the wick, EMA, and slope conditions met for the signal.
This indicator is designed to highlight potential liquidity squeezes based on wick and trend criteria, signaling possible reversals with visual and alert notifications.
hkbtc ana indikatör aradığınız bütün indikatörler hem tablo hem de grafik üzerinde çizimlerde mevcut istediğiniz şekilde ayarını yapabilirsiniz
skay Robot AI de Trading AdaptatifExplications et Fonction
Adaptation à la Tendance :
Le robot IA
Conditions de Momentum (RSI):
Le RSI et
Gestion du Risque avec l'ATR :
L'ATR (Average True Range) est utilisé pour calculer un Stop-Loss
Position et Pourcentage de Risque :
Vous pouvez préciser un pourcentage de risque pour chaque transaction. Ici, le robot utilise la totalité du portefeuille en pourcentage, mais vous pouvez ajuster la variable riskPercentpour tester différentes tailles de
Optimisations possibles
Ajout de Filtrage de Volume : Ajouter une condition bas
Combinaison avec d'autres indicateurs : Intégrer des i
Backtesting et Optimisation : Testez cette stratégie sur différentes périodes
Journalisation Avancée avec Pine Logs : Utilisez les Pine Lo
Ac
Pour utiliser efficacement ce code dans l'éditeur Pine, s
Avertissement
Comme pour toute stratégie automatisée, il est essentiel
Faire un backtest et une analyse des performances sur une longue période de temps.
Adaptateur la stratégie
Conclusion
Ce robot c'est toi
ICT Kill Zones - SLSTCT Kill Zones Indicator for TradingView (Sri Lanka Time)
This indicator, developed by Supun Lankage with assistance from ChatGPT, highlights the key ICT Kill Zones — Asian, London, New York, and London Close — in Sri Lankan Standard Time (SLST, UTC+5:30). Each session is color-coded to help traders easily spot high-activity periods aligned with institutional trading windows, ideal for ICT strategy followers.
Credits to Supun Lankage and ChatGPT for code creation and customization.
sasha//@version=5
strategy("Parabolic SAR con EMA de 200 y Señales NY", overlay=true)
// Parámetros del Parabolic SAR
start = input(0.02, title="Aceleración inicial")
increment = input(0.02, title="Incremento")
maximum = input(0.2, title="Máximo")
// Calcular el Parabolic SAR
sar = ta.sar(start, increment, maximum)
// Calcular la EMA de 200
ema200 = ta.ema(close, 200)
// Dibujar el Parabolic SAR y la EMA de 200
plot(sar, color=color.red, title="Parabolic SAR", style=plot.style_cross)
plot(ema200, color=color.blue, title="EMA de 200", linewidth=2)
// Definir horario de la sesión de Nueva York
startHour = 16 // 4 PM
startMinute = 30 // 30 minutos
endHour = 22 // 10 PM
// Comprobar si estamos en horario de trading (en la zona horaria de Nueva York)
inTradingHours = (hour(time) > startHour or (hour(time) == startHour and minute(time) >= startMinute)) and
(hour(time) < endHour)
// Condiciones para las señales de trading
longCondition = inTradingHours and (close > ema200) and (sar < close) // Señal de compra
shortCondition = inTradingHours and (close < ema200) and (sar > close) // Señal de venta
// Ejecutar operaciones
if (longCondition)
strategy.entry("Compra", strategy.long)
if (shortCondition)
strategy.entry("Venta", strategy.short)
// Opcional: cerrar posiciones al final de la sesión
if (hour(time) >= endHour)
strategy.close_all()
dm - Exponential Moving Averages (21, 50, 100, 150, 200)This script provides key exponential moving averages (EMAs) set at 21, 50, 100, 150, and 200 periods, allowing traders to identify trends, potential entry and exit points, and support/resistance levels. The EMAs adapt more quickly to price changes compared to simple moving averages, making them ideal for dynamic market analysis. Colors change based on price relation to each EMA, enhancing quick visual assessment for informed decision-making.
Custom 12 Vertical LinesDescription: This script adds vertical lines to the chart at specific times.
User Input:
Show Line 1: Turn Line 1 on or off.
Line 1 Hour: Choose the hour for Line 1 (0-23).
Line 1 Minute: Choose the minute for Line 1 (0-59).
Line 1 Color: Pick a color for Line 1.
(Repeat for Lines 2 through 12)
Functionality: The script checks the time and draws lines based on your settings. You can easily turn each line on or off.
Banknifty Options Trading SignalsBuy Signal: Triggered when the price closes.
Sell Signal: Triggered when the price closes.
Stop-Loss (SL): The low of the buy candle for buy signals and the high of the sell candle for sell signals.
Target: EMA 155 price for both buy and sell signals.
Arrows: Plotted above or below the candles to indicate buy or sell signals.
Lines: Drawn to represent the SL and target levels.
USE ONLY IN 5min TIME FRAME - AND WORKS ONLY ON BANKNIFTY OPTIONS CHART - DOES NOT WORK ON SPOT OR FUTURE CHART
9 & 15 EMA VWAP SUPRTENDThis indicator help for option scalping for indian market like bank nifty, nifty, sensex, bankex,
EMA Distance LabelsPrints buy and sell labels when two EMA's are a user defined distance from each other. When the EMA's drop below that threshold a range label is printed.
Example strategy:
1. Wait for a buy or sell signal.
2. Wait for the stochastic rsi to retrace to its extreme.
3. Enter when the Stochastic RSI crosses back into the trend direction.
4. Wait for the Stochastic RSI to reach the opposite extreme.
5. Exit when the Stochastic RSI crosses back against the trend direction.
Moving Average Crossover rahat beldarMoving Average Crossover by rahat beldar
Explanation:
Moving Averages (MA): Yeh strategy 9-period (fast) aur 21-period (slow) simple moving averages ka crossover dekhti hai.
Buy Signal: Jab fast MA, slow MA ko upar se cross kare, toh BUY signal generate hota hai.
Sell Signal: Jab fast MA, slow MA ko neeche se cross kare, toh SELL signal generate hota hai
Reversed Choppiness Index with Donchian Channels and SMAIn the chaotic world of trading, where every tick can lead to joy or despair, traders yearn for clarity amid the noise. They crave a mechanism that not only reveals the underlying market trends but also navigates the turbulent waters of volatility with grace. Enter the Reversed Choppiness Index with Donchian Channels and SMA Smoothing—a sophisticated tool crafted for those who refuse to be swayed by the whims of market noise.
This innovative script harnesses the power of the Choppiness Index, flipping it on its head to unveil the true direction of price movement. Choppiness, in its traditional form, indicates when the market is stuck in a sideways range, characterized by erratic price movements that can leave traders bewildered. High choppiness often signals confusion in the market, where prices oscillate without a clear trend, leading to potential losses. Conversely, low choppiness suggests a trending market, whether bullish or bearish, where trades can yield consistent profits. By reversing the Choppiness Index, this tool highlights lower choppiness levels as opportunities for selling when the market shows stability and momentum—perfect for traders looking to enter or exit positions with confidence.
The Donchian Channels serve as reliable markers, defining the boundaries of price action and helping to paint a clearer picture of market dynamics. Traders should look for breakouts from these channels, which may indicate a significant shift in momentum. When the Reversed Choppiness Index trends lower while price breaks above the upper Donchian Band, it may signal a strong buying opportunity, while a rise in choppiness alongside price dipping below the lower band can indicate a potential selling point.
But that's not all—this tool features a dual-layer of smoothing through two distinct Simple Moving Averages (SMAs). The first SMA gently caresses the Reversed Choppiness Index, softening its edges to reveal the underlying trends. The second SMA adds an extra layer of finesse, ensuring traders can spot significant changes with less noise interference.
In a landscape filled with fleeting opportunities and unpredictable swings, this script stands as a beacon of stability. It allows traders to focus on what truly matters—seizing profitable moments without getting caught in the crossfire of volatility. By understanding the dynamics of choppiness through this reversed lens, traders can more effectively navigate their strategies, capitalizing on clearer signals while avoiding the pitfalls of market noise. Embrace this tool and transform the way you trade; the market's whispers will no longer drown out your strategies, paving the way for informed decisions and greater success.
ATR and ATR Percentagedefault 90 periods back for ATR
measures volatility
use for whatever strat you need
quick ref for relative atr percent and atr
the higher the atr percent (default blue line) the more volatile