Frequency Domain Predictor This indicator identifies the dominant repeating cycle within price movement by first suppressing long-term trend components with a high-pass filter, then isolating a single clean wavelength using an octave-wide band-pass filter built from a high-pass and SuperSmoother combination; it then generates a phase-advanced forecast of that cycle by creating a quadrature (Hilbert transform) version of the filtered wave and blending it with the original at an adjustable phase angle, producing a predictive "lead" line that anticipates the cycle's next turn rather than merely reporting where it has already been, with a companion multi-timeframe table scoring trend alignment across the hourly, daily, weekly, and monthly charts (weighted 1/2/3/4 respectively, for a maximum combined score of ±10) to show whether shorter and longer-term rhythms are confirming or conflicting with one another.
The basic idea
This code is based on the technician John Ehlers' article "A New Look at Prediction"
Imagine the stock market moves in waves, kind of like ocean tides. Prices don't just go up and down randomly — they tend to swing in rhythms, some short (like a few days), some longer (like a few weeks or months). This indicator tries to spot those rhythms and, once it "learns" the rhythm, make a good guess about where the wave is heading next — a little bit like watching a swing go back and forth and being able to predict when it'll reach the top, just from watching its motion.
The two lines on the chart
Think of price movements like music, made up of layered sounds Imagine the stock's price history is actually a piece of music playing many notes at once — some very deep, slow bass notes (the big, months-long trends), and some quick, high-pitched notes (the short daily jitters). They're all playing on top of each other at the same time, which is why raw price charts look like noisy scribbles. Step 1: Turn down the bass The first move is like taking an equalizer and turning way down on the deep bass notes — the slow, long-term drift in price. Doing this strongly enough lets the shorter, quicker rhythms come through clearly, the way turning down the bass on a stereo lets you suddenly hear the higher notes much better. Step 2: Tune in to one specific note Once the bass is turned down, the indicator tunes in like a radio dial to one particular rhythm — not too broad, not too narrow, just wide enough to catch one clean "note" (a repeating cycle of a certain length, like a monthly wave) without picking up static from neighboring notes. That's the "dominant cycle" — the main heartbeat the indicator has decided to track. Step 3: Make a copy that's a quarter-beat ahead Here's the clever part. Once it has that clean rhythmic note, the indicator makes a second version of it that's shifted slightly ahead in time — like clapping just a fraction of a second before the beat instead of on the beat. It does this with simple math (comparing the note's value now versus a couple of moments ago), which naturally produces something that leads the original by a quarter-cycle. Step 4: Blend the two into a custom forecast Now it has two versions of the same rhythm: the "on-beat" version and the "ahead-of-beat" version. By blending these two together in different proportions, it can dial in exactly how far ahead it wants to lean — a little ahead, or a lot ahead, like adjusting how early you want your alarm clock to go off. The result That blended, forward-leaning version is the forecast line (the blue line on the chart). It's the indicator's best attempt at saying "if this rhythm keeps behaving the way it has been, here's roughly where it's about to go next" — a few days or weeks before the rhythm actually gets there. The red line shows the wave the indicator has identified in the price — it's smoothing out all the noisy zigzags into one clean, readable rhythm.
The blue line is the indicator's forecast. It's designed to move slightly ahead of the red line — like a weather forecaster trying to predict tomorrow's temperature based on today's trend, rather than just reporting today's temperature after the fact.
When the blue line is above the red line and rising, that's the indicator's way of saying "I think this rhythm is about to turn upward." When it dips below and falls, it's leaning the other way.
The table on the right
Since one rhythm on one time scale (say, hourly) doesn't tell the whole story, the table checks the same wave-reading logic across four different "zoom levels" — hourly, daily, weekly, and monthly — like checking the tide at four different distances from shore.
Each one gets scored based on whether it's pointing up or down, but longer time frames count more, because a monthly trend is a much bigger, more meaningful signal than an hourly blip:
Monthly: worth 4 points
Weekly: worth 3 points
Daily: worth 2 points
Hourly: worth 1 point
Add them all up, and you get a score from -10 to +10. A +10 means every single time scale agrees the trend is up — about as strong an "all clear" signal as this tool can give. A -10 means everything agrees it's heading down. Anything in between means the different time scales disagree with each other — like the tide near the shore going one way while the tide further out is doing something else — which usually means it's a more uncertain, choppy moment to be reading too much into any single signal.
The honest caveat
This is a forecasting tool, not a crystal ball — it's built on the assumption that recent rhythms will continue a little longer, which is often true but not always. Think of it like a weather forecast: helpful for leaning one way or another, but not a guarantee.
指标

Range Reaper | Smart CRT Trading SystemRange Reaper
Range Reaper automatically finds high-quality Candle Range Theory (CRT) reversal setups and creates a complete trade plan for you.
Instead of manually calculating entries, stops, and targets, Range Reaper analyzes the chart, filters out weaker opportunities, and displays only confirmed, high-quality setups.
Features
Automatically detects bullish and bearish CRT setups.
Grades each setup using a built-in Quality Score (A or B by default).
Automatically calculates:
Entry
Stop Loss
TP1 (First Profit Target)
Full Range target
Risk-to-Reward (R:R)
Supports higher-timeframe analysis with lower-timeframe trade execution for more precise entries.
Includes an optional Multi-Timeframe (MTF) Radar, allowing you to monitor confirmed setups on multiple timeframes without switching charts.
Fully customizable dashboard, line styles, colors, labels, and transparency.
Preview Mode lets you customize the indicator immediately after adding it to your chart—no waiting for a live setup.
Automatically removes completed or expired setups to keep your chart clean.
How to Use
Add Range Reaper to your chart.
Use Preview Mode to customize the dashboard, colors, lines, and labels exactly how you like them.
Wait for a confirmed setup.
Review the Quality Grade.
Use the Entry, Stop, TP1, and Full Range levels to plan your trade.
If enabled, check the MTF Radar for confirmed opportunities on other timeframes.
Who Is It For?
Range Reaper is designed for traders who want objective, rule-based trade setups instead of guessing where to enter or exit.
Whether you trade stocks, ETFs, futures, forex, crypto, or options—including intraday and 0DTE strategies—Range Reaper helps you focus on quality opportunities while keeping your chart clean and easy to read.
Less is more.
Range Reaper is built around a simple goal:
Find fewer, higher-quality trading opportunities and present them as clearly as possible.
Every feature is designed to reduce chart clutter, eliminate guesswork, and help traders make confident, informed decisions. 指标

Rejection Blocks [ICT]# Rejection Blocks
**Rejection Blocks ** is a price action indicator designed to identify significant rejection candles and automatically draw dynamic bullish and bearish rejection zones.
The indicator detects swing highs and swing lows, then filters them using wick-to-body ratio and ATR distance to eliminate weak or insignificant signals. Only high-quality rejection candles are used to create support and resistance blocks.
### Features
* Automatic Bullish and Bearish Rejection Block detection
* Swing High / Swing Low based structure analysis
* Adjustable Wick-to-Body Ratio filter
* ATR-based significance filter to reduce market noise
* Dynamic block extension until invalidation
* Optional 50% midpoint line inside each block
* Customizable block colors, borders, and label sizes
### Retest Signals
When price revisits an active rejection block, the indicator generates a confirmation signal:
* **Retest Buy** → Price retests a Bullish Rejection Block.
* **Retest Sell** → Price retests a Bearish Rejection Block.
The retest distance can be adjusted using an ATR-based buffer, allowing either precise touches or more flexible retests.
### Break Signals
The indicator can also detect when price completely breaks through an active rejection block.
* **Break Buy** → Price closes above a Bearish Rejection Block.
* **Break Sell** → Price closes below a Bullish Rejection Block.
These signals indicate that the previous rejection zone has failed and market structure may be shifting.
### Alerts
Built-in alert conditions include:
* Bullish Rejection Block Formed
* Bearish Rejection Block Formed
* Retest Buy
* Retest Sell
* Break Buy
* Break Sell
* Any Buy Signal
* Any Sell Signal
* Any Rejection Block Signal
### Customization
The indicator offers extensive customization options, including:
* Swing Strength
* Wick-to-Body Ratio
* ATR Filter
* ATR Retest Distance
* Bullish / Bearish Block Visibility
* Block Colors
* Border Visibility & Width
* Midline Display
* Label Size
### How to Use
Bullish blocks often act as potential demand zones where buyers may re-enter after a pullback.
Bearish blocks often act as potential supply zones where sellers may become active after a retracement.
For best results, use the indicator together with market structure, trend analysis, liquidity concepts, and proper risk management rather than relying solely on individual signals.
**Note:** No indicator can predict the market with complete accuracy. Always confirm signals with your own trading strategy and risk management rules.
指标

指标

指标

策略

指标

指标

Wake Up, Neo - Gold/DXY Confluence🇮🇹 ITALIANO
🔴 Wake Up, Neo — Gold/DXY Confluence
Questo indicatore individua opportunità di trading su XAUUSD (oro) sfruttando la relazione inversa tra il prezzo dell'oro e l'indice del dollaro (DXY), confermando ogni segnale con due filtri di trend indipendenti prima di mostrarlo a grafico.
Come funziona
Filtro di correlazione (Gold/DXY) — calcola la correlazione rolling tra il prezzo dell'oro e il DXY. Quando la correlazione è sufficientemente negativa (relazione inversa attiva), un incrocio dell'RSI genera un segnale grezzo di BUY o SELL.
Conferma con Supertrend — il segnale grezzo viene validato solo se il Supertrend conferma la direzione opposta attesa (es. BUY solo se il Supertrend è in trend ribassista, coerentemente con una view contrarian/di inversione).
Conferma con Gann HiLo Activator — se al momento del segnale il Gann HiLo è già allineato, il segnale scatta subito. Se invece è ancora contrario, l'indicatore attende pazientemente la prima candela chiusa in cui il Gann HiLo si allinea, e solo a quel punto — ricontrollando che il Supertrend sia ancora coerente — genera il segnale finale BUY o SELL.
Questo meccanismo a "attesa di conferma" riduce i falsi segnali rispetto a un semplice incrocio isolato.
Filtri opzionali (disattivati di default)
Per chi vuole affinare ulteriormente il win rate, sono disponibili quattro filtri aggiuntivi attivabili singolarmente: trend EMA, volatilità ATR, fascia oraria di sessione (Londra/New York) e conferma RSI.
Backtest integrato
Include un motore di backtest visivo: ogni segnale apre un trade virtuale alla candela successiva, con zone TP/SL disegnate a grafico, label di entrata/uscita e un pannello riepilogativo con numero di operazioni, TP/SL presi, rapporto rischio/rendimento e win rate.
⚠️ Questo indicatore è uno strumento di analisi tecnica e non costituisce consulenza finanziaria. Testare sempre su demo prima di un uso reale.
Autore: KalTony
🇬🇧 ENGLISH
🔴 Wake Up, Neo — Gold/DXY Confluence
This indicator spots trading opportunities on XAUUSD (gold) by exploiting the inverse relationship between the gold price and the US Dollar Index (DXY), confirming every signal with two independent trend filters before it prints on the chart.
How it works
Correlation Filter (Gold/DXY) — calculates the rolling correlation between the gold price and the DXY. When the correlation is negative enough (inverse relationship active), an RSI crossover generates a raw BUY or SELL signal.
Supertrend Confirmation — the raw signal is only validated if Supertrend confirms the expected opposite direction (e.g. BUY only if Supertrend is in a downtrend, consistent with a contrarian/reversal view).
Gann HiLo Activator Confirmation — if the Gann HiLo is already aligned at the moment of the signal, it fires immediately. If it's still opposed, the indicator patiently waits for the first closed candle where the Gann HiLo aligns, and only then — after re-checking that Supertrend is still consistent — does it generate the final BUY or SELL signal.
This "wait for confirmation" mechanism reduces false signals compared to a simple isolated crossover.
Optional Filters (disabled by default)
For those who want to further refine the win rate, four additional filters are available and can be toggled individually: EMA trend, ATR volatility, session time filter (London/New York), and RSI confirmation.
Built-in Backtest
Includes a visual backtest engine: every signal opens a virtual trade on the next candle, with TP/SL zones drawn on the chart, entry/exit labels, and a summary panel showing number of trades, TP/SL hits, risk/reward ratio, and win rate.
⚠️ This indicator is a technical analysis tool and does not constitute financial advice. Always test on a demo account before live use.
Author: KalTony 指标

指标

指标

Devtrader - Chart Analysis# Devtrader – Chart Analysis
**Devtrader – Chart Analysis** is a multi-layer market-context indicator built to help discretionary traders read liquidity, market structure, session timing, higher-timeframe context, and fair value gaps from one chart.
The indicator follows a narrative-based workflow:
**liquidity location → raid or sweep → reclaim → structure confirmation → continuation or invalidation**
It is designed as an analysis and decision-support tool. It does not place orders, manage positions, promise future price direction, or generate automatic buy and sell signals.
## Main features
- **Liquidity map:** identifies and ranks buy-side liquidity (BSL) and sell-side liquidity (SSL) from confirmed swings, session levels, previous-period levels, and optional higher-timeframe levels.
- **Sweep engine:** evaluates liquidity raids using penetration, reclaim, rejection efficiency, sweep depth, volume, session context, and level quality filters.
- **Market structure:** displays confirmed swing points, Change of Character (CHoCH), Break of Structure (BOS), protected levels, and Inducement (IDM) events.
- **Session context:** tracks Asia, London, and New York windows, with optional developing session highs and lows.
- **Higher-timeframe context:** combines two configurable higher timeframes to provide directional context and inject confirmed HTF liquidity into the active chart.
- **Important market levels:** optionally displays the previous day, week, and month highs/lows, previous close, daily open, and New York midnight open.
- **Fair Value Gaps:** detects bullish and bearish FVGs on the chart timeframe or a configurable higher timeframe, tracks mitigation, and supports static or dynamic rendering.
- **Adaptive rendering:** offers full, compact, and right-side-only level layouts, together with label-clutter controls for cleaner charts.
- **Trader Dashboard:** summarizes current bias, nearby liquidity, the active event, structure state, session timing, and a plain-language contextual read.
## Understanding the dashboard
- **Bias** combines higher-timeframe context, current structure, and protected-level integrity.
- **Liquidity** highlights the most relevant BSL and SSL currently surrounding price.
- **Event** reports the active narrative, such as a pending raid, confirmed sweep, CHoCH, BOS, breakout, or failed reclaim.
- **Structure** describes the current market-structure condition and confirmation stage.
- **Timing** shows the active session context and whether a long or short narrative is being monitored.
- **Read** translates the current conditions into a scenario to monitor. It is contextual guidance, not an entry instruction.
## Suggested workflow
1. Start with the **Bias** and **Structure** rows to understand the broader directional context.
2. Use the liquidity map to identify the BSL or SSL that price may interact with next.
3. Wait for the sweep engine to distinguish a qualified reclaim from a simple breakout or failed rejection.
4. Look for post-sweep confirmation through an internal shift, CHoCH, BOS, or damage to the opposing protected level.
5. Use FVGs, session timing, and important market levels as additional confluence for your own execution and risk plan.
No single label should be used in isolation. A sweep is an event, not automatically a trade, and a directional dashboard read is not a guarantee that price will continue in that direction.
## Key settings
- Use **External Liquidity Only** for a stricter view focused on major, session, and HTF liquidity. Disable it to include more internal structure.
- Choose **Aggressive**, **Balanced**, or **Conservative** market-structure confirmation according to the amount of confirmation you want.
- Adjust the reclaim, rejection, penetration, depth, volume, and timeout controls to suit the instrument and timeframe.
- Configure the session times for the exchange, instrument, and timezone you trade.
- Use the rendering and clutter settings to control how much historical and right-side chart information is displayed.
## Alerts
The script provides alert conditions for:
- confirmed liquidity sweeps;
- market-structure confirmation after an active sweep;
- new bullish and bearish FVGs;
- bullish and bearish FVG mitigation.
For stable alert behavior, consider configuring alerts **Once Per Bar Close**.
## Important behavior
Market-structure swings are based on confirmed pivots. They are plotted on the historical pivot bar only after the required right-side bars have completed, so they intentionally appear with a confirmation delay. Higher-timeframe context uses previous confirmed candles and confirmed pivots without future lookahead. Developing levels, FVGs, and conditions evaluated on the current real-time candle can still change before their source candle closes.
Results will vary by market, timeframe, session configuration, liquidity, and volatility. Users should validate their settings and interpretation through replay, forward observation, and independent testing.
## Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any financial instrument. Trading involves substantial risk, and past market behavior does not guarantee future results. You are solely responsible for your trading decisions and risk management.
指标

指标

Seasonality [theUltimator5]Seasonality is a unique multi-timeframe price-pattern indicator that projects the typical historical path of an asset through the current year, month, week, or trading day.
Rather than averaging raw prices, this indicator normalizes each historical period to its opening value. This allows periods with very different price levels to be compared on an equal basis. The normalized historical paths are then combined using either the median or arithmetic mean to create a 'seasonal' curve. The term 'seasonal' is used loosely since that generally applies to the yearly trends, but this indicator can break down the chart into shorter timeframes to show periodic trends rather than just yearly ones.
The current-period curve is projected forward across the chart, providing a visual estimate of where price has historically tended to strengthen, weaken, consolidate, or reverse during comparable portions of previous periods.
The indicator supports four profiling modes:
1) Yearly : Uses daily bars to compare the current year with previous years.
2) Monthly : Uses hourly bars to compare the current month with previous months.
3) Weekly : Uses 30-minute bars to compare the current week with previous weeks.
4) Daily : Uses 5-minute bars to compare the current trading day with previous trading days.
Each mode should be used on a chart timeframe at or below its native calculation timeframe:
Yearly: 4-hour through daily charts
Monthly: 15-minute through hourly charts
Weekly: 5-minute through 30-minute charts
Daily: 1-minute through 5-minute charts
A warning is displayed when the selected chart timeframe is outside the recommended range.
The seasonal pattern is calculated from a rolling historical window.
For example, a lookback of 20 in Yearly mode uses up to the previous 20 years. A lookback of 20 in Daily mode uses the previous 20 observed trading days.
The calculation only includes periods that actually traded during each seasonal slot. Holidays, missing sessions, shortened sessions, and unavailable bars are excluded rather than treated as zero values.
Two averaging methods are available:
1) Median is the default method. The median reduces the influence of unusually strong or weak historical periods and often produces a more representative seasonal path.
2) Mean calculates the standard arithmetic average of all available historical observations. This method is more responsive to extreme historical moves and is not recommended on symbols that have experienced volatility on a lookback time period orders of magnitude higher than the other periods. It will completely blow out the chart and skew it towards that single outlier period.
The indicator includes three methods for positioning the normalized seasonal curve on the current price chart.
1) Scale Only (Default)
The seasonal curve is vertically rescaled so its projected high-to-low range matches the actual high-to-low range of either the current or previous period.
The curve remains anchored to the current period’s first close.
This retains the historical seasonal shape while adapting its magnitude to the asset’s recent volatility.
2) Chained — No Fit
The original normalized seasonal path is anchored to the first close of the current period.
Historical curves are chained together so the end of one period connects continuously with the beginning of the next. No additional adjustment is made to match the asset’s current trading range.
3) Rotate & Scale
This mode applies the same range adjustment as Scale Only, then gradually rotates the current-period curve so it passes through the live price at the current bar.
The adjustment begins at zero near the start of the period and increases progressively toward the current bar. This allows the future seasonal path to remain connected to current price without abruptly shifting the entire curve.
Because this mode incorporates the live price, the projected curve can change as the current period develops.
When using Scale Only or Rotate & Scale, the user can choose which actual price range controls the vertical scaling.
1) Current Period uses the developing high and low of the current year, month, week, or day.
The curve may rescale as new highs or lows occur.
2) Previous Period uses the completed high and low of the prior period.
This creates a more stable projection that does not continually rescale during the current period.
The Draw Curve Back setting controls how many completed periods are displayed behind the current seasonal projection.
Historical seasonal curves are shown in gray and are chained together into a continuous path. The current period is displayed separately using the selected seasonality color.
Displaying previous curves can help identify how the rolling seasonal model evolved over time and whether the current projection is consistent with earlier versions of the model.
Higher draw-back settings may require more processing, particularly on intraday charts.
Smoothing
A trailing simple moving average can be applied along the seasonal curve.
A smoothing value of 1 disables smoothing. Higher values reduce short-term noise but may also soften or delay smaller seasonal turning points.
Min/Max Envelope
The minimum and maximum lines show the strongest and weakest normalized historical paths observed at each seasonal point within the selected lookback.
These lines use the same normalization, chaining, smoothing, scaling, and rotation calculations as the primary seasonal curve.
Because different slots may contain different sample sizes, the minimum and maximum lines should be interpreted as a historical range rather than a guaranteed boundary.
Current-Period Projection
For completed portions of the current period, the curve is aligned with actual timestamps.
For seasonal slots that have not yet occurred, the indicator projects timestamps forward so the curve extends into the future.
Seasonality describes recurring historical tendencies. It does not predict that price must follow the displayed curve.
指标

