PriorHourRangeLevels_v0.1PriorHourRangeLevels_v0.1
Created by dc_77 | © 2025 | Mozilla Public License 2.0
Overview
"PriorHourRangeLevels_v0.1" is a versatile Pine Script™ indicator designed to help traders visualize and analyze price levels based on the prior hour’s range. It overlays key levels—High, Low, 75%, 50% (EQ), and 25%—from the previous hour onto the current price chart, alongside the current hour’s opening price. With customizable display options and time zone support, it’s ideal for intraday traders looking to identify support, resistance, and breakout zones.
How It Works
Hourly Reset: The indicator detects the start of each hour based on your chosen time zone (e.g., "America/New_York" by default).
Prior Hour Range: It calculates the High and Low of the previous hour, then derives three additional levels:
75%: 75% of the range above the Low.
EQ (50%): The midpoint of the range.
25%: 25% of the range above the Low.
Current Hour Open: Displays the opening price of the current hour.
Projection: Lines extend forward (default: 24 bars) to project these levels into the future, aiding in real-time analysis.
Alerts: Triggers alerts when the price crosses any of the prior hour’s levels (High, 75%, EQ, 25%, Low).
Key Features
Time Zone Flexibility: Choose from options like UTC, New York, Tokyo, or London to align with your trading session.
Visual Customization:
Toggle visibility for each level (High, Low, 75%, EQ, 25%, Open, and Anchor).
Adjust line styles (Solid, Dashed, Dotted), colors, and widths.
Show or hide labels with adjustable sizes (Tiny, Small, Normal, Large).
Anchor Line: A vertical line marks the start of the prior hour, with optional labeling.
Alert Conditions: Set up notifications for price crossings to catch key moments without watching the chart.
Usage Tips
Use the High and Low as potential breakout levels, while 75%, EQ, and 25% act as intermediate support/resistance zones.
Trend Confirmation: Watch how price interacts with the EQ (50%) level to gauge momentum.
Session Planning: Adjust the time zone to match your market (e.g., "Europe/London" for FTSE trading).
Projection Offset: Extend or shorten the lines (via "Projection Offset") based on your chart timeframe.
Inputs
Time Zone: Select your preferred market time zone.
Anchor Settings: Show/hide the prior hour start line, style, color, width, and label.
Level Settings: Customize visibility, style, color, width, and labels for Open, High, 75%, EQ, 25%, and Low.
Display: Set projection length and label size.
Feedback welcome—happy trading!
Pattern grafici
Demand/Supply Absorption PatternHey everyone,
I'm publishing this indicator to seek feedback and support from the community.
This indicator is designed to identify, confirm, and send alerts whenever a Demand/Supply absorption pattern appears on the chart.
Core Logic:
Impulse Move – A single candle or a cluster of candles with a strong bullish/bearish move, characterized by a price range and volume significantly exceeding the ATR and average volume. (I've already implemented this logic and highlighted these zones with rectangles.)
Absorption Phase – Following this move, signs of exhaustion in the previous Demand/Supply emerge. These signs can include small-bodied candles like Doji or Inside Bars, combined with low volume, indicating a potential absorption phase.
Breakout Confirmation – Finally, a breakout candle in the opposite direction confirms the reversal after the consolidation phase.
Challenges & Community Support
I've encountered difficulties in fully implementing steps 2 and 3. While detecting strong impulsive moves and sending alerts has already been helpful in tracking potential setups, completing the full pattern requires waiting 3-4 hours (on a 1-hour chart) or even until the next day (on a 4-hour chart). This delay makes it easy to miss potential price movements in real time.
I’d love to get feedback or suggestions from the community to improve this indicator further.
Thanks for your support!
Cheers! 🚀
Combined Stochastic, ADX & BreakoutTrading View Indicator Explanation
Entry Signal Logic
This indicator identifies two specific buying opportunities during an uptrend following a correction:
Entry Signal #1 - Post-Correction Breakout
Wait for price to establish an uptrend above EMA9
Look for at least one lower high (correction)
Entry trigger: Breakout above the previous candle's high
Stop loss: Place below the most recent swing low
Entry Signal #2 - Strong Trend Correction
Requires a blue triangle marker above the candle (on closing basis)
Must occur during a strong uptrend (confirmed by high ADX reading)
Requires a deep technical correction (measured by Stochastic)
Entry conditions:
Price must be above EMA9
Current candle must break above previous candle's high
Stop loss: Place below the most recent swing low
Notes
Sell signals have been removed to reduce chart clutter
Recommended exit strategy: Sell at new swing highs
The second signal specifically filters for stronger trend conditions
Technical Indicators Used
EMA9: Trend direction filter
Stochastic: Measures depth of correction
ADX: Confirms strength of uptrend
Price action: Candle high/low relationships
This is designed to catch continuation moves in established uptrends after healthy corrections, emphasizing high-probability entries with clearly defined stop levels.
Sweep Detector v2Updates in This Version:
New Condition: Higher Timeframe Body Sweep
- If a candle closes beyond a previous swing high/low and the next candle closes back inside, it is now counted as a sweep.
- This helps detect sweeps that would be visible on a higher timeframe.
Updated Markers and Lines
- The indicator now marks and draws lines for both wick-based and body-based sweeps.
Sweep Detector - Description
The Sweep Detector is a Pine Script indicator designed to identify liquidity sweeps in price action. It detects when price breaks a previous swing high or low but fails to hold above/below that level, signaling potential reversals.
How It Works:
Swing High & Swing Low Detection
- The script identifies swing highs and swing lows based on a simple three-bar pattern.
- A swing high occurs when a candle’s high is higher than both the previous and next candle’s highs.
- A swing low occurs when a candle’s low is lower than both the previous and next candle’s lows.
Wick Sweep Condition
- A high sweep is detected when price wicks above the previous swing high but closes back below it.
- A low sweep is detected when price wicks below the previous swing low but closes back above it.
Visual Indicators
- Red downward markers appear above candles that trigger a high sweep.
- Green upward markers appear below candles that trigger a low sweep.
- Lines are drawn from previous swing levels to the candle that sweeps them for clear visualization.
Use Case:
This indicator helps traders spot potential liquidity grabs, stop hunts, or reversal zones based on price action.
It can be used on various timeframes for scalping, day trading, or swing trading strategies.
School Run Indicatorshows when to buy or sell using TaderToms school run strategy parameters. Enter on next candle
Machine Learning: Lorentzian Classification/ ====================
// ==== Background ====
// ====================
// When using Machine Learning algorithms like K-Nearest Neighbors, choosing an
// appropriate distance metric is essential. Euclidean Distance is often used as
// the default distance metric, but it may not always be the best choice. This is
// because market data is often significantly impacted by proximity to significant
// world events such as FOMC Meetings and Black Swan events. These major economic
// events can contribute to a warping effect analogous a massive object's
// gravitational warping of Space-Time. In financial markets, this warping effect
// operates on a continuum, which can analogously be referred to as "Price-Time".
// To help to better account for this warping effect, Lorentzian Distance can be
// used as an alternative distance metric to Euclidean Distance. The geometry of
// Lorentzian Space can be difficult to visualize at first, and one of the best
// ways to intuitively understand it is through an example involving 2 feature
// dimensions (z=2). For purposes of this example, let's assume these two features
// are Relative Strength Index (RSI) and the Average Directional Index (ADX). In
// reality, the optimal number of features is in the range of 3-8, but for the sake
// of simplicity, we will use only 2 features in this example.
// Fundamental Assumptions:
// (1) We can calculate RSI and ADX for a given chart.
// (2) For simplicity, values for RSI and ADX are assumed to adhere to a Gaussian
// distribution in the range of 0 to 100.
// (3) The most recent RSI and ADX value can be considered the origin of a coordinate
// system with ADX on the x-axis and RSI on the y-axis.
// Distances in Euclidean Space:
// Measuring the Euclidean Distances of historical values with the most recent point
// at the origin will yield a distribution that resembles Figure 1 (below).
//
// |
// |
// |
// ...:::....
// .:.:::••••••:::•::..
// .:•:.:•••::::••::••....::.
// ....:••••:••••••••::••:...:•.
// ...:.::::::•••:::•••:•••::.:•..
// ::•:.:•:•••••••:.:•::::::...:..
// |--------.:•••..•••••••:••:...:::•:•:..:..----------
// 0 :•:....:•••••::.:::•••::••:.....
// ::....:.:••••••••:•••::••::..:.
// .:...:••:::••••••••::•••....:
// ::....:.....:•::•••:::::..
// ..:..::••..::::..:•:..
// .::..:::.....:
// |
// |
// |
// |
// _|_ 0
//
// Figure 1: Neighborhood in Euclidean Space
// Distances in The Space:
// However, the same set of historical values measured using The Distance will
// yield a different distribution that resembles Figure 2 (below).
//
//
// ::.. | ..:::
// ..... | ......
// .••••::. | :••••••.
// .:•••••:. | :::••••••.
// .•••••:... | .::.••••••.
// .::•••••::.. | :..••••••..
// .:•••••••::.........::••••••:..
// ..::::••••.•••••••.•••••••:.
// ...:•••••••.•••••••••::.
// .:..••.••••••.••••..
// |---------------.:•••••••••••••••••.---------------
// 0 .:•:•••.••••••.•••••••.
// .••••••••••••••••••••••••:.
// .:••••••••••::..::.::••••••••:.
// .::••••••::. | .::•••:::.
// .:••••••.. | :••••••••.
// .:••••:... | ..•••••••:.
// ..:••::.. | :.•••••••.
// .:•.... | ...::.:••.
// ...:.. | :...:••.
// :::. | ..::
// _|_ 0
//
// Figure 2: Neighborhood in the Space
// Observations:
// (1) In the Space, the shortest distance between two points is not
// necessarily a straight line, but rather, a geodesic curve.
// (2) The warping effect of Lorentzian distance reduces the overall influence
// of outliers and noise.
// (3) The Distance becomes increasingly different from Euclidean Distance
// as the number of nearest neighbors used for comparison increases.
Cloud of powerPresentation of the "Cloud of Power" Indicator and Strategy for Trading the S&P 500
1. Introduction to the "Cloud of Power" Indicator
The Cloud of Power indicator is designed to help identify areas of support and resistance based on price volume and volatility. It creates a visual cloud that serves as a guide to track market movements and pinpoint areas where price reactions are likely. This tool is particularly effective when combined with an Exponential Moving Average (EMA), adjusted based on the timeframe being analyzed. For example, on a 4-hour chart, a 180 EMA is recommended, but it should be adjusted for other timeframes.
Cloud of Power:
This cloud highlights support and resistance areas based on market dynamics. It helps to predict potential reversals or trend continuations.
Adjusted EMA: The exponential moving average helps confirm the main trend. If the price moves above the EMA, we consider it an uptrend, and if below, a downtrend.
2. Trading Strategy Using the "Cloud of Power" and EMA
This strategy relies on the breakout of the Cloud of Power levels to identify entry and exit opportunities. It helps to anticipate potential support and resistance zones, and adjust stop-loss and gain securing levels accordingly.
Strategy Steps:
Defining the Trend:
If the price moves above the EMA, the trend is bullish. If the price is below the EMA, the trend is bearish.
The Cloud of Power is a visual guide to evaluate support (the cloud's lower boundary) and resistance (the cloud's upper boundary) zones in both scenarios.
Entry Points:
Buy signal: Enter a long (buy) position when the price breaks above the cloud's upper boundary in a bullish trend.
Sell signal: Enter a short (sell) position when the price breaks below the cloud's lower boundary in a bearish trend.
Stop-Loss Placement:
For a buy trade, place the stop-loss just below the cloud's lower boundary, which represents a support level. A break below this level may indicate a weakening bullish trend.
For a sell trade, place the stop-loss just above the cloud's upper boundary, representing resistance. A break above this level may signal the end of the bearish trend.
Take Profit and Position Management:
Profit-taking in this strategy is dynamic. The position is held as long as the price stays in line with the trend defined by the EMA and the cloud.
If the price breaks below the cloud's lower boundary in a bullish trend, we can predict that the most recent high will act as a resistance. It's advisable to monitor this zone for further breakout opportunities to add positions or use these levels to secure future gains.
By gradually adjusting the stop-loss closer to resistance or support zones identified by the cloud, you can protect your profits and secure your position. This approach allows maximizing gains by staying in the trend while limiting the risk of a sudden reversal.
Example of Application (S&P 500 Chart):
In an uptrend, if the price breaks above the cloud's upper boundary with volume confirmation, it signals a buy. The stop-loss should be placed just below the cloud's lower boundary to secure the position.
As long as the price remains above the EMA and the cloud remains bullish, the position is held. If the price breaks below the cloud's lower boundary, the most recent high will likely act as resistance. This zone should be closely monitored for future movements to adjust the stop-loss or take partial profits.
In a downtrend, the opposite logic applies. The price must break below the cloud's lower boundary for a sell, with the stop-loss placed above the upper boundary.
In summary, the Cloud of Power is an excellent visual tool to evaluate support and resistance areas and refine your entry and exit points. By following the trend with the EMA and adjusting your stop-loss according to the levels defined by the cloud, you can maximize profits while minimizing risks.
Improved Trading Scriptits indicates the next candel. A highly accurate trend-following indicator for the 1-minute timeframe, designed for real-time execution in the Quotex OTC market.
Buy Signal: Appears below the candle → Next candle is bullish (green).
Sell Signal: Appears above the candle → Next candle is bearish (red).
This non-repainting indicator ensures precise signals for profitable trading.
NIFTY 50 Reversal Strategy🎯 Entry Rules:
🔴 Bearish Reversal Setup (Short Trade)
🔹 Conditions to Enter a SHORT Trade:
Price hits a strong resistance (Pivot Point, Supply Zone, or Fibonacci 61.8%)
Bearish candlestick confirmation:
Bearish Engulfing
Shooting Star (Long wick on top)
Doji (Indecision) after an uptrend
EMA Crossover: EMA 10 crosses below EMA 50
RSI above 70 (overbought) or shows Bearish Divergence
VWAP Rejection (Price touches VWAP & drops)
Volume Drops or Spikes Bearishly (Volume confirmation)
✅ ENTRY: Enter a SHORT position on the next candle close after confirmation.
🎯 TARGETS:
Target 1: Next Pivot Support or 0.5% drop
Target 2: Fibonacci 50% retracement
Target 3: VWAP Mean Reversion
🛑 STOP-LOSS:
Above the recent swing high / wick (+0.2% buffer)
ATR-based SL for volatility
🟢 Bullish Reversal Setup (Long Trade)
🔹 Conditions to Enter a LONG Trade:
Price hits a strong support (Pivot Point, Demand Zone, or Fibonacci 61.8%)
Bullish candlestick confirmation:
Bullish Engulfing
Hammer / Pin Bar (Long wick at bottom)
Doji (Indecision) at Support
EMA Crossover: EMA 10 crosses above EMA 50
RSI below 30 (oversold) or shows Bullish Divergence
VWAP Support (Price touches VWAP & bounces)
Volume Surge in Bullish Candles
✅ ENTRY: Enter a LONG position on the next candle close after confirmation.
🎯 TARGETS:
Target 1: Next Pivot Resistance or 0.5% rise
Target 2: Fibonacci 50% retracement
Target 3: VWAP Mean Reversion
🛑 STOP-LOSS:
Below the recent swing low / wick (-0.2% buffer)
ATR-based SL for volatility
Dotel Quarter LevelsEste indicador de Pine Script, está diseñado para ayudar a los traders a identificar rápidamente niveles de precios clave en el gráfico. Su función principal es dibujar líneas horizontales en múltiplos de un valor especificado por el usuario, facilitando la visualización de posibles zonas de soporte y resistencia.
Funciones Principales:
Detección de Niveles Múltiplos: El indicador calcula y muestra líneas horizontales en el gráfico que representan múltiplos de un valor numérico definido por el usuario. Por ejemplo, si el usuario introduce 50, el indicador trazará líneas en niveles como 100, 150, 200, etc.
Personalización del Valor Múltiplo: Los usuarios tienen la flexibilidad de introducir cualquier valor numérico como base para los múltiplos, permitiendo adaptar el indicador a diferentes estilos de trading y activos financieros.
Control del Número de Líneas: Además de poder elegir el valor de los múltiplos, el usuario podrá también elegir cuantas lineas quiere que se dibujen por encima y por debajo del precio actual, esto lo hace mas flexible a las necesidades de cada usuario.
Visualización Clara: Las líneas se extienden a lo largo del gráfico, proporcionando una visualización clara y precisa de los niveles de precios relevantes.
Créditos:
Este indicador fue desarrollado por Alex Dotel, un joven programador dominicano apasionado por la creación de herramientas útiles para la comunidad de traders.
Buy Side Strategy with MA and RSIBuy Entry Condition:
Price crosses above the 20 EMA.
RSI is greater than 50 (indicating a bullish trend).
If both conditions are met, a Buy signal (▲) is triggered.
Exit Condition:
Price crosses below the 20 EMA.
If the exit condition is met, an Exit Buy signal (✖) is triggered.
Moving Averages:
20 EMA is plotted in blue.
50 EMA is plotted in orange.
RSI:
RSI is plotted in the main window.
A dotted line is drawn at RSI = 50 to help visualize trend strength.
No wick candlesОпис коду:
Цей скрипт для Pine Script v6 аналізує свічки на графіку і визначає свічки, що не мають фітіля знизу або згори. Він позначає їх відповідними маркерами та змінює колір свічок на помаранчевий для покращення видимості. Цей індикатор допомагає трейдерам ідентифікувати важливі зони на графіку, де свічки мають специфічні риси (без фітіля), і використовується для виявлення потенційних точок для подальших торгівельних рішень.
Що робить цей індикатор:
Зелені свічки без фітіля знизу: Це свічки, у яких ціна відкриття дорівнює мінімуму свічки. Вони позначаються зеленими стрілками під свічкою.
Червоні свічки без фітіля згори: Це свічки, у яких ціна відкриття дорівнює максимуму свічки. Вони позначаються червоними стрілками над свічкою.
Зміна кольору свічок: Свічки, що відповідають умовам (без фітіля знизу або згори), змінюють свій колір на помаранчевий для підвищення видимості та чіткого виділення важливих зон.
Як використовувати:
Цей індикатор допомагає вам ідентифікувати зони, де ціна не має фітіля знизу (для зелених свічок) або згори (для червоних свічок). Ці свічки можуть бути важливими для трейдерів, оскільки вони часто сигналізують про сильні рівні підтримки або опору, де ймовірно відбудеться ретест.
Важливо:
Чекати ретест зони: Після появи таких свічок (особливо у зонах підтримки або опору) можна очікувати, що ці рівні будуть перевірені ще раз. Якщо ціни повертаються до цих зон, це може бути сигналом для входу в ринок.
Торгівля на ретестах: Якщо ціна після першого відскоку знову наближається до цієї зони (де була свічка без фітіля), можна очікувати відскок або продовження тренду, що створює можливість для вхідної позиції.
_______________________________
Description:
This Pine Script v6 indicator analyzes the candles on the chart and identifies those that have no lower or upper wicks. It marks these candles with appropriate markers and changes the candle colors to orange for better visibility. This indicator helps traders identify important zones on the chart where candles exhibit specific characteristics (no wicks), which can be used to spot potential trading opportunities.
What this indicator does:
Green candles with no lower wick: These are candles where the opening price equals the low of the candle. They are marked with a green arrow below the candle.
Red candles with no upper wick: These are candles where the opening price equals the high of the candle. They are marked with a red arrow above the candle.
Candle color change: Candles that meet the conditions (no lower or upper wick) change their color to orange for better visibility and to clearly highlight important zones.
How to use:
This indicator helps you identify zones where prices have no lower wick (for green candles) or no upper wick (for red candles). These candles may be important for traders, as they often indicate strong support or resistance levels where a retest is likely to occur.
Important:
Wait for a zone retest: After these candles appear (especially at support or resistance zones), you can expect these levels to be tested again. If the price returns to these zones, it could signal an opportunity to enter the market.
Trading on retests: If the price approaches the zone (where a wickless candle occurred) again, it may indicate a bounce or trend continuation, which provides a potential entry point.
EMA Crossover Strategy with S/R and Cross Exits v6Was macht diese Strategie?
Diese Strategie kombiniert bewährte technische Indikatoren mit einem robusten Risikomanagement, um klare Kauf- und Verkaufssignale in trendstarken Märkten zu generieren. Sie basiert auf dem Crossover von exponentiellen gleitenden Durchschnitten (EMA) in Kombination mit einem Trendfilter aus dem höheren Zeitrahmen und einem dynamischen Risikomanagement basierend auf der durchschnittlichen True Range (ATR).
Wie funktioniert die Strategie?
Kernsignale:
Kauf: Wenn der EMA5 (kurzfristig) von unten die EMA8 und EMA13 kreuzt.
Verkauf: Wenn der EMA5 von oben die EMA8 und EMA13 kreuzt.
Trendfilter:
Es wird nur gehandelt, wenn der Preis über dem 200-EMA aus dem 1-Stunden-Chart liegt (für Longs) oder darunter (für Shorts). Dies stellt sicher, dass Sie nur in Richtung des übergeordneten Trends handeln.
Risikomanagement:
Dynamischer Stop-Loss: Basierend auf der ATR (durchschnittliche True Range), um die Volatilität des Marktes zu berücksichtigen.
Take-Profit: Ein festgelegtes Risiko-Ertrags-Verhältnis von 1:2, um Gewinne zu sichern und Verluste zu begrenzen.
Positionsgröße: Die Positionsgröße wird basierend auf dem Kontostand und dem Risiko pro Trade angepasst, um das Risiko zu kontrollieren.
Zusätzliche Filter:
RSI-Filter: Es wird nur gekauft, wenn der RSI überverkauft ist (<30), und nur verkauft, wenn der RSI überkauft ist (>70).
Volumenfilter: Es wird nur gehandelt, wenn das aktuelle Volumen über dem Durchschnitt liegt, um sicherzustellen, dass genügend Liquidität vorhanden ist.
Warum diese Strategie?
Einfachheit: Klare Regeln und leicht verständliche Signale.
Anpassungsfähigkeit: Die Strategie passt sich der Marktvolatilität an (dank ATR-basiertem Stop-Loss).
Trendfolge: Durch den Trendfilter aus dem höheren Zeitrahmen werden nur Trades in Richtung des übergeordneten Trends ausgeführt.
Risikokontrolle: Dynamisches Risikomanagement sorgt dafür, dass Verluste begrenzt und Gewinne maximiert werden.
Erfolgschancen
Profitfaktor: Die Strategie zielt auf einen Profitfaktor von mindestens 1,5 ab, was bedeutet, dass die Gewinne die Verluste deutlich übersteigen.
Gewinnwahrscheinlichkeit: Durch die Kombination von Trendfiltern und RSI-Signalen wird die Wahrscheinlichkeit erfolgreicher Trades erhöht.
Backtest-Ergebnisse: In historischen Tests zeigt die Strategie konsistente Ergebnisse in trendstarken Märkten.
Risiken
Seitwärtsmärkte: In trendlosen oder choppigen Märkten kann die Strategie zu häufigen Fehlsignalen führen.
Volatilitätsspitzen: Extreme Marktbewegungen können zu unerwarteten Stop-Loss-Auslösungen führen.
Overfitting: Die Strategie wurde zwar optimiert, aber historische Performance ist keine Garantie für zukünftige Ergebnisse.
Emotionen: Disziplin ist erforderlich, um die Regeln strikt zu befolgen.
Für wen ist diese Strategie geeignet?
Einsteiger: Dank klarer Regeln und einfacher Signale ist die Strategie auch für weniger erfahrene Trader geeignet.
Erfahrene Trader: Die Anpassungsfähigkeit und das Risikomanagement bieten auch fortgeschrittenen Tradern eine solide Grundlage.
Langfristige Anleger: Die Strategie eignet sich für Trader, die auf mittel- bis langfristige Trends setzen möchten.
Warum jetzt buchen?
Sofortige Umsetzbarkeit: Die Strategie ist sofort einsatzbereit und kann in jedem Marktumfeld angewendet werden.
Persönliche Anpassung: Wir passen die Strategie an Ihre individuellen Risikopräferenzen und Handelsziele an.
Unterstützung: Sie erhalten eine detaillierte Anleitung und kontinuierlichen Support, um die Strategie erfolgreich umzusetzen.
Fazit
Diese Strategie bietet eine ausgewogene Mischung aus Einfachheit, Anpassungsfähigkeit und Risikokontrolle. Sie ist ideal für Trader, die eine systematische und regelbasierte Herangehensweise suchen, um in trendstarken Märkten konsistente Gewinne zu erzielen.
Buchen Sie jetzt und starten Sie Ihre Trading-Reise mit einer bewährten und optimierten Strategie! 🚀
MMXT - Smart Money Concept com Range de 5 MinutosO que o código faz:
Zonas de Liquidez: Identifica zonas de liquidez baseadas em níveis de preço específicos no gráfico de 5 minutos.
Gap de Valor Justo: Detecta gaps de preço e verifica se a diferença entre o preço de fechamento e o preço de abertura é maior que o valor definido em gapSize.
Suporte e Resistência: Calcula e plota os níveis de suporte e resistência.
Sinais de Compra/Venda: Gera sinais de compra (verde) e venda (vermelho) quando as condições de Smart Money Concept são atendidas.
Agora o código deve funcionar corretamente no TradingView sem gerar erros.
Global Liquidity Index (Candles)Global Liquidity Index (GLI) with Price Correlation
THIS INDICATOR ONLY WORKS ON THE 1D CHART, IF YOUR CHART USES ANOTHER TIMEFRAME THEN CHANGE IT TO THE 1 DAY ONE. It tracks global liquidity conditions by aggregating balance sheet data from major central banks worldwide, displayed as candlesticks for easy visualization.
Key Features:
Comprehensive data from 17 central banks including FED, ECB, PBoC, BoJ, and more
Customizable inputs to include/exclude specific central bank data
Special adjustments for FED RRP facility and Treasury General Account
70-day correlation delay which prove how liquidity leads price movements are factored in the indicator.
Price-liquidity correlation metric to quantify the relationship
A 70-day price projection based on current liquidity conditions is showed.
How To Use:
The indicator utilizes global liquidity with a 70-day delayed overlay gathering the historical relationship between liquidity and price.
The projection line provides an estimate of future price movements based on current liquidity conditions, making this tool valuable for medium to long-term investment planning.
This indicator builds upon the original work by "ingeforberg" with enhancements for correlation analysis and price projection capabilities. Data is sourced directly from central bank balance sheets and normalized to USD
Note:
If you like this indicator feel free to be part of x.com the first Bitcoin Wallet able to solve the problems of device hacks and physical attacks, thanks to a cutting-edge time delays over multisig technologic. Own a piece of www.bitvault.sv today:
wefunder.com
Disclaimer: help.wefunder.com
This script is provided for informational and educational purposes only. It is not intended to be, nor should it be construed as, financial, investment, or trading advice. Past performance is not indicative of future results, and the predictions or projections made by this script are purely algorithmic interpretations with no guarantee of accuracy.
Trading and investing involve risk, and you should conduct your own due diligence before making any financial decisions. You are solely responsible for your trading decisions, and neither the author nor TradingView will be liable for any losses incurred.
Always consult with a licensed financial professional before making investment decisions
FII Option Chain Activitytrying to detect FII activity
based on
rank volatility
straddle
strangle
etc
etc
Hacim Analizli Destek-Direnç Stratejisi (Uyarılı)//@version=5
indicator("Hacim Analizli Destek-Direnç Stratejisi (Uyarılı)", overlay=true)
// Parametreler
var float entryPrice = na
var bool inTrade = false
var float takeProfitLevel = na
var float stopLossLevel = na
// Hacim ve Fiyat Hareketi
volumeThreshold = input.float(100000, title="Hacim Eşiği")
priceChangeThreshold = input.float(2.0, title="Fiyat Değişimi Eşiği (%)")
// Destek ve Direnç Seviyeleri
lookbackPeriod = input.int(14, title="Destek/Direnç Periyodu")
supportLevel = ta.lowest(low, lookbackPeriod)
resistanceLevel = ta.highest(high, lookbackPeriod)
// Destek ve Direnç Çizgilerini Çiz
plot(supportLevel, color=color.green, linewidth=2, title="Destek")
plot(resistanceLevel, color=color.red, linewidth=2, title="Direnç")
// Hacim Analizi
volumeDecreaseThreshold = input.float(0.7, title="Hacim Azalma Eşiği (%)")
volumeDecrease = volume < (volume * volumeDecreaseThreshold)
// Yükseliş Hacmi ve Kırılım Tespiti
volumeIncrease = volume > volumeThreshold
priceBreakout = close > resistanceLevel // Direnç seviyesini kırma
// Giriş Koşulu
if (volumeIncrease and priceBreakout and not inTrade)
entryPrice := close
takeProfitLevel := entryPrice * (1 + priceChangeThreshold / 100)
stopLossLevel := entryPrice * (0.98) // %2 stop loss
inTrade := true
label.new(bar_index, low, text="Giriş", style=label.style_circle, color=color.green, textcolor=color.white)
alert("Giriş Sinyali: " + str.tostring(close), alert.freq_once_per_bar)
// Çıkış Koşulu (Kar Alma veya Stop Loss)
if (inTrade)
if (close >= takeProfitLevel)
inTrade := false
label.new(bar_index, high, text="Kar Al", style=label.style_circle, color=color.blue, textcolor=color.white)
alert("Kar Alma Sinyali: " + str.tostring(close), alert.freq_once_per_bar)
else if (close <= stopLossLevel)
inTrade := false
label.new(bar_index, low, text="Stop Loss", style=label.style_circle, color=color.red, textcolor=color.white)
alert("Stop Loss Sinyali: " + str.tostring(close), alert.freq_once_per_bar)
// Hacim Azalma Uyarısı
if (volumeDecrease)
label.new(bar_index, high, text="Hacim Azalıyor", style=label.style_label_down, color=color.orange, textcolor=color.white)
alert("Hacim Azalıyor: " + str.tostring(close), alert.freq_once_per_bar)
// Grafikte Giriş ve Çıkışları Gösterme
plotshape(series=volumeIncrease and priceBreakout, location=location.belowbar, color=color.green, style=shape.labelup, text="Giriş")
plotshape(series=close >= takeProfitLevel, location=location.abovebar, color=color.blue, style=shape.labeldown, text="Kar Al")
plotshape(series=close <= stopLossLevel, location=location.belowbar, color=color.red, style=shape.labeldown, text="Stop Loss")
// Hacim Grafiği
plot(volume, title="Hacim", color=color.blue, style=plot.style_columns)
ChoCh & BOS on XAU/USDsmc ICT MMXT
Explicação do código:
Definição de setores: Aqui, estamos dividindo o gráfico em três setores com base no preço de fechamento, low e high de velas passadas. Podemos modificar esses critérios dependendo do que exatamente o "setor" significa para sua estratégia.
Entradas: A estratégia entra no mercado quando o preço está dentro de cada um dos setores definidos. Usamos a função strategy.entry() para abrir a posição. Cada setor só tem uma entrada por vez.
Saídas (opcional): O código também tem algumas condições de fechamento para ilustrar como você pode encerrar uma posição, como quando o preço atinge certos níveis ou quando ele sai de um setor.
Gerenciamento de Risco:
Stop Loss e Take Profit: Você pode adicionar stop loss ou take profit no código, se necessário. Isso é importante para gerenciar riscos e garantir que a estratégia seja eficiente.
Double Top/Bottom Fractals DetectorDouble Top/Bottom Detector with Williams Fractals (Extended + Early Signal)
This indicator combines the classic Williams Fractals methodology with an enhanced mechanism to detect potential reversal patterns—namely, double tops and double bottoms. It does so by using two separate detection schemes:
Confirmed Fractals for Pattern Formation:
The indicator calculates confirmed fractals using the traditional Williams Fractals rules. A fractal is confirmed if a bar’s high (for an up fractal) or low (for a down fractal) is the highest or lowest compared to a specified number of bars on both sides (default: 2 bars on the left and 2 on the right).
Once a confirmed fractal is identified, its price (high for tops, low for bottoms) and bar index are stored in an internal array (up to the 10 most recent confirmed fractals).
When a new confirmed fractal appears, the indicator compares it with previous confirmed fractals. If the new fractal is within a user-defined maximum bar distance (e.g., 20 bars) and the price difference is within a specified tolerance (default: 0.8%), the indicator assumes that a double top (if comparing highs) or a double bottom (if comparing lows) pattern is forming.
A signal is then generated by placing a label on the chart—SELL for a double top and BUY for a double bottom.
Early Signal Generation:
To capture potential reversals sooner, the indicator also includes an “early signal” mechanism. This uses asymmetric offsets different from the confirmed fractal calculation:
Signal Right Offset: Defines the candidate bar used for early signal detection (default is 1 bar).
Signal Left Offset: Defines the number of bars to the left of the candidate that must confirm the candidate’s price is the extreme (default is 2 bars).
For an early top candidate, the candidate bar’s high must be greater than the highs of the bars specified by the left offset and also higher than the bar immediately to its right. For an early bottom candidate, the corresponding condition applies for lows.
If the early candidate’s price level is within the acceptable tolerance when compared to any of the previously stored confirmed fractals (again, within the allowed bar distance), an early signal is generated—displayed as SELL_EARLY or BUY_EARLY.
The early signal block can be enabled or disabled via a checkbox input, allowing traders to choose whether to use these proactive signals.
Key Parameters:
n:
The number of bars used to confirm a fractal. The fractal is considered valid if the bar’s high (or low) is higher (or lower) than the highs (or lows) of the preceding and following n bars.
maxBarsApart:
The maximum number of bars allowed between two fractals for them to be considered part of the same double top or bottom pattern.
tolerancePercent:
The maximum allowed percentage difference (default: 0.8%) between the high (or low) values of two fractals to qualify them as matching for the pattern.
signalLeftOffset & signalRightOffset:
These parameters define the asymmetric offsets for early signal detection. The left offset (default: 2) specifies how many bars to look back, while the right offset (default: 1) specifies the candidate bar’s position.
earlySignalsEnabled:
A checkbox option that allows users to enable or disable early signal generation. When disabled, the indicator only uses confirmed fractal signals.
How It Works:
Fractal Calculation and Plotting:
The confirmed fractals are calculated using the traditional method, ensuring robust identification by verifying the pattern with a symmetrical offset. These confirmed fractals are plotted on the chart using triangle shapes (upwards for potential double bottoms and downwards for potential double tops).
Pattern Detection:
Upon detection of a new confirmed fractal, the indicator checks up to 10 previous fractals stored in internal arrays. If the new fractal’s high or low is within the tolerance range and close enough in terms of bars to one of the stored fractals, it signifies the formation of a double top or double bottom. A corresponding SELL or BUY label is then placed on the chart.
Early Signal Feature:
If enabled, the early signal block checks for candidate bars based on the defined asymmetric offsets. These candidates are evaluated to see if their high/low levels meet the early confirmation criteria relative to nearby bars. If they also match one of the confirmed fractal levels (within tolerance and bar distance), an early signal is issued with a label (SELL_EARLY or BUY_EARLY) on the chart.
Benefits for Traders:
Timely Alerts:
By combining both confirmed and early signals, the indicator offers a proactive approach to detect reversals sooner, potentially improving entry and exit timing.
Flexibility:
With adjustable parameters (including the option to disable early signals), traders can fine-tune the indicator to better suit different markets, timeframes, and trading styles.
Enhanced Pattern Recognition:
The dual-layered approach (confirmed fractals plus early detection) helps filter out false signals and captures the essential formation of double tops and bottoms more reliably.
SMC M1 Supply & Demand ScalpingOverview
This strategy is designed for scalping on the 1-minute (M1) timeframe, focusing on Smart Money Concepts (SMC), supply and demand zones, and liquidity grabs. It aims to catch high-probability trade setups by identifying key areas where institutional traders are likely to enter or exit positions.
To improve accuracy, the strategy incorporates a higher-timeframe (M15) 50 EMA filter to ensure trades align with the overall trend. It also includes risk management tools such as fixed stop-loss and take-profit levels, with an optional trailing stop-loss for maximizing profits.
How It Works
1️⃣ Identifies supply & demand zones based on recent swing highs and lows.
2️⃣ Detects liquidity grabs (stop-hunts) at these zones to confirm smart money activity.
3️⃣ Waits for a break of structure (BOS) to validate trade direction.
4️⃣ Filters trades using the M15 EMA to ensure trend alignment.
5️⃣ Enters trades with a fixed risk-reward ratio (default 1:3) for consistency.
6️⃣ Manages risk with stop-loss, take-profit, and an optional trailing stop.
This structured approach helps traders avoid unnecessary trades and focus on high-probability setups with strong trend confirmation.
Smoothed EMA LinesThe "Smoothed EMA Lines" script is a technical analysis tool designed to help traders identify trends and potential support/resistance levels in financial markets. The script plots exponential moving averages (EMAs) of the closing price for five commonly used time periods: 8, 13, 21, 55, and 200.
Key features of the script include:
Overlay: The EMAs are plotted directly on the price chart, making it easy to analyze the relationship between the moving averages and price action.
Smoothing: The script applies an additional smoothing function to each EMA, using a simple moving average (SMA) of a user-defined length. This helps to reduce noise and provide a clearer picture of the trend.
Customizable lengths: Users can easily adjust the length of each EMA and the smoothing period through the script's input parameters.
Color-coded plots: Each EMA is assigned a unique color (8: blue, 13: green, 21: orange, 55: red, 200: purple) for easy identification on the chart.
Traders can use the "Smoothed EMA Lines" script to:
Identify the overall trend direction (bullish, bearish, or neutral) based on the arrangement of the EMAs.
Spot potential support and resistance levels where the price may interact with the EMAs.
Look for crossovers between EMAs as potential entry or exit signals.
Combine the EMA analysis with other technical indicators and price action patterns for a more comprehensive trading strategy.
The "Smoothed EMA Lines" script provides a clear, customizable, and easy-to-interpret visualization of key exponential moving averages, helping traders make informed decisions based on trend analysis.