OPEN-SOURCE SCRIPT
Güncellendi

Scrodinger Indicator

286
Projetado para auxiliar traders na identificação de probabilidades de breakouts, análise estatística de movimentos de preço, além de fornecer suporte através de VWAP (Volume Weighted Average Price) com bandas de desvio padrão e médias móveis exponenciais (EMAs).

Ele combina estatísticas de rompimentos, alertas dinâmicos, análise de tendência e indicadores de momentum, oferecendo uma abordagem quantitativa para a tomada de decisões no mercado.
🛠️ Funcionalidades Principais


🔹 1. Breakout Probability (Probabilidade de Rompimento)

Calcula a probabilidade de o preço atingir determinados níveis de alta e baixa com base no histórico de candles.
Exibe níveis de resistência e suporte dinâmicos usando um fator percentual ajustável.
Indica estatísticas de win/loss baseadas na frequência dos rompimentos anteriores.
Alertas personalizáveis para notificações quando o preço atinge níveis críticos.

🔹 2. VWAP + Bandas de Desvio Padrão

VWAP (Volume Weighted Average Price) como referência para o preço médio ponderado pelo volume.
Bandas de desvio padrão ajudam a identificar regiões de sobrecompra e sobrevenda.
Suporte a múltiplos desvios-padrão configuráveis pelo usuário.
Opção de exibir o VWAP da sessão anterior para análise de continuidade.

🔹 3. Médias Móveis Exponenciais (EMAs) e MACD

EMA rápida e EMA lenta para detectar tendências de curto e longo prazo.
Indica cruzamentos entre as EMAs, fornecendo sinais de compra e venda.
MACD (Moving Average Convergence Divergence) com histograma para medir força e direção da tendência.

🔹 4. Sistema de Alertas Avançado

Notificações para rompimentos de suporte/resistência.
Alertas configuráveis para mudanças de tendência (Bullish/Bearish).
Opção de incluir detalhes como ticker, preço, viés direcional e porcentagem de probabilidade.

📊 Como Utilizar o Scrodinger Indicator?

Ajuste a porcentagem de nível (%) para definir a distância entre os níveis de breakout.
Configure a quantidade de linhas de suporte e resistência desejadas no gráfico.
Habilite ou desabilite estatísticas para visualizar dados quantitativos sobre rompimentos.
Ative o VWAP e suas bandas para visualizar regiões de interesse baseadas em volume.
Monitore os cruzamentos das EMAs e MACD para confirmações de tendência.
Sürüm Notları
Overview

This script integrates multiple technical analysis tools:

Moving Average Cross (EMA Fast vs. EMA Slow)
MACD Lines and Histogram
Breakout Probability (calculating likelihood of reaching new highs/lows)
Fibonacci Levels (either continuous pivot-based or custom period)
Optional Volume Profile (for additional context)

At the end, a table is created to show Fibonacci levels on the last candle, giving precise price zones for potential support/resistance. Each tool aims to confirm or complement the signals from the others, helping the trader make more informed decisions.
Moving Averages and MACD
Moving Average Cross

Fast EMA (default length 8) and Slow EMA (default length 32) are plotted on the chart.
A Bullish Cross (fast EMA crossing above the slow EMA) typically signals an uptrend or buying opportunity, as the short-term price is moving faster than the long-term average.
A Bearish Cross (fast EMA crossing below the slow EMA) generally signals a downtrend or selling opportunity.

Colored triangles mark these crossovers (green triangle for bullish, red triangle for bearish), so you can visually identify when short-term momentum is overtaking or falling behind the longer-term trend.
MACD

The MACD is calculated with default settings (12, 26, 9).
MACD Line (difference between two EMAs), Signal Line, and a Histogram are plotted.
When the MACD Line is above the Signal Line, it suggests bullish momentum; when below, it suggests bearish momentum.
The histogram’s color changes (green/red) based on whether the MACD is positive or negative, helping you spot momentum shifts quickly.

