Timeframe-Based Dynamic MA [odnac]
This code is a Timeframe-Based Dynamic MA indicator, written in Pine Script, that dynamically calculates and displays the Simple Moving Average (SMA), Exponential Moving Average (EMA), and Volume Weighted Moving Average (VWMA) based on a 24-hour period, according to the selected timeframe. It automatically adjusts the length of the moving averages for each timeframe, showing the appropriate value optimized for that specific timeframe.
Code Explanation:
Settings:
inputLength: A user input that allows setting the base time (24 hours by default). This value determines the reference for calculating the length of the moving averages according to the timeframe.
transp: A setting for the transparency of the moving average lines. It can accept values from 0 to 100 (0 is opaque, 100 is fully transparent).
Timeframe-Based Moving Average Calculation:
The length variable is dynamically calculated based on the current chart's timeframe.
For shorter timeframes like 1-minute, 2-minute, 3-minute, 5-minute, 10-minute, 15-minute, 30-minute, and 45-minute, the length is calculated by multiplying 60 / selected timeframe to obtain the moving average length based on a 24-hour period.
For longer timeframes like 1 hour, 4 hours, and 1 day, fixed values are used to set the moving average length.
Moving Average Calculation:
sma, ema, vwma: These are the Simple Moving Average, Exponential Moving Average, and Volume Weighted Moving Average calculated based on the length.
else_sma, else_ema, else_vwma: These represent the moving averages fetched from the 1-hour chart. For timeframes that are not calculated directly, the values are taken from the 1-hour chart.
Displaying the Moving Averages:
The moving averages are plotted according to the length calculated for the current timeframe.
If the length for the current timeframe is valid, the corresponding SMA, EMA, and VWMA values are displayed. Otherwise, the values fetched from the 1-hour chart are used.
The moving averages are displayed with the transparency (transp) value set by the user, controlling their opacity on the chart.
How to Use:
Base Time: The user sets a base time. For example, setting inputLength to 24 will calculate the moving average length based on a 24-hour period, which will be dynamically adjusted and displayed according to the selected timeframe.
Transparency Setting: The transparency of the moving average lines can be adjusted using the transp value.
Supported Timeframes:
For shorter timeframes (1-minute, 2-minute, 3-minute, 5-minute, 10-minute, 15-minute, 30-minute, 45-minute), the moving average lengths are dynamically calculated and displayed.
For longer timeframes (1 hour, 4 hours, 1 day), fixed length values are used.
This indicator allows you to dynamically calculate daily moving averages across different timeframes and visually check which moving average is the most appropriate for the selected timeframe.
Indicators and strategies
Indicateur Combiné UB et 10YDescription :
L'Indicateur Combiné UB et 10Y est un outil puissant conçu pour analyser les mouvements de l'Ultra Bond (UB) et du taux d'intérêt 10Y en prenant en compte à la fois le volume et les tendances du marché. Il utilise des moyennes mobiles pondérées par le volume (VWMA) et un oscillateur de volume pour identifier les conditions de marché favorables à l'achat ou à la vente.
Caractéristiques principales :
Analyse basée sur le Volume et la VWMA : L'indicateur analyse la relation entre le prix et la VWMA (Volume Weighted Moving Average) pour déterminer les tendances haussières et baissières.
Signaux d'achat et de vente pour l'UB :
Signal d'achat : Lorsque l'oscillateur de volume est positif et que la VWMA est inférieure au prix, indiquant une tendance haussière avec un volume soutenant cette direction.
Signal de vente : Lorsque l'oscillateur de volume est négatif et que la VWMA est supérieure au prix, indiquant une tendance baissière et une pression de vente croissante.
Analyse du 10Y :
Le signal de vente pour le 10Y est déclenché lorsque le volume du 10Y dépasse un seuil de 114 et que le prix du 10Y est supérieur à sa moyenne mobile, signalant un moment propice pour envisager une vente sur l'Ultra Bond.
Affichage clair :
Les signaux d'achat sont indiqués par des triangles verts sous la barre de prix.
Les signaux de vente sont indiqués par des triangles rouges au-dessus de la barre de prix pour l'UB, et des étiquettes rouges "🔻" pour le 10Y.
Volume et seuils dynamiques : Le volume de négociation et un seuil de volume spécifique pour le marché du 10Y sont pris en compte pour éviter les faux signaux pendant les périodes de faible activité.
Comment utiliser cet indicateur :
Utilisez les signaux d'achat et de vente de l'UB pour trader en fonction des tendances du marché et de l'oscillateur de volume.
Surveillez les signaux de vente du 10Y pour repérer des opportunités sur l'Ultra Bond, basées sur des volumes importants et une tendance haussière du 10Y.
Fonctionnalités supplémentaires :
Personnalisable : Vous pouvez ajuster les périodes des moyennes mobiles (VWMA, SMA) et les seuils de volume en fonction de vos préférences.
Outil de trading avancé : Idéal pour les traders utilisant des instruments comme l'Ultra Bond (UB) et souhaitant intégrer l'analyse des taux d'intérêt 10Y dans leur stratégie.
JDF + RSI + ADX (Scalping) MejoradoEste indicador de scalping avanzado combina múltiples herramientas de análisis técnico para ofrecer señales más precisas y confiables en mercados de alta volatilidad. Utiliza el sistema KAMA (Adaptive Moving Average) para detectar tendencias, junto con el RSI y el ADX para confirmar la fortaleza de la tendencia y evitar señales falsas. Además, incorpora un filtro de volatilidad basado en ATR, lo que ayuda a detectar condiciones de mercado óptimas para entrar o salir. Las señales de entrada se confirman solo cuando hay un alineamiento positivo entre estos indicadores, mientras que las señales de salida se generan si la tendencia pierde fuerza o el precio alcanza niveles de sobrecompra o sobreventa. El indicador también incluye una opción de análisis en temporalidades superiores para validar la dirección de la tendencia. Los globos visuales indican claramente las señales de compra (L), venta (S) y salida (SALIR) para facilitar la toma de decisiones en tiempo real. Ideal para traders que buscan precisión y eficiencia.
ADX (MT4 Equivalent)ADX indicator with settings available in MetaTrader software
This indicator is different from the indicators available in TradingView and is suitable for users who use the settings available in MetaTrader.
Advanced Buy/Sell SignalThis TradingView script is an advanced buy/sell signal generator, designed to help traders make informed decisions based on multiple technical indicators. The indicator is built for precision and clarity, combining EMA Crossovers, RSI levels, and MACD Histogram to identify potential buying and selling opportunities.
Features:
EMA Crossovers: Uses two customizable EMAs (short and long) to identify trend changes.
RSI Levels: Ensures trades are executed only when the RSI confirms momentum (avoiding overbought/oversold traps).
MACD Histogram: Confirms the strength of momentum for higher accuracy.
Visual Signals:
Buy Signals: Displayed with green labels and arrows below bars when conditions are met.
Sell Signals: Displayed with red labels and arrows above bars when conditions are met.
Customizable Inputs: Adjust EMA lengths, RSI levels, and MACD parameters to suit your trading strategy.
Alerts: Configurable alerts for Buy and Sell signals so you never miss an opportunity.
Usage:
Designed for 45-minute and 5-minute timeframes.
Works well for both trend-following and momentum-based strategies.
Add this script to your chart, customize the parameters, and start analyzing buy/sell opportunities.
Disclaimer: This script is for educational purposes and does not guarantee profits. Always backtest and combine with proper risk management strategies.
Export Datathis script widmsfsnklfdsmsfklmdklmskldskl;mgfksldmgklsdmglksdfnmgkldsmngvlksdmnvlkdmsnklvndsklvnsdklv ndvdsklvdsklvlksdvmsdklmvsldkkvd
Grid Level AlertsScript alerts you about coin movements, but not percentage moves but price levels. Like if you had a grid bot and you get notified of every trade.
But the grid is dynamic. There is a base MA and level are recalculated every 6 hours from this MA by percentage moves.
Notifications are not flawless, slow movements and some extreme wicks can evade alerts.
But it helps a lot, and your chart staring will decrease.
TRTo anticipate that the market is entering a **trading range**, watch for the following early signs based on Al Brooks' price action strategies:
1. **Initial Doji Bar**: If the first bar of the day is a doji, it increases the chance of a trading range day because it reflects uncertainty and a lack of directional conviction.
2. **Multiple Reversals**: If there are **4-5 reversals** within the first hour of trading, this is a strong clue that the market is shifting into a range-bound mode. This two-sided trading behavior shows that neither bulls nor bears are gaining control.
3. **Weak Follow-Through**: When strong trend bars (bullish or bearish) lack follow-through in subsequent bars, it indicates that the market is not trending strongly and is more likely to stay range-bound.
4. **Tails and Overlapping Bars**: Look for:
- **Bars with prominent tails** (indicating rejection of highs/lows).
- **Bar overlap** of 50% or more with previous bars.
- **Doji bars** appearing frequently, as they signal indecision.
5. **Price Hovering Around the Moving Average**: If the price frequently crosses the moving average and the moving average becomes relatively flat, it often indicates a developing trading range.
6. **Failure of Breakouts**: Early breakout attempts (above or below prior highs/lows) that fail to sustain momentum and reverse back into the range signal the market is rejecting trends.
7. **Spike and Channel Pattern**: If a strong spike is followed by a shallow or sideways **channel**, this often serves as the first leg of a trading range.
8. **Lack of Momentum**: In trends, pullbacks are shallow and strong. In trading ranges, price action slows, moves horizontally, and legs subdivide into smaller two-legged moves.
### Summary:
Focus on reversals, bar overlap, failed breakouts, and lack of directional momentum within the first hour to spot a trading range early. Combining these signals improves your ability to switch to **range trading strategies**, such as fading the extremes of the range.
JR_EMAResearchThis indicator creates an Exponential Moving Average (EMA) with customizable bands around it.
The bands can be based on three different calculation methods:
1. Full Average Bar Range (high-low)
2. Body Average Bar Range (open-close)
3. Standard Deviation of the EMA
Users can display up to three bands above and below the EMA, with options to customize the colors, transparency, and whether to fill the area between bands. The indicator serves both as a research tool for studying price action around EMAs and as a potential trading tool for identifying volatility zones.
Key features:
- Configurable EMA period and color
- Three different band calculation methods
- Up to 3 standard deviations of band display
- Optional band filling with customizable color and transparency
- Overlay display for easy price action analysis
Price Level Break & Candle Pattern DetectorPrice Level Break & Candle Pattern Detector
A powerful and customizable indicator that combines price level breakout detection with candlestick pattern analysis to generate precise trading signals.
Key Features
Monitors user-defined price levels for breakouts
Identifies bullish and bearish candle patterns
Generates real-time alerts when both conditions are met
Customizable alert settings for improved trade management
How It Works
The indicator continuously monitors price action around specified price levels. When price breaks through these levels AND forms either a bullish or bearish candle pattern (based on your settings), it triggers an alert. This dual-confirmation approach helps reduce false signals and provides more reliable trading opportunities.
Use Cases
Support/Resistance breakout trading
Key price level monitoring
Trend reversal identification
Breakout confirmation
Risk management tool
Benefits
Reduces false breakout signals through pattern confirmation
Saves time by automating price level monitoring
Helps identify higher-probability trading setups
Customizable to fit various trading strategies
Perfect for both day trading and swing trading
Alert Types
Price level break alerts
Candlestick pattern formation alerts
Combined confirmation alerts
Suggested Settings
Set price levels at major support/resistance zones
Adjust candle pattern sensitivity based on timeframe
Use with multiple timeframes for confirmation
Combine with volume analysis for better accuracy
Multi-Timeframe RSI AlertsSteps to Use:
Copy and paste the script into the Pine Script Editor in TradingView.
Save the script and add it to your chart.
Set up alerts:
Go to the Alerts tab in TradingView.
Create a new alert and select this script.
Choose Any alert() function call as the condition.
Inside Candle Strategy HANMANT//@version=5
indicator("Inside Candle Strategy", overlay=true)
// Identify the previous candle's high and low
prevHigh = high
prevLow = low
// Identify the current candle's high and low
currHigh = high
currLow = low
// Check if the current candle is an inside candle
isInsideCandle = (currHigh < prevHigh) and (currLow > prevLow)
// Plotting the inside candle
bgcolor(isInsideCandle ? color.new(color.blue, 90) : na)
// Long and Short conditions
longCondition = isInsideCandle and (currHigh > currHigh )
shortCondition = isInsideCandle and (currLow < currLow )
// Generate signals
plotshape(series=longCondition, location=location.belowbar, color=color.green, style=shape.labelup, text="Long")
plotshape(series=shortCondition, location=location.abovebar, color=color.red, style=shape.labeldown, text="Short")
// Alerts
alertcondition(longCondition, title="Long Signal", message="Long Signal Triggered")
alertcondition(shortCondition, title="Short Signal", message="Short Signal Triggered")
Breakout Trading with ATR MenaVerseNombre del Indicador
Breakout Trading with ATR
Propósito del Script
Este indicador está diseñado para ayudar a los traders a identificar posibles rompimientos en los precios, ya sea al alza o a la baja, utilizando el ATR (Average True Range) como medida de volatilidad. Combina niveles de soporte y resistencia con la volatilidad del mercado para establecer puntos de entrada en operaciones de compra y venta.
Características Principales
Identificación de Soporte y Resistencia:
Utiliza un período definido por el usuario (lookback) para identificar el precio más alto (resistencia) y más bajo (soporte) en un rango específico de barras.
Niveles de Rompimiento:
Calcula dos niveles:
Rompimiento Superior: Para señales de compra.
Rompimiento Inferior: Para señales de venta.
Estos niveles se basan en la resistencia, el soporte y el ATR multiplicado por un factor ajustable (multiplier).
Señales de Compra y Venta:
Señal de Compra: Cuando el precio cierra por encima del nivel de rompimiento superior.
Señal de Venta: Cuando el precio cierra por debajo del nivel de rompimiento inferior.
Alertas de Trading:
Notificaciones automáticas para las señales de compra y venta:
"Señal de Compra: El precio rompió la resistencia."
"Señal de Venta: El precio rompió el soporte."
Visualización Intuitiva:
Líneas verdes y rojas para los niveles de rompimiento.
Líneas punteadas naranja y azul para los niveles originales de resistencia y soporte.
Flechas que indican claramente las señales de compra y venta en el gráfico.
Opcional: Mostrar ATR en el Gráfico:
Permite al usuario ver el valor del ATR como una línea adicional en el gráfico, para entender mejor la volatilidad del mercado.
Parámetros Personalizables
ATR Length: El número de períodos para calcular el ATR.
Predeterminado: 14.
ATR Multiplier: Factor que amplifica los niveles de rompimiento con base en la volatilidad.
Predeterminado: 1.5.
Lookback Period for Levels: Número de barras hacia atrás para calcular soporte y resistencia.
Predeterminado: 50.
Show ATR: Opción para mostrar o no el ATR en el gráfico.
Predeterminado: Desactivado.
Cálculos Importantes
ATR (Average True Range):
Calcula la volatilidad promedio de las últimas ATR Length barras.
Niveles de Soporte y Resistencia:
Resistencia: Precio más alto en el rango de lookback.
Soporte: Precio más bajo en el rango de lookback.
Niveles de Rompimiento:
Rompimiento Superior:
Resistencia
+
(
ATR
×
Multiplicador
)
Resistencia+(ATR×Multiplicador)
Rompimiento Inferior:
Soporte
−
(
ATR
×
Multiplicador
)
Soporte−(ATR×Multiplicador)
Visualización
Línea Verde: Nivel de rompimiento superior.
Línea Roja: Nivel de rompimiento inferior.
Línea Naranja: Nivel de resistencia original.
Línea Azul: Nivel de soporte original.
Flechas:
Verde hacia arriba para señales de compra.
Roja hacia abajo para señales de venta.
Uso Práctico
Identificación de Rompimientos:
Usa las líneas de colores para detectar cuando el precio supera los niveles clave.
Señales de Entrada:
Ejecuta operaciones de compra o venta basándote en las flechas y alertas.
Confirmación con ATR:
Utiliza el ATR para evaluar si el mercado tiene suficiente volatilidad para justificar el rompimiento.
Vertical & Open Lines - Yearly [MsF]Yearly Vertical & Open Lines Indicator
This indicator helps traders visualize yearly boundaries and track previous year's price levels. It draws:
- Vertical lines at the start of each year
- Horizontal lines showing previous year's open and close prices
- Optional labels with price information
Features:
- Customizable line colors and styles
- Toggle yearly vertical lines
- Show/hide previous year's price levels
- Optional price labels
- Next year line preview
Usage:
1. Add indicator to your chart
2. Adjust Base Time to match your market's yearly reset time
3. Customize colors and styles using input options
4. Toggle features as needed
Flipstet ATR LoganFlipstet ATR Logan 입니다.
Flipstet ATR LoganFlipstet ATR LoganFlipstet ATR LoganFlipstet ATR Logan
Fibonacci Channel (365 SMA with Labels)This script dynamically combines Fibonacci levels with the 365-period simple moving average (SMA), offering a powerful tool for identifying high-probability support and resistance zones. By adjusting to the changing 365 SMA, the script remains relevant across different market phases.
Key Features:
Dynamic Fibonacci Levels:
The script automatically calculates Fibonacci retracements and extensions relative to the 365SMA.
These levels adapt to market trends, offering more relevant zones compared to static Fibonacci tools.
Support and Resistance Zones:
In uptrends, price often respects retracement levels above the 365SMA (e.g., 38.2%, 50%, 61.8%).
In downtrends, price may interact with retracements and extensions below the 365 SMA (e.g., 23.6%, 1.618).
Customizable Confluence Zones:
Key levels such as the golden pocket (61.8%–65%) are highlighted as high-probability zones for reversals or continuations.
Extensions (e.g., 1.618) can serve as profit targets or bearish continuation points.
Practical Applications:
Identifying Reversal Zones:
Look for confluence between Fibonacci levels and the 365 SMA to identify potential reversal points.
Example: A pullback to the 61.8%–65% golden pocket near the 365 SMA often signals a bullish reversal.
Trend Confirmation:
In uptrends, price respecting Fibonacci retracements above the 365 SMA (e.g., 38.2%, 50%) confirms strength.
Use Fibonacci extensions (e.g., 1.618) as profit targets during strong trends.
Dynamic Risk Management:
Place stop-losses just below key Fibonacci retracement levels near the 365 SMA to minimize risk.
Bearish Scenarios:
Below the 365 SMA, Fibonacci retracements and extensions act as resistance levels and bearish targets.
How to Use:
Volume Confirmation: Watch for volume spikes near Fibonacci levels to confirm support or resistance.
Price Action: Combine with candlestick patterns (e.g., engulfing candles, pin bars) for precise entries.
Trend Indicators: Use in conjunction with shorter moving averages or RSI to confirm market direction.
Example Setup:
Scenario: Price retraces to the 61.8% Fibonacci level while holding above the 365 SMA.
Confirmation: Volume spikes, and a bullish engulfing candle forms.
Action: Enter long with a stop-loss just below the 365 SMA and target extensions like 1.618.
Key Takeaways:
The 365 SMA serves as a reliable long-term trend anchor.
Fibonacci retracements and extensions provide dynamic zones for trade entries, exits, and risk management.
Combining this tool with volume, price action, or other indicators enhances its effectiveness.
vela envolventes oscaramortegcada que hay una vela que cubra otra con fuerza encima o debajo de la media movil de 100 peridos se genera una señal
Average Candle Size (5min, 14 days)It shows Average size of candle. Keep half of it as a box size of renko chart.