ADX and DI with HistogramThe "ADX and DI with Histogram" indicator is designed to help traders analyze market trends using the Average Directional Index (ADX) and Directional Indicators (DI+ and DI-). It provides a visual representation of trend strength and direction, along with a histogram to illustrate the difference between the DI+ and DI- values.
Features:
Inputs:
Length (len): Sets the period for the ADX and DI calculations (default: 14).
Threshold Level (th): Defines the ADX threshold for trend strength (default: 20).
Shape Color: Customizes the color of the shape markers plotted on the chart.
Shape Size: Adjusts the size of the shape markers (default: 10).
Shape Type: Selects the type of shape to display (Circle or Square).
Calculations:
Computes the True Range, Directional Movement (both plus and minus), and applies Exponential Moving Averages to these values to derive DI+ and DI-.
The ADX is calculated using the smoothed directional movement indicators.
Visual Outputs:
Plots DI+ (green line), DI- (red line), and ADX (navy line) on the main chart.
Includes a horizontal line representing the threshold level for easy trend assessment.
Displays a histogram that reflects the difference between DI+ and DI- with color coding to indicate directional strength (green for DI+ > DI- and red for DI+ < DI-).
Shape Markers:
When the ADX crosses above the specified threshold, a shape marker (Circle or Square) appears on the chart indicating a potential trend initiation.
Conversely, when the ADX crosses below the threshold, a shape marker is also plotted, signaling potential trend weakening.
Here is the description translated into Arabic:
---
مؤشر ADX و DI مع الهيستوجرام
نظرة عامة:
يُصمم مؤشر "ADX و DI مع الهيستوجرام" لمساعدة المتداولين في تحليل اتجاهات السوق باستخدام مؤشر الاتجاه المتوسط (ADX) ومؤشرات الاتجاه (DI+ و DI-). يوفر تمثيلًا بصريًا لقوة الاتجاه والاتجاه، بالإضافة إلى هيستوجرام لتوضيح الفرق بين قيم DI+ و DI-.
الميزات:
- **المدخلات:**
- **الطول (len):** يحدد الفترة لحسابات ADX و DI (افتراضي: 14).
- **مستوى العتبة (th):** يحدد عتبة ADX لقوة الاتجاه (افتراضي: 20).
- **لون الشكل:** يخصص لون علامات الشكل المرسومة على المخطط.
- **حجم الشكل:** يضبط حجم علامات الشكل (افتراضي: 10).
- **نوع الشكل:** يحدد نوع الشكل الذي يتم عرضه (دائرة أو مربع).
- **الحسابات:**
- يحسب النطاق الحقيقي، الحركة الاتجاهية (كلاهما زائد وناقص)، ويطبق المتوسطات المتحركة الأسية على هذه القيم للحصول على DI+ و DI-.
- يتم حساب ADX باستخدام مؤشرات الحركة الاتجاهية.
- **المخرجات :**
- يرسم DI+ (خط أخضر) و DI- (خط أحمر) و ADX (خط بحري) على المخطط الرئيسي.
- يتضمن خط أفقي يمثل مستوى العتبة لتقييم الاتجاه بسهولة.
- يعرض هيستوجرام يعكس الفرق بين DI+ و DI- مع ترميز لوني للإشارة إلى القوة الاتجاهية (أخضر عندما يكون DI+ أكبر من DI- وأحمر عندما يكون DI+ أقل من DI-).
- **علامات الشكل:**
- عندما يتجاوز ADX العتبة المحددة، تظهر علامة شكل (دائرة أو مربع) على المخطط تشير إلى احتمال بدء اتجاه جديد.
- على العكس، عندما يتجاوز ADX العتبة إلى الأسفل، يتم رسم علامة شكل أيضًا، مما يدل على احتمال ضعف الاتجاه.
### حالات الاستخدام:
هذا المؤشر مناسب للمتداولين الذين يتطلعون إلى تحديد الاتجاهات وتأكيدها، وتقييم قوة السوق، واتخاذ قرارات تداول مستنيرة بناءً على إشارات ADX و DI.
---
المؤشرات والاستراتيجيات
Volume change(%) and deltaVolume Change (%) Indicator
This indicator is designed to help traders identify significant changes in trading volume during specific market hours. By visually highlighting bars and providing percentage change labels, it helps users detect spikes in volume that could signal important market movements.
Key Features
Customizable Volume Thresholds:
Select from predefined thresholds (e.g., 38.2%, 50%, 61.8%, etc.) to filter only the most relevant volume changes based on your strategy.
Time Filtering:
Focuses on a specific time range (8:30 AM to 2:59 PM by default) to capture critical market activity, such as during the U.S. trading session.
Bar Coloring:
Bars are colored green or red when the volume change exceeds the selected threshold:
Green: Volume increases and the price closes higher.
Red: Volume increases and the price closes lower.
Arrow Labels with Volume Change:
Displays percentage changes above significant bars, accompanied by an arrow:
▲ for price increases.
▼ for price decreases.
Label Customization:
Adjust label size and colors for better visual clarity.
Advantages of Using This Indicator
Improved Volume Analysis:
Highlights when volume surges, helping you spot potential reversals, breakouts, or continuation signals.
Enhanced Focus on Relevant Data:
By limiting the analysis to a specific time window and threshold, it avoids distractions from insignificant volume changes.
Visual Clarity:
Combines bar colors and labels to provide quick, actionable insights without cluttering your chart.
Versatility:
Works well with intraday strategies, especially in volatile markets like futures, forex, or stocks.
Ease of Use:
Fully customizable with intuitive settings to suit different trading styles.
How to Use This Indicator
Step 1: Add to Your Chart
Open your TradingView account.
Click on the "Pine Script Editor" at the bottom of the platform.
Paste the script provided above into the editor.
Click "Add to Chart" to apply the indicator.
Step 2: Configure the Settings
Select Volume Threshold:
Choose the percentage threshold for highlighting bars (e.g., 50% for moderate changes, 250% for extreme spikes).
Enable/Disable Bar Colors:
Toggle the setting to apply or ignore green/red bar coloring.
Adjust Label Size and Colors:
Customize the size of labels and their colors for better visibility.
Step 3: Analyze the Chart
Look for green or red bars with arrows (▲ or ▼) indicating significant volume and price changes.
Use the labels showing percentage changes to gauge the strength of the movement.
Combine with other indicators (e.g., moving averages, RSI) to validate trade entries or exits.
Practical Example
Scenario: Intraday Trading on a Stock Index
Objective: Spot breakouts during the U.S. session (9:30 AM - 3:59 PM NY time).
Settings:
Volume Threshold: 100%.
Time Range: Default (8:30 AM to 2:59 PM).
Labels: Large size, white background, black text.
Observation:
A green bar with a 150% label and an arrow ▲ appears at 10:00 AM, suggesting strong buying interest.
This could indicate the start of a breakout.
You decide to enter a long position, placing a stop-loss below the breakout bar.
Tips for Maximum Effectiveness
Combine with Price Action:
Use alongside candlestick patterns (e.g., pin bars, engulfing patterns) to confirm entries.
Monitor Key Levels:
Pay attention to bars near support/resistance levels or trendlines.
Adjust Thresholds for Volatility:
In highly volatile markets, use higher thresholds (e.g., 250%); in calm markets, lower thresholds (e.g., 50%).
Test on Different Assets:
Works well on stocks, futures, forex, and even cryptocurrencies.
Conclusion
The Volume Change (%) Indicator is a powerful tool for traders looking to incorporate volume analysis into their intraday strategies. Its customization options, visual simplicity, and actionable insights make it suitable for traders of all experience levels. Try it out and refine it based on your market and style. 🚀
Let me know if you need help with further customizations! 😊
(VERSIÓN EN ESPAÑOL)
Indicador de Cambio de Volumen (%)
Este indicador está diseñado para ayudar a los traders a identificar cambios significativos en el volumen de negociación durante horas específicas del mercado. Al resaltar visualmente las barras y proporcionar etiquetas con el porcentaje de cambio, ayuda a los usuarios a detectar picos de volumen que podrían señalar movimientos importantes del mercado.
Características Principales
Umbrales de Volumen Personalizables:
Selecciona entre umbrales predefinidos (por ejemplo, 38.2%, 50%, 61.8%, etc.) para filtrar solo los cambios de volumen más relevantes según tu estrategia.
Filtrado por Tiempo:
Se enfoca en un rango horario específico (por defecto de 8:30 AM a 2:59 PM) para capturar la actividad crítica del mercado, como la sesión americana.
Coloreado de Barras:
Las barras se colorean de verde o rojo cuando el cambio de volumen supera el umbral seleccionado:
Verde: Aumento de volumen y el precio cierra más alto.
Rojo: Aumento de volumen y el precio cierra más bajo.
Etiquetas con Flechas y Cambio de Volumen:
Muestra el cambio porcentual sobre las barras significativas, acompañado de una flecha:
▲ para aumentos de precio.
▼ para caídas de precio.
Personalización de Etiquetas:
Ajusta el tamaño y los colores de las etiquetas para mejorar la claridad visual.
Ventajas de Usar Este Indicador
Mejora el Análisis de Volumen:
Resalta cuando el volumen se dispara, ayudando a detectar posibles reversas, rupturas o señales de continuación.
Enfoque en Datos Relevantes:
Al limitar el análisis a un rango horario específico y umbrales predefinidos, evita distracciones de cambios de volumen insignificantes.
Claridad Visual:
Combina colores de barras y etiquetas para proporcionar información rápida y útil sin saturar el gráfico.
Versatilidad:
Funciona bien con estrategias intradía, especialmente en mercados volátiles como futuros, forex o acciones.
Facilidad de Uso:
Totalmente personalizable con configuraciones intuitivas para adaptarse a diferentes estilos de trading.
Cómo Usar Este Indicador
Paso 1: Agregar a Tu Gráfico
Abre tu cuenta en TradingView.
Haz clic en el "Editor de Pine Script" en la parte inferior de la plataforma.
Pega el script proporcionado arriba en el editor.
Haz clic en "Agregar al gráfico" para aplicar el indicador.
Paso 2: Configura los Ajustes
Selecciona el Umbral de Volumen:
Elige el umbral de porcentaje para resaltar las barras (por ejemplo, 50% para cambios moderados, 250% para picos extremos).
Habilitar/Deshabilitar Colores de Barras:
Activa o desactiva el coloreado de las barras verde/roja.
Ajusta el Tamaño y Colores de las Etiquetas:
Personaliza el tamaño y los colores de las etiquetas para mejorar la visibilidad.
Paso 3: Analiza el Gráfico
Busca barras verdes o rojas con flechas (▲ o ▼) que indiquen cambios significativos de volumen y precio.
Utiliza las etiquetas con el cambio porcentual para medir la fuerza del movimiento.
Combínalo con otros indicadores (por ejemplo, medias móviles, RSI) para validar entradas o salidas de operaciones.
Ejemplo Práctico
Escenario: Trading Intradía en un Índice Bursátil
Objetivo: Detectar rupturas durante la sesión americana (9:30 AM - 3:59 PM hora de Nueva York).
Configuración:
Umbral de Volumen: 100%.
Rango Horario: Por defecto (8:30 AM a 2:59 PM).
Etiquetas: Tamaño grande, fondo blanco, texto negro.
Observación:
Aparece una barra verde con una etiqueta del 150% y una flecha ▲ a las 10:00 AM, lo que sugiere un fuerte interés comprador.
Esto podría indicar el inicio de una ruptura.
Decides entrar en una posición larga, colocando un stop-loss por debajo de la barra de ruptura.
Consejos para Maximizar la Efectividad
Combina con Acción del Precio:
Utiliza patrones de velas (como barras envolventes, pin bars) para confirmar las entradas.
Monitorea Niveles Clave:
Presta atención a las barras cercanas a niveles de soporte/resistencia o líneas de tendencia.
Ajusta los Umbrales según la Volatilidad:
En mercados altamente volátiles, usa umbrales más altos (por ejemplo, 250%); en mercados calmados, umbrales más bajos (por ejemplo, 50%).
Prueba en Diferentes Activos:
Funciona bien en acciones, futuros, forex e incluso criptomonedas.
Conclusión
El Indicador de Cambio de Volumen (%) es una herramienta poderosa para los traders que buscan incorporar el análisis de volumen en sus estrategias intradía. Sus opciones de personalización, simplicidad visual y sus valiosos insights lo hacen adecuado para traders de todos los niveles. Pruébalo y ajústalo según tu mercado y estilo. 🚀
¡Déjame saber si necesitas más ayuda o ajustes! 😊
PİVOTS AND ECHO pivots kodları ve echo indicatörünün birleşimiyle yapılan çiftleme işlemider denem aşaasında olum hağlan geliştirilmekte olmaktadır bundan dolayı hiçbir işlem yatırım tavsiyesi diğildir
Prior Day High and Low RaysPrior Day High and Low Rays
This custom TradingView indicator projects rays from the prior day's high and low prices, helping you visualize key levels of support and resistance from the previous trading day. The rays extend to the right, continuing from the prior day's high and low throughout the current trading day.
Features:
Displays a ray starting at the prior day's high price.
Displays a ray starting at the prior day's low price.
Rays extend to the right and are only plotted for the immediate prior day.
Customizable ray color and width through the indicator settings.
Use Case:
Track important price levels from the previous day that can act as support or resistance.
Customize the appearance of the rays to match your chart's style and preferences.
This tool is designed for traders who want to incorporate prior day price action into their analysis and maintain a clean, customized chart display.
AsianSessionFor traders following SMC principles or liquidity concepts, this tool is perfect for identifying key areas like the Asian High, Asian Low, and strategic moves such as the London Reversal.
Key Features:
🕒 Displays the Asian session with fully customizable time settings.
📈 Allows extending or limiting the high and low levels of the session.
⚙️ Offers configuration options to restrict visibility to specific timeframes (e.g., only for charts under 60 minutes).
A must-have tool to leverage liquidity zones and sharpen your trading strategy! 🔥
Atlantic Trading - Multiple EMAs & Bollinger BandsMultiple EMAs & Bollinger Bands Overlay
A versatile technical analysis overlay combining multiple Exponential Moving Averages (EMAs) with customizable Bollinger Bands. This indicator is designed to help traders identify trends, momentum, and potential support/resistance levels across different timeframes.
Features
Multiple EMAs for trend analysis:
8 EMA (short-term trend)
60 EMA (intermediate trend)
200 EMA (long-term trend)
200 SMA (additional long-term trend confirmation)
Fully customizable Bollinger Bands:
Adjustable length and standard deviation
Individual color controls for upper, middle, and lower bands
Optional fill between bands with customizable transparency
Unified or separate color schemes for the bands
Settings
Moving Averages
Customizable lengths for all EMAs and SMA
Individual color settings for each moving average
Bollinger Bands
Length: Default 20 periods
Standard Deviation: Default 2.0
Color Options:
Default mode: Single color for all bands
Advanced mode: Individual colors for upper, middle, and lower bands
Fill Options:
Toggleable band fill
Customizable fill color
Adjustable fill transparency
How to Use
The 8, 60, and 200 EMAs help identify trends across different timeframes
The 200 SMA provides additional trend confirmation
Bollinger Bands help identify:
Potential support/resistance levels
Market volatility
Overbought/oversold conditions
Notes
All colors and parameters are fully customizable through the settings panel
The indicator works on all timeframes
Suitable for any trading instrument (stocks, forex, crypto, futures)
Updates
Version 1.0
Initial release with all core features
Customizable colors and parameters
Optional Bollinger Bands fill
Credits
Jacobeckooo on Atlantic Trading for the idea
Session Bar/Candle ColoringChange the color of candles within a user-defined trading session. Borders and wicks can be changed as well, not just the body color.
PREFACE
This script can be used an educational resource for those who are interested in learning Pine Script. Therefore, the script is published open source and is organized in a manner that follows the recommended Style Guide .
While the main premise of the indicator is rather simple, the script showcases various things that can be achieved such as conditional plotting, alignment of indicator settings, user input validation, script optimization, and more. The script also has examples of taking into consideration the chart timeframe and/or different chart types (Heikin Ashi, Renko, etc.) that a user might be running it on. Note: for complete beginners, I strongly suggest going through the Pine Script User Manual (possibly more than once).
FEATURES
Besides being able to select a specific time window, the indicator also provides additional color settings for changing the background color or changing the colors of neutral/indecisive candles, as shown in the image below.
This allows for a higher level of customization beyond the TradingView chart settings or other similar scripts that are currently available.
HOW TO USE
First, define the intraday trading session that will contain the candles to modify. The session can be limited to specific days of the week.
Next, select the parts of the candles that should be modified: Body, Borders, Wick, and/or Background.
For each of the candle parts that were enabled, you can select the colors that will be used depending on whether a candle is bullish (⇧), bearish (⇩), or neutral (⇆).
All other indicator settings will have a detailed tooltip to describe its usage and/or effect.
LIMITATIONS
The indicator is not intended to function on Daily or higher timeframes due to the intraday nature of session time windows.
The indicator cannot always automatically detect the chart type being used, therefore the user is requested to manually input the chart type via the " Chart Style " setting.
Depending on the available historical data and the selected choice for the " Portion of bar in session " setting, the indicator may not be able to update very old candles on the chart.
EXAMPLE USAGE
This section will show examples of different scenarios that the indicator can be used for.
Emphasizing a main trading session.
Defining a "Pre/post market hours background" like is available for some symbols (e.g., NASDAQ:AAPL ).
Highlighting in which bar the midnight candle occurs.
Hiding indecision bars (neutral candles).
Showing only "Regular Trading Hours" for a chart that does not have the option to toggle ETH/RTH. To achieve this, the actual chart data is hidden, and only the indicator is visible; alternatively, a 2nd instance of the indicator could change colors to match the chart background.
Using a combination of Bars and Japanese Candlesticks. Alternatively, this could be done by hiding the main chart data and using 2 instances of the indicator (one with " Chart Style " setting as Bars , and the other set to Candles ).
Using a combination of thin and thick bars on Range charts. Note: requires disabling the "Thin Bars" setting for Bar charts in the TradingView chart settings.
NOTES
If using more than one instance of this indicator on the same chart, you can use the TradingView "Save Indicator Template" feature to avoid having to re-configure the multiple indicators at a later time.
This indicator is intended to work "out-of-the-box" thanks to the behind_chart option introduced to Pine Script in October 2024. But you can always manually bring the indicator to the front just in case the color changes are not being seen (using the "More" option in the indicator status line: More > Visual Order > Bring to front ).
Many thanks to fikira for their help and inspiring me to create open source scripts.
Any feedback including bug reports or suggestions for improving the indicator (or source code itself) are always welcome in the comments section.
Trade Checklist RSI BollingerBands UP/DOWN Daysupdated 30WSMA in the table this is a good indicator for a stock to be bullish or bearish above 30WSMA is bullish and below is bearish
Simple Trend Strength & MomentumThis indicator will show a combination of Trend Strength, Volatility using an Adaptive Moving Average (AMA), and Market Momentum.
You can use this indicator to identify trends, volatility, and momentum shifts in real-time, making it an excellent tool for both trend-following and breakout strategies.
The three main features of this indicator are:
Adaptive Moving Average (AMA): Tracks the trend direction with a dynamic smoothing factor that adjusts based on market volatility. The AMA line changes color based on trend strength (green for bullish, red for bearish). I manually compute the Adaptive Moving Average (AMA) using a smoothing factor derived from the market's efficiency ratio. I have used fastLength and slowLength to control the responsiveness of the AMA.
Volatility Bands: Plots upper and lower bands around the AMA line, indicating price volatility. These bands dynamically adjust based on ATR, with a color gradient that changes intensity based on market volatility.
Momentum Circles: Positive momentum (ROC above the threshold) is shown as a green circle below the bar, while negative momentum is marked by a red circle above the bar. This makes it easy to spot momentum shifts.
The green dots in the indicator represent positive momentum. Specifically, they are displayed when the Rate of Change (ROC) of the price exceeds a predefined threshold (set as threshold in the input). This indicates that the market is experiencing upward price movement at a rate faster than the defined threshold.
How it works:
Rate of Change (ROC) measures the percentage change in price over a specified period (in this case, 14 periods).
When the ROC is greater than the set threshold (1.5 by default), a green circle (dot) is plotted below the price bar to signal that there is significant positive momentum.
This can be seen as an indicator of bullish momentum, where price is increasing at a relatively fast pace compared to previous periods.
The green dots help you spot when the price is moving upward rapidly, potentially signaling a good time to enter a long position or watch for further price action.
NOTE: It is vice versa for red dots.
Sweaty Palms MA (50/100/200 + 250)Sweaty Palms Multiple MA (50/100/200 + 250)
A comprehensive moving average indicator combining the most powerful technical levels used by institutional traders. Features crystal-clear visualization of major moving averages with distinct colors and dynamic labels for enhanced clarity.
Features:
• Multiple MA types available (SMA, EMA, WMA, RMA, HMA)
• Four key moving averages: 50, 100, 200, and optional 250
• Institutional-grade color coding:
- Blue (50 MA): Short-term trend
- Orange (100 MA): Intermediate trend
- Purple (200 MA): Long-term trend
- White (250 MA): Extra long-term trend
• Dynamic labels that move with price
• Optional 250 MA toggle for reduced chart clutter
• Customizable MA lengths
Key Applications:
• Major Support/Resistance Levels: These MAs are widely watched by institutional traders
• Bull/Bear Market Definition: Price above/below 200 MA
• Golden/Death Cross: 50 & 200 MA crossovers
• Multiple Timeframe Analysis: Different MAs for different trading horizons
• Trend Strength: Spacing and alignment of MAs indicate trend strength
Settings:
• MA Type: Choose between SMA, EMA, WMA, RMA, HMA
• Customizable lengths for all MAs
• Toggle option for 250 MA
• Clean label display showing MA periods
Note: This indicator combines the most followed moving averages in financial markets. The 50, 100, and 200 MAs are particularly significant as they are watched by large institutions and often create self-fulfilling support/resistance levels.
Created by SweatyPalmsAlgo
Sweaty Palms 9/21 EMASweaty Palms 9/21 EMA
A clean and efficient implementation of the widely-used 9 & 21 EMA combination. This indicator helps traders identify trend direction and potential support/resistance levels with easily distinguishable colors and clear labels.
Features:
• Customizable EMA lengths (default 9/21)
• Clear color coding: Green for faster EMA, Gold for slower EMA
• Dynamic labels that move with price
• Toggle visibility for each EMA
• Clean, uncluttered display
Key Use Cases:
• Trend Direction: When the faster EMA is above the slower EMA, it suggests an uptrend, and vice versa
• Dynamic Support/Resistance: These EMAs often act as support in uptrends and resistance in downtrends
• Momentum: The spacing between EMAs can indicate trend strength
• Trade Signals: Crossovers between EMAs can signal potential entry/exit points
Settings:
• First EMA Length: Default 9 (customizable)
• Second EMA Length: Default 21 (customizable)
• Show/Hide options for each EMA
Note: This indicator is designed for clarity and ease of use, making it suitable for both beginners and experienced traders. The default settings of 9/21 are popular among day traders, but can be adjusted to suit any trading style or timeframe.
Created by SweatyPalmsAlgo
FXzio Engulfing Candle This indicator is designed to identify and highlight **Engulfing Candlestick Patterns** on your TradingView charts.
Precision Trade Zone By KittisakIndicator นี้มีไว้สำหรับคำนวณ Money Management ซึ่งจะช่วยอำนวยความสะดวกในการจัดการความเสี่ยงในการเทรด การคำนวณ Leverage ที่เหมาะสมกับความเสี่ยงที่คุณยอมรับได้ และจัดการจุด Stop Loss ให้เหมาะสมกับ Leverage นั้น
คำอธิบายเกี่ยวกับคำย่อ
LR หมายถึง Leverage ที่เหมาะสม
EP หมายถึง Entry Price หรือราคาเข้าซื้อ
BEP หมายถึง Break-Even Point หรือจุดคุ้มทุน (คุณสามารถย้าย Stop Loss มาที่จุดนี้เมื่อราคาไปถึงจุดหนึ่งเพื่อป้องกันการขาดทุนได้)
SL หมายถึง Stop Loss (ซึ่งเป็น Stop Loss ที่คำนวณใหม่เพื่อให้ตำแหน่งเหมาะสมกับ Leverage ที่คำนวณได้ คุณควรใช้จุดนี้เพื่อเป็นราคา Stop Loss แทนจุด Stop Loss ที่คุณกำหนดไว้ในตอนแรก)
TP หมายถึง Take Profit (เป็นจุดที่คุณจะขายทำกำไรตาม RR ที่กำหนดไว้)
* หมายเหตุ เมื่อเริ่มเปิด Indicator จะเกิด Error ขึ้น และไม่มีผลลัพท์ใด ๆ แสดงให้เห็น นั่นเป็นเพราะคุณต้องเข้าไปกำหนด Entry Price และ Stop Loss ในการตั้งค่าของ Indicator เสียก่อน
REVERSÃO POR ZONA DE RSI- INICIA CRYPTO //@version=5
indicator('REVERSÃO POR ZONA DE RSI- INICIA CRYPTO ', overlay=false)
//functions
xrf(values, length) =>
r_val = float(na)
if length >= 1
for i = 0 to length by 1
if na(r_val) or not na(values )
r_val := values
r_val
r_val
xsa(src, len, wei) =>
sumf = 0.0
ma = 0.0
out = 0.0
sumf := nz(sumf ) - nz(src ) + src
ma := na(src ) ? na : sumf / len
out := na(out ) ? ma : (src * wei + out * (len - wei)) / len
out
// inputs
n1 = input.int(30, title='n1', minval=1)
//threshold lines
h1 = hline(50, color=color.red, linestyle=hline.style_dotted)
h2 = hline(50, color=color.green, linestyle=hline.style_dotted)
h3 = hline(10, color=color.lime, linestyle=hline.style_dotted)
h4 = hline(90, color=color.red, linestyle=hline.style_dotted)
fill(h2, h3, color=color.new(color.green, 70))
fill(h1, h4, color=color.new(color.red, 70))
//KDJ indicator
rsv = (close - ta.lowest(low, n1)) / (ta.highest(high, n1) - ta.lowest(low, n1)) * 100
k = xsa(rsv, 3, 1)
d = xsa(k, 3, 1)
crossover_1 = ta.crossover(k, d)
buysig = d < 25 and crossover_1 ? 30 : 0
crossunder_1 = ta.crossunder(d, k)
selsig = d > 75 and crossunder_1 ? 70 : 100
//plot buy and sell signal
ple = plot(buysig, color=color.new(color.green, 0), linewidth=1, style=plot.style_area)
pse = plot(selsig, color=color.new(color.red, 0), linewidth=2, style=plot.style_line)
//plot KD candles
plotcandle(k, d, k, d, color=k >= d ? color.green : na)
plotcandle(k, d, k, d, color=d > k ? color.red : na)
// KDJ leading line
var1 = (close - ta.sma(close, 13)) / ta.sma(close, 13) * 100
var2 = (close - ta.sma(close, 26)) / ta.sma(close, 21) * 100
var3 = (close - ta.sma(close, 90)) / ta.sma(close, 34) * 100
var4 = (var1 + 3 * var2 + 9 * var3) / 13
var5 = 100 - math.abs(var4)
var10 = ta.lowest(low, 10)
var13 = ta.highest(high, 25)
leadingline = ta.ema((close - var10) / (var13 - var10) * 4, 4) * 25
pbias = plot(leadingline, color=k >= d ? color.green : color.red, linewidth=4, style=plot.style_line, transp=10)
EMA 9 & EMA 15This TradingView script plots two Exponential Moving Averages (EMAs) on your chart to help you identify trends and potential trade setups. Here's a detailed explanation of its components:
Multiframe - EMAs + RSI LevelsThis indicator was created to make life easier for all traders, including the main market indicators, such as EMAs 12, 26 and 200 + respective EMAs in higher time frames, and complemented with RSI Levels that vary from overbought 70 - 90 and oversold 30 - 10.
The Indicator can be configured to make the chart cleaner according to your wishes.
Volume Delta with Keltner Channels and Alerts BY THANHNGUYENVolume Delta with Keltner Channels and Alerts BY THANHNGUYEN