Traders can use the MACD to confirm the signals from the EMA cross. For example, if the fast EMA crosses above the slow EMA and the MACD histogram is turning positive, that combination can give stronger conviction of a potential uptrend.
Breakout Probability

This part of the script tries to determine the likelihood of the price breaking above or below the previous candle’s range. Specifically:

It calculates multiple levels above the prior high and below the prior low (based on a percentage step, e.g., 1%).
It keeps track of how often, in the past, the price reached those levels for bullish or bearish bars.
The script can display labels showing the historical probability of reaching each level, helping you gauge the risk/reward of expecting a breakout or a drop.

The color-coded lines and labels (green for up, red for down) indicate potential “next-step” zones. If you see a high probability of reaching a certain level above the prior high, that might suggest a decent bullish continuation. Conversely, if the script calculates a high chance of breaking below the prior low, you might anticipate a possible bearish move.
Fibonacci Levels
Continuous Mode

The script detects pivot highs and pivot lows within a lookback period (pivlen) and draws Fibonacci retracement/extension lines (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%) between these pivots.
As new pivots appear, it updates these lines.
You can visually see where price might pull back or extend, which often corresponds to known support/resistance areas in Fibonacci-based strategies.

Custom Period Mode

Alternatively, you can define a start and end timestamp to measure a specific swing (e.g., from a known low to a known high in a particular timeframe).
The script then calculates the Fibonacci levels between those two points, optionally extending them to the right to project future zones of interest.

In both modes, fills can be added between levels (e.g., shading the area from 0% to 23.6%) to visually highlight these regions.
Volume Profile (Optional)

If enabled (Show Profile), the script calculates a simple volume profile over a specified range, showing which price levels had the highest trading activity (Volume by Price).
This can help identify strong support/resistance areas (High Volume Nodes, Point of Control) where the market may react strongly.

The Fibonacci Table (Last Candle)

On the very last bar, the script captures the final Fibonacci levels (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%) and displays them in a table at the top-right of the chart. Each row includes:

The name of the level (e.g., “Nível 23.6%”).
The exact price value for that level.
A color-coded label matching the Fibonacci lines.

This table offers a quick reference for where key Fibonacci support/resistance might lie, assisting you in planning entries, exits, or stop-loss placements.
How to Use for Trading Decisions

Trend Identification:
Look at the EMA cross and MACD to determine the broader trend or momentum.
A bullish crossover + positive MACD histogram suggests you may consider looking for buy entries.
A bearish crossover + negative MACD histogram suggests you may consider looking for sell entries.

Breakout Potential:
Check the Breakout Probability lines and percentages. If there’s a high probability of the price exceeding the previous high, it might reinforce a bullish bias; if a high chance of breaking below the previous low, it might suggest caution or a bearish setup.

Fibonacci Levels:
Use these levels to refine your entry or exit. For instance, in an uptrend, watch for pullbacks to the 38.2% or 61.8% retracement as potential buying zones. In a downtrend, look at these levels for short entries or for setting profit targets.

Volume Profile (optional):
Combine volume profile information to see if a Fibonacci level coincides with a high-volume node. This confluence can increase the probability that the level acts as support/resistance.

Alert System:
The script includes an alert feature for the breakout probability. You can set it so you’re notified whenever certain thresholds or conditions are met (e.g., potential bullish or bearish breakouts).

Potential Entry & Exit Strategies

Entries:
Wait for a bullish crossover of the EMAs and confirm it with MACD turning positive.
Check breakout probabilities for an upside move.
If the price is pulling back to a Fibonacci support (e.g., 61.8% retracement), that could be an additional confirmation for a buy entry.

Exits:
Set partial or full profit targets at higher Fibonacci extensions (e.g., from 100% to 161.8%, if you’re extending beyond 100%).
If a bearish crossover forms or the MACD turns negative, consider exiting or tightening stops.
Watch the breakout probabilities in the opposite direction. If the script shows a strong chance of dropping below the previous low, you might close a long position or move stops accordingly.
Sürüm Notları
Tabela On / Off + set config

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.