Min/Max of Last 4(N) Candles Track previous 4 candles high and low. Green line is the previous 4 candle's highest high, and Red line is the the previous 4 candle's lowest low.
If the current candle break the Green line, and close as a bullish candle, the green line will stop painting, and a red line will appear, you can try to go long and stop loss will be the red line.
If the current candle break the red line and close as a bearish candle, the red line will stop paining, and a green line will appear, you can try to go short and stop loss will be the green line.
However you should not just automatically place the buy or sell stop order at the line, because unless the trend is super strong, there could some level of consolidation and fake out.
You should use this indicator after assess ing the market condition, and your trading size and product.
If the trend is super strong, you will likely catch a really big move without hitting stop loss and with minimal drawdown.
Indicators and strategies
Volume Weighted Average Price with 4 EMAsThe Volume Weighted Average Price (VWAP) with EMAs indicator combines the VWAP, which provides the average price of a security weighted by volume, with four Exponential Moving Averages (EMAs) of customizable lengths (default: 9, 20, 50, 200). This indicator helps traders identify trends, potential support and resistance levels, and make informed trading decisions based on price action relative to volume and moving averages.
50 and 9 EMA CrossoverThis 50 and 9 EMA Crossover strategy is a simple yet effective trend-following approach designed to identify key market entry and exit points based on the interaction of two Exponential Moving Averages (EMAs).
Key Features:
50-period EMA (Blue Line): Represents the longer-term trend. It smooths out price data to show the overall market direction.
9-period EMA (Red Line): Represents the shorter-term trend, responding quicker to recent price movements.
Strategy:
Buy Signal: A crossover occurs when the 9 EMA crosses above the 50 EMA, indicating that short-term momentum is stronger than the long-term trend. This is often interpreted as a signal to enter a long position (buy).
Sell Signal: A crossunder occurs when the 9 EMA crosses below the 50 EMA, suggesting that short-term momentum is weakening or reversing. This can be used as an indication to close long positions or enter short trades (sell).
Key Benefits:
Visual Indicators: The script plots both EMAs on the chart for a clear visual representation of market trends.
Clear Entry/Exit Signals: The "BUY" and "SELL" signals are displayed directly on the chart when the crossovers and crossunders occur, making it easy to act on these key moments.
Alerts: Set up alerts to get notified when these crossovers occur, ensuring you don’t miss important trading opportunities.
This strategy works best in trending markets and can be used for both short-term and longer-term trading, depending on your preferences.
Options Flavour by Raushan ShrivastavaThis script is for a trading strategy which combines Pivot Points and a Simple Moving Average.
It calculates support and resistance levels based on the monthly pivot point and plots them on the chart.
The script also creates conditions for entering bullish and bearish trades based on the relationship between the price and moving average.
Breakdown of the main components of the script :-
Pivot Point Calculation:
The script calculates the monthly pivot point and its associated support (S1, S2, S3) and resistance (R1, R2, R3) levels.
These levels are used to determine potential areas of interest on the chart.
Moving Average:
A simple moving average (SMA) is plotted with a length defined by the user (length_ma), used to spot trends.
Conditions for Bullish and Bearish Signals:
Bullish condition: The label appears when the market crosses the moving average upward and is above the pivot, or when the market crosses the pivot upward and is above the moving average.
Bearish condition: The label appears when the market crosses the moving average downward and is below the pivot, or when the market crosses the pivot downward and is below the moving average.
Plotting Shapes:
The pivot point, support, resistance, and previous month's high/low values are plotted on the chart as circles.
The moving average is plotted as a black line.
Labels:
Labels are placed to indicate when a bullish or bearish condition occurs. These labels appear when the conditions are met, helping visualize trading signals.
This strategy can be useful for traders who wish to combine multiple technical indicators to make more informed decisions. You can adjust the parameter for moving average length to fine-tune the strategy for different time frames and market conditions.
MVRV Z-Score (Topos e Fundos)No MVRV Z-Score, a linha roxa (que representa o valor do indicador) atingir ou ultrapassar a faixa vermelha geralmente indica que o ativo está em uma zona de sobrevalorização. Isso significa que o mercado pode estar próximo de um topo, e historicamente, esses momentos tendem a ser seguidos por correções de preço.
O que acontece quando a linha roxa atinge a faixa vermelha?
Zona Vermelha (Topo):
Quando a linha roxa entra na faixa vermelha, o ativo está sendo negociado muito acima do seu valor realizado (Realized Value).
Isso sugere que muitos investidores estão com lucros não realizados significativos, o que pode levar a vendas em massa e, consequentemente, a uma correção de preço.
Sinal para traders e investidores:
Para traders, pode ser um sinal de que o preço está próximo de um topo e que pode ser um bom momento para realizar lucros.
Para investidores de longo prazo, pode ser um alerta para evitar compras nesse momento, aguardando uma possível correção.
E se a linha roxa não atingir a faixa vermelha?
Se a linha roxa não atingir a faixa vermelha, o ativo pode ainda ter espaço para valorização antes de atingir um topo. No entanto, é importante observar outros fatores do mercado, como volume, sentimento e contexto macroeconômico.
Uptrick: Volatility Reversion BandsUptrick: Volatility Reversion Bands is an indicator designed to help traders identify potential reversal points in the market by combining volatility and momentum analysis within one comprehensive framework. It calculates dynamic bands around a simple moving average and issues signals when price interacts with these bands. Below is a fully expanded description, structured in multiple sections, detailing originality, usefulness, uniqueness, and the purpose behind blending standard deviation-based and ATR-based concepts. All references to code have been removed to focus on the written explanation only.
Section 1: Overview
Uptrick: Volatility Reversion Bands centers on a moving average around which various bands are constructed. These bands respond to changes in price volatility and can help gauge potential overbought or oversold conditions. Signals occur when the price moves beyond certain thresholds, which may imply a reversal or significant momentum shift.
Section 2: Originality, Usefulness, Uniqness, Purpose
This indicator merges two distinct volatility measurements—Bollinger Bands and ATR—into one cohesive system. Bollinger Bands use standard deviation around a moving average, offering a baseline for what is statistically “normal” price movement relative to a recent mean. When price hovers near the upper band, it may indicate overbought conditions, whereas price near the lower band suggests oversold conditions. This straightforward construction often proves invaluable in moderate-volatility settings, as it pinpoints likely turning points and gauges a market’s typical trading range.
Yet Bollinger Bands alone can falter in conditions marked by abrupt volatility spikes or sudden gaps that deviate from recent norms. Intraday news, earnings releases, or macroeconomic data can alter market behavior so swiftly that standard-deviation bands do not keep pace. This is where ATR (Average True Range) adds an important layer. ATR tracks recent highs, lows, and potential gaps to produce a dynamic gauge of how much price is truly moving from bar to bar. In quieter times, ATR contracts, reflecting subdued market activity. In fast-moving markets, ATR expands, exposing heightened volatility on each new bar.
By overlaying Bollinger Bands and ATR-based calculations, the indicator achieves a broader situational awareness. Bollinger Bands excel at highlighting relative overbought or oversold areas tied to an established average. ATR simultaneously scales up or down based on real-time market swings, signaling whether conditions are calm or turbulent. When combined, this means a price that barely crosses the Bollinger Band but also triggers a high ATR-based threshold is likely experiencing a volatility surge that goes beyond typical market fluctuations. Conversely, a price breach of a Bollinger Band when ATR remains low may still warrant attention, but not necessarily the same urgency as in a high-volatility regime.
The resulting synergy offers balanced, context-rich signals. In a strong trend, the ATR layer helps confirm whether an apparent price breakout really has momentum or if it is just a temporary spike. In a range-bound market, standard deviation-based Bollinger Bands define normal price extremes, while ATR-based extensions highlight whether a breakout attempt has genuine force behind it. Traders gain clarity on when a move is both statistically unusual and accompanied by real volatility expansion, thus carrying a higher probability of a directional follow-through or eventual reversion.
Practical advantages emerge across timeframes. Scalpers in fast-paced markets appreciate how ATR-based thresholds update rapidly, revealing if a sudden price push is routine or exceptional. Swing traders can rely on both indicators to filter out false signals in stable conditions or identify truly notable moves. By calibrating to changes in volatility, the merged system adapts naturally whether the market is trending, ranging, or transitioning between these phases.
In summary, combining Bollinger Bands (for a static sense of standard-deviation-based overbought/oversold zones) with ATR (for a dynamic read on current volatility) yields an adaptive, intuitive indicator. Traders can better distinguish fleeting noise from meaningful expansions, enabling more informed entries, exits, and risk management. Instead of relying on a single yardstick for all market conditions, this fusion provides a layered perspective, encouraging traders to interpret price moves in the broader context of changing volatility.
Section 3: Why Bollinger Bands and ATR are combined
Bollinger Bands provide a static snapshot of volatility by computing a standard deviation range above and below a central average. ATR, on the other hand, adapts in real time to expansions or contractions in market volatility. When combined, these measures offset each other’s limitations: Bollinger Bands add structure (overbought and oversold references), and ATR ensures responsiveness to rapid price shifts. This synergy helps reduce noisy signals, particularly during sudden market turbulence or extended consolidations.
Section 4: User Inputs
Traders can adjust several parameters to suit their preferences and strategies. These typically include:
1. Lookback length for calculating the moving average and standard deviation.
2. Multipliers to control the width of Bollinger Bands.
3. An ATR multiplier to set the distance for additional reversal bands.
4. An option to display weaker signals when the price merely approaches but does not cross the outer bands.
Section 5: Main Calculations
At the core of this indicator are four important steps:
1. Calculate a basis using a simple moving average.
2. Derive Bollinger Bands by adding and subtracting a product of the standard deviation and a user-defined multiplier.
3. Compute ATR over the same lookback period and multiply it by the selected factor.
4. Combine ATR-based distance with the Bollinger Bands to set the outer reversal bands, which serve as stronger signal thresholds.
Section 6: Signal Generation
The script interprets meaningful reversal points when the price:
1. Crosses below the lower outer band, potentially highlighting oversold conditions where a bullish reversal may occur.
2. Crosses above the upper outer band, potentially indicating overbought conditions where a bearish reversal may develop.
Section 7: Visualization
The indicator provides visual clarity through labeled signals and color-coded references:
1. Distinct colors for upper and lower reversal bands.
2. Markers that appear above or below bars to denote possible buying or selling signals.
3. A gradient bar color scheme indicating a bar’s position between the lower and upper bands, helping traders quickly see if the price is near either extreme.
Section 8: Weak Signals (Optional)
For those preferring early cues, the script can highlight areas where the price nears the outer bands. When weak signals are enabled:
1. Bars closer to the upper reversal zone receive a subtle marker suggesting a less robust, yet still noteworthy, potential selling area.
2. Bars closer to the lower reversal zone receive a subtle marker suggesting a less robust, yet still noteworthy, potential buying area.
Section 9: Simplicity, Effectiveness, and Lower Timeframes
Although combining standard deviation and ATR involves sophisticated volatility concepts, this indicator is visually straightforward. Reversal bands and gradient-colored bars make it easy to see at a glance when price approaches or crosses a threshold. Day traders operating on lower timeframes benefit from such clarity because it helps filter out minor fluctuations and focus on more meaningful signals.
Section 10: Adaptability across Market Phases
Because both the standard deviation (for Bollinger Bands) and ATR adapt to changing volatility, the indicator naturally adjusts to various environments:
1. Trending: The additional ATR-based outer bands help distinguish between temporary pullbacks and deeper reversals.
2. Ranging: Bollinger Bands often remain narrower, identifying smaller reversals, while the outer ATR bands remain relatively close to the main bands.
Section 11: Reduced Noise in High-Volatility Scenarios
By factoring ATR into the band calculations, the script widens or narrows the thresholds during rapid market fluctuations. This reduces the amount of false triggers typically found in indicators that rely solely on fixed calculations, preventing overreactions to abrupt but short-lived price spikes.
Section 12: Incorporation with Other Technical Tools
Many traders combine this indicator with oscillators such as RSI, MACD, or Stochastic, as well as volume metrics. Overbought or oversold signals in momentum oscillators can provide additional confirmation when price reaches the outer bands, while volume spikes may reinforce the significance of a breakout or potential reversal.
Section 13: Risk Management Considerations
All trading strategies carry risk. This indicator, like any tool, can and does produce losing trades if price unexpectedly reverses again or if broader market conditions shift rapidly. Prudent traders employ protective measures:
1. Stop-loss orders or trailing stops.
2. Position sizing that accounts for market volatility.
3. Diversification across different asset classes when possible.
Section 14: Overbought and Oversold Identification
Standard Bollinger Bands highlight regions where price might be overextended relative to its recent average. The extended ATR-based reversal bands serve as secondary lines of defense, identifying moments when price truly stretches beyond typical volatility bounds.
Section 15: Parameter Customization for Different Needs
Users can tailor the script to their unique preferences:
1. Shorter lookback settings yield faster signals but risk more noise.
2. Higher multipliers spread the bands further apart, filtering out small moves but generating fewer signals.
3. Longer lookback periods smooth out market noise, often leading to more stable but less frequent trading cues.
Section 16: Examples of Different Trading Styles
1. Day Traders: Often reduce the length to capture quick price swings.
2. Swing Traders: May use moderate lengths such as 20 to 50 bars.
3. Position Traders: Might opt for significantly longer settings to detect macro-level reversals.
Section 17: Performance Limitations and Reality Check
No technical indicator is free from false signals. Sudden fundamental news events, extreme sentiment changes, or low-liquidity conditions can render signals less reliable. Backtesting and forward-testing remain essential steps to gauge whether the indicator aligns well with a trader’s timeframe, risk tolerance, and instrument of choice.
Section 18: Merging Volatility and Momentum
A critical uniqueness of this indicator lies in how it merges Bollinger Bands (standard deviation-based) with ATR (pure volatility measure). Bollinger Bands provide a relative measure of price extremes, while ATR dynamically reacts to market expansions and contractions. Together, they offer an enhanced perspective on potential market turns, ideally reducing random noise and highlighting moments where price has traveled beyond typical bounds.
Section 19: Purpose of this Merger
The fundamental purpose behind blending standard deviation measures with real-time volatility data is to accommodate different market behaviors. Static standard deviation alone can underreact or overreact in abnormally volatile conditions. ATR alone lacks a baseline reference to normality. By merging them, the indicator aims to provide:
1. A versatile dynamic range for both typical and extreme moves.
2. A filter against frequent whipsaws, especially in choppy environments.
3. A visual framework that novices and experts can interpret rapidly.
Section 20: Summary and Practical Tips
Uptrick: Volatility Reversion Bands offers a powerful tool for traders looking to combine volatility-based signals with momentum-derived reversals. It emphasizes clarity through color-coded bars, defined reversal zones, and optional weak signal markers. While potentially useful across all major timeframes, it demands ongoing risk management, realistic expectations, and careful study of how signals behave under different market conditions. No indicator serves as a crystal ball, so integrating this script into an overall strategy—possibly alongside volume data, fundamentals, or momentum oscillators—often yields the best results.
Disclaimer and Educational Use
This script is intended for educational and informational purposes. It does not constitute financial advice, nor does it guarantee trading success. Sudden economic events, low-liquidity times, and unexpected market behaviors can all undermine technical signals. Traders should use proper testing procedures (backtesting and forward-testing) and maintain disciplined risk management measures.
CMS-Inspired SMC Strategy with Liquidity and FVG//@version=5
indicator("CMS-Inspired SMC Strategy with Liquidity and FVG", overlay=true)
// === إعدادات المستخدم ===
capital = input.float(1000, title="رأس المال ($)", step=10) // رأس المال الكلي
risk_percent = input.float(1, title="نسبة المخاطرة (%)", step=0.1) // نسبة المخاطرة
max_trades = input.int(2, title="عدد الصفقات اليومية", step=1) // الحد الأقصى للصفقات اليومية
session_start = input.time(timestamp("0000-01-01 08:00 +0000"), title="بداية الجلسة") // جلسة لندن
session_end = input.time(timestamp("0000-01-01 16:00 +0000"), title="نهاية الجلسة") // جلسة لندن
news_time = input.time(timestamp("0000-01-01 09:00 +0000"), title="وقت الأخبار المهمة") // الوقت المتوقع للأخبار
// === أدوات إضافية ===
session_active = (time >= session_start and time <= session_end) // الجلسة الزمنية
atr = ta.atr(14) // مؤشر ATR
// === تحديد مناطق السيولة ===
highest_liq = ta.highest(high, 20) // أعلى نقطة في الـ 20 فترة
lowest_liq = ta.lowest(low, 20) // أدنى نقطة في الـ 20 فترة
// === فجوات القيمة العادلة (FVG) ===
fvg_condition = close > high and close < high // عندما يكون هناك فجوة بين الإغلاق والارتفاع
// === إشارات التداول ===
// كسر الهيكل (BOS)
high_break = ta.highest(high, 5) < close
low_break = ta.lowest(low, 5) > close
// مناطق Order Block
bullish_ob = close < open // إشارات الشراء بناءً على الإغلاق
bearish_ob = close > open // إشارات البيع بناءً على الإغلاق
// إشارات الشراء والبيع بناءً على جميع الشروط
long_signal = session_active and high_break and bullish_ob and fvg_condition and not (time >= news_time and time <= news_time + 3600000) // تجنب الأخبار
short_signal = session_active and low_break and bearish_ob and fvg_condition and not (time >= news_time and time <= news_time + 3600000) // تجنب الأخبار
// === إدارة رأس المال ===
capital_per_trade = (capital * risk_percent / 100) // نسبة رأس المال في الصفقة
lot_size = capital_per_trade / (atr * 1.5) // حجم اللوت بناءً على الـ ATR ووقف الخسارة
stop_loss = atr * 1.5 // وقف الخسارة بناءً على ATR
take_profit = stop_loss * 2 // الهدف (نسبة مخاطرة/عائد 1:2)
// === رسم الإشارات ===
var trade_count = 0 // عداد الصفقات اليومية
if session_active
if trade_count < max_trades
if long_signal
label.new(bar_index, high, "شراء", color=color.green, style=label.style_label_down)
trade_count += 1
if short_signal
label.new(bar_index, low, "بيع", color=color.red, style=label.style_label_up)
trade_count += 1
// === تنبيه إشارات ===
if long_signal or short_signal
alert("إشارة جديدة: " + (long_signal ? "شراء" : "بيع"), alert.freq_once_per_bar)
The JewelThe Jewel is a comprehensive momentum and trend-based indicator designed to give traders clear insights into potential market shifts. By integrating RSI, Stochastic, and optional ADX filters with an EMA-based trend filter, this script helps identify high-conviction entry and exit zones for multiple trading styles, from momentum-based breakouts to mean-reversion setups.
Features
Momentum Integration:
Leverages RSI and Stochastic crossovers for real-time momentum checks, reducing noise and highlighting potential turning points.
Optional ADX Filter:
Analyzes market strength; only triggers signals when volatility and directional movement suggest strong follow-through.
EMA Trend Filter:
Identifies broad market bias (bullish vs. bearish), helping traders focus on higher-probability setups by aligning with the prevailing trend.
Caution Alerts:
Flags potentially overbought or oversold conditions when both RSI and Stochastic reach extreme zones, cautioning traders to manage risk or tighten stops.
Customizable Parameters:
Fine-tune RSI, Stochastic, ADX, and EMA settings to accommodate various assets, timeframes, and trading preferences.
How to Use
Momentum Breakouts: Watch for RSI cross above a set threshold and Stochastic cross up, confirmed by ADX strength and alignment with the EMA filter for potential breakout entries.
Mean Reversion: Look for caution signals (RSI & Stoch extremes) as early warnings for trend slowdown or reversal opportunities.
Trend Continuation: In trending markets, rely on the EMA filter to stay aligned with the primary direction. Use momentum crosses (RSI/Stochastic) to time add-on entries or exits.
Important Notes
Non-Investment Advice
The Jewel is a technical analysis tool and does not constitute financial advice. Always use proper risk management and consider multiple confirmations when making trading decisions.
No Warranty
This indicator is provided as-is, without warranty or guarantees of performance. Traders should backtest and verify its effectiveness on their specific instruments and timeframes.
Collaborate & Share
Feedback and suggestions are welcome! Engaging with fellow traders can help refine and adapt The Jewel for diverse market conditions, strengthening the TradingView community as a whole.
Happy Trading!
If you find this script valuable, please share your feedback, ideas, or enhancements. Collaboration fosters a more insightful trading experience for everyone.
Monthly EMA 5 Buy Signal Swing Medium Term Investment StrategyTrading Strategy Description
This strategy is designed to generate buy signals based on the behavior of monthly candles in relation to the 5-period Exponential Moving Average (EMA). The conditions for generating a buy signal are as follows:
Monthly Candle Below 5 EMA: The previous monthly candle must not touch the 5 EMA and must be entirely below it. This means the highest point of the candle (the high) is below the 5 EMA.
Next Monthly Candle Closes Above Previous Candle’s High: The current monthly candle must close above the high of the previous monthly candle.
How to Use the Strategy
Add the Script to TradingView: Copy the provided Pine Script code and add it to a new indicator in TradingView.
Understand the Plot:
The 5 EMA is plotted on the chart in blue.
Buy signals are indicated by green labels below the bars with the text “BUY”.
Identify Buy Signals:
Look for green “BUY” labels on the chart. These labels indicate that the conditions for a buy signal have been met.
When you see a “BUY” label, it means the previous monthly candle was below the 5 EMA and the current monthly candle has closed above the previous candle’s high.
Example Scenario
Month 1: The monthly candle does not touch the 5 EMA and is entirely below it.
Month 2: The monthly candle closes above the high of Month 1’s candle.
Buy Signal: A green “BUY” label will appear below the Month 2 candle, indicating a buy signal.
Taking the Trade
When a buy signal is generated:
Enter the Trade: Consider entering a long position at the close of the monthly candle that generated the buy signal.
Risk Management: Set your stop-loss and take-profit levels according to your risk management strategy. You might place a stop-loss below the low of the signal candle or use other technical analysis tools to determine your exit points.
This strategy helps you identify potential bullish reversals or continuation patterns based on the relationship between the monthly candles and the 5 EMA. Always backtest and paper trade any strategy before using it with real money to ensure it fits your trading style and risk tolerance.
EMA MTF Crossover [Two]1m = Scalping Trade 3% chart
Đ = Đảo chiều xu hướng = Swing Trade 5% chart
T = Tiếp diễn xu hướng = Scalp Trade 5% chart
MW:TA Days of the WeekENG: Vertical separators to easily detect days of the week and see which past liquidity was taken down. Screenshot example contains days of the week indicator and manually drawn lines of grabbed liquidity. Useful for trades based on liquidity grab and reaction.
Tested on Forex, Crypto, Indexes, Stocks, Commodities markets.
-
РУС: Вертикальные разделители для визуального определения дней недели и просмотра снятой ликвидности на графике. На скриншоте отмечен индикатор разделительных периодов (дней) и вручную нарисованные линии, которые отмечают снятую ликвидность и реакцию цены на снятие. Полезно для тех трейдеров, которые торгуют по реакции на снятую ликвидность.
Протестировано на рынках Форекс, Крипто, ИНдексов, Акций и Сырья.
Price Action Health CheckThis is a price action indicator that measures market health by comparing EMAs, adapting automatically to different timeframes (Weekly/Daily more reliable) and providing context-aware health status.
Key features:
Automatically adjusts EMA periods based on timeframe
Measures price action health through EMA separation and historical context
Provides visual health status with clear improvement/deterioration signals
Projects a 13-period trend line for directional context
Trading applications:
Identify shifts in market health before major trend changes
Validate trend strength by comparing current readings to historical averages
Time entries/exits based on health status transitions
Filter trades using timeframe-specific health readings
I like to use it to keep SPX in check before deciding the market is going down.
Note: For optimal analysis, use primarily on Weekly and Daily timeframes where price action patterns are more significant.
Gold Analysis and Scalping TradesIn this section, we opened three trades by analyzing waves and structures on the chart.
Gold could repeat this type of movement tomorrow as well, so be prepared.
Stochastic and RSI Vini//@version=6
indicator(title="Stochastic and RSI", shorttitle="Stoch RSI", format=format.price, precision=2, timeframe="", timeframe_gaps=true)
// --- Estocástico ---
periodK = input.int(14, title="%K Length", minval=1)
smoothK = input.int(1, title="%K Smoothing", minval=1)
periodD = input.int(3, title="%D Smoothing", minval=1)
k = ta.sma(ta.stoch(close, high, low, periodK), smoothK)
d = ta.sma(k, periodD)
plot(k, title="%K", color=#2962FF)
plot(d, title="%D", color=#FF6D00)
h0 = hline(80, "Upper Band", color=#787B86)
hline(50, "Middle Band", color=color.new(#787B86, 50))
h1 = hline(20, "Lower Band", color=#787B86)
fill(h0, h1, color=color.rgb(33, 150, 243, 90), title="Background")
// --- RSI ---
rsiLengthInput = input.int(14, minval=1, title="RSI Length", group="RSI Settings")
rsiSourceInput = input.source(close, "Source", group="RSI Settings")
calculateDivergence = input.bool(false, title="Calculate Divergence", group="RSI Settings", display = display.data_window, tooltip = "Calculating divergences is needed in order for divergence alerts to fire.")
change = ta.change(rsiSourceInput)
up = ta.rma(math.max(change, 0), rsiLengthInput)
down = ta.rma(-math.min(change, 0), rsiLengthInput)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
rsiPlot = plot(rsi, "RSI", color=#7E57C2)
rsiUpperBand = hline(70, "RSI Upper Band", color=#787B86)
midline = hline(50, "RSI Middle Band", color=color.new(#787B86, 50))
rsiLowerBand = hline(30, "RSI Lower Band", color=#787B86)
fill(rsiUpperBand, rsiLowerBand, color=color.rgb(126, 87, 194, 90), title="RSI Background Fill")
midLinePlot = plot(50, color = na, editable = false, display = display.none)
fill(rsiPlot, midLinePlot, 100, 70, top_color = color.new(color.green, 0), bottom_color = color.new(color.green, 100), title = "Overbought Gradient Fill")
fill(rsiPlot, midLinePlot, 30, 0, top_color = color.new(color.red, 100), bottom_color = color.new(color.red, 0), title = "Oversold Gradient Fill")
// --- Divergencia RSI ---
lookbackRight = 5
lookbackLeft = 5
rangeUpper = 60
rangeLower = 5
bearColor = color.red
bullColor = color.green
textColor = color.white
noneColor = color.new(color.white, 100)
_inRange(bool cond) =>
bars = ta.barssince(cond)
rangeLower <= bars and bars <= rangeUpper
plFound = false
phFound = false
bullCond = false
bearCond = false
rsiLBR = rsi
if calculateDivergence
// Regular Bullish
plFound := not na(ta.pivotlow(rsi, lookbackLeft, lookbackRight))
rsiHL = rsiLBR > ta.valuewhen(plFound, rsiLBR, 1) and _inRange(plFound )
lowLBR = low
priceLL = lowLBR < ta.valuewhen(plFound, lowLBR, 1)
bullCond := priceLL and rsiHL and plFound
// Regular Bearish
phFound := not na(ta.pivothigh(rsi, lookbackLeft, lookbackRight))
rsiLH = rsiLBR < ta.valuewhen(phFound, rsiLBR, 1) and _inRange(phFound )
highLBR = high
priceHH = highLBR > ta.valuewhen(phFound, highLBR, 1)
bearCond := priceHH and rsiLH and phFound
plot(
plFound ? rsiLBR : na,
offset=-lookbackRight,
title="Regular Bullish",
linewidth=2,
color=(bullCond ? bullColor : noneColor),
display = display.pane
)
plotshape(
bullCond ? rsiLBR : na,
offset=-lookbackRight,
title="Regular Bullish Label",
text=" Bull ",
style=shape.labelup,
location=location.absolute,
color=bullColor,
textcolor=textColor
)
plot(
phFound ? rsiLBR : na,
offset=-lookbackRight,
title="Regular Bearish",
linewidth=2,
color=(bearCond ? bearColor : noneColor),
display = display.pane
)
plotshape(
bearCond ? rsiLBR : na,
offset=-lookbackRight,
title="Regular Bearish Label",
text=" Bear ",
style=shape.labeldown,
location=location.absolute,
color=bearColor,
textcolor=textColor
)
alertcondition(bullCond, title='Regular Bullish Divergence', message="Found a new Regular Bullish Divergence, `Pivot Lookback Right` number of bars to the left of the current bar.")
alertcondition(bearCond, title='Regular Bearish Divergence', message='Found a new Regular Bearish Divergence, `Pivot Lookback Right` number of bars to the left of the current bar.')
Moving Average Distance between MA coloredThe distance between short and long moving average of prices MAD
Momentum
Predictor of equity returns
Close Within Top or Bottom 10%For all the boys that like to see 10% candles and require them for more in depth backtesting purposes
Heikin Ashi EMA StrategyTrend Identification:
Heikin Ashi candles smooth out price data, making it easier to identify trends and reversals. This helps traders make more informed decisions.
Reduced Noise:
By using Heikin Ashi candles, the strategy reduces market noise and false signals, providing a clearer picture of the market direction.
EMA Confirmation:
The use of Exponential Moving Averages (EMAs) adds an extra layer of confirmation to the signals. EMAs help identify the overall trend and filter out trades that go against the trend.
Clear Entry and Exit Signals:
The strategy provides clear buy and sell signals based on specific conditions, making it easier for traders to execute trades without ambiguity.
Avoids Consecutive Signals:
The strategy tracks the last signal to avoid consecutive buy or sell signals without an opposite signal in between. This helps in reducing whipsaw trades and improves overall performance.
Visual Representation:
The strategy plots buy and sell labels on the chart, providing a visual representation of the signals. This makes it easier for traders to see where the signals occurred and analyze their effectiveness.
Adaptability:
The parameters (such as the periods for EMAs) can be adjusted to suit different trading styles and timeframes, making the strategy adaptable to various market conditions.
Overall, this strategy aims to provide a balanced approach to trading by combining the benefits of Heikin Ashi candles and EMAs, helping traders make more informed and confident trading decisions.
Daily CPR & 3MA CrossoverDaily CPR & 3MA Crossover this indicator make profitable trader
This script calculates the Daily CPR and plots the three lines (Top Central, Pivot, and Bottom Central) on the chart. It also calculates three moving averages, identifies crossovers for buy/sell signals, and provides visual markers and alerts for those signals. You can customize the moving average lengths in the settings. Let me know if you need adjustments or additional features!
TICK Charting & DivergencesOverview
The TICK index measures the number of NYSE stocks making an uptick versus a downtick. This indicator identifies divergences between price action and TICK readings, potentially signaling trend reversals.
Key Features
Real-time TICK monitoring during market hours (9:30 AM - 4:00 PM ET)
Customizable smoothing factor for TICK values
Regular and hidden divergences detection
Reference lines at ±500 and ±1000 levels
Current TICK value display
TICK Internals Interpretation
Above +1000: Strong buying pressure, potential exhaustion
Above +500: Moderate buying pressure
Below -500: Moderate selling pressure
Below -1000: Strong selling pressure, potential exhaustion
Best Practices
Use in conjunction with support/resistance levels, market trend direction, and time of day.
Higher probability setups with multiple timeframe confirmation, divergence at key price levels, and extreme TICK readings (±1000).
Settings Optimization
Smoothing Factor: 1-3 (lower for faster signals)
Pivot Lookback: 5-10 bars (adjust based on timeframe)
Range: 5-60 bars (wider for longer-term signals)
Warning Signs
Multiple failed divergences
Choppy price action
Low volume periods
Major news events pending
Remember: TICK divergences are not guaranteed signals. Always use proper risk management and combine with other technical analysis tools.
Snipe 1-Minute IntradayPurpose
This script demonstrates a simple intraday approach using RSI, EMAs, VWAP, and an optional volume filter. It plots visual buy (bullish) and sell (bearish) signals on the chart under certain conditions. You can use it as a starting point to explore or develop your own intraday strategies.
Key Features
1. VWAP (Volume Weighted Average Price)
Plots the built-in VWAP for additional context on intraday price action.
2. EMA Crossover
Uses two EMAs (fast and slow). A bullish signal triggers when the fast EMA is above the slow EMA, and a bearish signal triggers when the fast EMA is below the slow EMA.
3. RSI Momentum Filter
An RSI reading above 50 indicates bullish momentum; below 50 indicates bearish momentum.
4. Volume Filter (Optional)
Compares the current bar’s volume against the average volume (over a user-defined period). When enabled, signals only appear if the current volume exceeds the average.
5. Time Window (Optional)
Allows you to define a specific time window (e.g., the first hour of trading) for valid signals. You can enable or disable this filter and set your preferred time zone.
How the Signals Are Generated
• Bullish Signal
o Occurs when:
1. Price is above VWAP.
2. Fast EMA is above Slow EMA.
3. RSI is above 50.
4. (Optional) Current volume exceeds the average volume if the volume filter is enabled.
5. (Optional) The chart’s timestamp is within the specified session if the time filter is enabled.
A green triangle is plotted below the bar, and an optional background highlight is shown.
• Bearish Signal
Occurs when the conditions are inverted (price below VWAP, fast EMA below slow EMA, RSI below 50, volume filter and time window—if enabled—are satisfied).
A red triangle is plotted above the bar, and an optional background highlight is shown.
How to Use
1. Load on a 1-Minute Chart (Recommended)
This script is intended for intraday timeframes (specifically 1-minute). Feel free to experiment with other timeframes.
2. Adjust Inputs
You can modify the RSI length, EMA lengths, and volume lookback to suit your preferences or trading style.
If you prefer signals outside the default session hours, turn off “Use Time Filter for Signals?” or change the session window and time zone.
3. Enable or Disable Volume Filter
Turn this on if you only want signals during higher-than-average volume bars.
4. Combine with Other Analysis
This script can be used as a visual tool; however, it is not a complete trading system by itself. Consider additional technical or fundamental analysis to validate your trading decisions.
5. Risk Management
Always practice sound risk management. Setting appropriate stop-losses or using position sizing techniques can help manage potential losses.
Important Notes and Disclaimers
• Educational Only: This script is for demonstration and educational purposes and does not guarantee future results.
• No Financial Advice: Nothing here should be construed as financial or investment advice. Always do your own research and consider consulting a qualified financial professional.
• Test Before Using Live: If you plan to incorporate this script into a strategy, backtest it on historical data and consider forward-testing on a demo account.
• License: This code is subject to the Mozilla Public License 2.0.
MA Distance with StdDev BandsThis Pine Script indicator calculates and visualizes the percentage deviation from a moving average with dynamic standard deviation bands. Here's what it does:
Key Features
Calculates the percentage difference between current price and a user-selected moving average (SMA, EMA, or VWMA)
Computes standard deviation bands using the entire historical dataset
Displays dynamic color changes based on price movement and band positions
Visual Components
Main line: Shows percentage deviation from the moving average
Dashed bands: Upper and lower standard deviation boundaries
Zero line: Reference for neutral position
Color signals:
Red: Price outside standard deviation bands
Green: Above MA and rising
Orange: Below MA but rising
Blue: Other conditions
MA Distance with StdDev BandsThis Pine Script indicator calculates and visualizes the percentage deviation from a moving average with dynamic standard deviation bands. Here's what it does:
Key Features
Calculates the percentage difference between current price and a user-selected moving average (SMA, EMA, or VWMA)
Computes standard deviation bands using the entire historical dataset
Displays dynamic color changes based on price movement and band positions
Visual Components
Main line: Shows percentage deviation from the moving average
Dashed bands: Upper and lower standard deviation boundaries
Zero line: Reference for neutral position
Color signals:
Red: Price outside standard deviation bands
Green: Above MA and rising
Orange: Below MA but rising
Blue: Other conditions
EMA Conditions Overlay with Weekly Tick MovementDisplays EMA conditions for 4H and daily timeframes along with weekly tick movement