MachineLearning+RL+SMC Institutional Pro v4# Tutorial do Setup MC + RL + SMC Institutional Pro v4
## 1. Visão geral do setup
O **MC + RL + SMC Institutional Pro v4** é um indicador de confluência que combina quatro grupos de análise:
1. **Monte Carlo — MC**
Simula possíveis trajetórias futuras do preço e calcula probabilidades e faixas projetadas.
2. **Reinforcement Learning — RL**
Classifica o mercado como bullish, bearish ou neutro com base em tendência e volatilidade.
3. **Smart Money Concepts — SMC**
Analisa estrutura de mercado, Order Blocks, Fair Value Gaps, liquidez, BOS, CHoCH, Premium e Discount.
4. **Gestão de risco por ATR**
Calcula automaticamente entrada, stop-loss e três objetivos de lucro.
O indicador somente libera um setup quando diferentes módulos apontam para a mesma direção.
Portanto, não se trata de um indicador simples de compra e venda. Ele funciona como um filtro de confluências.
---
# 2. Objetivo do indicador
O setup procura responder cinco perguntas:
* Qual é a tendência predominante?
* O preço está em uma zona institucional relevante?
* Existe ruptura ou mudança da estrutura de mercado?
* A simulação probabilística favorece alta ou baixa?
* A relação entre risco e retorno justifica a operação?
O sinal final aparece apenas quando essas condições são simultaneamente compatíveis.
---
# 3. Como instalar no TradingView
## Passo 1 — Abrir o Pine Editor
No TradingView:
1. Abra o gráfico do ativo desejado.
2. Na parte inferior da tela, clique em **Pine Editor**.
3. Apague qualquer código existente.
## Passo 2 — Inserir o código
Cole integralmente o código do indicador no Pine Editor.
O script deve começar com:
```pine
//@version=6
```
## Passo 3 — Salvar
Clique em **Salvar** e escolha um nome, por exemplo:
```text
MC RL SMC Institutional Pro v4
```
## Passo 4 — Adicionar ao gráfico
Clique em:
```text
Adicionar ao gráfico
```
O indicador será desenhado diretamente sobre os candles.
---
# 4. Estrutura geral do indicador
O setup é dividido nos seguintes módulos:
| Módulo | Função |
| ---------------------- | ------------------------------------------------------------- |
| Médias móveis | Determinar tendência de curto, médio e longo prazo |
| Monte Carlo | Estimar cenários probabilísticos futuros |
| Reinforcement Learning | Definir o viés estatístico do mercado |
| Swings | Identificar máximas e mínimas estruturais |
| BOS e CHoCH | Detectar continuidade ou mudança de estrutura |
| Order Blocks | Identificar zonas de oferta e demanda |
| Fair Value Gaps | Detectar desequilíbrios de preço |
| Liquidez | Localizar BSL, SSL e varreduras |
| Premium e Discount | Determinar se o preço está caro ou barato dentro da estrutura |
| ATR | Definir stop e alvos |
| Painel institucional | Consolidar todas as informações |
---
# 5. Médias móveis utilizadas
O indicador calcula quatro médias móveis exponenciais:
* EMA 9;
* EMA 21;
* EMA 50;
* EMA 200.
## EMA 9 e EMA 21
São utilizadas para medir a tendência de curto prazo e alimentar o módulo de Reinforcement Learning.
### Interpretação
* EMA 9 acima da EMA 21: impulso de alta;
* EMA 9 abaixo da EMA 21: impulso de baixa;
* EMAs próximas: mercado neutro ou lateral.
## EMA 50 e EMA 200
São utilizadas como filtro macro.
### Tendência macro de alta
```text
EMA 50 > EMA 200
```
### Tendência macro de baixa
```text
EMA 50 < EMA 200
```
O indicador não permite uma entrada compradora se a EMA 50 estiver abaixo da EMA 200.
Da mesma forma, não permite uma entrada vendida se a EMA 50 estiver acima da EMA 200.
---
# 6. Módulo Monte Carlo
## 6.1 O que é a simulação de Monte Carlo
O Monte Carlo cria diversas trajetórias hipotéticas para o preço com base em:
* preço atual;
* volatilidade histórica;
* retorno médio;
* drift;
* número de trajetórias;
* quantidade de passos futuros.
Na configuração padrão, o indicador utiliza:
```text
100 trajetórias
20 passos à frente
30 períodos para volatilidade
20 períodos para drift
```
Cada trajetória representa um cenário possível.
Ao final das simulações, o sistema organiza os preços projetados e calcula percentis.
---
## 6.2 Percentis do Monte Carlo
O indicador apresenta cinco níveis:
### P90
Cenário superior e mais otimista.
Apenas aproximadamente 10% das simulações terminaram acima desse nível.
É utilizado como TP3 nas operações compradoras.
### P75
Faixa superior intermediária.
Indica um cenário positivo, porém menos extremo que o P90.
### P50
Mediana das simulações.
Metade das trajetórias terminou acima e metade abaixo desse preço.
O P50 funciona como o cenário central da projeção.
### P25
Faixa inferior intermediária.
Representa um cenário negativo moderado.
### P10
Cenário inferior e mais pessimista.
É utilizado como TP3 nas operações vendidas.
---
## 6.3 Probabilidade de alta e de baixa
O sistema também calcula:
```text
Probabilidade de alta = percentual de trajetórias acima do preço atual
```
```text
Probabilidade de baixa = 100% − probabilidade de alta
```
Na configuração padrão:
* uma compra exige probabilidade de alta mínima de 60%;
* uma venda exige probabilidade de baixa mínima de 60%.
Isso acontece porque o limite de venda é configurado como probabilidade máxima de alta de 40%.
---
## 6.4 Como interpretar as faixas no gráfico
As áreas projetadas à direita do preço representam:
* região superior verde: cenários de alta;
* região central: cenários próximos à mediana;
* região inferior vermelha: cenários de baixa;
* linha amarela curva: trajetória estimada até o P50.
Essas faixas não representam certezas ou suportes fixos.
São distribuições probabilísticas calculadas com base no comportamento recente do ativo.
---
# 7. Módulo Reinforcement Learning
## 7.1 Função do RL
O módulo de Reinforcement Learning tenta aprender qual ação foi mais eficiente em diferentes condições de mercado.
O sistema trabalha com uma matriz de nove estados e três ações.
## Estados
Os estados resultam da combinação entre:
* tendência;
* volatilidade.
### Estado de tendência
* bearish;
* neutro;
* bullish.
### Estado de volatilidade
* baixa;
* normal;
* alta.
A combinação gera nove estados possíveis.
## Ações
O agente escolhe entre:
* ação 0: bearish;
* ação 1: neutra;
* ação 2: bullish.
---
## 7.2 Viés apresentado no painel
O painel pode apresentar:
```text
BULLISH
BEARISH
NEUTRO
```
### Para uma compra
O RL precisa estar:
```text
BULLISH ou NEUTRO
```
### Para uma venda
O RL precisa estar:
```text
BEARISH ou NEUTRO
```
Isso significa que o RL atua principalmente como filtro impeditivo.
Um RL bearish bloqueia uma entrada compradora.
Um RL bullish bloqueia uma entrada vendida.
---
## 7.3 Alpha e Gamma
### Alpha
O parâmetro Alpha controla a velocidade de aprendizado.
Configuração padrão:
```text
0,10
```
* Alpha maior: adaptação mais rápida e maior sensibilidade;
* Alpha menor: aprendizado mais lento e mais estável.
### Gamma
O parâmetro Gamma representa o peso atribuído às recompensas futuras.
Configuração padrão:
```text
0,90
```
* Gamma alto: maior consideração dos resultados futuros;
* Gamma baixo: maior peso para resultados imediatos.
Para uso normal, os valores padrão devem ser mantidos.
---
# 8. Smart Money Concepts
O módulo SMC procura detectar zonas e eventos associados à estrutura institucional do mercado.
---
# 9. Swings
Os swings são máximas e mínimas relevantes confirmadas por pivôs.
A configuração padrão utiliza:
```text
Pivot left = 5
Pivot right = 5
```
Isso significa que uma máxima precisa possuir cinco candles menores à esquerda e cinco à direita para ser confirmada como pivot high.
O mesmo princípio vale para uma mínima.
## Efeito da configuração
### Valores menores
* mais sinais;
* maior sensibilidade;
* mais ruído;
* mais falsas estruturas.
### Valores maiores
* menos sinais;
* estruturas mais relevantes;
* maior atraso na confirmação.
Para gráficos intraday, valores entre 3 e 7 costumam produzir uma leitura mais sensível.
Para gráficos diários, valores entre 5 e 10 tendem a filtrar melhor o ruído.
---
# 10. BOS — Break of Structure
BOS significa ruptura de estrutura.
## BOS bullish
Ocorre quando o preço fecha acima da última máxima estrutural.
Indica possível continuação da tendência de alta.
No gráfico aparece como:
```text
BOS ▲
```
## BOS bearish
Ocorre quando o preço fecha abaixo da última mínima estrutural.
Indica possível continuação da tendência de baixa.
No gráfico aparece como:
```text
BOS ▼
```
## Como utilizar
O BOS deve ser tratado como confirmação estrutural, não como entrada isolada.
Um BOS bullish é mais relevante quando:
* EMA 50 está acima da EMA 200;
* preço está em Discount;
* Monte Carlo favorece alta;
* RL não está bearish.
---
# 11. CHoCH — Change of Character
CHoCH significa mudança de comportamento ou mudança de caráter da estrutura.
Normalmente sinaliza uma possível transição de tendência.
## CHoCH bullish
O preço rompe uma máxima estrutural enquanto a EMA 9 ainda está abaixo da EMA 21.
Isso sugere uma possível mudança de baixa para alta.
No gráfico:
```text
CHoCH ↑
```
## CHoCH bearish
O preço rompe uma mínima estrutural enquanto a EMA 9 ainda está acima da EMA 21.
Isso sugere uma possível mudança de alta para baixa.
No gráfico:
```text
CHoCH ↓
```
## Diferença entre BOS e CHoCH
| Evento | Interpretação |
| ------ | ----------------------------------------- |
| BOS | Continuação da estrutura predominante |
| CHoCH | Possível mudança ou reversão da estrutura |
O CHoCH é mais antecipado, mas também pode produzir mais sinais falsos.
---
# 12. Order Blocks
## 12.1 O que é um Order Block
Order Block é uma zona de preço associada ao último candle contrário antes de um deslocamento significativo.
O indicador procura dois tipos.
## Order Block bullish
É identificado quando:
* o candle anterior é bearish;
* o candle atual apresenta impulso de alta;
* o preço rompe uma referência anterior;
* a amplitude do candle de impulso é relevante em relação ao ATR.
Representa uma possível zona de demanda.
No gráfico aparece como:
```text
OB ▲ institucional
```
## Order Block bearish
É identificado quando:
* o candle anterior é bullish;
* o candle atual apresenta impulso de baixa;
* o preço rompe uma referência inferior;
* o movimento possui amplitude relevante.
Representa uma possível zona de oferta.
No gráfico aparece como:
```text
OB ▼ institucional
```
---
## 12.2 Validade dos Order Blocks
Um Order Block bullish é invalidado quando o preço fecha abaixo da zona.
Um Order Block bearish é invalidado quando o preço fecha acima da zona.
O indicador utiliza uma pequena tolerância percentual para evitar invalidações causadas por ruídos mínimos.
## Uso operacional
### Possível compra
Procure:
* tendência macro de alta;
* retorno do preço ao OB bullish;
* preço em Discount;
* confirmação por BOS, CHoCH ou sweep;
* probabilidade de alta superior ao limite mínimo.
### Possível venda
Procure:
* tendência macro de baixa;
* retorno do preço ao OB bearish;
* preço em Premium;
* confirmação estrutural;
* probabilidade de baixa superior ao limite mínimo.
---
# 13. Fair Value Gap
## 13.1 O que é um FVG
Fair Value Gap é um desequilíbrio de preço formado quando existe um espaço entre candles não totalmente negociado.
Ele normalmente aparece depois de um deslocamento forte.
## FVG bullish
É identificado quando a mínima atual permanece acima da máxima de dois candles atrás.
Essa região pode funcionar como área de correção ou demanda.
No gráfico:
```text
FVG ▲
```
## FVG bearish
É identificado quando a máxima atual permanece abaixo da mínima de dois candles atrás.
Essa região pode funcionar como área de correção ou oferta.
No gráfico:
```text
FVG ▼
```
## Observação importante
No código atual, os FVGs são desenhados como referência visual, mas não participam diretamente da condição final de entrada.
Eles devem ser utilizados como confluência discricionária adicional.
---
# 14. Liquidez: BSL e SSL
## BSL — Buy-Side Liquidity
É a liquidez posicionada acima de máximas relevantes.
Nessa região podem existir:
* stops de vendedores;
* ordens de compra por rompimento;
* liquidez necessária para grandes participantes venderem.
## SSL — Sell-Side Liquidity
É a liquidez posicionada abaixo de mínimas relevantes.
Nessa região podem existir:
* stops de compradores;
* ordens de venda por rompimento;
* liquidez para grandes participantes comprarem.
---
# 15. Liquidity Sweep
Liquidity Sweep é uma varredura de liquidez seguida de retorno para dentro da estrutura.
## Sweep acima de uma máxima
O preço:
1. supera a última máxima;
2. captura a liquidez;
3. fecha novamente abaixo dessa máxima.
Esse evento pode criar contexto para venda.
O painel descreve:
```text
Sweep BSL → oportunidade SHORT
```
## Sweep abaixo de uma mínima
O preço:
1. rompe temporariamente a mínima;
2. captura stops;
3. fecha novamente acima da mínima.
Esse evento pode criar contexto para compra.
O painel descreve:
```text
Sweep SSL → oportunidade LONG
```
## Regra prática
Não opere um sweep apenas porque houve uma sombra acima ou abaixo de uma estrutura.
Aguarde:
* fechamento do candle;
* alinhamento com Premium ou Discount;
* filtro de tendência;
* confirmação probabilística.
---
# 16. Premium, Discount e Equilibrium
O indicador calcula uma faixa utilizando a última máxima e a última mínima estruturais.
O ponto médio é denominado:
```text
EQ — Equilibrium
```
## Premium
O preço está em Premium quando está acima do ponto médio da estrutura.
Essa região é considerada relativamente cara.
O indicador procura vendas em Premium.
## Discount
O preço está em Discount quando está abaixo ou no ponto médio da estrutura.
Essa região é considerada relativamente barata.
O indicador procura compras em Discount.
## Regra estrutural
### Compra
```text
Somente em Discount
```
### Venda
```text
Somente em Premium
```
Essa é uma das condições obrigatórias do setup.
---
# 17. Condições exatas para uma entrada LONG
Uma compra somente é liberada quando todas as condições abaixo são verdadeiras.
## 17.1 Monte Carlo
```text
Probabilidade de alta ≥ 60%
```
O percentual pode ser alterado nos parâmetros.
## 17.2 Reinforcement Learning
```text
RL bullish ou neutro
```
O RL não pode estar bearish.
## 17.3 Confirmação SMC
Pelo menos uma das condições precisa ocorrer:
* preço dentro de Order Block bullish;
* CHoCH bullish;
* sweep de Sell-Side Liquidity;
* BOS bullish.
## 17.4 Tendência macro
```text
EMA 50 > EMA 200
```
## 17.5 Localização estrutural
```text
Preço em Discount
```
## Fórmula resumida
```text
LONG =
Monte Carlo favorável
+ RL não bearish
+ confirmação SMC bullish
+ EMA 50 acima da EMA 200
+ preço em Discount
```
Quando ocorre uma nova ativação, o gráfico mostra uma seta verde com a palavra:
```text
LONG
```
---
# 18. Condições exatas para uma entrada SHORT
Uma venda somente é liberada quando todas as condições abaixo são verdadeiras.
## 18.1 Monte Carlo
```text
Probabilidade de baixa ≥ 60%
```
## 18.2 Reinforcement Learning
```text
RL bearish ou neutro
```
O RL não pode estar bullish.
## 18.3 Confirmação SMC
Pelo menos uma condição deve ocorrer:
* preço dentro de Order Block bearish;
* CHoCH bearish;
* sweep de Buy-Side Liquidity;
* BOS bearish.
## 18.4 Tendência macro
```text
EMA 50 < EMA 200
```
## 18.5 Localização estrutural
```text
Preço em Premium
```
## Fórmula resumida
```text
SHORT =
Monte Carlo favorável à baixa
+ RL não bullish
+ confirmação SMC bearish
+ EMA 50 abaixo da EMA 200
+ preço em Premium
```
Quando o sinal é ativado, surge uma seta vermelha:
```text
SHORT
```
---
# 19. Gestão de risco
O indicador utiliza o ATR para adaptar o stop à volatilidade do ativo.
Configuração padrão:
```text
ATR = 14 períodos
Stop = 1,5 × ATR
TP1 = 2R
TP2 = 2,5R
TP3 = percentil Monte Carlo
```
---
# 20. Stop-loss
## Operação compradora
```text
SL = entrada − ATR × 1,5
```
## Operação vendida
```text
SL = entrada + ATR × 1,5
```
## Exemplo de compra
Considere:
```text
Entrada = 100,00
ATR = 2,00
Multiplicador = 1,5
```
O risco em pontos será:
```text
2,00 × 1,5 = 3,00
```
Stop:
```text
100,00 − 3,00 = 97,00
```
Nesse caso:
```text
1R = 3,00 pontos
```
---
# 21. Objetivos de lucro
## TP1
Configuração padrão:
```text
2R
```
No exemplo:
```text
TP1 = 100,00 + 2 × 3,00
TP1 = 106,00
```
## TP2
Configuração padrão:
```text
2,5R
```
No exemplo:
```text
TP2 = 100,00 + 2,5 × 3,00
TP2 = 107,50
```
## TP3
O TP3 é probabilístico.
### Compra
```text
TP3 = P90 do Monte Carlo
```
### Venda
```text
TP3 = P10 do Monte Carlo
```
O painel mostra também quantos múltiplos de R o TP3 representa.
---
# 22. Sugestão de gerenciamento da posição
Uma possibilidade operacional é dividir a posição em três partes.
## Modelo conservador
* 50% da posição no TP1;
* 30% no TP2;
* 20% no TP3.
Após atingir o TP1:
* avaliar mover o stop para o preço de entrada;
* manter o restante da operação;
* evitar aumentar o risco inicial.
## Modelo equilibrado
* 40% no TP1;
* 40% no TP2;
* 20% no TP3.
## Modelo agressivo
* 25% no TP1;
* 35% no TP2;
* 40% no TP3.
O modelo agressivo depende mais da precisão do cenário Monte Carlo e está sujeito a maiores devoluções de lucro.
---
# 23. Dimensionamento da posição
O indicador informa os níveis de preço, mas não calcula automaticamente a quantidade financeira da posição.
A fórmula recomendada é:
```text
Risco financeiro = capital × percentual de risco
```
```text
Quantidade = risco financeiro ÷ distância até o stop
```
## Exemplo
Capital:
```text
R$ 100.000
```
Risco por operação:
```text
0,5%
```
Risco financeiro:
```text
R$ 500
```
Distância da entrada até o stop:
```text
R$ 2,50 por ação
```
Quantidade teórica:
```text
500 ÷ 2,50 = 200 ações
```
Devem ser considerados:
* lote mínimo;
* valor do ponto;
* custos;
* slippage;
* margem;
* especificações do contrato.
---
# 24. Como interpretar o painel institucional
O painel localizado no canto superior direito reúne as principais informações.
## Percentis
Apresenta:
* P90;
* P75;
* P50;
* P25;
* P10.
Para cada percentil, mostra:
* preço projetado;
* variação percentual;
* distância em R.
## Probabilidades
Mostra:
```text
⬆ Alta
⬇ Baixa
```
## Reinforcement Learning
Exemplo:
```text
RL → BULLISH
```
## Estrutura SMC
O painel informa:
* BOS;
* CHoCH;
* presença em Order Block;
* varredura de liquidez;
* Premium ou Discount.
## Gestão de risco
Quando existe um setup ativo, mostra:
* SL;
* TP1;
* TP2;
* TP3;
* tamanho de 1R.
## Sinal final
O painel pode apresentar:
```text
★ SETUP LONG ATIVO
```
```text
★ SETUP SHORT ATIVO
```
ou:
```text
◌ aguardando confluência
```
---
# 25. Checklist para operação LONG
Antes de comprar, confirme:
* EMA 50 acima da EMA 200;
* preço em Discount;
* probabilidade de alta igual ou superior a 60%;
* RL bullish ou neutro;
* presença de OB bullish, BOS, CHoCH ou sweep de SSL;
* candle de sinal fechado;
* stop tecnicamente aceitável;
* relação risco-retorno adequada;
* ausência de notícia econômica iminente;
* tamanho da posição calculado antes da entrada.
A operação deve ser evitada quando apenas um ou dois elementos estiverem alinhados.
---
# 26. Checklist para operação SHORT
Antes de vender, confirme:
* EMA 50 abaixo da EMA 200;
* preço em Premium;
* probabilidade de baixa igual ou superior a 60%;
* RL bearish ou neutro;
* presença de OB bearish, BOS, CHoCH ou sweep de BSL;
* fechamento do candle de sinal;
* stop calculado;
* risco financeiro limitado;
* spread e liquidez adequados;
* ausência de evento macroeconômico crítico.
---
# 27. Configuração inicial recomendada
Para começar, mantenha os parâmetros originais.
## Monte Carlo
```text
Trajetórias: 100
Passos: 20
Volatilidade: 30
Drift: 20
```
## Reinforcement Learning
```text
Lookback: 50
Alpha: 0,10
Gamma: 0,90
```
## SMC
```text
Pivot left: 5
Pivot right: 5
Máximo de OBs: 4
Máximo de FVGs: 4
```
## Risco
```text
ATR: 14
SL: 1,5 × ATR
TP1: 2R
TP2: 2,5R
Probabilidade LONG: 60%
Probabilidade máxima de alta para SHORT: 40%
```
---
# 28. Ajustes por estilo operacional
## Day trade rápido
Possível configuração inicial:
```text
Timeframe: 5 ou 15 minutos
Passos Monte Carlo: 10 a 15
Pivot left/right: 3 a 5
Probabilidade mínima: 62% a 65%
```
O aumento do limite probabilístico reduz sinais, mas tende a filtrar operações marginais.
## Day trade mais lento
```text
Timeframe: 15 ou 30 minutos
Passos: 15 a 25
Pivôs: 5 a 7
```
## Swing trade
```text
Timeframe: 4 horas ou diário
Passos: 20 a 40
Pivôs: 5 a 10
Volatilidade: 30 a 60
```
Os parâmetros devem ser ajustados ao horizonte da operação e ao comportamento do ativo.
---
# 29. Aplicação sugerida em diferentes mercados
## Índices futuros
Para WIN, US500, Nasdaq e DAX:
* observar abertura dos mercados;
* evitar operar imediatamente antes de notícias;
* calibrar ATR e timeframe;
* considerar aumento da probabilidade mínima.
## Dólar e Forex
Para WDO, EURUSD e outros pares:
* observar sessões de maior liquidez;
* considerar impacto de juros e indicadores macroeconômicos;
* utilizar spreads reais no teste.
## Ações
Para ações:
* priorizar ativos líquidos;
* evitar papéis com gaps excessivos;
* observar resultados corporativos;
* ajustar o risco para eventos fora do pregão.
## Criptomoedas
Para criptoativos:
* considerar volatilidade contínua;
* elevar o multiplicador do ATR quando necessário;
* testar separadamente finais de semana e dias úteis;
* evitar parâmetros excessivamente sensíveis.
---
# 30. Melhor contexto para o setup
O indicador tende a possuir melhor coerência quando existe:
* tendência macro definida;
* correção até Premium ou Discount;
* zona institucional próxima;
* ruptura ou varredura de liquidez;
* volatilidade suficiente;
* confluência entre módulos.
O cenário ideal não é perseguir o preço após um candle extremamente esticado.
O melhor uso é aguardar o preço retornar a uma região estrutural e confirmar a reação.
---
# 31. Contextos desfavoráveis
Evite confiar excessivamente no indicador em:
* mercados extremamente laterais;
* ativos com baixa liquidez;
* períodos de spread elevado;
* divulgação de dados econômicos;
* abertura com gaps anormais;
* candles de notícia;
* ativos manipuláveis;
* períodos em que EMA 50 e EMA 200 estão cruzando repetidamente.
Em lateralizações, BOS, CHoCH e sweeps podem ocorrer diversas vezes sem continuidade.
---
# 32. Limitações técnicas importantes
## 32.1 O código é um indicador, não uma estratégia
O script utiliza:
```pine
indicator()
```
e não:
```pine
strategy()
```
Portanto, ele não executa um backtest nativo dentro do TradingView.
Os números informados no cabeçalho, como taxa de acerto, média em R e Sharpe, não são recalculados pelo código apresentado.
Eles devem ser tratados como resultados declarados de um teste externo, até que sejam reproduzidos em uma versão `strategy()`.
---
## 32.2 O Monte Carlo utiliza números aleatórios
O módulo utiliza `math.random()`.
Consequentemente, os percentis e probabilidades podem mudar entre cálculos e atualizações.
Isso pode provocar:
* mudança do P90;
* mudança do P10;
* alteração da probabilidade;
* ativação ou desativação do setup;
* mudança do TP3.
O Monte Carlo deve ser utilizado como distribuição de cenários, não como previsão determinística.
---
## 32.3 O sinal deve ser confirmado no fechamento
Durante a formação do candle, podem mudar:
* preço de fechamento;
* probabilidade;
* condição de BOS;
* condição de sweep;
* presença dentro de um Order Block;
* Premium ou Discount.
A decisão deve ser tomada preferencialmente após o fechamento do candle.
---
## 32.4 O RL é uma simplificação
Embora o código utilize conceitos de Q-learning e atualização de Bellman, o modelo não equivale a um sistema completo de inteligência artificial treinado externamente.
Ele é um agente simplificado que atualiza uma Q-table dentro das limitações do Pine Script.
O termo Reinforcement Learning deve ser interpretado dentro desse contexto.
---
## 32.5 Os FVGs não invalidam automaticamente
O código mantém os FVGs em uma lista limitada, mas não possui uma lógica completa para:
* considerar o gap totalmente preenchido;
* invalidar o FVG;
* diferenciar mitigação parcial e total.
Portanto, alguns FVGs desenhados podem já ter perdido relevância operacional.
---
## 32.6 Nomenclatura interna dos sweeps
As variáveis internas utilizadas para os sweeps possuem nomes que podem gerar confusão.
Na prática, a lógica operacional final é:
* sweep acima da BSL: contexto de venda;
* sweep abaixo da SSL: contexto de compra.
O operador deve seguir o significado mostrado no painel e a estrutura do preço.
---
## 32.7 Objetos gráficos
O indicador cria diversos:
* boxes;
* labels;
* linhas;
* zonas;
* projeções.
Em períodos longos ou com atualizações frequentes, o gráfico pode ficar visualmente carregado ou atingir limites de objetos do TradingView.
Quando isso acontecer, desative elementos visuais desnecessários.
---
# 33. Processo recomendado de validação
Antes de utilizar capital real:
## Etapa 1 — Replay
Use o recurso Bar Replay do TradingView.
Observe pelo menos:
```text
100 a 200 sinais
```
## Etapa 2 — Registro manual
Registre:
* ativo;
* timeframe;
* direção;
* probabilidade;
* tipo de confluência SMC;
* distância do stop;
* resultado em R;
* máxima excursão favorável;
* máxima excursão adversa.
## Etapa 3 — Separar mercados
Não misture os resultados de:
* WIN;
* WDO;
* ações;
* Forex;
* cripto;
* índices internacionais.
Cada ativo possui comportamento próprio.
## Etapa 4 — Teste fora da amostra
Ajuste os parâmetros em um período e valide em outro.
Exemplo:
```text
Otimização: janeiro a dezembro de 2024
Validação: janeiro a dezembro de 2025
Teste final: janeiro a junho de 2026
```
## Etapa 5 — Simulação
Execute inicialmente em conta demo ou simulador.
Somente considere capital real após uma amostra consistente.
---
# 34. Métricas que devem ser acompanhadas
Não avalie o setup somente pela taxa de acerto.
Registre:
* taxa de acerto;
* ganho médio;
* perda média;
* payoff;
* expectativa matemática;
* profit factor;
* drawdown máximo;
* sequência máxima de perdas;
* resultado médio em R;
* resultado por ativo;
* resultado por horário;
* resultado por tipo de sinal;
* resultado por faixa de probabilidade.
## Expectativa matemática
```text
Expectativa =
(taxa de acerto × ganho médio)
−
(taxa de erro × perda média)
```
Uma estratégia pode ser lucrativa mesmo com menos de 50% de acerto, desde que o ganho médio seja suficientemente superior à perda média.
---
# 35. Exemplo completo de entrada LONG
Considere o seguinte cenário:
```text
EMA 50 > EMA 200
Preço em Discount
Probabilidade de alta = 64%
RL = BULLISH
Preço retorna a um OB bullish
Surge BOS bullish
```
O setup libera uma compra.
Dados hipotéticos:
```text
Entrada: 128.000 pontos
ATR: 400 pontos
Stop: 1,5 × ATR
```
Risco:
```text
400 × 1,5 = 600 pontos
```
Níveis:
```text
SL: 127.400
TP1: 129.200
TP2: 129.500
TP3: P90 do Monte Carlo
```
A operação somente deve ser executada se o risco financeiro correspondente aos 600 pontos estiver dentro do limite definido.
---
# 36. Exemplo completo de entrada SHORT
Cenário:
```text
EMA 50 < EMA 200
Preço em Premium
Probabilidade de baixa = 66%
RL = BEARISH
Preço varre a BSL
Candle fecha novamente abaixo da máxima
```
Dados hipotéticos:
```text
Entrada: 5.500
ATR: 20 pontos
Stop: 1,5 × ATR
```
Risco:
```text
20 × 1,5 = 30 pontos
```
Níveis:
```text
SL: 5.530
TP1: 5.440
TP2: 5.425
TP3: P10 do Monte Carlo
```
O fato de existir um TP3 distante não significa que ele será atingido.
O gerenciamento deve considerar a estrutura intermediária e a realização parcial.
---
# 37. Hierarquia das confirmações
Uma forma prática de classificar a qualidade dos sinais é:
## Setup de qualidade alta
* tendência macro definida;
* preço em Premium ou Discount;
* Order Block;
* liquidity sweep;
* CHoCH ou BOS;
* RL alinhado;
* probabilidade acima de 65%;
* relação risco-retorno superior a 2R.
## Setup de qualidade média
* tendência macro definida;
* Premium ou Discount;
* apenas uma confirmação SMC;
* probabilidade entre 60% e 65%;
* RL neutro.
## Setup de qualidade baixa
* médias próximas;
* estrutura lateral;
* sinal apenas por BOS;
* probabilidade próxima do limite;
* entrada distante da zona institucional;
* stop excessivamente amplo.
O indicador pode liberar uma operação tecnicamente válida que ainda seja pouco atrativa no contexto geral.
A leitura humana continua necessária.
---
# 38. Regra operacional resumida
## Compra
```text
Comprar somente quando:
EMA 50 > EMA 200
+
Preço em Discount
+
Monte Carlo ≥ limite de alta
+
RL não bearish
+
SMC confirma demanda ou reversão bullish
```
## Venda
```text
Vender somente quando:
EMA 50 < EMA 200
+
Preço em Premium
+
Monte Carlo confirma baixa
+
RL não bullish
+
SMC confirma oferta ou reversão bearish
```
## Saída
```text
SL = 1,5 × ATR
TP1 = 2R
TP2 = 2,5R
TP3 = P90 ou P10
```
---
# 39. Conclusão
O MC + RL + SMC Institutional Pro v4 é um indicador de confluência avançado que reúne:
* tendência;
* volatilidade;
* estrutura;
* liquidez;
* zonas institucionais;
* projeção probabilística;
* gestão de risco.
Seu principal valor está na filtragem.
Ele procura evitar operações baseadas em apenas um elemento e exige alinhamento entre contexto macro, estrutura SMC e probabilidade.
Entretanto, o indicador não deve ser tratado como sistema autônomo ou garantia de resultado.
A utilização correta exige:
* operação após o fechamento do candle;
* dimensionamento adequado da posição;
* teste por ativo e timeframe;
* validação fora da amostra;
* controle de drawdown;
* revisão das limitações do Monte Carlo e do módulo de RL;
* confirmação dos resultados declarados por meio de um backtest reproduzível.
A prioridade deve ser preservar capital. Um bom setup identifica oportunidades; uma gestão de risco consistente determina a sobrevivência do operador.
指标

