jebreil mahmoudiComprehensive Script Explanation
This Pine Script integrates various features aimed at providing real-time insights for traders, with a focus on market opening dynamics, daily levels, Fibonacci retracement, swing highs and lows, and multi-asset comparisons. Below is a detailed breakdown:
1. Market Opening Candle and Daily High/Low Levels:
Market Open Identification: The script identifies the first candle of the market session (using the user's local time settings), marking it as the reference point for further analysis.
High/Low for the First 18 Candles: The highest and lowest price points between the market open (first candle) and the 18th candle after it are tracked. This allows traders to observe key support and resistance levels based on the early price action.
Previous Day Close: The close of the previous day is plotted as a reference for comparing how the current session opens relative to the previous session's close.
2. Plotting Fibonacci Levels:
Fibonacci retracement levels are drawn based on the previous day’s price action. The key Fibonacci levels, such as 50% and 70.5%, are used to identify possible support and resistance zones. These levels are crucial for predicting potential price retracements or reversals.
3. Swing Highs and Lows:
Swing Highs and Swing Lows are detected automatically. These points are marked on the chart to help traders identify potential turning points in the market.
The Swing Highs and Lows give insights into where price may change direction and help traders understand the market’s overall trend.
4. RSI for Multiple Assets:
RSI (Relative Strength Index) indicators for Bitcoin, Ethereum, and the S&P 500 are plotted near the chart. This allows traders to compare the relative strength of each asset and spot overbought or oversold conditions.
The RSI of each asset is displayed near the price chart, making it easier to track momentum shifts across different markets.
5. ADX for Trend Strength:
The ADX (Average Directional Index) indicator is used to gauge the strength of the trend. When the market is trending strongly, the candles change color to reflect this trend, signaling traders to align their trades with the prevailing market direction.
A strong trend is indicated by a high ADX value, while a weak or consolidating market shows a low ADX value.
6. Support/Resistance Levels Based on Market Structure:
The script automatically draws support and resistance lines based on recent price action and Fibonacci levels. These lines help traders quickly spot key levels for potential entries or exits, and provide an easy-to-follow roadmap for price targets.
By analyzing previous price highs and lows, the script adjusts support and resistance zones as the market evolves.
7. Stop-Hunt Zones:
The script identifies Stop-Hunt Zones, areas where the price is likely to trigger stop losses before reversing. These zones often represent areas where liquidity is hunted, providing traders with an opportunity to anticipate potential reversals or breakouts.
8. Cross-Asset Comparison:
By comparing multiple assets (such as Bitcoin, Ethereum, and S&P 500), traders can see how the performance of one asset correlates with others. This is particularly useful when trading cryptocurrencies or other assets that often correlate with each other.
Cross-asset analysis helps traders make decisions based not just on one asset but also considering broader market movements, leading to more informed trading decisions.
9. Daily High and Low Levels:
The script calculates and displays the high and low levels of the current trading day, as well as previous day's high/low levels. These levels provide insight into where the price might reverse or continue its movement.
Daily High/Low levels act as key support and resistance markers, helping traders make decisions based on how current prices compare to these critical price levels.
10. RSI Coloring:
The RSI value changes color based on its level: red when the RSI is nearing overbought (near 65), green when nearing oversold (near 35), and blue in neutral conditions. This provides traders with quick visual cues on the strength and direction of market momentum.
11. Additional Indicators for Enhanced Analysis:
Bollinger Bands: These are plotted with high contrast colors for clear visibility. Bollinger Bands help traders assess market volatility and overbought/oversold conditions.
Moving Averages (EMA50, SMA100, EMA200): These averages are plotted to identify the overall trend direction and to support entry and exit decisions based on crossovers.
Long/Short Labels: Small labels indicating Long or Short positions are shown on the chart, offering immediate trade setup insights.
Why This Script Is Valuable:
Efficient Decision-Making: The script helps traders save time by automatically identifying key levels such as the first candle's high/low, Fibonacci levels, and daily highs/lows. This allows for faster decision-making.
Comprehensive Market Overview: The multi-asset analysis (Bitcoin, Ethereum, S&P 500) provides traders with a broader view of market sentiment, enabling them to spot correlations and adjust their strategies accordingly.
Real-Time Intraday Analysis: This script is perfect for intraday traders, as it gives a real-time view of market movements, especially the first 18 candles after the market open.
Support for Volatile Markets: The script is well-suited for markets like cryptocurrencies, which are highly volatile. By marking key price levels, stop-hunt zones, and using momentum indicators like RSI and ADX, traders can adapt quickly to volatile conditions.
Trend Identification: The ADX indicator, combined with moving averages and RSI, makes it easier for traders to identify strong trends, giving them confidence in taking positions aligned with the prevailing market direction.
By incorporating analysis from the market opening candle through to daily high/low points, and considering Fibonacci levels, RSI, and ADX indicators, this script provides a robust and holistic view of the market, making it ideal for active traders in both volatile and trending markets.
Candlestick analysis
Super ScriptKey Features
Opening Range Breakout (ORB):
Defines the first 10-minute candle range after market open (high and low).
Tracks breakout conditions where the price opens above or below the range.
VWAP Integration:
Calculates the Volume-Weighted Average Price (VWAP) and its slope to gauge intraday trend direction.
Used in conjunction with breakout alerts to validate trend strength.
Bollinger Bands (BB):
Implements 6-period Bollinger Bands with a multiplier of 2.
Determines the position of the middle Bollinger Band relative to the opening range to validate breakouts.
Alerts for Buy/Sell:
Triggers alerts when conditions for breakouts align with VWAP slope and Bollinger Band positioning.
Ensures alerts only occur within the first hour of trading to target high-volatility periods.
ATR-Based Trailing Stops:
Uses Average True Range (ATR) to calculate dynamic trailing stop levels.
Displays trailing stop values as a reference for position management.
ADX Signals:
Detects strong directional movements using the Average Directional Index (ADX).
Plots "Strong Signal" icons when ADX crosses above 20.
Signal Icons:
Displays BUY and SELL icons on the chart for visual clarity.
Uses white triangles for bearish signals and orange labels for BUY/SELL conditions.
How It Works
Market Open Setup:
Captures the high and low of the first 10-minute candle after the market opens (9:30 AM EST).
Monitors the price movement relative to this range.
Breakout Conditions:
Detects if the current candle opens above or below the first 10-minute candle range.
Confirms breakout signals using:
Positive VWAP slope (uptrend validation).
Middle Bollinger Band position (above or below the breakout range).
Dynamic Alerts:
Sends "Price Break Above" or "Price Break Below" alerts only once per day for validated conditions.
Combines multiple indicators to reduce false signals.
Position Tracking:
Tracks BUY/SELL positions based on the ATR trailing stop levels.
Adjusts the stop dynamically as the price moves.
ADX Strong Signals:
Highlights periods of strong directional trends.
Adds white triangle icons to emphasize bearish opportunities.
Visualization
Horizontal Lines: The high and low of the first 10-minute candle are plotted as white lines.
Middle Bollinger Band: A blue line displays the trend of the middle Bollinger Band.
Signal Icons: BUY and SELL signals are marked with small labels or triangles for quick interpretation.
ADX Triangles: White triangles signify strong ADX-based signals below the price.
Usage Tips
Trade During High Volatility:
Focus on the first hour of trading, where the script's alerts are most effective.
Set Alerts:
Activate TradingView alerts to stay informed when breakout or ADX conditions are met.
This script is ideal for day traders seeking precise entry points and swing traders looking for trend confirmation. With integrated breakout logic and strong trend detection, the Super Script enhances efficiency and confidence in trading decisions.
Venmo @Matt-Hierseman if you want to tip your script-tender. CHEERS and happy Trading!
How to generate profits with easy and basic indicatorsFirst post in a while, so please leave me feedback!
I'd like to start a series of posts where I explain and show how basic indicators can be utilized to maximize profits. Understanding basic indicators, such as MACD, RSI, Stochastics, Moving averages, etc are better than using advanced or complicated indicators. Often times, traders get caught up in trying to create the best indicator they can, but fail to realize that it won't perform well if they don't understand it. Instead, it is better to understand and learn which indicators control what kind of market, and how to tune each indicator to account for the market it is targeting.
In this example, I'll be focusing on the MACD and Linear Regression slope indicators. In my strategy, my MACD is slightly modified so that the smoothing function incorporates the WMA, TEMA in addition to the standard SMA and EMA. The difference between the 4 different types of moving averages may not seem significant since they're all a TYPE of moving average, but the difference becomes very clear when they're incorporated into a MACD calculation. As with many things in trading, there is no correct answer, but in this study I used the WMA simply because experience has taught me that the most recent point of data is the most important, which is utilized in the WMA calculation.
In addition to the MACD indicator, I add a Linear regression slope indicator. My script allows you to generate buy signals with the MACD indicator ALONE, or the Linear regression slope (LRS) indicator ONLY, or both. Similarly, the sell indicators are structured the same way. A take profit and stop loss is also utilized.
The LRS is designed to plot out 2 values: the linear regression value, and the slope of the linear regression value which is essentially the difference between 2 most current points. The buy indicator for LRS in my script can either be when the slope is increasing, when the linear regression value is greater than the price of the chart, or BOTH.
By combining the MACD and Linear regression into one script, we are left with 4 integer parameters to tune. In this example, we are using an initial capital of 10,000, with a 100% equity order size. The reason I am doing this is because I want to show how effective this strategy is compared to buying and holding Bitcoin under the same conditions. Assuming a commission of .1%, and a slippage of 10 ticks, this strategy is about +4000 compared to bitcoin (+25,000 vs +21,000.)
In the coming days and weeks, I'll be coming out with my simplified combo scripts that show how slightly modifying standard indicators, or combining 2 indicators can be better than using complicated indicators such as those claiming to be AI (artificial intelligence) or ML (machine learning) driven.
If you have any feedback, questions, or comments please leave them below! I am very transparent with over a decade of experience in data science and statistics, and an engineering background. Looking to help others! :)
Lastly, If you'd like to use my strategy and indicator, please send me a message. I also don't mind a challenge. Send me ANY chart, ANY market, ANY time frame, and I'll adapt a simplified (1-2 indicator) strategy to suit your needs.
Enhanced Adaptive Strategy with MACD, EMA 9, 20, Volume, and RSIKey Changes:
Lowered Sensitivity: Adjusted bullish and bearish candle sensitivity to 50% (from 70%) to recognize smaller candles.
Increased Sensitivity to Rapid Changes: Slightly adjusted the rapid bullish/bearish movement thresholds.
Volume and RSI Confirmation: Ensured high volume and RSI conditions are met.
This script should now be more responsive to more minor bullish uptrends and provide the buy signals more effectively.
Cabal Dev IndicatorThis is a TradingView Pine Script (version 6) that creates a technical analysis indicator called the "Cabal Dev Indicator." Here's what it does:
1. Core Functionality:
- It calculates a modified version of the Stochastic Momentum Index (SMI), which is a momentum indicator that shows where the current close is relative to the high/low range over a period
- The indicator combines elements of stochastic oscillator calculations with exponential moving averages (EMA)
2. Key Components:
- Uses configurable input parameters for:
- Percent K Length (default 15)
- Percent D Length (default 3)
- EMA Signal Length (default 15)
- Smoothing Period (default 5)
- Overbought level (default 40)
- Oversold level (default -40)
3. Calculation Method:
- Calculates the highest high and lowest low over the specified period
- Finds the difference between current close and the midpoint of the high-low range
- Applies EMA smoothing to both the range and relative differences
- Generates an SMI value and further smooths it using a simple moving average (SMA)
- Creates an EMA signal line based on the smoothed SMI
4. Visual Output:
- Plots the smoothed SMI line in green
- Plots an EMA signal line in red
- Shows overbought and oversold levels as gray horizontal lines
- Fills the areas above the overbought level with light red
- Fills the areas below the oversold level with light green
This indicator appears designed to help traders identify potential overbought and oversold conditions in the market, as well as momentum shifts, which could be used for trading decisions.
Would you like me to explain any specific part of the indicator in more detail?
Enhanced MACD with Trend Confirmation (RMAC) [visualSilicon]RMAC - Enhanced MACD with Trend Confirmation
Description:
The Relative Moving Average Convergence Divergence (RMAC) is an innovative adaptation of the traditional MACD indicator that helps identify high-probability trade setups by combining trend analysis with dynamic support/resistance levels.
Key Features:
Dynamic threshold lines that adapt to recent price action
Combines MACD with a signal averaging system to reduce false signals
Clear visual signals for both long and short setups
Customizable parameters for different timeframes and trading styles
How It Works:
The indicator calculates a signal average based on the highest and lowest signal values over a specified period. This creates dynamic threshold lines that help filter out noise and identify stronger trend movements. A trading signal occurs when the signal line crosses and closes above/below these threshold lines while moving in the direction of the overall trend.
Parameters:
Signal Average Length: Period for calculating the dynamic thresholds (default: 45)
Fast Length: Short-term EMA period (default: 2)
Slow Length: Long-term EMA period (default: 20)
Signal Smoothing: Smoothing period for the signal line (default: 1)
MA Types: Choose between SMA or EMA for both oscillator and signal calculations
Best Practices:
Use in conjunction with overall trend analysis
Look for setups where price respects key support/resistance levels
Consider volume confirmation at potential entry points
More reliable signals typically occur when used on higher timeframes
Limitations:
Like all indicators, RMAC can produce false signals, especially in choppy markets
Should not be used as a standalone trading system
Past performance does not guarantee future results
Backtest thoroughly before using in live trading
This indicator is free and open-source. If you find it useful, please consider leaving a like or comment.
Note: Always use proper risk management and combine this tool with other forms of analysis for best results.
∆ itradesize Silver Bullet x MACROS (edited) x KillzoneThis script is edited with NEW Macro Times.
Zeussy x JME
Investigate
London:
2:45AM - 3:15AM
3:45AM - 4:15AM
New York AM:
9:45AM - 10:15AM
10:45AM - 11:15AM
New york PM:
12:45PM - 1:15PM
1:45PM - 2:15PM
2:45PM - 3:15PM
How To Trade Using Macros
To trade using macros, you can follow these very simple rules:
1) If the SMR occurs within a TOI, you can trade outside of the TOI.
If the SMR occurs within a TOI, then the right side of a market maker model will unfold next and therefore you
can look to participate until the original consolidation is reached.
2) If the SMR occurs outside of a TOI, you must wait for the next TOI to execute.
If the SMR does not occur inside of a TOI, we must wait for the next TOI to produce an expansion and deliver
the right side of the market maker model, and therefore you can look to participate until the original
consolidation is reached.
Following these simple rules will ensure that time meets price, and you are engaging in high probability trades
Fibonacci Trend HelperEl indicador "Fibonacci Trend Helper" combina herramientas avanzadas de análisis técnico para ayudarte a identificar:
Zonas clave de soporte y resistencia basadas en niveles de Fibonacci.
Señales de entrada y salida para compra y venta.
Tendencias del mercado con cuatro tipos de señales.
Visualización de la fuerza de la tendencia con un gráfico de movimiento.
Net Volume [SpeedBot]Net Volume Indicator
The Net Volume indicator provides an insightful view into market activity by calculating and displaying the Net Volume (delta) from up and down volume data, which is key for traders to gauge the strength of market movements.
Key Features:
Net Volume Calculation: The indicator calculates the difference between up and down volume, giving traders a visual representation of buying vs. selling pressure.
Customizable Timeframe: You can adjust the timeframe for volume analysis using custom time settings or default options, helping you get a clearer picture based on your preferred time window.
Visual Indicators: The histogram visually represents the Net Volume, with positive values (indicating buying pressure) shown in green and negative values (indicating selling pressure) in red. The Zero Line is plotted as a reference to distinguish between buying and selling volume dominance.
Flexible Plotting Styles: By default, the Net Volume is shown as a histogram for clear visibility, making it easy to spot shifts in volume momentum.
Error Handling: The indicator checks for the presence of volume data from the data provider, ensuring that the script works only when valid data is available.
How to Use:
Bullish Signals: When the Net Volume is positive (green bars), it suggests increasing buying activity, indicating bullish momentum.
Bearish Signals: When the Net Volume is negative (red bars), it suggests increasing selling activity, indicating bearish momentum.
Zero Line: The Zero Line (dashed line) helps identify periods where the market is balanced between buying and selling volume.
This indicator is useful for traders looking to analyze volume dynamics and understand the strength of price movements. It can be applied across various market conditions and timeframes, making it an excellent addition to any trading strategy.
Daily High/Low Levels with mitigationThis Pine Script script defines a TradingView indicator named "Daily High/Low Levels" designed to track and display the daily high and low levels of a trading session, with added functionality for marking levels as mitigated when certain conditions are met. Here's a breakdown of its functionality:
Key Features
Session Start Time: The script allows you to specify a custom session start time in 24-hour format. This ensures the levels align with your trading session preferences.
Daily Highs and Lows:
Tracks the high and low levels for each session.
Retains the highs and lows for a configurable number of previous days.
Visualization:
Creates horizontal lines for each session's high and low levels.
Supports customization of line colors and styles.
Mitigation Tracking:
Monitors whether a high or low level has been "mitigated" (touched or exceeded by subsequent price action).
Changes the line style and color to indicate mitigation.
Provides an alert when mitigation occurs.
Configurable Extensions:
Lines can be extended beyond mitigation or stopped at the bar index where mitigation occurs, depending on user preference.
Efficient Array Management:
Uses arrays to manage daily highs, lows, their respective indices, and lines.
Ensures the size of stored data does not exceed the configured limit (daysToTrack).
Alerts:
Sends alerts when high or low levels are mitigated, which can be used for trading decisions.
Inputs
Session Start Hour/Minute: Defines when a new session starts.
Days to Track: Sets the number of previous days to display high/low levels.
Colors: Allows customization of line colors for unmitigated and mitigated levels.
Extend Lines: Toggles whether lines should extend past the mitigation point.
Code Highlights
New Session Detection: The script detects the start of a new session based on the configured session start time and resets daily highs/lows.
Line Management: Horizontal rays are created for highs and lows, and mitigated lines are updated with a dashed style and faded color.
Mitigation Logic: The script checks whether current price action exceeds stored high or low levels and updates their status and appearance accordingly.
Memory Management: Ensures the size of the arrays (highs, lows, lines) does not exceed the configured daysToTrack, deleting the oldest elements as necessary.
This indicator is highly customizable and useful for traders who want to track and analyze daily support and resistance levels, incorporating mitigation as a dynamic feature.
Dynamic Scalping Indicator with Real-Time Updatesthis is just a indicator with real time data analysis
Volume Heatmap Candles with Dynamic Volume Heatmap BarsEste script combina um indicador de volume avançado com um mapa de calor dinâmico para visualização de candles e barras de volume. Ele utiliza cálculos de desvio padrão para identificar níveis significativos de volume e colore os candles e barras de volume dinamicamente com base nesses valores, fornecendo insights claros sobre a atividade de volume no mercado.
Funcionalidades do Script
Candles Coloridos Dinamicamente:
Os candles são coloridos de acordo com os desvios padrão do volume em relação à média, destacando períodos de volumes normais, médios, altos e extremamente altos.
Barras de Volume Dinâmicas:
Exibe barras de volume com cores representando a intensidade do volume, facilitando a identificação de picos ou quedas relevantes.
Ajustes Personalizáveis:
Comprimento para cálculo da média móvel (MA) e desvio padrão.
Thresholds para identificar diferentes níveis de volume (normal, médio, alto e extra alto).
Escolha de cores para candles e barras de volume, garantindo flexibilidade para adaptar o visual ao seu estilo.
Configuração Simplificada:
Habilite/desabilite os candles coloridos ou as barras de volume com opções práticas de controle.
Defina valores personalizados para atender suas necessidades específicas de análise.
Parâmetros Ajustáveis
Comprimento da Média Móvel e Desvio Padrão:
Controle o período usado para cálculos de média móvel (MA) e desvio padrão para maior precisão.
Padrão: 20 períodos.
Thresholds de Volume:
Identifique facilmente a intensidade do volume em níveis distintos com base nos desvios padrão configuráveis.
Padrões: Extra alto: 4, Alto: 2.5, Médio: 1, Normal: -0.5.
Cores Customizáveis:
Ajuste as cores dos candles e barras de volume para volumes ascendentes e descendentes.
Ideal para Quem?
Traders que buscam insights claros sobre volume e momentos críticos no mercado.
Analistas técnicos que utilizam desvios padrão como base para identificar padrões significativos de volume.
Qualquer usuário do TradingView que deseja combinar volume e visualizações de mapa de calor.
Como Usar?
Adicione o script ao seu gráfico no TradingView.
Configure os parâmetros de acordo com suas preferências, como comprimento da média móvel, thresholds de volume e cores.
Observe os candles e barras de volume coloridos dinamicamente para identificar mudanças críticas na atividade do mercado.
Long/Short Signal Predictor with Debug - DaniyalThe script only generates signals when the specific conditions for a long or short position (RSI, MACD, EMA, volume spike, and candle patterns) are met. If none of these conditions are true for the given candles, no signals will appear.
Missing Overlay Setting:
Ensure the indicator is added to the main chart (not the separate pane). This script is designed to overlay signals directly on the price chart.
Volume Data:
If your asset lacks sufficient volume spikes, it might not trigger the signal. The script filters based on volume exceeding a threshold.
MA Crossover StrategyExplanation
1.Inputs:
fastLength and slowLength: Control the lengths of the moving averages.
riskReward: Adjusts the risk-to-reward ratio for trade exits.
2.Logic:
A buy signal is triggered when the fast MA crosses above the slow MA.
A sell signal is triggered when the fast MA crosses below the slow MA.
Stops and limits are calculated dynamically based on the risk-reward ratio.
3.Visuals:
Moving averages (fastMA in blue, slowMA in red) are plotted.
Buy signals appear as green "Buy" labels below the bars.
Sell signals appear as red "Sell" labels above the bars.
3 Consecutive Higher Lows with Blue CandleCheckout this custom indicator I built. The Candlestick turns blue on the 3rd consecutive Higher Low. Cheers! - Celery
True Total Altcoin Market CapThis indicator calculates the real total altcoin market capitalization by removing Bitcoin, Ethereum, and major stablecoins (USDT, USDC, BUSD, DAI) from the total cryptocurrency market cap. It replaces the standard price bars with custom-colored candlesticks showing the true altcoin market movements.
Features:
Excludes BTC, ETH, and major stablecoins for accurate altcoin market analysis
Custom color scheme: Green (#26a79b) for bullish and Red (#ef5351) for bearish candles
Based on CRYPTOCAP:TOTAL data
Helps traders focus on pure altcoin market trends
Non-repainting, using standard OHLC data
This tool provides a clearer view of altcoin market strength by filtering out the influence of major cryptocurrencies and stablecoins.
InspireHER 20 EMA Cross Strategy (BETA)This is an indicator to provide buy and sell signals for the 20 EMA for any timeframe. Business Rules are provided below
20 EMA
Any Timeframe
Buy - Price Crosses the 20 EMA and closes above
Entry Top of Candle
SL Bottom of Candle
SELL - Price Crosses the 20 EMA and closes below
Entry Bottom of Candle
SL Top of Candle
Median with Bands, EMA & Background Fill [SpeedBot]Median with Bands, EMA & Background Fill
The Median with Bands, EMA & Background Fill indicator is designed to help traders easily identify trends and potential reversals by combining key technical elements: the Median, ATR Bands, and Exponential Moving Average (EMA), along with dynamic background fills for visual clarity.
Key Features:
Median Calculation: The indicator uses the 50th percentile (median) of a user-defined source (such as the average of the high and low prices) to find the center of price action over a given period.
ATR Bands: Based on the Average True Range (ATR), the upper and lower bands are plotted above and below the median, creating a volatility-based range. These bands help visualize market fluctuations and potential breakouts.
Median EMA: An Exponential Moving Average (EMA) of the median is plotted, which helps smooth out price movements and identify trend direction with greater sensitivity to recent price action.
EMA vs Median Fill: A dynamic fill is applied between the median line and the EMA line. If the median is above the EMA, the fill is green (bullish), and if the median is below the EMA, the fill is red (bearish), making it easy to visually spot the prevailing trend.
Background Color: The background color dynamically changes based on the position of the median relative to the EMA. Green indicates a bullish trend, while red signals a bearish trend.
Alerts for Trend Crosses: Alerts can be set up when the median crosses above (bullish) or below (bearish) the EMA, signaling a potential change in market direction.
How to Use:
Bullish Trend: When the median crosses above the EMA, the fill turns green and the background color becomes a lighter green, indicating a bullish trend.
Bearish Trend: When the median crosses below the EMA, the fill turns red and the background becomes a darker red, signaling a bearish trend.
Volatility Range: The ATR bands can help identify periods of high or low volatility. When price breaks through the upper or lower ATR bands, it may indicate a breakout or a significant change in market conditions.
This indicator is perfect for traders who want a clear visual representation of price trends, volatility, and potential reversals, all within a single, easy-to-read chart.
Vertical bands for trading sessionsThis simple tool will display vertical bars for each day at the specified time interval.
It helps highlighting the relevant trading session of the day.
User can set the starting and ending time of the trading session and for how many days in the past and in the future the bars should be displayed.
London Opening Candle 15 minLondon Opening Candle 15 min. Checks SMA and then enters and closes trade within mins
RSI Monitor//@version=5
indicator("RSI Monitor", overlay=false)
// Configurações
rsi_length = input.int(14, title="Período do RSI") // Período do RSI
overbought_level = input.int(70, title="Nível de Sobrecompra") // Nível de sobrecompra
oversold_level = input.int(30, title="Nível de Sobrevenda") // Nível de sobrevenda
// Cálculo do RSI
rsi = ta.rsi(close, rsi_length)
// Condições para alertas
is_overbought = rsi > overbought_level
is_oversold = rsi < oversold_level
crossing_up = ta.crossover(rsi, oversold_level)
crossing_down = ta.crossunder(rsi, overbought_level)
// Plot do RSI
hline(overbought_level, "Sobrecompra", color=color.red)
hline(oversold_level, "Sobrevenda", color=color.green)
plot(rsi, color=color.blue, title="RSI")
// Alertas
alertcondition(is_overbought, title="RSI Sobrecomprado", message="O RSI está sobrecomprado!")
alertcondition(is_oversold, title="RSI Sobrevendido", message="O RSI está sobrevendido!")
alertcondition(crossing_up, title="RSI Cruzando para Cima", message="O RSI cruzou para cima do nível de sobrevenda!")
alertcondition(crossing_down, title="RSI Cruzando para Baixo", message="O RSI cruzou para baixo do nível de sobrecompra!")
// Mensagem no gráfico
bgcolor(is_overbought ? color.new(color.red, 90) : na, title="Alerta Sobrecompra")
bgcolor(is_oversold ? color.new(color.green, 90) : na, title="Alerta Sobrevenda")
Candle Size TrackerUse Case
This script is particularly useful for traders who want to identify periods of increasing candle volatility or momentum.
Functionality
Candle Size Calculation:
The script calculates the size of each candle by subtracting the low price from the high price.
Comparison with Previous Candle:
It checks if the current candle's size is greater than or equal to the previous candle's size. If true, a visual label is added above the candle.
Dynamic Label Management:
To avoid cluttering the chart, it uses a lookback period (lookback) to remove old labels. Labels are removed if they exceed the defined lookback period.
Customization Options:
Lookback Period: You can set the number of bars to retain labels (default: 2).
Vertical Offset: Adjusts the position of the label above the candle relative to the high price.
Label Opacity: Controls the transparency of the label (default: 50%).
The full script:
//@version=5
indicator("Candle Size Tracker", overlay=true)
// Calculate the size of each candle
candle_size = high - low
// Check if the current candle size is bigger than or equal to the previous one (only for the last two candles)
is_bigger = candle_size >= nz(candle_size )
// Function to remove old labels based on the lookback period
f_remove_labels(lbl_arr, lb) =>
temp_arr = array.new_label()
len = array.size(lbl_arr)
if (len > 0)
for i = 0 to len - 1
lbl = array.get(lbl_arr, i)
idx = label.get_x(lbl)
if ((bar_index - idx) >= lb)
label.delete(lbl)
else
array.push(temp_arr, lbl)
temp_arr
// Initialize an array to store labels
var label_arr = array.new_label()
// Input for lookback period
lookback = input.int(2, title="Lookback Period", minval=1)
// Vertical offset (adjust this value to control the label position)
vertical_offset = input.float(0.00005, title="Vertical Offset (relative to high)", step=0.1)
// Set label opacity (50% transparency)
label_opacity = 50 // Opacity value (0 to 100)
label_color = color.new(color.green, label_opacity)
// Draw a label above the candle if the condition is met (for the last two candles)
if (is_bigger)
lbl = label.new(x=bar_index, y=high + vertical_offset, style=label.style_circle, color=label_color, size=size.tiny)
array.push(label_arr, lbl)
// Remove old labels based on the lookback period
label_arr := f_remove_labels(label_arr, lookback)