Opening Price Indicator based on Ave Range added & subtractedSPX Opening Price Indicator based on Ave Range added & subtractor
Candlestick analysis
OHLC Crossover StrategyThe provided script is a TradingView Pine Script strategy that implements a simple OHLC (Open, High, Low, Close) Crossover System using a moving average.
52-Week High/Low Breakout Strategy52-Week High/Low Breakout Strategy
52-Week High/Low Breakout Strategy
52-Week High/Low Breakout Strategy
52-Week High/Low Breakout Strategy
ANIT Combined MA, MACD, and RSIThis custom TradingView script combines three essential technical indicators into a single, convenient overlay for streamlined chart analysis. It integrates 20-, 50-, and 200-period Moving Averages, the MACD (Moving Average Convergence Divergence), and the RSI (Relative Strength Index), each serving different purposes:
[ AlgoChart ] - Compare MarketIndicator Description:
This indicator allows you to display a second asset, selectable from the input panel, in a separate window. Plotted on the same time scale as the first asset but with a distinct price scale, the indicator enables analysis of the relationships and relative movements of two financial instruments. It’s an ideal tool for understanding whether two assets move in a correlated or divergent manner.
Key Features:
Multi-Asset Comparison: Display two assets simultaneously to compare their trends.
Custom Scale: Each asset uses its own price scale, making comparative analysis easier.
Intuitive Interface: Easily select the second asset through the input panel.
Operational Applications:
Spread Trading: Identify optimal moments to execute spread trades when two highly correlated instruments move in opposite directions.
Supply & Demand: Pinpoint zones of interest on both assets, increasing the validity of support and resistance areas.
Exposure Reduction: Monitor instruments that move similarly to avoid exposing the portfolio in identical directions, thereby reducing the risk of double losses.
Additional Features:
Candle Color Change: When a directional divergence occurs between the two assets, the candles change color to highlight the event.
Customizable Notifications: Receive instant alerts when a divergence occurs, allowing you to act promptly.
Simple ATR with Current PriceシンプルATRと現在価格インジケーター
このインジケーターは、平均真の範囲(ATR: Average True Range)と現在価格を組み合わせ、直感的でシンプルな形で表示します。トレーダーが市場のボラティリティを素早く評価し、現在価格を視覚的に把握できるよう設計されています。
特徴
ATRの可視化:
ATRの値を黄色のラインとして表示。
小数点以下を切り捨て、シンプルに整数値で表現。
ATR値は白いラベルで表示され、チャート上で簡単に確認可能。
現在価格の表示:
現在価格を示す青色の点線をチャート上に描画。
青いラベルに現在価格を表示し、明確に視覚化。
インジケーターの使いやすさ:
シンプルな設計で、初心者から経験豊富なトレーダーまで幅広く利用可能。
ボラティリティの確認と価格アクションの把握を同時に行える。
活用方法
ボラティリティの確認: ATRの値を使用して、相場の変動幅を把握し、リスク管理やトレード戦略の判断材料として利用できます。
価格アクションの追跡: 現在価格を水平線で表示することで、サポート・レジスタンスラインやエントリーポイントとの比較が容易になります。
daily poc"The Point of Control (POC) indicator displays the price level with the highest trading volume from the previous trading day. It identifies the price range with the most market activity, visualizing it as a horizontal line on the chart. Traders can use the POC to spot key support and resistance levels, gaining insight into market balance and price acceptance. Especially valuable for day traders focusing on short-term volume profiles and price action."
PCHU HOLO - Current Session High/Low Opening Price Indicatorplots the highest and lowest opening price within the current trading day
DMI Directional Movement Index (VictorCalil)DMI Directional Movement Index (VictorCalil)
2024-Nov-12
Victor Calil BH/MG/BR
4 Moving Averages (EMA)This script displays four customizable Exponential Moving Averages (EMAs) to assist in trend analysis across various markets. The indicator allows you to easily adjust the periods for each EMA and visualize them directly on the chart.
Features:
- 4 customizable EMAs with default periods set to 9, 20, 50, and 200.
- Each EMA is color-coded for easy identification:
EMA 9 (gray)
EMA 20 (fuchsia)
EMA 50 (red)
EMA 200 (aqua)
- Ideal for identifying short, medium, and long-term trends.
- Applicable to any market: Forex, stocks, cryptocurrencies, commodities, etc.
How to Use:
- Add this indicator to your chart to visualize the EMAs.
- Adjust the periods to fit your trading strategy.
- Use the EMAs to identify trends, crossovers, and potential entry/exit points.
This script is perfect for traders looking for a quick analysis of market trends using multiple EMAs.
RSI Relative Strength Index (VictorCalilv01)RSI Relative Strength Index (VictorCalilv01)
2024-Nov-12
Victor Calil BH/MG/BR
Previous Day High and Low Count with Probabilities
Indicator Explanation
This indicator displays the number of days on which the previous day's high or low prices were not reached and calculates probabilities for future price movements based on this information. It stores the high and low values of the last 45 days and checks daily whether these levels were touched. Based on the number of days without touching either the high or the low, the indicator calculates the probability of future price movements in either direction (Up or Down).
The indicator offers customization options for label placement and color on the chart. The counts for the high and low touches, along with the calculated probabilities (in percentages), are displayed as labels on the chart. These labels can be shifted along the X-axis by up to 50 bars and can be customized in color and size. Additionally, the text for the labels can be freely chosen, giving the user improved flexibility and overview.
In summary, this indicator helps to:
- Track how often previous day's high and low levels were not reached.
- Estimate probabilities for future price movements based on this information.
- Customize the chart display for easier interpretation.
Strategy Concept
Probability and Touch Conditions:
A long position is entered only if:
The probability of reaching the high is at least 60%.
The price has not touched the previous day’s high in the last three days.
Similarly, for short positions:
The probability of reaching the low is at least 60%.
The price has not touched the previous day’s low in the last three days.
Incremental Position Size Increase:
On the 3rd consecutive day without a high/low touch and with the probability condition met, an initial position of 0.01 lots is opened.
On the 4th day, an additional position of 0.01 lots is added.
On the 5th day, an extra position of 0.02 lots is opened.
After a two-day pause, the situation is re-evaluated, and if conditions are still met, a 0.04-lot position is considered.
Trend Reversal Detection:
The strategy also includes a simple trend reversal check. If the market shows clear reversal signals, no new positions will be opened.
Adjustments and Risk Management
This strategy can be adjusted by modifying the probability values, the number of days without a high/low touch, and the lot sizes. Additionally, stop-loss and take-profit levels can be added to further control the risk and secure profits.
Strategy Concept
Probability and Touch Conditions:
A long position is entered only if:
The probability of reaching the high is at least 60%.
The price has not touched the previous day’s high in the last three days.
Similarly, for short positions:
The probability of reaching the low is at least 60%.
The price has not touched the previous day’s low in the last three days.
Incremental Position Size Increase:
On the 3rd consecutive day without a high/low touch and with the probability condition met, an initial position of 0.01 lots is opened.
On the 4th day, an additional position of 0.01 lots is added.
On the 5th day, an extra position of 0.02 lots is opened.
After a two-day pause, the situation is re-evaluated, and if conditions are still met, a 0.04-lot position is considered.
Trend Reversal Detection:
The strategy also includes a simple trend reversal check. If the market shows clear reversal signals, no new positions will be opened.
Risk Disclaimer
The author of this strategy does not assume any liability for potential losses or gains that may arise from the use of this strategy. Trading involves significant risk, and it is important to only trade with capital that you can afford to lose. The strategy presented is for educational purposes only and should not be considered as financial advice. Always conduct your own research and consider seeking advice from a professional financial advisor before making any trading decisions.
Auto Price Revisit Alert - Last Lower Low and Higher HighThis script is useful for traders who want to monitor and be alerted when the price revisits significant levels, such as the most recent lower low or higher high, with a customizable lookback period. It also ensures that alerts are not triggered too frequently by enforcing a minimum time interval between them.
Customizable Multi-Timeframe Doji with Ray and Editable LabelScript Overview
Script Name: Customizable Multi-Timeframe Doji Candle Levels with Ray and Editable Label
Purpose: This script helps traders identify significant price levels based on high timeframe Doji candles, allowing them to visualize key areas of support, resistance, entry, and exit. By plotting real-time Doji levels from higher timeframes directly on the current chart, traders can easily spot areas where market indecision or potential trend reversals have previously occurred, making these levels highly relevant for future price action.
How the Script Works
This script detects Doji candles on a selected higher timeframe (e.g., daily, weekly, monthly) and plots a ray at the Doji’s closing level on the current chart. The Doji candle formation, characterized by an open and close that are very close or equal, is often an indicator of market indecision. By identifying these Doji levels from high timeframes, the script provides traders with insight into where strong support and resistance zones may form.
The script continuously monitors and updates the Doji level based on the selected timeframe, ensuring that only the latest detected Doji candle is displayed on the chart, helping traders avoid clutter and focus on the most recent data.
Core Components and Calculations
1 Doji Detection Logic:
-The script calculates the Doji candle formation based on a small body percentage (defined by the C_DojiBodyPercent parameter) and relative symmetry in upper and lower shadows (defined by C_ShadowPercent and C_ShadowEqualsPercent).
-A Doji is considered valid when the open and close prices are nearly equal, and the shadows are symmetric within the defined parameters, indicating indecision.
2 Multi-Timeframe Data Retrieval:
-Using the request.security() function, the script fetches open, high, low, and close prices from the specified higher timeframe. It applies Doji detection logic to this higher timeframe data.
-barmerge.lookahead_on and barmerge.gaps_on ensure real-time updates, so the Doji level is immediately reflected on the chart when detected.
3 Ray and Label Plotting:
-When a Doji candle is detected on the selected timeframe, the script plots a ray at the Doji's close price, extending forward on the chart.
-Customizable options for the ray, including color, width, and style (solid, dotted, or dashed), help traders visually differentiate the Doji levels from other chart elements.
-An editable label can be positioned alongside the ray to denote the Doji level, with customizable text, color, background, and size to provide additional context.
4 Automatic Line and Label Management:
-The script dynamically deletes any previous ray and label when a new Doji is detected. This approach minimizes chart clutter and ensures that only the most recent Doji level from the higher timeframe is displayed.
Customization Options
1 Timeframe Selection:
Users can choose any timeframe (e.g., hourly, daily, weekly, monthly) to display Doji levels based on their specific trading strategy.
2 Ray and Label Appearance:
Ray: Customize color, width, and line style (solid, dotted, dashed) for better visibility and integration with the chart’s theme.
Label: Customize the label text, background color, text color, text size, and position (above, below, left, or right of the ray) for a personalized view.
How to Use This Script
1 Select the Target Timeframe for Doji Detection: Choose a high timeframe (such as daily or weekly) to view Doji-based support/resistance levels.
2 Set Custom Ray and Label Parameters : Adjust the visual aspects of the ray and label to align with your chart setup and make the Doji level stand out.
3 Interpretation of Doji Levels: Use the plotted Doji levels as potential support or resistance zones. Since Doji candles reflect market indecision, they often precede significant price reversals or strong continuation moves. By analyzing these levels, traders can:
- Identify key support/resistance zones based on historical market indecision.
- Set entry and exit levels around these zones to capitalize on potential reversals or
continuations.
-Spot confluence areas where the Doji level aligns with other indicators or technical patterns.
Recommended Chart Setup
For optimal clarity, use this script on a clean chart, free from overlapping indicators. This script is designed to work independently, so avoid layering multiple support/resistance scripts unless essential to avoid clutter. A clean chart helps ensure that Doji levels are readily visible, enabling a clear focus on significant levels relevant to your trading strategy.
JTh33s High/Low AlertMarks out highs and lows of the day, with a red and green trend line. Super easy for anyone to keep track of just how close the market is from the highs and lows of the day! Best One SHMOKING!!!!!
FX Market Sessions PAS v2This is Mozilla Public's FX Market Sessions with the addition of Trading View Location timezones, rather than using GMT offsets. So will take into account Daylight savings of each timezone.
Magnitudine [Gate Financial]Magnitudine
Este indicador calcula e exibe a média do tamanho dos últimos X candles, permitindo que traders visualizem a "magnitude" média das variações de preço em um período configurável. Essa análise fornece insights sobre a volatilidade e o comportamento recente do ativo.
Funcionalidades:
Cálculo da Magnitude dos Candles: Mede o tamanho de cada candle com base na diferença entre a alta e a baixa, refletindo a amplitude de movimento.
Média dos Últimos X Candles: O usuário pode definir o número de candles anteriores a serem considerados no cálculo, ajustando o indicador para períodos mais curtos ou mais longos de volatilidade.
Visualização no Gráfico: A média do tamanho dos candles é plotada como uma linha contínua, proporcionando uma referência clara para a análise de movimentos passados e ajudando a identificar mudanças na volatilidade ao longo do tempo.
Aplicação:
Este indicador é ideal para traders que desejam monitorar a volatilidade de um ativo, adaptando suas estratégias a momentos de maior ou menor magnitude de movimento. A flexibilidade de ajuste do período permite que ele seja útil tanto para curto prazo quanto para análise de tendências mais longas.
Nota: Este script é fornecido pela Gate Financial sob os termos da Mozilla Public License 2.0.
EMA 42-200//@version=5
indicator(title="EMA 42-200", overlay=true)
key_level = input(defval = 1.0)
type = input.string(title = "Choose your option", options = , defval = "Buy")
longer = ta.ema(close, 42)
longest = ta.ema(close, 200)
p1 = plot(longer, color = color.red)
p2 = plot(longest, color = color.yellow)
p3 = request.security(syminfo.tickerid, "720", ta.rma(ta.tr(true), 14)), title = "ATR 720", color=color.new(#B71C1C, 0)
fill(p1, p2, color = longer - longest > p3 ? color.rgb(76, 175, 79, 50) : color.rgb(0, 0, 0, 100))
fill(p1, p2, color = (longer - longest < -p3 and longest > longer) ? color.rgb(255, 82, 82, 50) : color.rgb(0, 0, 0, 100))
plotshape(open > close and open > key_level and low <= key_level and longer - longest > p3 and type == "Buy", "Buy Trend Label", shape.triangleup, location.belowbar, color = color.green, text = "BUY Trend", textcolor = color.green, size = size.small)
plotshape(open < close and open < key_level and high >= key_level and (longer - longest < -p3 and longest > longer) and type == "Sell", "Sell Trend Label", shape.triangledown, location.abovebar, color = color.red, text = "SELL Trend", textcolor = color.red, size = size.small)
plotshape(open > key_level and low <= key_level and longest - key_level > 2 * p3 and type == "Buy" and (longer - longest < -p3 and longest > longer), "Buy Counter Label", shape.triangleup, location.belowbar, color = color.green, text = "BUY Counter", textcolor = color.green, size = size.small)
plotshape(open < key_level and high >= key_level and key_level - longest > 2 * p3 and type == "Sell" and longer - longest > p3, "Sell Counter Label", shape.triangledown, location.abovebar, color = color.red, text = "SELL Counter", textcolor = color.red, size = size.small)
plotshape(open > key_level and low <= key_level and longest - key_level > 2 * p3 and type == "Buy" and (longer - longest < p3 and longer - longest > -p3), "Buy Range Label", shape.triangleup, location.belowbar, color = color.green, text = "BUY Range", textcolor = color.green, size = size.small)
plotshape(open < key_level and high >= key_level and key_level - longest > 2 * p3 and type == "Sell" and (longer - longest < p3 and longer - longest > -p3), "Sell Range Label", shape.triangledown, location.abovebar, color = color.red, text = "SELL Range", textcolor = color.red, size = size.small)
Pala-Spade-Gravestone-Dragonfly Doji and Marubozu DetectorEnglish Explanation
This Pine Script code implements an indicator called "Pala-Spade-Gravestone-Dragonfly Doji and Marubozu Detector," designed to identify specific candlestick patterns, including Doji variations (Doji Star Up, Doji Star Down, Gravestone, and Dragonfly) as well as Marubozu patterns (Bullish and Bearish) on a chart. When these patterns appear, the indicator displays visual markers on the chart and can trigger alerts based on the detection.
Key Components:
1. Indicator Setup: The indicator's name is defined, specifying that it overlays the chart.
2. Input Variables:
- **EMA Period**: Allows customization of the EMA period for trend analysis.
- **Low/High Ratio & Body Ratio Size**: Configure ratios for pattern detection by defining the allowed body and tail size ratios.
- **Marubozu Body Height**: Sets a minimum body height for Marubozu patterns.
3. Pattern Detection Functions:
- **Doji Patterns**: Detects Doji Star Up, Doji Star Down, Gravestone, and Dragonfly patterns based on open/close proximity, tail length, and comparison to EMA.
- **Marubozu Patterns**: Identifies Bullish and Bearish Marubozu candles based on full-body and height requirements.
4. Visual Indicators and Alerts:
- Adds visual markers for each pattern (green and red triangles for Doji patterns; green and red backgrounds for Marubozu patterns).
- Generates alerts when any of the specified patterns are detected, notifying traders to pay attention to potential price reversals or continuations.
Türkçe Açıklama
Bu Pine Script kodu, grafikte belirli mum çubuğu formasyonlarını - Doji varyasyonları (Doji Yıldızı Yukarı, Doji Yıldızı Aşağı, Mezartaşı, Yusufcuk) ve Marubozu formasyonlarını (Boğa ve Ayı) - tespit etmek için tasarlanmış "Pala-Mezartaşı-Yusufcuk Doji ve Marubozu Tespit Edici" adlı bir göstergeyi uygular. Bu formasyonlar meydana geldiğinde gösterge grafikte görsel işaretler sağlar ve tespit edildiğinde uyarılar oluşturabilir.
Ana Bileşenler:
1. Gösterge Kurulumu: Gösterge adı tanımlanır ve grafikte yer alacağı belirtilir.
2. Girdi Değişkenleri:
- **EMA Periyodu**: Trend analizine göre EMA periyodunu özelleştirmeye izin verir.
- **Düşük/Yüksek Oranı & Gövde Oranı Boyutu**: Gövde ve kuyruk oranları tanımlanarak formasyon tespiti için oranlar ayarlanabilir.
- **Marubozu Gövdesi Yüksekliği**: Marubozu formasyonları için minimum gövde yüksekliğini belirler.
3. Formasyon Tespit Fonksiyonları:
- **Doji Formasyonları**: Doji Yıldızı Yukarı, Doji Yıldızı Aşağı, Mezartaşı ve Yusufcuk formasyonlarını açık/kapanış yakınlığı, kuyruk uzunluğu ve EMA'ya göre tespit eder.
- **Marubozu Formasyonları**: Tam gövde ve yükseklik gereksinimlerine göre Boğa ve Ayı Marubozu mumlarını tespit eder.
4. Görsel Göstergeler ve Uyarılar:
- Her formasyon için görsel işaretler ekler (Doji formasyonları için yeşil ve kırmızı üçgenler; Marubozu formasyonları için yeşil ve kırmızı arka plan renkleri).
- Belirtilen formasyonlardan herhangi biri tespit edildiğinde uyarılar oluşturur, böylece yatırımcılar potansiyel fiyat dönüşleri veya devamlarına dikkat edebilir.