ST+SQZMOM v.3ST+SQZMOM v.3 Indicator
inspired by Supertrend and SQZMOM of LazyBear
Purpose: This script is designed to help traders identify market trends and potential trading opportunities using two key indicators: Supertrend and Squeeze Momentum Indicator (SQZMOM).
---
Key Features:
1. Supertrend Indicator:
- Trend Detection: Shows whether the market is in an uptrend or downtrend.
- Dynamic Levels: Uses Average True Range (ATR) to set support and resistance levels.
2. Squeeze Momentum Indicator (SQZMOM):
- Volatility Measurement: Identifies periods of low volatility (squeeze) and potential breakout points.
- Bollinger Bands & Keltner Channels: Combines these two tools to assess market conditions.
3. Custom Alerts:
- Trend Change Alerts: Notifies you when the trend changes.
- Squeeze Alerts: Alerts you when the market is entering or exiting a squeeze.
4. Customizable Settings:
- Adjust parameters like ATR length, Bollinger Bands length, and moving average periods to fit your trading style.
---
How It Works:
1. Calculate Trend:
- The script calculates the Supertrend to determine if the market is trending up or down.
2. Identify Squeeze:
- It checks if the market is in a squeeze (low volatility) or has released from a squeeze (high volatility).
3. Set Targets and Stop Loss:
- Based on the trend and squeeze conditions, it calculates entry points, target levels, and stop loss levels for trades.
4. Visual Indicators:
- Plots the Supertrend line, Bollinger Bands, Keltner Channels, and shapes to indicate market conditions (e.g., squeeze on/off, trend changes).
5. Trigger Alerts:
- Sends alerts when specific conditions are met, such as a squeeze release or trend change.
---
Conclusion
The ST+SQZMOM v.3 Indicator is a powerful tool for traders looking to analyze market trends and volatility. By combining the Supertrend and Squeeze Momentum indicators, it provides a comprehensive view of market conditions, helping you make informed trading decisions.
Indikatoren und Strategien
Adaptive Volatility-Scaled Oscillator [AVSO] (Zeiierman)█ Overview
The Adaptive Volatility-Scaled Oscillator (AVSO) is a dynamic trading indicator that measures and visualizes volatility-adjusted market behavior. By scaling various metrics (such as volume, price changes, standard deviation, ATR, and Yang-Zhang volatility) and applying adaptive smoothing, AVSO helps traders identify market conditions where volatility deviates significantly from the norm.
This indicator uses standardized scaling (Z-Score logic) to highlight periods of abnormally high or low volatility relative to recent history. With gradient coloring and clear volatility zones, AVSO provides a visually intuitive way to analyze market volatility and adapt trading strategies accordingly.
█ How It Works
⚪ Scaling Metrics: The indicator scales user-selected metrics (e.g., volume, ATR, standard deviation) relative to the market and price, providing a standardized volatility measure.
⚪ Z-Score Standardization: The scaled metric is normalized using a Z-Score to measure how far current volatility deviates from its recent mean.
Positive Z-Score: Above-average volatility.
Negative Z-Score: Below-average volatility.
⚪ Adaptive Smoothing: An Adaptive EMA smooths the Z-Score, dynamically adjusting its length based on the strength of the volatility. Stronger deviations result in shorter smoothing, increasing responsiveness.
█ Unique Feature: Yang-Zhang Volatility
The Yang-Zhang volatility estimator sets this indicator apart by providing a more robust and accurate measure of volatility compared to traditional methods like ATR or standard deviation.
⚪ What Makes Yang-Zhang Volatility Unique?
Comprehensive Calculation: It combines overnight price gaps (log returns from the previous close to the current open) and intraday price movements (high, low, and close).
Accurate for Gapped Markets: Traditional volatility measures can misrepresent price movement when significant gaps occur between sessions. Yang-Zhang accounts for these gaps, making it highly reliable for assets prone to overnight price jumps, such as stocks, cryptocurrencies, and futures.
Adaptable to Real Market Conditions : By including both close-to-open returns and intraday volatility, it provides a balanced and adaptive measure that captures the full volatility picture.
⚪ Why This Matters to Traders
Better Volatility Insights: Yang-Zhang offers a clearer view of true market volatility, especially in markets with price gaps or uneven trading sessions.
Improved Trade Timing: By identifying volatility spikes and calm periods more effectively, traders can time their entries and exits with greater confidence.
█ How to Use
Identify High and Low Volatility
A high Z-Score (>2) indicates significant market volatility. This can signal momentum-driven moves, breakouts, or areas of increased risk.
A low Z-Score (<-2) suggests low volatility or a calm market environment. This often occurs before a potential breakout or reversal.
Trade Signals
High Volatility Zones (background highlight): Monitor for potential breakouts, trend continuations, or reversals.
Low Volatility Zones: Anticipate range-bound conditions or upcoming volatility spikes.
█ Settings
Source: Select the price source for scaling calculations (close, high, low, open).
Metric Measure: Choose the volatility measure:
Volume: Scales raw volume.
Close: Uses closing price changes.
Standard Deviation: Price dispersion.
ATR: Average True Range.
Yang: Yang-Zhang volatility estimate.
Bars to Analyze: Number of historical bars used to calculate the mean and standard deviation of the scaled metric.
ATR / Standard Deviation Period: Lookback period for ATR or Standard Deviation calculation.
Yang Volatility Period: Period for the Yang-Zhang volatility estimator.
Smoothing Period: Base smoothing length for the adaptive smoothing line.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
[EmreKb] Dynamic Factor SupertrendThe Dynamic Factor Supertrend is an innovative variation of the classic Supertrend indicator, designed to provide traders with more accurate trend signals while reducing the impact of false breakouts. Unlike the traditional Supertrend, which relies on a fixed multiplier (Factor) applied to the Average True Range (ATR), this enhanced version introduces a dynamic adjustment mechanism based on price movements relative to the Supertrend line.
This indicator works by assessing the distance between the price and the Supertrend line. When the price moves significantly beyond the typical ATR × Factor distance, the remaining gap is recalculated using a Dynamic Factor. This additional scaling adjusts the base factor, effectively modifying the Supertrend line to better reflect current market conditions. This process ensures that the trend line adapts dynamically to changes in price behavior, reducing noise and improving signal reliability in volatile markets.
One of the key advantages of the Dynamic Factor Supertrend is its ability to minimize false trend reversals. By incorporating the Dynamic Factor adjustment, the indicator becomes more resilient to minor price fluctuations that could otherwise trigger incorrect signals. This makes it particularly effective in markets where volatility is high, or during periods of choppy price action, where traditional Supertrend indicators often struggle to maintain accuracy.
Traders can use the Dynamic Factor Supertrend to identify clear trend directions, with uptrends signaled when the price is above the trend line and downtrends when it is below. The Dynamic Factor parameter can be fine-tuned to match individual trading styles, offering greater flexibility. A lower value makes the trend line more responsive to price changes, while a higher value provides more stability by reducing the frequency of adjustments.
In summary, the Dynamic Factor Supertrend is an advanced trend-following tool that combines the foundational concepts of the Supertrend with a novel dynamic adjustment mechanism. It offers traders a more reliable way to navigate complex market conditions, making it a valuable addition to any trading strategy. This indicator is particularly well-suited for those seeking to reduce false signals and enhance the accuracy of their trend analysis in all market environments.
Fibonacci Time-Price Zones🟩 Fibonacci Time-Price Zones is a chart visualization tool that combines Fibonacci ratios with time-based and price-based geometry to analyze market behavior. Unlike typical Fibonacci indicators that focus solely on horizontal price levels, this indicator incorporates time into the analysis, providing a more dynamic perspective on price action.
The indicator offers multiple ways to visualize Fibonacci relationships. Drawing segmented circles creates a unique perspective on price action by incorporating time into the analysis. These segmented circles, similar to TradingView's built-in Fibonacci Circles, are derived from Fibonacci time and price levels, allowing traders to identify potential turning points based on the dynamic interaction between price and time.
As another distinct visualization method, the indicator incorporates orthogonal patterns, created by the intersection of horizontal and vertical Fibonacci levels. These intersections form L-shaped connections on the chart, derived from key Fibonacci price and time intervals, highlighting potential areas of support or resistance at specific points in time.
In addition to these geometric approaches, another option is sloped lines, which project Fibonacci levels that account for both time and price along the trendline. These projections derive their angles from the interplay between Fibonacci price levels and Fibonacci time intervals, creating dynamic zones on the chart. The slope of these lines reflects the direction and angle of the trend, providing a visual representation of price alignment with market direction, while maintaining the time-price relationship unique to this indicator
The indicator also includes horizontal Fibonacci levels similar to traditional retracement and extension tools. However, unlike standard tools, traders can display retracement levels, extension levels, or both simultaneously from a single instance of the indicator. These horizontal levels maintain consistency with the chosen visualization method, automatically scaling and adapting whether used with circles, orthogonal patterns, or slope-based analysis.
By combining these distinct methods—circles, orthogonal patterns, sloped projections, and horizontal levels—the indicator provides a comprehensive approach to Fibonacci analysis based on both time and price relationships. Each visualization method offers a unique perspective on market structure while maintaining the core principle of time-price interaction.
⭕ THEORY AND CONCEPT ⭕
While traditional Fibonacci tools excel at identifying potential support and resistance levels through price-based ratios (0.236, 0.382, 0.618), they do not incorporate the dimension of time in market analysis. Extensions and retracements effectively measure price relationships within trends, yet markets move through both price and time dimensions simultaneously.
Fibonacci circles represent an evolution in technical analysis by incorporating time intervals alongside price levels. Based on the mathematical principle that markets often move in circular patterns proportional to Fibonacci ratios, these circles project potential support and resistance zones as partial circles radiating from significant price points. However, traditional circle-based tools can create visual complexity that obscures key market relationships. The integration of time into Fibonacci analysis reveals how price movements often respect both temporal and price-based ratios, suggesting a deeper geometric structure to market behavior.
The Fibonacci Time-Price Zones indicator advances these concepts by providing multiple geometric approaches to visualize time-price relationships. Each shape option—circles, orthogonal patterns, slopes, and horizontal levels—represents a different mathematical perspective on how Fibonacci ratios manifest across both dimensions. This multi-faceted approach allows traders to observe how price responds to Fibonacci-based zones that account for both time and price movements, potentially revealing market structure that purely price-based tools might miss.
Shape Options
The indicator employs four distinct geometric approaches to analyze Fibonacci relationships across time and price dimensions:
Circular : Represents the cyclical nature of market movements through partial circles, where each radius is scaled by Fibonacci ratios incorporating both time and price components. This geometry suggests market movements may follow proportional circular paths from significant pivot points, reflecting the harmonic relationship between time and price.
Orthogonal : Constructs L-shaped patterns that separate the time and price components of Fibonacci relationships. The horizontal component represents price levels, while the vertical component measures time intervals, allowing analysis of how these dimensions interact independently at key market points.
Sloped : Projects Fibonacci levels along the prevailing trend, incorporating both time and price in the angle of projection. This approach suggests that support and resistance levels may maintain their relationship to price while adjusting to the temporal flow of the market.
Horizontal : Provides traditional static Fibonacci levels that serve as a reference point for comparing price-only analysis with the dynamic time-price relationships shown in the other three shapes. This baseline approach allows traders to evaluate how the incorporation of time dimension enhances or modifies traditional Fibonacci analysis.
By combining these geometric approaches, the Fibonacci Time-Price Zones indicator creates a comprehensive analytical framework that bridges traditional and advanced Fibonacci analysis. The horizontal levels serve as familiar reference points, while the dynamic elements—circular, orthogonal, and sloped projections—reveal how price action responds to temporal relationships. This multi-dimensional approach enables traders to study market structure through various geometric lenses, providing deeper insights into time-price symmetry within technical analysis. Whether applied to retracements, extensions, or trend analysis, the indicator offers a structured methodology for understanding how markets move through both price and time dimensions.
🛠️ CONFIGURATION AND SETTINGS 🛠️
The Fibonacci Time-Price Zones indicator offers a range of configurable settings to tailor its functionality and visual representation to your specific analysis needs. These options allow you to customize zone visibility, structures, horizontal lines, and other features.
Important Note: The indicator's calculations are anchored to user-defined start and end points on the chart. When switching between charts with significantly different price scales (e.g., from Bitcoin at $100,000 to Silver at $30), adjustment of these anchor points is required to ensure correct positioning of the Fibonacci elements.
Fibonacci Levels
The indicator allows users to customize Fibonacci levels for both retracement and extension analysis. Each level can be individually configured with the following options:
Visibility : Toggle the visibility of each level to focus on specific areas of interest.
Level Value : Set the Fibonacci ratio for the level, such as 0.618 or 1.000, to align with your analysis needs.
Color : Customize the color of each level for better visual clarity.
Line Thickness : Adjust the line thickness to emphasize critical levels or maintain a cleaner chart.
Setup
Zone Type : Select which Fibonacci zones to display:
- Retracement : Shows potential pull back levels within the trend
- Extension : Projects levels beyond the trend for potential continuation targets
- Both : Displays both retracement and extension zones simultaneously
Shape : Choose from four visualization methods:
- Circular : Time-price based semicircles centered on point B
- Orthogonal : L-shaped patterns combining time and price levels
- Sloped : Trend-aligned projections of Fibonacci levels
- Horizontal : Traditional horizontal Fibonacci levels
Visual Settings
Fill % : Adjusts the fill intensity of zones:
0% : No fill between levels
100% : Maximum fill between levels
Lines :
Trendline : The base A-B trend with customizable color
Extension : B-C projection line
Retracement : B-D pullback line
Labels :
Points : Show/hide A, B, C, D markers
Levels : Show/hide Fibonacci percentages
Time-Price Points
Set the time and price for the points that define the Fibonacci zones and horizontal levels. These points are defined upon loading the chart. These points can be configured directly in the settings or adjusted interactively on the live chart.
A and B Points : These user-defined time and price points determine the basis for calculating the semicircles and Fibonacci levels. While the settings panel displays their exact values for fine-tuning, the easiest way to modify these points is by dragging them directly on the chart for quick adjustments.
Interactive Adjustments : Any changes made to the points on the chart will automatically synchronize with the settings panel, ensuring consistency and precision.
🖼️ CHART EXAMPLES 🖼️
Fibonacci Time-Price Zones using the 'Circular' Shape option. Note the price interaction at the 0.786 level, which acts as a support zone. Additional points of interest include resistance near the 0.618 level and consolidation around the 0.5 level, highlighting the utility of both horizontal and semicircular Fibonacci projections in identifying key price areas.
Fibonacci Time-Price Zones using the 'Sloped' Shape option. The chart displays price retracing along the sloped Fibonacci levels, with blue arrows highlighting potential support zones at 0.618 and 0.786, and a red arrow indicating potential resistance at the 1.0 level. This visual representation aligns with the prevailing downtrend, suggesting potential selling pressure at the 1.0 Fibonacci level.
Fibonacci Time-Price Zones using the 'Orthogonal' Shape option. The chart demonstrates price action interacting with vertical zones created by the orthogonal lines at the 0.618, 0.786, and 1.0 Fibonacci levels. Blue arrows highlight potential support areas, while red arrows indicate potential resistance areas, revealing how the orthogonal lines can identify distinct points of price interaction.
Fibonacci Time-Price Zones using the 'Circular' Shape option. The chart displays price action in relation to segmented circles emanating from the starting point (point A). The circles represent different Fibonacci ratios (0.382, 0.5, 0.618, 0.786) and their intersections with the price axis create potential zones of support and resistance. This approach offers a visually distinct way to analyze potential turning points based on both price and time.
Fibonacci Time-Price Zones using the 'Sloped' Shape option. The sloped Fibonacci levels (0.786, 0.618, 0.5) create zones of potential support and resistance, with price finding clear interaction within these areas. The ellipses highlight this price action, particularly the support between 0.786 and 0.618, which aligns closely with the trend.
Fibonacci Time-Price Zones using the 'Circular' Shape option. The price action appears to be ‘hugging’ the 0.5 Fibonacci level, suggesting potential resistance. This demonstrates how the circular zones can identify potential turning points and areas of consolidation which might not be seen with linear analysis.
Fibonacci Time-Price Zones using the 'Sloped' Shape option with Point D marker enabled. The chart demonstrates clear price action closely following along the sloped Retracement line until the orthogonal intersection at the 0.618 levels where the trend is broken and price dips throughout the 0.618 to 0.786 horizontal zone. Price jumps back to the retracement slope at the start of the 0.786 horizontal zone and continues to the 1.0 horizontal zone. The aqua-colored retracement line is enabled to further emphasize this retracement slope .
Geometric validation using TradingView's built-in Fibonacci Circle tool (overlaid). The alignment at the 0.5 and 1.0 levels demonstrates the indicator's consistent approximation of Fibonacci Circles.
Comparison of Fibonacci Time-Price Zones (Shape: Horizontal) with TradingView's Built-in Retracement and Extension Tools (overlaid): This example demonstrates how the Horizontal structure aligns with TradingView’s retracement and extension levels, allowing users to integrate multiple tools seamlessly. The Fibonacci circle connects retracement and extension zones, highlighting the potential relationship between past retracements and future extensions.
📐 GEOMETRIC FOUNDATIONS 📐
This indicator integrates circular and straight representations of Fibonacci levels, specifically the Circular , Orthogonal , Sloped , and Horizontal shape options. The geometric principles behind these shapes differ significantly, requiring distinct scaling methods for accurate representation. The Circular shape employs logarithmic scaling with radial expansion, where the distance from a central point determines the level's position, creating partial circles that align with TradingView's built-in Fibonacci Circle tool. The other three shapes utilize geometric progression scaling for linear extension from a starting point, resulting in straight lines that align with TradingView's built-in Fibonacci retracement and extension tools. Due to these distinct geometric foundations and scaling methods, perfectly aligning both the partial circles and straight lines simultaneously is mathematically constrained, though any differences are typically visually imperceptible.
The Circular shape's partial circles are calculated and scaled to align with TradingView's built-in Fibonacci Circles. These circles are plotted from the second swing point onward. This approach ensures consistent and accurate visualization across all market types, including those with gaps or closed sessions, which unlike 24/7 markets, do not have a direct one-to-one correspondence between bar indices and time. To maintain accurate geometric proportions across varying chart scales, the indicator calculates an aspect ratio by normalizing the proportional difference between vertical (price) and horizontal (time) distances of the swing points. This normalization factor ensures geometric shapes maintain their mathematical properties regardless of price scale magnitude or time period span, while maintaining the correct proportions of the geometric constructions at any chart zoom level.
The indicator automatically applies the appropriate scaling factor based on the selected shape option, optimizing either circular proportions and proper radius calculations for each Fibonacci level, or straight-line relationships between Fibonacci levels. These distinct scaling approaches maintain mathematical integrity while preserving the essential characteristics of each geometric representation, ensuring optimal visualization accuracy whether using circular or linear shapes.
⚠️ DISCLAIMER ⚠️
The Fibonacci Time-Price Zones indicator is a visual analysis tool designed to illustrate Fibonacci relationships through geometric constructions incorporating both curved and straight lines, providing a structured framework for identifying potential areas of price interaction. It is not intended as a predictive or standalone trading signal indicator.
The indicator calculates levels and projections using user-defined anchor points and Fibonacci ratios. While it aims to align with TradingView’s Fibonacci extension, retracement, and circle tools by employing mathematical and geometric formulas, no guarantee is made that its calculations are identical to TradingView's proprietary methods.
Like all technical and visual indicators, these visual representations may visually align with key price zones in hindsight, reflecting observed price dynamics. However, these visualizations are not standalone signals for trading decisions and should be interpreted as part of a broader analytical approach.
This indicator is intended for educational and analytical purposes, complementing other tools and methods of market analysis. Users are encouraged to integrate it into a comprehensive trading strategy, customizing its settings to suit their specific needs and market conditions.
🧠 BEYOND THE CODE 🧠
The Fibonacci Time-Price Zones indicator is designed to encourage both education and community engagement. By integrating time-sensitive geometry with Fibonacci-based frameworks, it bridges traditional grid-based analysis with dynamic time-price relationships. The inclusion of semicircles, horizontal levels, orthogonal structures, and sloped trends provides users with versatile tools to explore the interaction between price movements and temporal intervals while maintaining clarity and adaptability.
As an open-source tool, the indicator invites exploration, experimentation, and customization. Whether used as a standalone resource or alongside other technical strategies, it serves as a practical and educational framework for understanding market structure and Fibonacci relationships in greater depth.
Your feedback and contributions are essential to refining and enhancing the Fibonacci Time-Price Zones indicator. We look forward to the creative applications, adaptations, and insights this tool inspires within the trading community.
Inside Bar Multi-Currency ScannerInside Bar Scanner
This indicator for TradingView scans up to 10 customizable assets across multiple, user-defined timeframes to detect Inside Bar patterns. It features two key columns: Ready and Cooking. The Ready column highlights when the previous candle has formed an Inside Bar, signaling traders to watch for potential entry triggers. The Cooking column actively monitors the current candle in progress to identify ongoing Inside Bar formations. The indicator allows full customization of asset lists and independent timeframe selection, making it a powerful tool for multi-timeframe analysis and enhancing trading precision.
STO//@version=6
indicator('Swing Trading & Opciones (RSI y VIX Dinámicos)', overlay = true)
// Entradas para colores personalizables con títulos específicos
color_rsi = input.color(color.blue, title = 'Color para Condición RSI < Umbral')
color_ema_both = input.color(color.lime, title = 'Color para EMAs Diarias y Semanales Positivas')
color_ema_weekly = input.color(color.green, title = 'Color para EMA Semanal Positiva')
color_default = input.color(color.red, title = 'Color para Tendencia Bajista')
// Calcular las EMAs del gráfico diario
ema20_daily = ta.ema(close, 20)
ema50_daily = ta.ema(close, 50)
ema200_daily = ta.ema(close, 200)
// Calcular las EMAs del gráfico semanal
ema10_weekly = request.security(syminfo.tickerid, 'W', ta.ema(close, 10))
ema20_weekly = request.security(syminfo.tickerid, 'W', ta.ema(close, 20))
// Calcular el RSI y sus umbrales dinámicos
rsi_length = 14
rsi_lookback = 252
rsi = ta.rsi(close, rsi_length)
rsi_mean = ta.sma(rsi, rsi_lookback)
rsi_stddev = ta.stdev(rsi, rsi_lookback)
rsi_oversold = rsi_mean - rsi_stddev
rsi_overbought = rsi_mean + rsi_stddev
rsi_status_dynamic = rsi < rsi_oversold ? 'Sobreventa' : rsi > rsi_overbought ? 'Sobrecompra' : 'Normal'
// Condición para pintar velas azul (sin usar umbral dinámico)
rsi_condition_static = rsi < 33
// Calcular el VIX y sus umbrales dinámicos
vix_symbol = 'CBOE:VIX'
vix_close = request.security(vix_symbol, 'D', close)
vix_lookback = 252
vix_mean = ta.sma(vix_close, vix_lookback)
vix_stddev = ta.stdev(vix_close, vix_lookback)
vix_low_threshold = vix_mean - vix_stddev
vix_high_threshold = vix_mean + vix_stddev
vix_status = vix_close < vix_low_threshold ? 'Bajo' : vix_close > vix_high_threshold ? 'Alto' : 'Normal'
// Marcar condición del VIX con un triángulo naranja bajo la vela
plotshape(vix_close > vix_high_threshold, style = shape.triangleup, color = color.orange, location = location.belowbar, title = 'VIX > Umbral')
// Calcular el ADX
adx_length = 14
adx_threshold = 25.0
= ta.dmi(adx_length, 14)
adx_status = adx_value > adx_threshold ? 'Tendencia Fuerte' : 'Sin Tendencia'
// Calcular el ATR de 14 días
atr = ta.atr(14)
atr_percentage = atr / close * 100 // ATR en porcentaje respecto al precio
// Calcular el Williams %R manualmente
length_williams = 14
high_williams = ta.highest(high, length_williams)
low_williams = ta.lowest(low, length_williams)
williams_r = (high_williams - close) / (high_williams - low_williams) * -100
williams_r_status = williams_r < -80 ? ' (Sobreventa)' : williams_r > -20 ? ' (Sobrecompra)' : ''
williams_r_color = williams_r < -80 ? color.green : williams_r > -20 ? color.red : color.white
// Determinar el color de las velas basado en prioridades
var color default_color = na
if rsi_condition_static
default_color := color_rsi // Prioridad 1: RSI estático
default_color
else if ema10_weekly <= ema20_weekly
default_color := color_default // Prioridad 2: EMAs semanales bajistas
default_color
else if ema20_daily > ema50_daily and ema10_weekly > ema20_weekly
default_color := color_ema_both // Prioridad 3: EMAs diarias y semanales positivas
default_color
else if ema10_weekly > ema20_weekly
default_color := color_ema_weekly // EMAs semanales positivas, pero diarias no cumplen
default_color
else
default_color := color_default // Caso predeterminado: rojo
default_color
// Cambiar el color de las velas
barcolor(default_color, title = 'Color de Velas Swing')
// Crear la tabla para mostrar los valores dinámicos
var table data_table = table.new(position.bottom_right, 2, 9, border_width = 1, frame_color = color.gray, frame_width = 1)
// Configurar la tabla (Encabezados y Valores)
if bar_index == 0 // Crear encabezados solo una vez
table.cell(data_table, 0, 0, 'Indicador', text_color = color.white, bgcolor = color.black, text_size = size.small, text_halign = text.align_center)
table.cell(data_table, 1, 0, 'Valor', text_color = color.white, bgcolor = color.black, text_size = size.small, text_halign = text.align_center)
// Fila 1: ADX
table.cell(data_table, 0, 1, 'ADX', text_color = color.white, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
table.cell(data_table, 1, 1, str.tostring(adx_value, '#.##') + ' (' + adx_status + ')', text_color = color.white, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
// Fila 2: RSI (Actual)
table.cell(data_table, 0, 2, 'RSI Actual', text_color = color.white, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
table.cell(data_table, 1, 2, str.tostring(rsi, '#.##') + ' (' + rsi_status_dynamic + ')', text_color = color.white, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
// Fila 3: Umbrales RSI
table.cell(data_table, 0, 3, 'Umbrales RSI', text_color = color.white, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
table.cell(data_table, 1, 3, 'Sobreventa: ' + str.tostring(rsi_oversold, '#.##') + ' / Sobrecompra: ' + str.tostring(rsi_overbought, '#.##'), text_color = color.white, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
// Fila 4: VIX (Actual)
table.cell(data_table, 0, 4, 'VIX Actual', text_color = color.white, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
table.cell(data_table, 1, 4, str.tostring(vix_close, '#.##') + ' (' + vix_status + ')', text_color = color.white, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
// Fila 5: Umbrales VIX
table.cell(data_table, 0, 5, 'Umbrales VIX', text_color = color.white, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
table.cell(data_table, 1, 5, 'Bajo: ' + str.tostring(vix_low_threshold, '#.##') + ' / Alto: ' + str.tostring(vix_high_threshold, '#.##'), text_color = color.white, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
// Fila 6: ATR
table.cell(data_table, 0, 6, 'ATR (14 días)', text_color = color.white, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
table.cell(data_table, 1, 6, str.tostring(atr, '#.##') + ' (' + str.tostring(atr_percentage, '#.##') + '%)', text_color = color.white, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
// Fila 7: Williams %R
table.cell(data_table, 0, 7, 'Williams %R', text_color = color.white, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
table.cell(data_table, 1, 7, str.tostring(williams_r, '#.##') + williams_r_status, text_color = williams_r_color, bgcolor = color.black, text_halign = text.align_left, text_size = size.small)
[blackcat] L1 Swing Reversal█ OVERVIEW
The script is an indicator that calculates and plots the L1 Swing Reversal, which involves smoothing price data and calculating a modified RSI to identify potential swing reversals in the market. It overlays columns representing the smoothed price data and a line for the adjusted RSI.
█ LOGICAL FRAMEWORK
The script begins by defining input parameters for customizable periods. It then calculates the typical price, derives components of the swing reversal indicator, smooths these components, and computes an adjusted RSI. The main sections include input parameter definitions, function definition, and plotting. The script flows data through calculations and logical operations to produce final plot values.
█ CUSTOM FUNCTIONS
Function: l1_swing_reversal
This function calculates the L1 Swing Reversal indicators based on high, low, close, and open prices, along with three periods. It computes a smoothed price component and an adjusted RSI.
Parameters:
• high : High prices of the asset.
• low : Low prices of the asset.
• close : Close prices of the asset.
• period_n : Period for the first component calculation.
• period_m : Period for standard deviation and moving average calculations.
• period_n1 : Period for RSI calculation.
Return Values:
• cc1_column_red : Red column values for the first component.
• cc1_column_green : Green column values for the first component.
• rsi : Adjusted RSI values.
█ KEY POINTS AND TECHNIQUES
The script uses several key Pine Script features such as the sma (simple moving average), stdev (standard deviation), max, abs, and ema (exponential moving average) functions. It also demonstrates the use of conditional operators to cap the column values at -100 and 100. The script’s structure is clear and follows best practices by encapsulating the main logic within a function and using descriptive variable names.
█ EXTENDED KNOWLEDGE AND APPLICATIONS
Potential modifications could include adding more sophisticated reversal signals based on the RSI and column values, or enhancing the visualization with additional plot types. This script could be used in scenarios where traders are interested in identifying potential swing reversals using a combination of smoothed price data and momentum indicators. Related Pine Script concepts include using barssince for counting bars since a condition, crossover and crossunder for detecting trend changes, and hline for adding horizontal lines to the chart.
Up and Downwhat is "Up and Down"?
It is an indicator designed to show you in detail on the chart and warn you when there is an increase or decrease in the market at a level that you consider important.
what it does?
When the price difference between a top and bottom is greater than the level you selected (the default input is 10 percent), it indicates this along with the percentage value on the chart. Then, it indicates the start and end points with lines so that you can see the change from where to where. It shows the price's current percentage distance from the last bottom or top in the upper right corner.
it also colors the candles so you can better understand how fast the price is moving. The greener the candles, the stronger the rise, and conversely, the greater the decline, the redder the candles. Of course, if you set an alarm, it will tell you in which trading pair, in which time period, at what percentage and in which direction there is a movement.
how it does it?
It uses a moving average with a short length to find bottoms and tops. It then measures the distance from the last peak to the bottom and expresses it as a percentage. It uses momentum using the moving average as a source to paint the candles. To compress this momentum between the values 255 and 0, I used a formula that I also used in my limited fisher transform work (because the inputs in the color.rgb function take values between 0 and 255). It was a bit challenging to use the lines correctly, but with the "ta.valuewhen" function and a little experimenting, they were I made sure they were drawn correctly.
how to use it?
It is quite simple to use. First, select the minimum interval you want to receive alarms. If you make this value too high, you will not receive any alarms; if you make it too low, you will receive too many alarms. Choose the range that will benefit you most for the trading pair you are using. Then all you have to do is set an alarm. When you set an alarm, leave the note section blank and the indicator will send you the necessary information.
MVRVZ - MVRVZ Top and Bottom Indicator for ETH [Da_Prof]Market Value-Realized Value Z-score (MVRVZ) for ETH - The MVRV-Z score measures the value of the Ethereum network by comparing its market cap to the realized value and dividing by the standard deviation of the market cap (market cap – realized cap) / stdev(market cap). When the market value is significantly higher than the realized value, the Ethereum network is "overvalued". Very high values have generally signaled price tops in the past and low values have signaled bottoms. For tops, the default trigger value is above 3.85 (default). For bottoms, the indicator is triggered when the MVRVZ is below -0.25 (default). These trigger values can be modified.
Alternate Bat Harmonic Pattern [TradingFinder] ALT Bat Indicator🔵 Introduction
The Alternate Bat harmonic pattern is one of the most precise and practical tools in technical analysis, introduced by Scott Carney in 2003. This pattern focuses on specific Fibonacci ratios, such as 0.382 at point B and 1.13XA at point D, to identify Potential Reversal Zones (PRZ) where price is likely to reverse.
The Alternative Bat pattern emerged as a result of repeated failures observed in the standard Bat pattern. Traders entering trades near the 0.886XA level of the standard Bat often encountered losses. In the Alternate Bat, point D extends beyond 0.886XA, typically reversing at 1.13XA, offering a more accurate identification of the reversal zone.
A key characteristic of this pattern is its M- or W-shaped structure, where the midpoint B retraces 0.382XA or less. Additionally, the CD leg requires an extension of 2.0 to 3.618 to complete the pattern. Due to its accuracy and the predictable behavior of price near the PRZ, the Alternate Bat pattern is recognized as a powerful tool for forecasting price reversals.
In the bullish Alternative Bat pattern, an M-shaped structure forms. After an initial upward movement (XA), price undergoes a short correction at point B (0.382XA) and then declines toward point D (1.13XA and an extension of 2.0 to 3.618BC), where a potential upward reversal is expected.
In the bearish Alternate Bat pattern, a W-shaped structure forms. After an initial downward movement (XA), price retraces slightly at point B (0.382XA) and then rises toward point D (1.13XA and an extension of 2.0 to 3.618BC), where a potential downward reversal is anticipated.
🔵 How to Use
The Alternate Bat harmonic pattern is a key tool for identifying potential reversal zones (PRZ) in the market. By leveraging the 0.382 retracement at point B and the 1.13XA extension at point D, along with symmetrical price structures, this pattern offers precise reversal opportunities in both bullish and bearish market conditions.
🟣 Bullish Alternate Bat Pattern
The bullish Alternate Bat pattern forms during a downtrend, signaling a potential reversal to the upside. This pattern consists of three downward movements with two corrective waves, ultimately reaching point D, which marks the PRZ.
At the PRZ, the convergence of Fibonacci levels—1.13XA and extensions ranging from 2.0 to 3.618BC—creates a strong support zone where price is likely to reverse upward.
🟣 Bearish Alternative Bat Pattern
The bearish Alternate Bat pattern develops during an uptrend, indicating a potential reversal to the downside. This pattern features three upward price movements with two retracements, ending at point D, where the PRZ forms.
Point D is defined by the 1.13XA extension and the 2.0 to 3.618BC projection, creating a strong resistance zone where price is expected to reverse downward.
🔵 Setting
🟣 Logical Setting
ZigZag Pivot Period : You can adjust the period so that the harmonic patterns are adjusted according to the pivot period you want. This factor is the most important parameter in pattern recognition.
Show Valid Format : If this parameter is on "On" mode, only patterns will be displayed that they have exact format and no noise can be seen in them. If "Off" is, the patterns displayed that maybe are noisy and do not exactly correspond to the original pattern.
Show Formation Last Pivot Confirm : if Turned on, you can see this ability of patterns when their last pivot is formed. If this feature is off, it will see the patterns as soon as they are formed. The advantage of this option being clear is less formation of fielded patterns, and it is accompanied by the latest pattern seeing and a sharp reduction in reward to risk.
Period of Formation Last Pivot : Using this parameter you can determine that the last pivot is based on Pivot period.
🟣 Genaral Setting
Show : Enter "On" to display the template and "Off" to not display the template.
Color : Enter the desired color to draw the pattern in this parameter.
LineWidth : You can enter the number 1 or numbers higher than one to adjust the thickness of the drawing lines. This number must be an integer and increases with increasing thickness.
LabelSize : You can adjust the size of the labels by using the "size.auto", "size.tiny", "size.smal", "size.normal", "size.large" or "size.huge" entries.
🟣 Alert Setting
Alert : On / Off
Message Frequency : This string parameter defines the announcement frequency. Choices include: "All" (activates the alert every time the function is called), "Once Per Bar" (activates the alert only on the first call within the bar), and "Once Per Bar Close" (the alert is activated only by a call at the last script execution of the real-time bar upon closing). The default setting is "Once per Bar".
Show Alert Time by Time Zone : The date, hour, and minute you receive in alert messages can be based on any time zone you choose. For example, if you want New York time, you should enter "UTC-4". This input is set to the time zone "UTC" by default.
🔵 Conclusion
The Alternate Bat harmonic pattern, with its precise Fibonacci ratios like 0.382 and 1.13XA, is a reliable tool for identifying Potential Reversal Zones (PRZ) in financial markets. By recognizing symmetrical price structures and focusing on both bullish and bearish scenarios, traders can identify optimal entry and exit points with high accuracy.
The key strength of this pattern lies in its ability to define strong support and resistance zones near the PRZ, increasing the probability of price reversals. Combining the pattern with candlestick confirmations and volume analysis enhances its effectiveness.
Ultimately, incorporating the Alternative Bat pattern with proper risk management and Fibonacci-based targets allows traders to enter the market confidently and capitalize on potential price reversals.
VinSpace Optimized Indicator with Enhanced SignalsVinSpace Optimized Indicator with Enhanced Signals
The VinSpace Optimized Indicator with Enhanced Signals is an advanced trading tool designed to offer powerful insights by combining multiple key technical analysis indicators. This enhanced version incorporates the Adaptive Channel , RSI (Relative Strength Index) , and MACD (Moving Average Convergence Divergence) with visually distinct Buy/Sell signals and background highlights to help traders identify trend reversals and optimize their trading strategies.
Key Features:
Adaptive Channel: Dynamically adjusts itself based on the price movement, identifying potential support and resistance levels. It plots the upper channel , lower channel , and the middle channel for a comprehensive view of market trends.
RSI (Relative Strength Index): The RSI is used to measure the strength of a price move. The indicator comes with adjustable overbought and oversold levels, allowing traders to spot overbought or oversold conditions that may indicate a reversal.
MACD (Moving Average Convergence Divergence): The MACD is employed to identify potential buy or sell signals by comparing the difference between fast and slow moving averages. The MACD histogram helps in visualizing the strength of the current market movement.
Buy/Sell Markers: The indicator includes Buy/Sell signals that appear as green circles (Buy) and red diamonds (Sell), placed directly above or below the price bars for clear and actionable signals.
Background Highlights: To increase visibility and enhance the user experience, the Buy signal triggers a green background and the Sell signal triggers a red background , clearly highlighting the moments when the market is in a buy or sell zone.
How it Works:
Adaptive Channel: The channel dynamically adjusts to price movements and provides insights into potential support and resistance levels. This helps traders identify price levels where a breakout or reversal could occur.
RSI: The RSI is calculated based on the closing prices over a defined period, typically 14 periods. When the RSI is above the overbought level (typically 70), it signals that the market may be overbought. When it is below the oversold level (typically 30), it suggests the market may be oversold.
MACD: The MACD indicator compares the difference between the 12-day and 26-day exponential moving averages, providing buy and sell signals when the MACD line crosses above or below the signal line.
TG Group: @vinotspace_chat
TG Channel: @vinotspace
HotFx Buy Sell Scalper The HotFx Scalper is a dynamic trading tool designed to help identify potential buy and sell opportunities using a combination of EMAs, Stochastic RSI, and price action. It combines a fast and slow EMA to capture trends and consolidation phases, with an additional 200 EMA to filter for the broader market trend. The indicator provides buy and sell signals with visual cues and alerts, along with customizable background alerts to keep you informed of key crossovers.
Please note: No indicator is 100% accurate, so use this tool at your own risk and always conduct your own analysis before making trades.
TASC 2025.01 Linear Predictive Filters█ OVERVIEW
This script implements a suite of tools for identifying and utilizing dominant cycles in time series data, as introduced by John Ehlers in the "Linear Predictive Filters And Instantaneous Frequency" article featured in the January 2025 edition of TASC's Traders' Tips . Dominant cycle information can help traders adapt their indicators and strategies to changing market conditions.
█ CONCEPTS
Conventional technical indicators and strategies often rely on static, unchanging parameters, which may fail to account for the dynamic nature of market data. In his article, John Ehlers applies digital signal processing principles to address this issue, introducing linear predictive filters to identify cyclic information for adapting indicators and strategies to evolving market conditions.
This approach treats market data as a complex series in the time domain. Analyzing the series in the frequency domain reveals information about its cyclic components. To reduce the impact of frequencies outside a range of interest and focus on a specific range of cycles, Ehlers applies second-order highpass and lowpass filters to the price data, which attenuate or remove wavelengths outside the desired range. This band-limited analysis isolates specific parts of the frequency spectrum for various trading styles, e.g., longer wavelengths for position trading or shorter wavelengths for swing trading.
After filtering the series to produce band-limited data, Ehlers applies a linear predictive filter to predict future values a few bars ahead. The filter, calculated based on the techniques proposed by Lloyd Griffiths, adaptively minimizes the error between the latest data point and prediction, successively adjusting its coefficients to align with the band-limited series. The filter's coefficients can then be applied to generate an adaptive estimate of the band-limited data's structure in the frequency domain and identify the dominant cycle.
█ USAGE
This script implements the following tools presented in the article:
Griffiths Predictor
This tool calculates a linear predictive filter to forecast future data points in band-limited price data. The crosses between the prediction and signal lines can provide potential trade signals.
Griffiths Spectrum
This tool calculates a partial frequency spectrum of the band-limited price data derived from the linear predictive filter's coefficients, displaying a color-coded representation of the frequency information in the pane.
Griffiths Dominant Cycle
This tool compares the cyclic components within the partial spectrum and identifies the frequency with the highest power, i.e., the dominant cycle . Traders can use this dominant cycle information to tune other indicators and strategies, which may help promote better alignment with dynamic market conditions.
Notes on parameters
Bandpass boundaries:
In the article, Ehlers recommends an upper bound of 125 bars or higher to capture longer-term cycles for position trading. He recommends an upper bound of 40 bars and a lower bound of 18 bars for swing trading. If traders use smaller lower bounds, Ehlers advises a minimum of eight bars to minimize the potential effects of aliasing.
Data length:
The Griffiths predictor can use a relatively small data length, as autocorrelation diminishes rapidly with lag. However, for optimal spectrum and dominant cycle calculations, the length must match or exceed the upper bound of the bandpass filter. Ehlers recommends avoiding excessively long lengths to maintain responsiveness to shorter-term cycles.
Previous Key Levels (fadi)Previous Key Levels indicator is a highly configurable OHLC levels tool designed to provide traders with the ability to plot multiple levels while minimizing screen clutter. This indicator is perfect for those who want to monitor various timeframes simultaneously without overloading their charts with unnecessary information.
How to Use It
This indicator offers traders the flexibility to track up to 6 higher timeframes (HTFs) and multiple candles for each timeframe. For example, a trader can choose to monitor the OHLC of the last four 4-hour candles, providing a comprehensive view of significant price levels over different periods.
Key Features
Highly Configurable: Customize the number of timeframes and candles to suit your trading strategy.
Minimal Screen Clutter: Efficiently plot multiple levels without overwhelming your chart.
Flexible Application: Ideal for identifying support and resistance levels, liquidity sweeps, target levels, and more, adapting to various trading styles.
Traders have diverse trading styles and preferences. Some may use these levels to identify support and resistance zones, while others might look for liquidity sweeps or set target levels. By offering a high degree of customization, the Previous Key Levels indicator caters to the unique needs of individual traders, helping them make informed decisions based on historical price action across multiple timeframes.
Timeframe Settings
Toggle to track 6 HTF settings and the number of candles to track for each.
Limit to next HTFs only can be used to limit the HTF levels displayed based on the current timeframe.
Hide Above will disable the indicator above the specified interval.
Offset to Left and Right are used to specify where the level line starts and ends based on the current candle.
Offset between HTFs extends HTF levels to become more readable.
HTF Settings
Choice of the OHLC levels to track.
Specify the color, line style, and line width for each level.
Mark the start of that level, for example, draw a vertical line where the 4H candle has started.
Trace back to draw optional lines to track back to the origin of the level.
Label Settings
Highly configurable labels that allow traders to customize the labels to their liking.
Label color, background, and size.
Customize using up to 9 configurable parts.
Fading Levels
To prevent clutter, the indicator offers the option to change the transparency of the levels based on their distance from the current price. The distance is calculated based on a configurable Average True Range (ATR).
Change Transparency to a percentage of its current color.
Range should be within X candles will fade any level that is X candles length away from the current price.
ATR length used in calculation will calculate the average size of candles in the calculation.
SMC Buy/Sell Signals with FVG and Orderblocks by Haristhis script will give you perfect buy and sell signals
Ema Support & Resistance With Signals [ClarifyChart]Use Case
This indicator is designed for traders who seek to identify key reversal points in the market based on dynamic support and resistance levels. The tool is especially useful for swing traders and trend-followers who rely on price reversals near key levels of support and resistance. By combining exponential moving averages (EMA) with the Average True Range (ATR), this script dynamically adjusts the support and resistance bands to reflect market volatility, helping traders stay aligned with the prevailing trend while spotting potential reversal opportunities.
Logic
The core of the indicator is built around dynamic EMAs that act as support and resistance levels, which adjust according to market volatility (calculated using ATR). These levels form a range in which price is expected to either reverse or continue its movement. The EMA-based support and resistance levels are calculated at multiple distances, allowing traders to identify significant zones where price may change direction. The indicator also integrates a buffer percentage to avoid too many signals by ensuring the price is a reasonable distance from the support or resistance level before a reversal is triggered.
Signal Logic
Reversal signals are generated based on the following conditions:
Bullish Reversal: If the price crosses below a support level by a predefined buffer percentage and then moves back above it, a bullish signal is triggered.
Bearish Reversal: If the price crosses above a resistance level by the buffer percentage and then moves back below it, a bearish signal is generated. These conditions are designed to capture the most relevant reversal points while minimizing false signals.
Example Trade
Let’s say the price is approaching a support level (sup_ma1) and crosses below it by 0.5% (defined by the buffer). If the price then starts to rise back above this support level, a bullish reversal signal will appear. A trader might enter a long position once the price crosses back above the support level, expecting a price increase. Similarly, if the price hits a resistance level (res_ma1) and then reverses downward, a bearish signal would indicate an opportunity to enter a short position.
Flaws
While the indicator is designed to capture major reversals, there are some limitations:
False signals in choppy markets: The indicator may trigger occasional false signals in sideways or range-bound markets, especially if the price crosses support/resistance levels multiple times without a true reversal.
Lagging indicators: Like most trend-following systems, this indicator might not always catch the very beginning of a reversal, especially during high volatility periods.
Over-sensitivity: If the buffer percentage is set too small, the indicator might generate too many signals, leading to overtrading or confusion.
Overall, this tool can be a valuable part of a trader's strategy when combined with other technical indicators or used in markets where price is likely to respect key support and resistance zones.
VSA Relative VolumeVSA Relative Volume
This indicator analyzes volume relative to a moving average and categorizes it into different levels: Ultra High, Very High, High, Normal, Low, and Very Low. It helps traders visualize the strength of volume in relation to recent trading activity, providing insights into potential buying and selling pressure.
Features:
Color-coded Volume: Volume bars are color-coded based on their relative intensity, making it easy to identify significant volume changes.
Customizable Colors: You can customize the colors for each volume level through the Inputs tab.
Volume Moving Average: Optionally displays a Volume Moving Average (VMA) to visualize the average volume over a specified period.
Less Than Previous Two: Highlights volume bars that are lower than the volume of the previous two bars.
Automatic Scaling: The volume histogram automatically adjusts its scale for optimal visualization.
Interpretation:
Ultra High/Very High Volume: Often indicates strong activity and potential climaxes or turning points.
High Volume: Suggests above-average activity and potential continuation or changes in trend.
Normal Volume: Represents typical trading activity.
Low/Very Low Volume: Indicates weaker activity and potential lack of interest or indecision.
Less Than Previous Two: May signal weakening momentum or drying up of volume.
Customization:
Show Volume Moving Average: Enable/disable the display of the Volume Moving Average.
Length of MA applied on Volume: Adjust the period of the Volume Moving Average.
Volume Ratios: Fine-tune the ratios for each volume level to match your preferences and market conditions.
Colors: Customize the colors for each volume level to suit your visual preferences.
Note: This indicator is based on Volume Spread Analysis (VSA) principles and is intended to be used in conjunction with other technical analysis tools and your own trading strategy.
GainzAlgo Standard// © GainzAlgo
//@version=5
indicator('GainzAlgo Standard', overlay=true, max_labels_count=500)
stable_candle = math.abs(close - open) / ta.tr > .5
rsi = ta.rsi(close, 14)
bullish_engulfing = close < open and close > open and close > open
rsi_below_50 = rsi < 50
decrease_over_5 = close < close
bull = bullish_engulfing and stable_candle and rsi_below_50 and decrease_over_5
bearish_engulfing = close > open and close < open and close < open
rsi_above_50 = rsi > 50
increase_over_5 = close > close
bear = bearish_engulfing and stable_candle and rsi_above_50 and increase_over_5
label.new(bull ? bar_index : na, low, 'BUY', color=color.rgb(0, 255, 8), style=label.style_label_up, textcolor=color.white, size=size.large)
label.new(bear ? bar_index : na, high, 'SELL', color=color.rgb(255, 0, 0), style=label.style_label_down, textcolor=color.white, size=size.large)
AMIN MAGHSOUDLOO Spike Detectorنماد XAUUSD
تایم فریم M5
نوع چارت کندل استیک
بهترین زمان کار : 6 تا 8 و 11 تا 13 و 17 تا 21
اندیکاتور : EMA 20
ابزار : خط – مستطیل – فیبوناچی
نرخ سود : 1 به 1
نرخ برنده : 80%
تعداد موقعیت در روز : 5 تا 15
1- سقف و کف هفته گذشته با خط سیاه مشخص شود
2- سقف و کف روز گذشته با خط قرمز مشخص شود
3- نمودار میانگین متحرک نمایی EMA با دوره 20 روزه روی چارت باشد (جهت مشخص کردن جهت روند)
4- تایم فریم اصلی M5 است
5- پولبک لایه سوم برای اسپایک پیدا میشود (اسپاک نباید کوچکتر از 20 پیپ * ATR * 0.9 باشد)
6- پولبک نباید بیش تر از 70 اسپایک را برگشته باشد
7- سقف و کف ناحیه پولبک را مشخص میکنیم
8- اگر ارتفاع پولبک بیشتر از 2% سرمایه شد ، از این موقعیت صرف نظر میکنیم
9- منتظر شکست ناحیه پولبک از بالا یا پایین می مانیم
10- در روند صعودی مراقب شکست از کف ودر روند نزولی مراقب شکست از سقف باشیم چون احتمال مثلث گسترشی و استاپ زیاد است
11 – حرکت بازار پس از اسپایک ، یکی از حالتهای کانال یا رنج یا اسپایک جدید خواهد بود
12- شناسایی الگوی در حال شکل گرفتن داخل باکس پولبک ، کمک زیادی در خصوص آینده حرکت خواهد کرد
** ظهور سیگنال بار (پین بار قوی) و کی بار ، تایید بر قدرت روند جدید میباشد .
13- در صورت بسته شدن قیمت در بالا یا پایین باک پولبک ، پس از بازگشت قیمت به لبه باکس ، با نصف حجم مجاز وارد معامله میشویم
14- در صورت بسته شدن قیمت در بالا یا پایین باک پولبک ، پس از بازگشت قیمت به وسط باکس ، با نصف حجم مجاز وارد معامله میشویم
15- در هر موقعیت معاملاتی ، بین 1 تا 2 درصد سود کافیست و از معامله خارج میشود
16- در صورت مشاهده نشانه برگشت یا ظهور اسپایک جدید در خلاف معامله ما ، با کمترین سود و حتی ضرر کم خارج میشویم
Pivot Highs/Lows with Bar CountsWhat does the indicator do?
This indicator adds labels to a chart at swing (a.k.a., "pivot") highs and lows. Each label may contain a date, the closing price at the swing, the number of bars since the last swing in the same direction, and the number of bars from the last swing in the opposite direction. A table is also added to the chart that shows the average, min, and max number of bars between swings.
OK, but how do I use it?
Many markets -- especially sideways-moving ones -- commonly cycle between swing highs and lows at regular time intervals. By measuring the number of bars between highs and lows -- both same-sided swings (i.e., H-H and L-L) and opposite-sided swings (i.e., H-L and L-H) -- you can then project the averages of those bar counts from the last high or low swing to make predictions about where the next swing high or low should occur. Note that this indicator does not make the projection for you. You have to determine which swing you want to project from and then use the bar counts from the indicator to draw a line, place a label, etc.
Example: Chart of BTC/USD
The indicator shows pivot highs and lows with bar counts, and it displays a table of stats on those pivots.
If you focus on the center section of the chart, you can see that prices were moving in a sideways channel with very regular highs and lows. This indicator counts the bars between these pivots, and you could have used those counts to predict when the next high or low may have occurred.
The bar counts do not work as well on the more recent section of the chart because there are no regularly time swings.
Custom RSI & MACD Momentum Entry SignalsIndicator Explanation: Custom RSI & MACD Momentum Entry Signals
Introduction
The "Custom RSI & MACD Momentum Entry Signals" indicator combines the Relative Strength Index (RSI) and the Moving Average Convergence Divergence (MACD) to generate precise long and short entry signals. This indicator offers a powerful combination of overbought/oversold zones, momentum analysis, and RSI-EMA crossovers to assist traders in making better decisions.
How the Indicator Works
1. RSI Calculation and EMA
The RSI is calculated based on the closing price with an adjustable period (default: 14).
An Exponential Moving Average (EMA) of the RSI (default: 9) is plotted to identify RSI trend changes.
When the RSI crosses its EMA upwards, it signals a bullish impulse. Conversely, a downward cross indicates a bearish impulse.
2. MACD Calculation and Momentum Shifts
The MACD line is derived from the difference between a fast EMA (default: 12) and a slow EMA (default: 26).
The Signal line is the EMA of the MACD line (default: 9).
The MACD histogram represents the difference between the MACD line and the Signal line.
Momentum shifts are detected as follows:
Weakening Bearish: Histogram is negative but increasing (less bearish pressure).
Strengthening Bullish: Histogram is positive and rising.
Weakening Bullish: Histogram is positive but decreasing.
Strengthening Bearish: Histogram is negative and falling.
Signal Generation
Long Signals
A Long signal is triggered when all of the following conditions are met:
The RSI was previously below 30 (oversold condition).
MACD momentum shifts from "strengthening bearish" to "weakening bearish" or turns bullish.
The RSI crosses its EMA upwards.
A green upward arrow is displayed below the bar, and the background is lightly shaded green for additional visualization.
Short Signals
A Short signal is triggered when all of the following conditions are met:
The RSI was previously above 70 (overbought condition).
MACD momentum shifts from "strengthening bullish" to "weakening bullish" or turns bearish.
The RSI crosses its EMA downwards.
A red downward arrow is displayed above the bar, and the background is lightly shaded red for additional visualization.
Visual Elements
RSI and EMA:
The RSI is shown in purple.
The RSI EMA is shown in blue.
Horizontal lines at 30 (oversold) and 70 (overbought) provide additional context.
MACD:
The MACD line is displayed in blue.
The Signal line is displayed in orange.
The zero line is added for easier interpretation.
Signals:
Green arrows: Long signals.
Red arrows: Short signals.
Background color: Light green for long conditions, light red for short conditions.
Use Cases
This indicator is ideal for:
Trend Followers: Combining RSI and MACD allows traders to identify entry points during impulsive trend shifts.
Swing Traders: Long and short signals can be used at reversal points to capture short-term price movements.
Momentum Traders: By considering MACD momentum, the indicator provides additional confidence in signal generation.
Customizable Settings
The indicator provides flexible input options:
RSI Period (default: 14)
RSI EMA Period (default: 9)
MACD Parameters: Fast, slow, and signal EMAs can be adjusted.
Conclusion
The Custom RSI & MACD Momentum Entry Signals indicator is a powerful tool for traders looking to combine RSI and MACD to identify high-probability entry signals. With clear visualization and precise signal generation, traders can make decisions more efficiently and capitalize on market movements.
AI based Buy/Sell Signalpure AI based signal
we generate this code for help people who cant afford paid subscription of indicators
this is proper AI based data indicator
BKLevelsThis displays levels from a text input, levels from certain times on the previous day, and high/low/close from previous day. The levels are drawn for the date in the first line of the text input. Newlines are required between each level
Example text input:
2024-12-17
SPY,606,5,1,Lower Hvol Range,FIRM
SPY,611,1,1,Last 20K CBlock,FIRM
SPY,600,2,1,Last 20K PBlock,FIRM
SPX,6085,1,1,HvolC,FIRM
SPX,6080,2,1,HvolP,FIRM
SPX,6095,3,1,Upper PDVR,FIRM
SPX,6060,3,1,Lower PDVR,FIRM
For each line, the format is ,,,,,
For color, there are 9 possible user- configurable colors- so you can input numbers 1 through 9
For line style, the possible inputs are:
"FIRM" -> solid line
"SHORT_DASH" -> dotted line
"MEDIUM_DASH" -> dashed line
"LONG_DASH" -> dashed line