EMA 9 & 20, SMA 20, VWAPThe script plots four key indicators on a price chart: the 9-period Exponential Moving Average (EMA) in blue, the 20-period Exponential Moving Average (EMA) in yellow, the 20-period Simple Moving Average (SMA) in red with circles, and the Volume Weighted Average Price (VWAP) in white. These indicators help traders analyze trends, identify potential support/resistance levels, and assess the average price based on volume, providing valuable insights into market behavior and price action.
อินดิเคเตอร์และกลยุทธ์
Magnificent 7 Basket Desempenho da Basket:
O script calcula o desempenho ponderado das Magnificent 7 e plota uma linha azul no gráfico.
Benchmarks:
O desempenho do S&P 500 , Ouro e DXY são plotados como opcionais.
Linha Azul: Desempenho ponderado da cesta.
Felipe Mendonca
Central Pivot Rangeprevious, current and future TF CPR.
The Central Pivot Range (CPR) is a technical indicator that helps traders identify potential support and resistance levels in the stock market. It's used to make trading decisions, such as entry and exit points.
RSI Divergence IndicatorThe Relative Strength Index (RSI) is a momentum indicator that measures the speed and change of price movements, typically ranging from 0 to 100. It helps identify overbought (above 70) and oversold (below 30) conditions in a market.
Bullish and Bearish Divergences:
Divergences occur when the RSI moves in the opposite direction of the price, signaling potential trend reversals.
Bullish Divergence (Reversal to the Upside)
Price makes a lower low, but
RSI makes a higher low
This suggests weakening selling pressure and a potential upward reversal.
Bearish Divergence (Reversal to the Downside)
Price makes a higher high, but
RSI makes a lower high
This indicates weakening buying pressure and a potential downward reversal.
Divergences are more reliable when combined with other indicators like support/resistance levels and volume analysis.
RSI Failure Swing Pattern (with Alerts & Targets)RSI Failure Swing Pattern Indicator – Detailed Description
Overview
The RSI Failure Swing Pattern Indicator is a trend reversal detection tool based on the principles of failure swings in the Relative Strength Index (RSI). This indicator identifies key reversal signals by analyzing RSI swings and confirming trend shifts using predefined overbought and oversold conditions.
Failure swing patterns are one of the strongest RSI-based reversal signals, initially introduced by J. Welles Wilder. This indicator detects these patterns and provides clear buy/sell signals with labeled entry, stop-loss, and profit target levels. The tool is designed to work across all timeframes and assets.
How the Indicator Works
The RSI Failure Swing Pattern consists of two key structures:
1. Bullish Failure Swing (Buy Signal)
Occurs when RSI enters oversold territory (below 30), recovers, forms a higher low above the oversold level, and finally breaks above the intermediate swing high in RSI.
Step 1: RSI dips below 30 (oversold condition).
Step 2: RSI rebounds and forms a local peak.
Step 3: RSI retraces but does not go below the previous low (higher low confirmation).
Step 4: RSI breaks above the previous peak, confirming a bullish trend reversal.
Buy signal is triggered at the breakout above the RSI peak.
2. Bearish Failure Swing (Sell Signal)
Occurs when RSI enters overbought territory (above 70), declines, forms a lower high below the overbought level, and then breaks below the intermediate swing low in RSI.
Step 1: RSI rises above 70 (overbought condition).
Step 2: RSI declines and forms a local trough.
Step 3: RSI bounces but fails to exceed the previous high (lower high confirmation).
Step 4: RSI breaks below the previous trough, confirming a bearish trend reversal.
Sell signal is triggered at the breakdown below the RSI trough.
Features of the Indicator
Custom RSI Settings: Adjustable RSI length (default 14), overbought/oversold levels.
Buy & Sell Signals: Buy/sell signals are plotted directly on the price chart.
Entry, Stop-Loss, and Profit Targets:
Entry: Price at the breakout of the RSI failure swing pattern.
Stop-Loss: Lowest low (for buy) or highest high (for sell) of the previous two bars.
Profit Targets: Two levels calculated based on Risk-Reward ratios (1:1 and 1:2 by default, customizable).
Labeled Price Levels:
Entry Price Line (Blue): Marks the point of trade entry.
Stop-Loss Line (Red): Shows the calculated stop-loss level.
Target 1 Line (Orange): Profit target at 1:1 risk-reward ratio.
Target 2 Line (Green): Profit target at 1:2 risk-reward ratio.
Alerts for Trade Execution:
Buy/Sell signals trigger alerts for real-time notifications.
Alerts fire when price reaches stop-loss or profit targets.
Works on Any Timeframe & Asset: Suitable for stocks, forex, crypto, indices, and commodities.
Why Use This Indicator?
Highly Reliable Reversal Signals: Unlike simple RSI overbought/oversold strategies, failure swings filter out false breakouts and provide strong confirmation of trend reversals.
Risk Management Built-In: Stop-loss and take-profit levels are automatically set based on historical price action and risk-reward considerations.
Easy-to-Use Visualization: Clearly marked entry, stop-loss, and profit target levels make it beginner-friendly while still being valuable for experienced traders.
How to Trade with the Indicator
Buy Trade Example (Bullish Failure Swing)
RSI drops below 30 and recovers.
RSI forms a higher low and then breaks above the previous peak.
Entry: Buy when RSI crosses above its previous peak.
Stop-Loss: Set below the lowest low of the previous two candles.
Profit Targets:
Target 1 (1:1 Risk-Reward Ratio)
Target 2 (1:2 Risk-Reward Ratio)
Sell Trade Example (Bearish Failure Swing)
RSI rises above 70 and then declines.
RSI forms a lower high and then breaks below the previous trough.
Entry: Sell when RSI crosses below its previous trough.
Stop-Loss: Set above the highest high of the previous two candles.
Profit Targets:
Target 1 (1:1 Risk-Reward Ratio)
Target 2 (1:2 Risk-Reward Ratio)
Final Thoughts
The RSI Failure Swing Pattern Indicator is a powerful tool for traders looking to identify high-probability trend reversals. By using the RSI failure swing concept along with built-in risk management tools, this indicator provides a structured approach to trading with clear entry and exit points. Whether you’re a day trader, swing trader, or long-term investor, this indicator helps in capturing momentum shifts while minimizing risk.
Would you like any modifications or additional features? 🚀
Triangle Reversal IndicatorTriangle Reversal Indicator – A Visual Tool for Identifying Reversal Patterns
This indicator is designed to highlight potential trend reversal moments by comparing the current candle with the previous one. It offers a unique approach by focusing on distinct candle patterns rather than generic trend indicators, making it a valuable addition to your trading toolkit.
How It Works:
For a bullish signal, the indicator checks if:
The current candle is bullish (closing higher than it opens) while the previous candle was bearish.
The current candle’s low breaches the previous bearish candle’s low.
The current candle’s close is above the previous bearish candle’s close.
When these conditions are met, a tiny green triangle is plotted below the candle to signal a potential bullish reversal.
Conversely, for a bearish signal, it verifies if:
The current candle is bearish (closing lower than it opens) following a bullish candle.
The current candle’s high exceeds the previous bullish candle’s high.
The current candle’s close falls below the previous bullish candle’s close.
If all conditions are satisfied, a small red triangle appears above the candle to indicate a potential bearish reversal.
How to Use:
Simply apply the indicator on your chart and look for the tiny triangles that appear above or below the candles. These markers can serve as an additional visual cue when confirming entry or exit points, but it’s best used alongside your other analysis techniques.
Customization Options:
Users can further enhance the script by adding inputs for lookback periods, adjusting the triangle size, or modifying colors to match their chart themes.
ICT Killzones & HTF Candles"This is the code that I copied from LuxAlgo and Fadizeiden for the convenience of transactions. Thank you to the authors for making the source code open, allowing someone without programming expertise like me to use it. Sincerely grateful!"
HFT StrategyYour HFT Strategy identifies high-probability trades using Fibonacci levels, Break of Structure (BOS), and Fair Value Gaps (FVG). It follows a trend-based approach, entering long trades above the 50% Fibonacci level and short trades below it. Confirmation comes from BOS and FVG. The strategy focuses on momentum-driven entries.
EMA IndicatorThis indicator is optimized for traders seeking an edge in volatile markets, offering early entries on high-volume days like Tuesdays, where institutional activity is at its peak. It aligns with a systematic trading approach, minimizing subjectivity while maximizing consistency.
Fibonacci Retracement with Color FillMain Functionality:
Fibonacci Levels Calculation 📊:
Calculate the high (high_price) and low (low_price) of the last 20 candlesticks 📈.
Use the values to calculate 5 Fibonacci levels:
0% (low) 🏁
23.6% 🌱
38.2% 🌊
61.8% 🍊
100% (high) 🔝
Color Fill 🎨:
Apply color fill between each Fibonacci level to improve the visibility of the chart 🧐. Different colors are available for each range:
0% to 23.6%: Green 🍃
23.6% to 38.2%: Blue 🌊
38.2% to 61.8%: Orange 🍊
61.8% to 100%: Red 🔴
Display Fibonacci Levels 📏:
Display the values of each Fibonacci level (e.g. 0%, 23.6%, 38.2%, 61.8%, 100%) on the chart with different colored Labels according to the Fibonacci level 🔠 for the user to see clearly.
Key Code:
Calculate Fibonacci levels using the ta.highest and ta.lowest functions to find the high and low of the last 20 candles 🔎.
Use plot to display each Fibonacci level 📊.
Use fill to color between Fibonacci levels 🎨.
Display Labels to indicate the value of each Fibonacci level 🏷️.
Working Example:
If the closing price of the last 20 candles was a high of 100 and a low of 50, the program will calculate the Fibonacci level from this price and display levels such as 23.6%, 38.2%, etc. with color filling between these levels 🎯.
This code will help to simplify chart analysis, especially in finding support and resistance levels according to the popular Fibonacci Levels in trading strategies 🚀.
This indicator works on
#crypto #forex #gold and all assets.
Candle Body(%)This Pine Script indicator highlights candles where the body is greater than a specified percentage (default 60%) of the total range. Here's what script does:
User Input:
Takes an input percentage (default 60%) to compare the candle body against the total range.
Calculations:
Computes the absolute body size (|close - open|).
Computes the total range (high - low).
Calculates the body percentage (body_size / total_range * 100).
Condition:
If the candle body is greater than the specified percentage of the total range, the condition body_more_than_60 is true.
Visual Representation:
A shape (%>) is plotted below qualifying candles in red.
The bar color is changed to purple for these candles.
Up/Down Days//@version=5
indicator("Up/Down Days", overlay=true)
// Check if today is an "up day" (close > previous close)
isUpDay = close > close
// Check if today is a "down day" (close < previous close)
isDownDay = close < close
// Plot arrows or labels
plotshape(isUpDay, title="Up Day", color=color.green, style=shape.triangleup, location=location.belowbar)
plotshape(isDownDay, title="Down Day", color=color.red, style=shape.triangledown, location=location.abovebar)
// Count up/down days in a rolling window (e.g., last 30 days)
var int upDaysCount = 0
var int downDaysCount = 0
if isUpDay
upDaysCount += 1
else if isDownDay
downDaysCount += 1
// Reset counts every 30 days
if bar_index % 30 == 0
upDaysCount := 0
downDaysCount := 0
// Display counts
tablePosition = position.top_right
var table statsTable = table.new(tablePosition, 2, 1)
table.cell(statsTable, 0, 0, "Up Days: " + str.tostring(upDaysCount), bgcolor=color.green)
table.cell(statsTable, 1, 0, "Down Days: " + str.tostring(downDaysCount), bgcolor=color.red)
NAS100, Gold, EURUSD Table with MACD, Volume, Pivotvwydgvıywd k mn bıuwgoubnd. ıuywgıudgbkjwöd. bıuywbdhıjbvknw
EMA Cross🔥EMA Cross – Multi-Timeframe Trend & Crossover Indicator⚡
📌 Overview
The EMA Cross Indicator is a trend-following tool designed to help traders identify market trends and potential trade opportunities using Exponential Moving Averages (EMAs). It provides clear crossover signals, allowing traders to spot trend reversals and momentum shifts with precision.
📌 Concept & Working Mechanism
1. Multi-Timeframe EMAs:
- Plots two customizable EMAs (Fast EMA & Slow EMA) that can be set to any timeframe.
- Helps traders determine short-term and long-term trend direction.
2. EMA Crossover Signals:
- Golden Cross (Bullish Signal): Occurs when the fast EMA crosses above the slow EMA, indicating a potential uptrend.
- Death Cross (Bearish Signal): Occurs when the fast EMA crosses below the slow EMA, signaling a possible downtrend.
3. Customizable Crossover Alerts:
- Choose from different shapes (arrow, triangle, circle, cross) to highlight EMA crossovers for better visualization.
- Helps traders quickly recognize trend shifts on the chart.
4. Dynamic Trend Adaptation:
- Supports timeframe selection to analyze trends from different perspectives.
- Works across all asset classes, including Forex, Crypto, Stocks, and Commodities.
📌 How to Use
1- Trend Confirmation: Use the EMA direction and crossover signals to validate trend strength.
2- Entry & Exit Strategy:
3- Enter long trades after a Golden Cross, indicating bullish momentum.
4- Enter short trades after a Death Cross, signaling bearish pressure.
5- Custom Alerts & Visuals: Customize crossover signals for clear trade identification.
📌 Why Use This Indicator?
✅ Multi-timeframe EMAs for accurate trend analysis.
✅ Clear crossover signals for easy trade execution.
✅ Customizable shapes for crossover visualization.
✅ Works on all markets and trading styles.
Global M2 Money Supply // Days Offset =Global M2 Money Supply. BTC follows this if you offset it by 70 days.
رازی+RSIواگرایی مخفی پیشرفتهrazi + costum rsi + vagarayi pishrafte thats all ( hidden api from dex and apps)
Niveluri Psihologice GER40This indicator automatically marks the high and low psychological levels for the GER40-DAX parity
Zero Lag RibbonThis Zero Lag Ribbon Indicator helps you identify trend direction and generate Buy/Sell signals based on the crossover of two Zero Lag EMAs (ZLEMA). Follow these steps to use it effectively:
Two Moving Averages (Fast ZLEMA & Slow ZLEMA) will appear on your chart:
Fast ZLEMA (Green Line): Reacts quickly to price movements.
Slow ZLEMA (Red Line): Moves slower and filters noise.
Color Background Changes:
🟩 Green Background → Bullish Trend (Fast ZLEMA > Slow ZLEMA).
🟥 Red Background → Bearish Trend (Fast ZLEMA < Slow ZLEMA).
Buy/Sell Signals (Arrows):
Green UP Arrow = Buy Signal (Fast ZLEMA crosses above Slow ZLEMA).
Red DOWN Arrow = Sell Signal (Fast ZLEMA crosses below Slow ZLEMA).
Step 3: Spot Trading Opportunities
BUY Entry ✅
Wait for a Green Background.
Fast ZLEMA crosses above Slow ZLEMA.
Confirm with Volume & Support Levels.
SELL Entry ❌
Wait for a Red Background.
Fast ZLEMA crosses below Slow ZLEMA.
Check Resistance Levels.
EXIT Strategy
Exit when the color changes OR another signal appears.
Go to "Alerts" (Clock icon on TradingView).
Click "Create Alert".
Set conditions:
Buy Signal → Alert when Fast ZLEMA crosses above Slow ZLEMA.
Sell Signal → Alert when Fast ZLEMA crosses below Slow ZLEMA.
Enable Notifications (Popup, Email, App Notification).
tep 5: Optimize for Better Trades
Combine with Other Indicators: Use Volume, RSI, or Open Interest for confirmation.
Avoid False Signals: Don't trade every crossover blindly. Look for strong trend zones.
Backtest the Strategy: Check past performance before real trades.
📌 Example Trade Using This Indicator
🔹 Chart: Nifty 50, 5-Min Timeframe
🔹 BUY Signal Triggered: Fast ZLEMA crossed above Slow ZLEMA at 22,250
🔹 Exit at Resistance: Price hit 22,400 (Profit booked ✅)
🔹 SELL Signal Triggered: Fast ZLEMA crossed below Slow ZLEMA at 22,380
🔹 Exit at Support: Price dropped to 22,250 (Profit booked ✅)
💡 Final Thoughts
✔ Great for Trend Trading
✔ Works on Any Market (Stocks, Crypto, Options, Forex)
✔ Use with Alerts for Automated Trading
💬 Let me know if you want modifications or improvements! 🚀
EMA Cross Alert (5m EMA, Custom Timeframe Opposite Candle)9/21 cross 5m
2m entry
alert - helps with entry on opposite candle
Dynamic Timeframe Trend AnalyzerPurpose and Core Logic
This indicator automatically adjusts its calculations based on the current chart’s timeframe, allowing traders to analyze trends, momentum, and mean reversion opportunities without manually changing indicator settings for each interval. It detects potential long or short setups by combining several techniques:
Dynamic Timeframe Factor
The script compares the current timeframe to a base (e.g., 5 minutes) and calculates a “factor” to scale certain parameters, such as EMA lengths or ATR settings. This reduces the need to reconfigure indicators when switching timeframes.
Regime Detection
It uses ADX (Average Directional Index) to classify the market as strongly trending, moderately trending, choppy, or in a potential mean-reversion phase.
RSI (Relative Strength Index) is also monitored for extreme levels (e.g., overbought/oversold) to detect potential reversal zones.
Volume is compared to a moving average to confirm or refute volatility conditions.
Trend & Mean Reversion Signals
EMA Alignment (8/21/55) helps identify bullish or bearish phases (strong bull if all EMAs align upward, strong bear if aligned downward).
For mean reversion opportunities, the script checks if ADX is sufficiently low (indicating weak or no trend) while price and RSI are at extreme levels—suggesting a snapback or countertrend move may occur.
Dynamic Stop Loss & Take Profit
Uses ATR (Average True Range) to set initial stop-loss (SL) and take-profit (TP) levels, then adjusts these levels further with “regime multipliers” based on whether the market is in a high-volatility trend or a quieter mean-reversion environment.
This approach aims to place stops and targets in a more adaptive way, reflecting current market conditions rather than a one-size-fits-all approach.
Visual Aids
Color-coded chart backgrounds (e.g., greenish for bullish trend, red for bearish, yellow/orange for mean reversion).
Triangles to show recent bullish/bearish signals.
A status table in the top-right corner (optional) displaying key metrics like ADX, RSI, dynamic thresholds, current SL/TP levels, and whether a stop loss has been hit.
How It Works Internally
ADX & Dynamic Thresholds:
A moving average (adx_mean) and standard deviation (adx_std) of the ADX are calculated over a lookback period to define “strong” vs. “weak” ADX thresholds.
This allows the script to adapt to changing volatility and trend strength in different markets or timeframes.
Mean Reversion Criteria:
The indicator checks if price deviates significantly from its own moving average, alongside RSI extremes. If ADX suggests no strong directional push (i.e., the market is “quiet”), it may classify conditions as mean-reverting.
Regime Multipliers:
Once the script identifies the market regime (e.g., strong uptrend, choppy, mean reversion), it applies different multipliers to the user-defined base values for stop-loss and take-profit. For instance, strong trending conditions might allow for wider stops to handle volatility, while mean reversion signals use tighter exits to capture quick reversals.
How to Use It
Timeframe Agnostic
Simply apply it to any timeframe (from 1-minute up to daily or weekly). The “Dynamic Timeframe Factor” will scale the indicator parameters automatically.
Look for Buy/Sell Triangles
When the script detects a valid bullish trend shift or a mean-reversion long setup, it plots a green triangle under the price bar. Conversely, it plots a red triangle above the price bar for bearish or mean-reversion short setups.
Check the Status Table
The table in the top-right corner summarizes the indicator’s current readings: ADX, RSI, volume trends, and the market regime classification.
The table also shows if a stop loss has been hit (SL Hit) and displays recommended SL/TP levels if a signal is active.
Stop Loss & Take Profit
The script plots lines for SL and TP on your chart after a new signal. These lines are automatically adjusted based on ATR, volume conditions, and ADX-derived multipliers.
Mean Reversion vs. Trend-Following
If you see a “Mean Rev” state in the table or the background turning yellow/orange, it suggests potential countertrend trades. Conversely, “STRONG BULL” or “STRONG BEAR” states favor momentum-based entries in the prevailing direction.
Originality & Benefits
Adaptive to Timeframe: Many indicators require reconfiguration when switching from short to long timeframes. This script automates that process using the “timeframe factor” logic.
Regime-Based SL/TP: Instead of fixed risk parameters, the script dynamically tunes stop and target levels depending on whether the market is trending or reverting.
Comprehensive Market View: It combines multiple factors—ADX, RSI, volume, moving averages, and volatility measurements—into a single, integrated framework that categorizes the market regime in real time.
Best Practices & Notes
Timeframes: It typically performs well on intraday timeframes (5m, 15m, 1H) but can also be used for swing trading on 4H or Daily charts.
Settings: The defaults are a good starting point, but you can adjust the base ATR multiplier or ADX lookbacks if you prefer a different balance between sensitivity and stability.
Risk Management: This indicator is not a guarantee of any specific results. Always use proper risk management (position sizing, stop-losses, and diversified strategies).
Alert Conditions: Built-in alert conditions can notify you when a new long or short signal appears, or when a stop loss is triggered.