Reversão Simples com Pontos de Liquidez//@version=5
indicator("Indicador IQ Option - Reversão Simples com Pontos de Liquidez", overlay=true)
// Configurações do RSI para detectar condições de reversão
rsiLength = input.int(14, title="Período do RSI")
overbought = input.int(70, title="Nível de Sobrecomprado (Venda)")
oversold = input.int(30, title="Nível de Sobrevendido (Compra)")
rsi = ta.rsi(close, rsiLength)
// Definindo as condições de entrada de compra (CALL) e venda (PUT)
sinalCompra = ta.crossover(rsi, oversold) // RSI cruzando para cima o nível de sobrevenda
sinalVenda = ta.crossunder(rsi, overbought) // RSI cruzando para baixo o nível de sobrecompra
// Plotando os indicativos de entrada para Compra (CALL) e Venda (PUT) como texto
plotshape(series=sinalCompra, title="Entrada CALL", location=location.belowbar, color=color.green, style=shape.labelup, text="CALL")
plotshape(series=sinalVenda, title="Entrada PUT", location=location.abovebar, color=color.red, style=shape.labeldown, text="PUT")
// Identificando os dois últimos pontos de liquidez (topos e fundos)
lookback = 50 // Número de barras para procurar os topos e fundos
// Encontrando os índices dos maiores topos e fundos nas últimas `lookback` barras
topoIndex = ta.highestbars(high, lookback)
fundoIndex = ta.lowestbars(low, lookback)
// Garantindo que os índices não sejam negativos (significa que o ponto não existe dentro da janela de lookback)
validTopoIndex = topoIndex >= 0 ? topoIndex : na
validFundoIndex = fundoIndex >= 0 ? fundoIndex : na
// Preços de liquidez nos topos e fundos
liquidezTopo = validTopoIndex >= 0 ? high : na
liquidezFundo = validFundoIndex >= 0 ? low : na
// Plotando linhas horizontais nos dois últimos pontos de liquidez
if (validTopoIndex >= 0)
line.new(x1=bar_index , y1=liquidezTopo, x2=bar_index, y2=liquidezTopo, color=color.orange, width=2, style=line.style_dashed)
if (validFundoIndex >= 0)
line.new(x1=bar_index , y1=liquidezFundo, x2=bar_index, y2=liquidezFundo, color=color.blue, width=2, style=line.style_dashed)
// Detectando reversões após os pontos de liquidez
reversaoTopo = ta.crossover(close, liquidezTopo) // Quando o preço ultrapassa o topo
reversaoFundo = ta.crossunder(close, liquidezFundo) // Quando o preço cai abaixo do fundo
// Plotando setas de reversão
plotshape(series=reversaoTopo, title="Reversão no Topo", location=location.abovebar, color=color.yellow, style=shape.triangledown, text="Reversão")
plotshape(series=reversaoFundo, title="Reversão no Fundo", location=location.belowbar, color=color.purple, style=shape.triangleup, text="Reversão")
// Alertas para notificar o trader
alertcondition(sinalCompra, title="Sinal de Compra (CALL)", message="Sinal de Compra (CALL) detectado!")
alertcondition(sinalVenda, title="Sinal de Venda (PUT)", message="Sinal de Venda (PUT) detectado!")
Chart patterns
EMA, SMA, BB & 5-21 StrategyThis Pine Script code displays Exponential Moving Averages (EMA) and Simple Moving Averages (MA) on a TradingView chart based on the user's selection. Users can choose to show EMA, MA, or both. The script includes predefined periods for both EMA ( ) and MA ( ). Each period is displayed in a different color, making it easy to distinguish between each line. This helps traders analyze trends, support, and resistance levels effectively. And Bollinger bands, 5-21 Strategy
Bu Pine Script kodu, Üstel Hareketli Ortalama (EMA) ve Basit Hareketli Ortalama (MA) çizgilerini TradingView grafiğinde kullanıcının seçimine göre gösterir. Kullanıcı EMA, MA veya her ikisini seçebilir. EMA için ve MA için periyotları tanımlıdır. Her çizgi farklı renkte gösterilir, bu da periyotları ayırt etmeyi kolaylaştırır. Bu gösterge, yatırımcıların trendleri, destek ve direnç seviyelerini analiz etmesine yardımcı olur.
New Day [UkutaLabs]█ OVERVIEW
The New Day indicator is a useful trading tool that automatically identifies the first bar of each trading day for the user’s convenience.
█ USAGE
At the beginning of each trading day, this indicator will automatically create a line that will display the first bar of the trading day. This is a useful way to visualize where each day begins and ends.
When this indicator is used on a stock or futures chart, the first bar of the session will be identified as the first bar of the trading day. If this indicator is used on crypto or forex charts, which are tradable for 24 hours, the indicator will identify the bar closest to midnight as the first bar of the trading day.
█ SETTINGS
Configuration
• Line Color: This setting allows the user to determine the color of the New Day line.
• Line Width: This setting allows the user to determine the width of the New Day line.
• Line Style: This setting allows the user to determine the style of the New Day line.
Stochastic RSI V1Stokastik RSI V1 - Kesişim noktaları işaretlendi, aşırı alım ve satım bölgeleri oluşturuldu. Çok ta önemli olmayabilecek değişiklikler işte...
HIU - SMA Cross with RSI FilterStrategy Summary:
Moving Averages: Uses 9 and 21-period SMAs for crossover signals.
RSI Filtering: Requires RSI < 30 for long entries and RSI > 70 for short entries.
Stop Loss & Take Profit: Based on percentage levels, adaptable to volatility.
These adjustments help reduce false signals and adapt the strategy to different market conditions.
Dinamik EMA Periyotları ile Buy/Sell Sinyalifiyat 50 emanın üstündeyken 10 ema 30 emayı 50 emanın üstünde yukarı kesince buy sinyal etiketi,fiyat 50 emanın altındayken 10 ema 30 emayı 50 emanın altında aşağı doğru kesince sell sinyal etiketi var.buy ve sell sinyalleri için alarm kurulabilir.
Confirmed market structure buy/sell indicatorOverview
The Swing Point Breakout Indicator with Multi-Timeframe Dashboard is a TradingView tool designed to identify potential buy and sell signals based on swing point breakouts on the primary chart's timeframe while simultaneously providing a snapshot of the market structure across multiple higher timeframes. This dual approach helps traders make informed decisions by aligning short-term signals with broader market trends.
Key Features
Swing Point Breakout Detection
Swing Highs and Lows: Identifies significant peaks and troughs based on a user-defined lookback period.
Breakout Signals:
Bullish Breakout (Buy Signal): Triggered when the price closes above the latest swing high.
Bearish Breakout (Sell Signal): Triggered when the price closes below the latest swing low.
Visual Indicators: Highlights breakout bars with colors (lime for bullish, red for bearish) and plots buy/sell markers on the chart.
Multi-Timeframe Dashboard
Timeframes Monitored: 1m, 5m, 15m, 1h, 4h, 1D, and 1W.
Market Structure Status:
Bullish: Indicates upward market structure.
Bearish: Indicates downward market structure.
Neutral: No clear trend.
Visual Table: Displays each timeframe with its current status, color-coded for quick reference (green for bullish, red for bearish, gray for neutral).
Operational Workflow
Initialization:
Sets up a dashboard table on the chart's top-right corner with headers "Timeframe" and "Status".
Swing Point Detection:
Continuously scans the main timeframe for swing highs and lows using the specified lookback period.
Updates the latest swing high and low levels.
Signal Generation:
Detects when the price breaks above the last swing high (bullish) or below the last swing low (bearish).
Activates potential buy/sell setups and confirms signals based on subsequent price movements.
Dashboard Update:
For each defined higher timeframe, assesses the market structure by checking for breakouts of swing points.
Updates the dashboard with the current status for each timeframe, aiding in trend confirmation.
Visualization:
Colors the bars where breakouts occur.
Plots buy and sell signals directly on the chart for easy identification.
GoldWaveX Strategy - Debug Modegold gold gold ogld gold gold gold gold gold gold gold gold gold gold
Enhanced London Session SMC SetupEnhanced London Session SMC Setup Indicator
This Pine Script-based indicator is designed for traders focusing on the London trading session, leveraging smart money concepts (SMC) to identify potential trading opportunities in the GBP/USD currency pair. The script uses multiple techniques such as Order Block Detection, Imbalance (Fair Value Gap) Analysis, Change of Character (CHoCH) detection, and Fibonacci retracement levels to aid in market structure analysis, providing a well-rounded approach to trade setups.
Features:
London Session Highlight:
The indicator visually marks the London trading session (from 08:00 AM to 04:00 PM UTC) on the chart using a blue background, signaling when the high-volume, high-impulse moves tend to occur, helping traders focus their analysis on this key session.
Order Block Detection:
Identifies significant impulse moves that may form order blocks (supply and demand zones). Order blocks are areas where institutions have executed large orders, often leading to price reversals or continuation. The indicator plots the high and low of these order blocks, providing key levels to monitor for potential entries.
Imbalance (Fair Value Gap) Detection:
Detects and highlights price imbalances or fair value gaps (FVG) where the market has moved too quickly, creating a gap in price action. These areas are often revisited by price, offering potential trade opportunities. The upper and lower bounds of the imbalance are visually marked for easy reference.
Change of Character (CHoCH) Detection:
This feature identifies potential trend reversals by detecting significant changes in market character. When the price action shifts from bullish to bearish or vice versa, a CHoCH signal is triggered, and the corresponding level is marked on the chart. This can help traders catch trend reversals at key levels.
Fibonacci Retracement Levels:
The script calculates and plots the key Fibonacci retracement levels (0.618 and 0.786 by default) based on the highest and lowest points over a user-defined swing lookback period. These levels are commonly used by traders to identify potential pullback zones where price may reverse or find support/resistance.
Directional Bias Based on Market Structure:
The indicator provides a market structure analysis by comparing the current highs and lows to the previous periods' highs and lows. This helps in identifying whether the market is in a bullish or bearish state, providing a clear directional bias for trade setups.
Alerts:
The indicator comes with built-in alert conditions to notify the trader when an order block, imbalance, CHoCH, or other significant price action event is detected, ensuring timely action can be taken.
Ideal Usage:
Timeframe: Suitable for intraday trading, particularly focusing on the London session (08:00 AM to 04:00 PM UTC).
Currency Pair: Specifically designed for GBP/USD but can be adapted to other pairs with similar market behavior.
Trading Strategy: Best used in conjunction with a price action strategy, focusing on the key levels identified (order blocks, FVG, CHoCH) and using Fibonacci retracement levels for precision entries.
Target Audience: Ideal for traders who follow smart money concepts (SMC) and are looking for a structured approach to identify high-probability setups during the London session.
Long-Term Pivot and Golden Crossover Strategy//@version=5
strategy("Long-Term Pivot and Golden Crossover Strategy", overlay=true)
// Input for moving averages
shortTerm = input.int(100, title="Short-term SMA Period") // 100-period SMA
longTerm = input.int(200, title="Long-term SMA Period") // 200-period SMA
// Calculate moving averages
sma100 = ta.sma(close, shortTerm)
sma200 = ta.sma(close, longTerm)
// Golden crossover: when short-term SMA crosses above long-term SMA
goldenCrossover = ta.crossover(sma100, sma200)
// Calculate daily pivot points (traditional formula)
pivot = (high + low + close) / 3
support1 = pivot - (high - low)
resistance1 = pivot + (high - low)
support2 = pivot - 2 * (high - low)
resistance2 = pivot + 2 * (high - low)
// Plot SMAs and pivot points on the chart
plot(sma100, color=color.blue, title="100-period SMA", linewidth=2)
plot(sma200, color=color.red, title="200-period SMA", linewidth=2)
plot(pivot, color=color.purple, title="Pivot Point", linewidth=2)
plot(support1, color=color.green, title="Support 1", linewidth=1)
plot(resistance1, color=color.green, title="Resistance 1", linewidth=1)
plot(support2, color=color.green, title="Support 2", linewidth=1)
plot(resistance2, color=color.green, title="Resistance 2", linewidth=1)
// Entry Condition: Golden crossover with price above the pivot point
longCondition = goldenCrossover and close > pivot
// Exit Condition: You can use a stop-loss and take-profit, or a bearish crossover
stopLossPercent = input.float(3, title="Stop Loss (%)") / 100 // Wider stop loss for long-term trades
takeProfitPercent = input.float(10, title="Take Profit (%)") / 100 // Higher take profit for long-term trades
// Calculate stop-loss and take-profit prices
longStopLoss = close * (1 - stopLossPercent)
longTakeProfit = close * (1 + takeProfitPercent)
// Execute strategy
if (longCondition)
strategy.entry("Long", strategy.long, stop=longStopLoss, limit=longTakeProfit)
// Optional: Exit strategy based on a bearish crossover
exitCondition = ta.crossunder(sma100, sma200)
if (exitCondition)
strategy.close("Long")
// Strategy exit with custom stop loss and take profit
strategy.exit("Take Profit/Stop Loss", from_entry="Long", stop=longStopLoss, limit=longTakeProfit)
SystemAlpha MIXEsse indicador foi criado para ajudar a identificar facilmente quando um ativo (como ações ou criptomoedas) está em uma tendência de alta e quando essa tendência está prestes a terminar.
Ele funciona da seguinte forma:
Identificação da Tendência de Alta: O indicador usa uma combinação de médias móveis e o índice de força relativa (RSI) para verificar se o ativo está subindo de forma consistente. Quando detecta uma tendência de alta, ele marca no gráfico um alerta visual abaixo do preço, mostrando que o ativo está em alta.
Sinal de Fim da Tendência: Quando a tendência de alta mostra sinais de enfraquecimento, o indicador avisa que a alta pode estar acabando. Neste momento, ele coloca um alerta visual acima do preço, indicando um possível fim da subida.
Médias Móveis e Bandas de Bollinger: As linhas coloridas no gráfico representam médias móveis de diferentes períodos (10, 50 e 200), que ajudam a visualizar a direção geral do ativo. As Bandas de Bollinger, que envolvem o preço, mostram se o ativo está "espremido" (com pouca oscilação) ou se está se movendo com mais força.
Supertrend: Esse recurso dá suporte adicional para entender se o preço ainda está em alta ou se pode estar revertendo.
Este indicador é ideal para quem deseja visualizar rapidamente as tendências de alta e evitar ficar posicionado quando a alta acaba. É útil tanto para quem faz operações rápidas quanto para quem quer acompanhar o movimento de um ativo ao longo de um período maior.
EMA and SMA Crossover Strat.Jerrythick jerry
good good stuff
thick jerry
good good stuff
thick jerry
good good stuff
thick jerry
good good stuff
thick jerry
good good stuff
thick jerry
good good stuff
Optimized Fair Value Gap StrategyOptimised Fair Value Gap strategy with take profit signals. Giving traders the best chance of making successful trades
SMC StrategyThis Pine Script strategy is based on Smart Money Concepts (SMC), designed for TradingView. Here's a brief summary of what the script does:
1. Swing High and Low Calculation: It identifies recent swing highs and lows, which are used to define key zones.
2. Equilibrium, Premium, and Discount Zones:
- Equilibrium is the midpoint between the swing high and low.
- Premium Zone is above the equilibrium, indicating a potential resistance area (sell zone).
- Discount Zone is below the equilibrium, indicating a potential support area (buy zone).
3. Simple Moving Average (SMA): It uses a 50-period SMA to determine the trend direction. If the price is above the SMA, the trend is bullish; if it's below, the trend is bearish.
4. Buy and Sell Signals:
- Buy Signal: Generated when the price is in the discount zone and above the equilibrium, with the price also above the SMA.
- Sell Signal: Triggered when the price is in the premium zone and below the equilibrium, with the price also below the SMA.
5. Order Blocks: It detects basic order blocks by identifying the highest high and lowest low within the last 20 bars. These levels help confirm the buy and sell signals.
6. Liquidity Zones: It marks the swing high and low as potential liquidity zones, indicating where price may reverse due to institutional players' activity.
The strategy then executes trades based on these signals, plotting buy and sell markers on the chart and showing the key levels (zones) and trend direction.
Hourly Breakout & Multi-Timeframe High/Low Indicator withDescription:
This indicator combines powerful breakout and multi-timeframe analysis features, allowing traders to visualize key support and resistance levels across various timeframes (daily, weekly, monthly, hourly, and 4-hour highs and lows). It also dynamically colors candles based on hourly breakout conditions, making it easy to spot significant price movements and potential trading signals.
Key Features:
Customizable Multi-Timeframe High/Low Levels:
Displays previous and current high/low levels for daily, weekly, and monthly timeframes, as well as previous hourly and 4-hour highs and lows.
Each timeframe’s high/low lines are color-coded and can be toggled on or off based on user preference.
Hourly Breakout Candle Coloring:
Candle colors change when the hourly close breaks above or below the previous day's high or low, visually indicating important breakout conditions.
User-configurable colors for candles that close above or below these breakout levels make this indicator highly customizable.
Dynamic Line Plotting:
Automatically updates and plots dotted lines for the previous day’s high and low levels, providing consistent visual cues for key support and resistance.
This indicator is ideal for intraday and swing traders who want to keep an eye on important breakout levels and multi-timeframe support and resistance zones, all in one convenient tool. Whether you're trading trends, breakouts, or reversals, this indicator helps enhance decision-making with clear, color-coded signals and adaptable settings.
Watchlist & Symbols Distribution [Daveatt]TLDR;
I got bored so I just coded the TradingView watchlist interface in Pinescript :)
TLDR 2:
Sharing it open-source what took me 1 full day to code - haven't coded in Pinescript in a long time, so I'm a bit slow for now :)
█ OVERVIEW
This script offers a comprehensive market analysis tool inspired by TradingView's native watchlist interface features.
It combines an interactive watchlist with powerful distribution visualization capabilities and a performance comparison panel.
The script was developed with a focus on providing multiple visualization methods while working within PineScript's limitations.
█ DEVELOPMENT BACKGROUND
The pie chart implementation was greatly inspired by the ( "Crypto Map Dashboard" script / )
adapting its circular visualization technique to create dynamic distribution charts. However, due to PineScript's 500-line limitation per script, I had to optimize the code to allow users to switch between pie chart analysis and performance comparison modes rather than displaying both simultaneously.
█ SETUP AND DISPLAY
For optimal visualization, users need to adjust the chart's display settings manually.
This involves:
Expanding the indicator window vertically to accommodate both the watchlist and graphical elements
Adjusting the Y-axis scale by dragging it to ensure proper spacing for the comparison panel grid
Modifying the X-axis scale to achieve the desired time window display
Fine-tuning these adjustments whenever switching between pie chart and comparison panel modes
These manual adjustments are necessary due to PineScript's limitations in controlling chart scaling programmatically. While this requires some initial setup, it allows users to customize the display to their preferred viewing proportions.
█ MAIN FEATURES
Distribution Analysis
The script provides three distinct distribution visualization modes through a pie chart.
Users can analyze their symbols by exchanges, asset types (such as Crypto, Forex, Futures), or market sectors.
If you can't see it well at first, adjust your chart scaling until it's displayed nicely.
Asset Exchanges
www.tradingview.com
Asset Types
Asset Sectors
The pie charts feature an optional 3D effect with adjustable depth and angle parameters. To enhance visual customization, four different color schemes are available: Default, Pastel, Dark, and Neon.
Each segment of the pie chart includes interactive tooltips that can be configured to show different levels of detail. Importantly, the pie chart only visualizes the distribution of selected assets (those marked with a checkmark in the watchlist), providing a focused view of the user's current interests.
Interactive Watchlist
The watchlist component displays real-time data for up to 10 user-defined symbols. Each entry shows current price, price changes (both absolute and percentage), volume metrics, and a comparison toggle.
The table is dynamically updated and features color-coded entries that correspond to their respective performance lines in the comparison chart. The watchlist serves as both an information display and a control panel for the comparison feature.
Performance Comparison
One of the script's most innovative features is its performance comparison panel.
Using polylines for smooth visualization, it tracks the 30-day performance of selected symbols relative to a 0% baseline.
The comparison chart includes a sophisticated grid system with 5% intervals and a dynamic legend showing current performance values.
The polyline implementation allows for fluid, continuous lines that accurately represent price movements, providing a more refined visual experience than traditional line plots. Like the pie charts, the comparison panel only displays performance lines for symbols that have been selected in the watchlist, allowing users to focus on their specific assets of interest.
█ TECHNICAL IMPLEMENTATION
The script utilizes several advanced PineScript features:
Dynamic array management for symbol tracking
Polyline-based charting for smooth performance visualization
Real-time data processing with security calls
Interactive tooltips and labels
Optimized drawing routines to maintain performance
Selective visualization based on user choices
█ CUSTOMIZATION
Users can personalize almost every aspect of the script:
Symbol selection and comparison preferences
Visual theme selection with four distinct color schemes
Pie chart dimensions and positioning
Tooltip information density
Component visibility toggles
█ LIMITATIONS
The primary limitation stems from PineScript's 500-line restriction per script.
This constraint necessitated the implementation of a mode-switching system between pie charts and the comparison panel, as displaying both simultaneously would exceed the line limit. Additionally, the script relies on manual chart scale adjustments, as PineScript doesn't provide direct control over chart scaling when overlay=false is enabled.
However, these limitations led to a more focused and efficient design approach that gives users control over their viewing experience.
█ CONCLUSION
All those tools exist in the native TradingView watchlist interface and they're better than what I just did.
However, now it exists in Pinescript... so I believe it's a win lol :)
Heikin Ashi Buy-Sell Signals [Non-Repainting] @TradingadeThis is a basic indicator that displays Heikin Ashi candles in a simple format. Key features include:
- Unlike most other Heikin Ashi indicators, this one does not repaint, which is crucial when building strategies based on indicators.
- It generates Buy & Sell signals based on consecutive candles of the same color:
BUY Signal: Triggered when there are at least x green candles in a row (adjustable in settings).
SELL Signal: Triggered when there are at least x red candles in a row (also adjustable in settings).
Multiple Signal Option: If activated, the indicator will continue generating signals after the buy or sell condition is met, until a candle of the opposite color appears.
The Buy & Sell signals are shown both in the indicator and on your chart. You can turn them on or off in the style section.
You can set alerts when buy or sell signals are generated.