EWCore 0.1.5.4**EWCore — Pine Script v6 for TradingView**
This manual explains what the indicator does and how each setting changes what you see on the chart. It does not cover code or Pine Script internals — it's written for traders.
---
## 0. Setup — Before Your First Chart
EW-Core is built from two Pine files, but you only ever add **one indicator to your chart**:
---
## 1. What EW-Core Does
EW-Core scans your chart's price history for pivot points (swing highs/lows), then automatically searches for valid Elliott Wave patterns among those pivots — Impulses, Diagonals, Zigzags, Flats, Triangles, and Combinations (W-X-Y and W-X-Y-X-Z). Out of everything it finds, it picks one **Leading Scenario** (its best current count) and displays it with full labels, plus a ranked table of alternative counts so you can judge how confident the count is.
It also reconstructs a **Historical Wave Chain** stretching back through your chart's history, and can project a **Sequel Chain** forward from the leading scenario, a **Forward Projection** of where price may go next, and Fibonacci confluence target zones.
Everything is scored 0–100 using a weighted blend of Fibonacci conformity, structural quality, wave equality, time consistency, multi-timeframe coherence, and (optionally) momentum — so higher-scoring counts are more likely to hold up.
---
## 2. Settings Menu — Group by Group
The Settings menu is organized top-to-bottom in this order:
### 2.1 Pivot Detection (ATR-adaptive)
Controls how price swings become "pivots" — the raw points every wave count is built from.
- **ATR Period** — how many bars the volatility measurement (ATR) looks back over.
- **Auto-adapt ATR multiplier to chart timeframe** — when ON (default), the sensitivity threshold is calculated automatically from your chart's timeframe using a formula, instead of you having to hand-tune 6 separate values per timeframe. Turn this OFF if you want full manual control.
- **Auto ATR — base / slope** — only used when auto-adapt is ON. Raise "base" to require larger swings everywhere; raise "slope" to make higher timeframes noticeably less sensitive than lower ones.
- **ATR Multiplier D1/Weekly/Monthly/H4/H1/M15** — manual sensitivity per timeframe (only used when auto-adapt is OFF). Higher = fewer, larger pivots; lower = more, smaller pivots.
**Practical effect:** if the indicator finds too many small, choppy pivots, raise sensitivity. If it's missing meaningful turns, lower it.
### 2.2 Performance Safety (Historical Chain)
Protects against TradingView's script time-limit when your chart has a very long price history.
- **Auto-limit historical chain range** — caps how far back the Historical Chain search runs, so it never risks a "Loop takes too long" error. The most recent history is never cut, only the oldest edge.
- **Complexity budget** — how large that cap is. Raise it if you have performance headroom and want deeper history; lower it if you still see timeout errors.
### 2.3 Higher-Degree Detection
Elliott Wave patterns exist at multiple "degrees" (a Minor wave is built from Minute waves, a Primary wave from Minor waves, etc.). This group builds those extra coarser layers automatically.
- **Compression levels above primary** — how many coarser degree-layers to search (0 = only the primary/finest level).
- **Compression significance filter / Level growth factor** — how much price movement is required to "count" as a swing at each coarser level.
- **Auto-calibrate** — adds one extra, precisely-tuned level so a clean pattern is more likely to end exactly at the current price.
- **Prefer higher degree within recency band / Leading scenario ranking priority** — controls whether a bigger, older completed pattern outranks a smaller, more recent one when choosing the Leading Scenario.
**Practical effect:** raise "Compression levels" if you trade higher timeframes and want the indicator to recognize multi-month/multi-year structures, not just the smallest visible swings.
### 2.4 Parent-Timeframe Context Gate
Cross-checks every candidate count on your chart against the wave structure on a higher (or, since this update, lower) timeframe, so a count on your chart can't contradict what's already confirmed elsewhere.
- **Enforcement** — Off / Soft (score penalty) / Hard (candidate discarded outright).
- **Automatic parent timeframe** — walks the standard cascade (1M→1W→1D→4H→1H→30m→15m→5m) to find the parent automatically.
- **Cascade shift** — nudges that automatic result further up (coarser/parent context, the original use) or now also **down** (finer/child context — checks your chart against a lower timeframe's already-confirmed structure instead).
- **Manual parent timeframe** — pick it yourself instead of automatic.
- **Time-gate tolerance / Soft-mode score penalty / Show parent-TF state** — fine-tuning and visibility of this check.
### 2.5 Count Anchoring
Controls where a wave count is allowed to *start*.
- **Require count to start at a turning point** — rejects counts that begin mid-move rather than at a genuine reversal.
- **Manual count start** — pin the count's starting reference point yourself instead of letting the indicator choose automatically.
- **Anchor lookback** — how many pivots before your chosen point the indicator is allowed to search.
### 2.6 Scoring Module
The weights behind every score you see in the tables.
- **Max Alternative Counts** — how many runner-up candidates appear in the Score table.
- **Minimum Score** — hide candidates below this score.
- **Weight: Fibonacci / Structure / Equality / Time / MTF / RSI Momentum** — how much each factor contributes to the final 0–100 score. Raise Fibonacci's weight if you trust ratio-based confluence most; raise Structure's if you care more about textbook wave-shape rules.
### 2.7 Hard-Rule Tolerance (soft-fail zone)
Elliott Wave has hard rules (e.g. "Wave 4 may not overlap Wave 1's territory in an Impulse"). This group lets slightly-violating counts survive with a score penalty instead of being thrown out outright — useful because real price action isn't always textbook-perfect.
- **Wave 2 / Wave 3 / Wave 4 / B-wave tolerance** — how far a rule may be bent, as a percentage.
- **Max score malus** — the score penalty applied at full tolerance.
### 2.8 Pattern Detection
Simple on/off toggles for which pattern types the search engine looks for: Impulse, Diagonal, Zigzag/Flat, Triangle, Combination W-X-Y, Combination W-X-Y-X-Z. Turning off types you don't care about speeds up scanning.
### 2.9 Sub-Wave Verification
Checks whether each leg of a pattern also decomposes cleanly into its own internal sub-waves (e.g. does "Wave 1" of an Impulse itself look like a valid 5-wave structure at a finer scale).
- **Verify internal sub-wave structure / Hard-fail contradictory sub-structure** — how strict this check is.
- **Mark unresolved legs with a text label** — shows a small marker (and optional line) wherever a leg's interior couldn't be classified, so you know exactly where the count is less certain.
### 2.10 Fibonacci Target Zones
- **Show Fibonacci Target Boxes** — draws projected target zones from the leading scenario's completed waves.
- **Confluence Tolerance** — how close two separate Fibonacci projections must land to merge into one highlighted confluence zone (a stronger signal than a single projection alone).
### 2.11 Table Settings
- **Show MTF Coherence Table** — small table showing trend direction across timeframes.
- **Show Scoring Table** — the ranked list of the leading scenario + alternatives, with individually toggleable columns (Rank/ID/Type/Score/Tier/Dir/Degree/End).
- **Show pivot points table / active-settings summary row / RAW point markers** — additional diagnostic tables.
### 2.12 Visualization: Wave Labels
Everything about how the main wave count (1-2-3-4-5, A-B-C, etc.) is drawn: marker shapes, label text, degree labels, sub-wave labels, and their distances from the candles. This is the group you'll touch most often for pure cosmetics.
### 2.13 Visualization: Lines & Zones
Settings for the invalidation line/marker (the price level that would prove the current count wrong) — its distance from the last bar and whether its label (price + reason) is shown.
### 2.14 Visualization: Pattern Explanation
- **Show explanation for leading scenario** — adds a small "i" marker you can hover for a plain-English explanation of why the indicator chose this specific pattern.
- **Pin explanation as static panel** — instead of (or in addition to) hovering, shows the same explanation permanently in a small on-chart panel — useful for screen recording or simply not having to hold your mouse still. Panel position, width, and independent text size/color are all configurable.
- **Show explanation for each historical/sub-wave segment** — same idea, applied to every historical segment or sub-wave.
### 2.15 Visualization: Historical Chain (Pre)
Controls the dimmed wave count drawn through price history *before* the leading scenario — label distance, and the fallback marker/line shown wherever a stretch of history couldn't be classified into a clean pattern.
### 2.16 Visualization: Sequel Chain (After)
Continues the story *after* the leading scenario ends, at the same degree, styled with the same full prominence as the leading scenario itself (not dimmed like the historical chain) — so it reads as a seamless continuation rather than a historical footnote.
### 2.17 Gap Raw Count (Historical Chain)
For stretches of the Historical Chain that can't be classified as a clean pattern:
- **Try real WXY/WXYXZ fit first** — before giving up, the indicator tries to fit a genuine rule-verified Combination pattern into the gap.
- **Show a simple count inside unclassifiable stretches** — if no real fit works, shows a neutral running count (1, 2, 3...) instead of leaving the gap blank, clearly marked as *not* a rule-checked Elliott count.
- **Max new labels per update** — a performance safety cap.
### 2.18 Nested Lower-Timeframe Wave Overlay
Overlays a finer wave count from a lower timeframe on top of your current chart (e.g. shows the i-v sub-structure of Wave 3 pulled from a lower timeframe). Two independent levels available.
### 2.19 Forward Projection
- **Show projected continuation** — a dashed projection of where price is likely headed if the current count keeps playing out.
- **Show Wave 5 target as a confluence zone** — projects the final target using multiple methods at once and highlights where they agree.
### 2.20 Colors (All Features)
Every color used anywhere in the indicator, collected in one place — labels, lines, tables, zones, everything. No need to hunt through 18 different feature groups to change one color.
### 2.21 Label & Text Sizes (All Features)
Every text-size setting, collected in one place.
### 2.22 Line Styles & Widths (All Features)
Every line width and style (Solid/Dashed/Dotted) setting, collected in one place.
---
## 3. Reading the Chart
- **Solid, full-color line + labels** = the Leading Scenario (the indicator's current best count).
- **Dimmed line + labels** = the Historical Chain (past structure, lower visual priority).
- **Full-color line continuing after the leading scenario** = the Sequel Chain.
- **"i" marker** = hover (or enable the static panel) for a plain-English explanation of the current pattern choice.
- **"!" marker** = a leg or stretch that couldn't be cleanly classified — the count is less certain there.
- **Dashed line beyond the last bar** = the Forward Projection.
- **Colored box(es) ahead of price** = Fibonacci target zone(s); a distinctly bordered box = a confluence zone where multiple projections agree.
## 4. Practical Workflow
1. Start with **Pattern Detection** — leave all types on unless you have a strong reason to exclude one.
2. Use the **Score Table** (Table Settings group) to judge how confident the leading scenario is — a large score gap to the #2 alternative means high confidence; a close score means the count could flip.
3. If the count looks wrong on a specific leg, hover its **"i"** marker (or enable the pinned panel) to see the indicator's own reasoning.
4. If a stretch looks unresolved ("!" marker or unclassifiable gap), that's the indicator being honest about uncertainty — not a bug.
5. Use the **Parent-Timeframe Context Gate** to keep your chart's count consistent with the bigger picture, or its new negative Cascade Shift to check consistency against a finer timeframe instead. 指标

指标

Last Day Candle Range Marker Version IIIThe Last Day Range Marker Version III is designed to visualize important price ranges from both the previous trading day and the current chart timeframe.
Features
• Displays the Previous Day High and Previous Day Low as customizable horizontal lines.
• Optionally highlights the previous day's range with a colored box.
• Displays the High and Low of the current chart timeframe candle.
• Optional range box for the current timeframe candle.
• Calculates and displays the percentage range (High–Low) for both the previous day and the current timeframe.
• Fully customizable colors, line styles (Solid, Dashed, Dotted), and line widths.
• Adjustable line length to the left and extension to the right.
• Individual on/off switches for the Previous Day and Timeframe sections.
• Clean labels showing High, Low, and percentage range directly on the chart.
Benefits
• Quickly identify important support and resistance levels.
• Compare the previous day's range with the current timeframe's price action.
• Ideal for breakout, range, momentum, and intraday trading strategies.
• Works on all symbols and all TradingView-supported timeframes.
The indicator is lightweight, easy to customize, and helps traders keep the most relevant price levels visible without cluttering the chart.
指标

Volume Footprint, Absorption & Imbalance Analysis by GurujamesHere is a breakdown of exactly what the tool does and how it helps you analyze the market.
1. Intrabar Order Flow Splitting (Delta Calculation)
Instead of just showing total volume, the script peers into the 1-minute timeframe inside your current candle to calculate the Volume Delta.
What it does: It separates aggressive market buying from aggressive market selling.
Why it matters: It tells you who is actually in control. A candle might close green, but if the delta is heavily negative, it means sellers were aggressively hitting the bid, but buyers held the line.
2. Trapped Trader Detection (Absorption Bubbles)
The script identifies exact moments when aggressive traders get trapped by passive limit orders from larger participants.
What it does: When extreme selling pressure fails to push the price down (leaving a bullish wick), or extreme buying pressure fails to push the price up (leaving a bearish wick), it triggers an absorption event.
Visual Output: It plots a circular bubble above or below the wick. Inside the bubble is the exact percentage of that candle's total volume that was absorbed.
Example: A green bubble reading "72%" means 72% of the bar's volume was aggressive selling that completely failed to move the market down.
3. Institutional Imbalance Zones (Extending Boxes)
This feature finds areas where the market became extremely one-sided, leaving a "vacuum" in the order book.
What it does: It scans for high-volume candles where one side outpaced the other by 300% or more (a 3:1 ratio).
Visual Output: It draws a semi-transparent, extending box (Green for Buy Imbalances, Red for Sell Imbalances) originating from the extreme of the candle.
Why it matters: These areas act as high-probability Supply and Demand zones. Because the move was so aggressive, liquidity was skipped. The market will very often retrace back to these boxes to "mitigate" or fill the skipped orders. The boxes auto-delete after an hour (configurable) to keep your chart clean once they become stale.
4. Unfinished Liquidity Magnets (Missed Auctions / Poor Extremes)
In auction market theory, a healthy market sweeps the high or low until volume tapers off to zero. When it doesn't, it creates a "poor" high or low.
What it does: It detects candles that close at their absolute highest or lowest tick while both buyers and sellers are still actively transacting high volume.
Visual Output: It highlights the upper or lower body of that specific candle with a bright extending box (Green for Missed Buys, Red for Missed Sells), accompanied by a small cross ().X
Why it matters: These zones represent "unfinished business." The market is highly likely to revisit these exact levels later to properly sweep the liquidity that was left hanging. You can toggle these visual zones on or off in the settings.
5. Real-Time Analytics Dashboards
The script paints two distinct data tables on your chart to give you micro and macro perspectives without having to do any math yourself.
The Macro Table (Top Right): Keeps a rolling 7-day memory of market aggressiveness. It shows you the total percentage of volume over the last week that resulted in trapped buyers vs. trapped sellers, helping you gauge the broader structural trend.
The Micro Table (Bottom Right): Acts as a live ticker for the active, moving candlestick. It updates tick-by-tick to show you the current bar's absorption percentages, whether an imbalance has triggered, and explicitly states the structural status (e.g., "BULLISH (Absorbing Sells)" or "Neutral"). 指标

GMS Session Rays (Sydney/Asia/London/NY)A lightweight Pine v6 indicator that plots the previous completed session’s High and Low for the four major sessions—Sydney, Asia, London, New York—so you always see the most actionable structure levels without chart clutter. Lines auto-update at the end of each session and extend right as horizontal rays. Labels are clean, stack automatically to avoid overlap, and can be placed on the left or right side of the chart.
What it shows
Previous session High/Low for each enabled session (not the current live session).
Right-extended rays at those prices, updated when the session closes.
Optional labels per session (e.g., “sydney high”, “london low”), with auto-stacking to prevent overlaps.
Customization
Per-session toggles: show/hide each session; show/hide labels per session.
Style controls: color, width, and line style (Solid/Dotted/Dashed) per session.
Label controls: global on/off, Left/Right placement, bars offset, Y-offset (in ticks), size (Tiny/Small/Normal), auto-stacking with adjustable step.
Session windows: editable HHMM-HHMM for Sydney/Asia/London/NY.
Timezone: set a single indicator timezone (default America/New_York).
Only Today mode: clears older rays daily to keep charts minimal.
How it works (under the hood)
Tracks High/Low only while a session is active; when it ends, those values are frozen and plotted as the previous session levels. 指标

Nicha_EMA_LineMoving Average Pack (Trend Identification)
The first part of the script calculates and plots 7 different moving averages on your chart. These are commonly used to determine trend direction, dynamic support/resistance, and momentum:
EMA 9, 14, 20, 50, 100, 200: These are standard Exponential Moving Averages. The script colors the short-term averages (9, 20, 50) and the long-term trend indicator (200) all in green, while EMA 14 is yellow and EMA 100 is blue.
LWMA 720 (White): This is a Linear Weighted Moving Average with a very long period (720). Instead of just using the closing price, it uses a custom Weighted Close formula (high + low + close + close) / 4 to give extra importance to the closing price while factoring in the day's high and low. 指标

指标

EvoORZ - Multi-Timeframe Optimal Retracement ZonesEvoORZ — Multi-Timeframe Optimal Retracement Zones
Disclaimer: EvoORZ is currently a prototype under active development. Despite extensive testing, the indicator may still contain errors, particularly in the detection or display of certain zones. All displayed results should therefore be verified before being used as part of any trading decision.
EvoORZ is a multi-timeframe indicator designed to automatically detect and display retracement zones based on significant market legs.
Its purpose is to make it easier to identify areas where price may retrace before potentially resuming the original directional move.
Several settings are available to adapt the detection process to different markets:
number of bars located to the left of the pivot;
number of bars required to confirm the pivot;
minimum leg size expressed as a multiple of ATR;
swing detection based on candlestick wicks or bodies.
The ATR filter helps reduce minor market fluctuations and prioritizes legs with more significant amplitude.
The indicator distinguishes between currently active zones and historical zones.
EvoORZ also allows users to customize:
the colors of bullish and bearish zones;
the transparency of active zones;
the transparency of historical zones;
the text displayed inside the zones;
the label size;
the visible timeframes;
the sensitivity of swing detection;
alerts triggered when a new zone is created or when price first interacts with a zone.
Important
EvoORZ is primarily a market-context tool.
A retracement zone does not, by itself, constitute a buy or sell signal. It should be analyzed in conjunction with market structure, the broader trend, liquidity, volatility, volume, and the other elements included in your trading plan.
Zones derived from higher timeframes can be used to establish the broader market context, while lower-timeframe zones may help refine trade execution.
This indicator does not predict future market movements and does not guarantee that price will react to any displayed zone. It should be used as an analytical aid and not as a standalone trading system. 指标
