Smart Moving AveragesSmart Moving Averages analyzes the dynamic interplay between price action and multiple moving averages to identify high-probability support and resistance zones.
The script's distinguishing features include:
Bounce detection that filters out noise by requiring specific penetration thresholds (0.1-1.5%), helping traders identify genuine support tests versus false signals
Real-time MA clustering analysis that reveals zones where multiple moving averages converge, indicating potentially stronger support/resistance levels
Statistical tracking of bounce success rates for each MA, allowing traders to identify which moving averages are most reliable for the current market conditions
Power bounce detection that combines EMA spread analysis with trend confirmation, highlighting especially strong bullish setups
Visual stack status system that instantly communicates market health through an intuitive color-coded display showing how many MAs are below price
The script helps traders make more informed decisions by quantifying the historical reliability of different moving averages while providing real-time analysis of MA interactions with price. This systematic approach moves beyond simple MA crossovers to identify higher probability trading opportunities.
Pattern grafici
Thin Liquidity Zones [PhenLabs]Thin Liquidity Zones with Volume Delta
Our advanced volume analysis tool identifies and visualizes significant liquidity zones using real-time volume delta analysis. This indicator helps traders pinpoint and monitor critical price levels where substantial trading activity occurs, providing precise volume flow measurement through lower timeframe analysis.
The tool works by leveraging the fact that hedge funds, institutions, and other large market participants strategically fill their orders in areas of thin liquidity to minimize slippage and market impact. By detecting these zones, traders gain valuable insights into potential areas of accumulation, distribution, and liquidity traps, allowing for more informed trading decisions.
🔍 Key Features
Real-time volume delta calculation using lower timeframe data
Dynamic zone creation based on volume spikes
Automatic timeframe optimization
Size-filtered zones to avoid noise
Custom delta timeframe scanning
Flexible analysis period selection
📊 Visual Demonstration
💡 How It Works
The indicator continuously scans for high-volume areas where trading activity exceeds the specified threshold (default 6.0x average volume). When detected, it creates zones that display the net volume delta, showing whether buying or selling pressure dominated that price level.
Key zone characteristics:
Size filtering prevents noise from large price swings
Volume delta shows actual buying/selling pressure
Zones automatically expire based on lookback period
Real-time updates as new volume data arrives
⚙️ Settings
Time Settings
Analysis Timeframe: 15M to 1W options
Custom Period: User-defined bar count
Delta Timeframe: Automatic or manual selection
Volume Analysis
Volume Threshold: Minimum spike multiple
Volume MA Length: Averaging period
Maximum Zone Size: Size filter percentage
Display Options
Zone Color: Customizable with transparency
Delta Display: On/Off toggle
Text Position: Left/Center/Right alignment
📌 Tips for Best Results
Adjust volume threshold based on instrument volatility
Monitor zone clusters for potential support/resistance
Consider reducing max zone size in volatile markets
Use in conjunction with price action and other indicators
⚠️ Important Notes
Requires volume data from your data provider
Lower timeframe scanning may impact performance
Maximum 500 zones maintained for optimization
Zone creation is filtered by both volume and size
🔧 Volume Delta Calculation
The indicator uses TradingView’s advanced volume delta calculation, which:
Scans lower timeframe data for precision
Measures actual buying vs selling pressure
Updates in real-time with new data
Provides clear positive/negative flow indication
This tool is ideal for traders focusing on volume analysis and order flow. It helps identify key levels where significant trading activity has occurred and provides insight into the nature of that activity through volume delta analysis.
Note: Performance may vary based on your chart’s timeframe. Adjust settings according to your trading style and the instrument’s characteristics. Past performance is not indicative of future results, DYOR.
FVG DetectorA fairly flexible indicator for displaying imbalance zones. There are quite a few similar indicators, but none of them suit me, so I made my own.
Settings:
Minimum FVG size in % - Minimum imbalance size in percentage
Percentage of filling FVG - When the imbalance is filled by the specified percentage, the imbalance will be considered inactive
Show FVG - The number of FVG to be shown on the chart. If 0, all FVG are shown
FVG Long color - Color of FVG Long FVG
FVG Short color - Color of FVG Short FVG
FVG middle line - Setting the line that shows the middle of the imbalance
Filling 50% FVG - When filling the imbalance halfway, the line showing the middle of the imbalance changes type and color
When Candle Close - The rectangle showing the imbalance zone is removed only after the candle closes
History - Display all imbalance zones on history
Conclusion:
This indicator will be useful for those users who need to display imbalance zones, the middle of the imbalance, and also visually show that the price has covered half of the imbalance zone.
Eblicious Pro +Smart trend-following system with multiple confirmation layers to filter high-probability trades
SYSTEM CORE
Heikin Ashi
Uses smoothed "Heikin Ashi" candles (artificial candles showing trend direction) instead of regular candles
Bullish Signal: Blue HA candle (close > open)
Bearish Signal: Red HA candle (close < open)
Why it matters: Reduces market noise, shows clearer trends
Dual Filter System
A) MACD Momentum Filter
Checks if fast MACD line is above/below slow signal line
Bullish: Blue MACD line above orange signal line
Bearish: Blue MACD line below orange signal line
Tip: Disable in sideways markets
B) HA Trend Filter (NEW)
Requires signals to match HA candle direction
Buy Signals: Only when HA candle is blue
Sell Signals: Only when HA candle is red
Why added: Prevents fighting against the current trend
Smart Volatility Check
Only activates signals when market moves sufficiently
Green background = Volatility OK for trading
Red background = Too quiet, signals disabled
How it works: Measures recent price swings (ATR)
Time-Sensitive Mode
Automatically adjusts sensitivity:
High Activity (8:35-11:00 ET): 20% more sensitive
Low Activity (11:01-14:30 ET): 15% less sensitive
Best usage: Focus on morning session signals
VISUAL
Chart Markers
"AB" Label: Adaptive Buy signal (below price bar)
"AS" Label: Adaptive Sell signal (above price bar)
Color Code:
Bright green/red = Strong confirmation
Pale colors = Filter requirements not fully met
Filter Status Table (Top-Right)
Real-time monitoring of active filters
Green = Filter ON, Red = Filter OFF
Advanced Features
1- Self-Learning Algorithm
Analyzes past 100 signals' success rate
Automatically weights better-performing signals
Requires >55% historical accuracy (adjustable)
2- Risk Management
Built-in stop loss (1%) & take profit (2%) suggestions
Adjustable in settings based on your risk tolerance
3- Multi-Timeframe Compatibility
Works best on:
15min charts for day trading
4hr charts for swing trading
Daily charts for long-term positions
How to Trade
Buy Signal Checklist:
1-Blue HA candle appears
2-"AB" label below price bar
3-Chart background turns green (volatility OK)
Sell Signal Checklist:
1-Red HA candle appears
2-"AS" label above price bar
3-Chart background turns green (volatility OK)
BFX Buy and SellThe BFX Buy and Sell Strategy is a cutting-edge trading tool designed to help you navigate the markets with confidence.
This strategy simplifies decision-making by delivering precise buy and sell signals, ensuring you’re always one step ahead of market trends. Perfect for traders of all experience levels, it offers clean visuals and reliable alerts to maximize your trading potential.
Whether you’re looking to fine-tune your strategy or seeking a fresh approach to trading, the BFX Buy and Sell is your ultimate partner for smarter, more efficient trading.
Developed by
Jc Golden
BeardedFX
www.beardedfx.net
Nadaraya-Watson Envelope [LuxAlgo]Chỉ báo kỹ thuật (Technical Indicator) là một công cụ quan trọng được sử dụng trong phân tích kỹ thuật để dự báo xu hướng giá cả trong tương lai của các tài sản tài chính như cổ phiếu, tiền tệ, hàng hóa, hay chỉ số. Chỉ báo này được tính toán từ các dữ liệu lịch sử về giá và khối lượng giao dịch, giúp các nhà giao dịch đưa ra các quyết định mua hoặc bán dựa trên các tín hiệu mà chỉ báo cung cấp.
Protrader Unique bars Renko Chart This is a script which is used to deploy charts on Exchange Trades Platform
Anjink V3 Purpose:
Identify Market Swings:
Detects significant highs and lows in the price movement using parameters like Depth, Deviation, and Backstep.
Plots trendlines connecting these swing points.
Labels these swing points with S (Sell) for swing highs and B (Buy) for swing lows, indicating potential trading opportunities.
Trend Analysis:
Plots three key moving averages (MA 20, MA 50, MA 200) for trend-following strategies.
Helps traders understand the short-term, mid-term, and long-term trends.
Volatility and Risk Metrics:
Uses ATR (Average True Range) to measure market volatility.
Displays the ATR percentage (volatility as a percentage of the price) and a calculated stop-loss percentage (1.5x ATR) for risk management.
Trend Visualization:
Dynamically updates swing levels and trendlines as the market evolves.
Highlights the trend direction with a background color:
Red: Downtrend (Bearish).
Green: Uptrend (Bullish).
Green/Red Candle Ratio - Ratiomizer V1.01🔥 Green/Red Candle Ratio Indicator 🔥
📊 Track Market Momentum Instantly!
🚀 Welcome to the Green/Red Candle Ratio Indicator! 🚀
This script dynamically calculates the ratio of green (bullish) vs. red (bearish) candles in your visible chart area, giving you a quick overview of market sentiment.
🛠 About This Script
⚡ Created with the help of ChatGPT – This is an early draft and open-source for everyone to use and improve!
⚠️ Short timeframe users (1min, 5min, etc.) – Be aware that too many candles can sometimes cause issues with calculations.
🔗 If you improve on this idea or use it in your own project, I’d love a little credit! 💙
📺 Follow My Trading Journey!
🎥 Live Trading, Insights & Market Analysis:
📌 YouTube → www.YouTube.com
📌 Kick → www.Kick.com
🙌 Support the content and join an awesome trading community!
💡 How to Use This Indicator
1️⃣ Apply it to your chart
2️⃣ See the real-time green/red candle ratio
3️⃣ Zoom in/out to dynamically adjust the calculations
4️⃣ Use it as an extra confirmation tool for trend momentum
💬 Feedback & improvements are welcome! If you run into issues or have ideas to make this script better, let me know in the community!
🔥 Happy Trading & Stay Profitable! 🔥 🏆
//@version=5
indicator("Green/Red Candle Ratio", overlay=true)
// Define the number of past bars to check (must be within TradingView limits)
maxBarsBack = math.min(500, bar_index) // Ensures we do not exceed available bars
// Initialize counters
greenCount = 0
redCount = 0
neutralCount = 0
totalBars = 0
// Loop through the last `maxBarsBack` bars
for i = 0 to maxBarsBack - 1
idx = bar_index - i
if idx >= 0
if close > open
greenCount := greenCount + 1
else if close < open
redCount := redCount + 1
else
neutralCount := neutralCount + 1
// Ensure only green + red candles contribute to the percentage calculation
validBars = greenCount + redCount
// Calculate ratios correctly so they always add up to 100%
greenRatio = validBars > 0 ? (greenCount / validBars) * 100 : na
redRatio = validBars > 0 ? (redCount / validBars) * 100 : na
// Create label text
labelText = "Green: " + str.tostring(greenRatio, "#.##") + "% Red: " + str.tostring(redRatio, "#.##")
labelColor = greenRatio > redRatio ? color.green : color.red
// Delete previous label before creating a new one
var label ratioLabel = na
if not na(ratioLabel)
label.delete(ratioLabel)
// Display only one label that updates dynamically
ratioLabel := label.new(bar_index, high, labelText, color=color.white, textcolor=labelColor, size=size.normal, style=label.style_label_down)
Dynamic Customizable 50% Line & Daily High/Low + True Day OpenA Unique Indicator for Precise Market-Level Analysis
This indicator is a fully integrated solution that automates complex market-level calculations and visualizations, offering traders a tool that goes beyond the functionality of existing open-source alternatives. By seamlessly combining several trading concepts into a single script, it delivers efficiency, accuracy, and customization that cater to both novice and professional traders.
Key Features: A Breakdown of What Makes It Unique
1. Adaptive Daily Highs and Lows
Automatically detects and plots daily high and low levels based on the selected time frame, dynamically updating in real time.
Features session-based adjustments, allowing traders to focus on levels that matter for specific trading sessions (e.g., London, New York).
Fully customizable styling, visibility, and alerts tailored to each trader’s preferences.
How It Works:
The indicator calculates daily high and low levels directly from price data, integrating session-specific time offsets to account for global trading hours. These levels provide traders with clear visual markers for key liquidity zones.
2. Automated ICT 50% Range Line
A pioneering implementation of ICT’s mid-range concept, this feature dynamically calculates and displays the midpoint of the daily range.
Offers traders a visual guide to identify premium and discount zones, aiding in determining market bias and potential trade setups.
How It Works:
The script calculates the range between the day’s high and low, dividing it by two to generate the midline. This line updates in real-time, ensuring that traders always see the most current premium and discount levels as price action evolves.
3. Dynamic Market Open Levels
Plots session opens (e.g., Asia, London, New York) and the True Day Open to provide actionable reference points for intra-day trading strategies.
Enhances precision in identifying liquidity shifts and aligning trades with institutional price movements.
How It Works:
The indicator uses predefined session times to calculate and display the opening levels for key trading sessions. It dynamically adjusts for time zones, ensuring accuracy regardless of the trader’s location.
4. Custom Watermark for Enhanced Visualization
Includes an optional watermark feature that allows users to display custom text on their charts.
Ideal for personalization, branding, or highlighting session notes without disrupting the clarity of the chart.
Why This Indicator Stands Out
First-to-Market Automation:
While the ICT 50% range line is a widely recognized concept, this is the first script to automate its calculation, combining it with other pivotal trading levels in a single tool.
All-in-One Functionality:
Unlike open-source alternatives that focus on individual features, this script integrates daily highs/lows, mid-range levels, session opens, and customizable watermarks into one cohesive system. The consolidation reduces the need for multiple indicators and ensures a clean, efficient chart setup.
Dynamic Customization:
Every feature can be adjusted to align with a trader’s strategy, time zone, or aesthetic preferences. This level of adaptability is unmatched in existing tools.
Proprietary Logic:
The indicator’s underlying calculations are built from scratch, leveraging advanced programming techniques to ensure accuracy and reliability. These proprietary methods differentiate it from similar open-source scripts.
How to Use This Indicator
Apply the Indicator:
Add it to your TradingView chart from the library.
Configure Settings:
Use the intuitive settings panel to adjust plotted levels, colors, styles, and visibility. Tailor the indicator to your trading strategy.
Incorporate into Analysis:
Combine the plotted levels with your preferred trading approach to identify liquidity zones, establish market bias, and pinpoint potential reversals or entries.
Stay Focused:
With all key levels automated and updated in real time, traders can focus on execution rather than manual plotting.
Originality and Justification for Closed Source
This script is closed-source due to its unique combination of features and proprietary logic that automates complex trading concepts like the ICT 50% range line and session-specific levels. Open-source alternatives lack this level of integration and customization, making this indicator a valuable and original contribution to the TradingView ecosystem.
What Sets It Apart from Open-Source Scripts?
Unlike open-source tools, this indicator doesn’t just replicate individual features—it enhances and integrates them into a seamless, all-in-one solution that offers traders a more efficient and effective way to analyze the market.
NY Liquidity sweep - MuralidharNew York Session Liquidity Sweep in the Asian Session
This term refers to a price action phenomenon where liquidity created during the New York trading session is targeted and swept (or cleared) during the subsequent Asian trading session. Let’s break this down:
Key Components:
Liquidity:
In financial markets, liquidity often refers to the areas where stop-loss orders, pending orders, or clusters of trades accumulate. These areas typically form around key levels like highs, lows, or consolidation zones.
Traders often place stop-losses above recent highs or below recent lows, creating "pools of liquidity."
New York Session:
The New York session is one of the most volatile trading sessions due to the overlap with the London session and the significant participation of institutional players.
It often leaves behind key levels, such as session highs, lows, or consolidation zones, where liquidity builds up.
Asian Session:
The Asian session is typically less volatile compared to the New York session. However, it can still be used by market makers or large players to manipulate price action.
Due to the reduced trading volume, it is easier for large players to sweep liquidity during this session.
What Happens During a Liquidity Sweep?
Formation of Liquidity Zones in the New York Session:
As the New York session progresses, traders establish positions, leaving behind liquidity pockets such as stop-loss orders around session highs and lows.
Asian Session Sweep:
In the quieter Asian session, price often moves to these liquidity zones created during the New York session.
This "sweep" is often a sharp move in price designed to trigger stop-loss orders or entice breakout traders into the market.
Once the liquidity is taken, price often reverses sharply, leaving behind a false breakout or a wick in the price chart.
Why Does This Happen?
Market Maker Behavior:
Market makers or large institutional players may manipulate prices to access liquidity.
By sweeping these zones, they can fill their larger orders at better prices.
Inducing Traders:
A sweep may be used to lure retail traders into positions before reversing the market direction, trapping them.
Practical Implications for Traders:
Identifying Liquidity Zones:
Mark key highs, lows, and consolidation areas from the New York session on your charts.
Watch for price action around these zones during the Asian session.
Avoiding Traps:
Be cautious of trading breakouts during the Asian session, as they might be liquidity grabs.
Look for confirmation before entering trades.
Using the Sweep to Your Advantage:
After the sweep, wait for signs of reversal, such as candlestick patterns or rejection wicks, to enter trades in the opposite direction.
Example:
During the New York session, a high is formed at 1.2000 on EUR/USD.
In the Asian session, price moves up to 1.2005, triggering stop-loss orders placed above 1.2000.
After the sweep, price sharply reverses, leaving a wick at 1.2005 and continuing downward.
By understanding this phenomenon, traders can better anticipate market behavior and refine their strategies to avoid being caught in liquidity traps.
EMA 68 with Trailing Stop-Loss 9430018561EMA 68 with Trailing Stop-Loss 9430018561
EMA Crossover ke upar buy and sell
Isme stop loss bhi hain aur traling stop loss bhi
Double Bottom AlertAlerts you the second a double bottom condition is met, no need to wait for a closed candle
QuantFarming Signals v6//@version=6
indicator("QuantFarming Signals", overlay = true, max_boxes_count = 500)
// INPUT
Resolution = input.timeframe("240", title = "Resolution")
BarWidth = input.int(4, title = "Bar Width", minval = 1)
RSIRegPeriod = input.int(1000, title = "RSI Regression Period")
RSIRegFactor = input.float(1.7, title = "RSI Regression Factor")
StopLossBufferPoints = input.float(5.0, title = "Stop Loss Buffer Points")
WebhookID = input.string("", title = "Webhook ID", group = "Setup")
WebhookToken = input.string("", title = "Webhook Token", group = "Setup")
Delay = input.timeframe("240", title = "Signal Delay", group = "Setup")
BuyMovingAveragePeriod = input.int(25, title = "Buy MA Period", inline = "Buy", group = "Moving Average Period & Angle")
SellMovingAveragePeriod = input.int(25, title = "Sell MA Period", inline = "Sell", group = "Moving Average Period & Angle")
BuyAngle = input.float(+0.01, title = "Buy MA Angle", inline = "Buy", group = "Moving Average Period & Angle")
SellAngle = input.float(-0.01, title = "Sell MA Angle", inline = "Sell", group = "Moving Average Period & Angle")
RSIMax = input.float(55, title = "RSI Max", group = "Relative Strength Index Regression")
RSIMin = input.float(50, title = "RSI Min", group = "Relative Strength Index Regression")
// KR INPUT
Timeframe = input.timeframe("5", title = "Timeframe", group = "Kernel Regression for Confirmation")
Size = input.int(100, title = "Size", minval = 1, group = "Kernel Regression for Confirmation")
Bandwidth = input.float(5.0, title = "Bandwidth Parameter", minval = 1, step = 0.125, group = "Kernel Regression for Confirmation")
R = input.float(1.0, title = "R Value", minval = 0.125, step = 0.125, group = "Kernel Regression for Confirmation")
// FIBONACCI RETRACEMENT INPUT
RetracementLookback = input.int(100, title = "Retracement Lookback", group = "Fibonacci Retracement")
// POINTS IN THE BOX
BoxPoints = input.bool(true, title = "Display Points", group = "Points In The Box")
BoxWidth = input.int(10, title = "Box Width", group = "Points In The Box")
BoxHeight = input.int(10, title = "Box Height", group = "Points In The Box")
// DIRECTION ===============================================
// OFFSET
Offset = timeframe.in_seconds(Resolution) >= timeframe.in_seconds(timeframe.period) ? timeframe.in_seconds(Resolution) / timeframe.in_seconds(timeframe.period) : 0
// TRENDLINE
BuyMovingAverage = request.security(syminfo.tickerid, Resolution, ta.sma(close, BuyMovingAveragePeriod))
SellMovingAverage = request.security(syminfo.tickerid, Resolution, ta.sma(close, SellMovingAveragePeriod))
// ANGLE OF ELEVATION AND DEPRESSION
BuyMovingAverageAngle = request.security(syminfo.tickerid, Resolution, (BuyMovingAverage / BuyMovingAverage - 1) * 100)
SellMovingAverageAngle = request.security(syminfo.tickerid, Resolution, (SellMovingAverage / SellMovingAverage - 1) * 100)
// DIRECTION
var Direction = int(0)
BuyDirection = BuyMovingAverage > BuyMovingAverage and BuyMovingAverageAngle > BuyAngle ? 1 : 0
SellDirection = SellMovingAverage < SellMovingAverage and SellMovingAverageAngle < -SellAngle ? -1 : 0
Direction := BuyDirection > BuyDirection ? 1 : (SellDirection < SellDirection ? -1 : Direction)
// DRAW ANGLE OF ELEVATION AND DEPRESSION
if Direction > Direction
line.new(bar_index, BuyMovingAverage, bar_index , BuyMovingAverage , xloc.bar_index, extend.none, color.white, line.style_solid, 2)
if Direction < Direction
line.new(bar_index, SellMovingAverage, bar_index , SellMovingAverage , xloc.bar_index, extend.none, color.yellow, line.style_solid, 2)
// DRAW TRENDLINE
plot(BuyMovingAverage, title = "Buy Moving Average", color = Direction > 0 ? color.aqua : color.fuchsia, offset = -Offset + 1)
plot(SellMovingAverage, title = "Sell Moving Average", color = Direction > 0 ? color.aqua : color.fuchsia, offset = -Offset + 1)
// DRAW DIRECTION
bgcolor(color = color.new(Direction > 0 ? color.teal : color.maroon, 90), title = "Direction", offset = -Offset + 1)
// REGRESSION ============================================
// RELATIVE STRENGTH INDEX
RSI = ta.rsi(close, 14)
// RELATIVE STRENGTH INDEX REGRESSION
RSIRegression = ta.linreg(RSI, RSIRegPeriod, 0)
// RELATIVE STRENGTH INDEX DEVIATION
RSIDeviation = ta.stdev(RSI, RSIRegPeriod) * RSIRegFactor
// RSI SIGNAL
RSISell = ta.crossunder(RSI, RSIRegression + RSIDeviation) and RSI > RSIMax
RSIBuy = ta.crossover(RSI, RSIRegression - RSIDeviation) and RSI < RSIMin
// KERNEL REGRESSION ==============================================================================
// KERNEL REGRESSION
KernelRegression() =>
CurrentWeight = 0.0
CumulativeWeight = 0.0
for Count = 0 to Size
Y = close
U = math.pow(Count, 2) / (math.pow(Bandwidth, 2) * R)
W = (U >= 1) ? 0 : (3. / 4) * (1 - math.pow(U, 2))
CurrentWeight := CurrentWeight + Y * W
CumulativeWeight := CumulativeWeight + W
CurrentWeight / CumulativeWeight
// REVERSAL CONFIRMATION
Regression = request.security(syminfo.tickerid, Timeframe, KernelRegression())
// SIGNAL
Sell = RSISell and Direction < 0 and Regression > Regression
Buy = RSIBuy and Direction > 0 and Regression < Regression
// DELAY
var Track = int(0)
Active = (time - Track) >= timeframe.in_seconds(Delay) * 1000
Track := Active and (Buy or Sell) ? time : Track
plotshape(Sell and Active, title = "Sell", style = shape.triangledown, color = color.fuchsia, location = location.abovebar, size = size.tiny)
plotshape(Buy and Active, title = "Buy", style = shape.triangleup, color = color.aqua, location = location.belowbar, size = size.tiny)
// LEVEL ==========================================================================
// LEVEL
Peak = ta.highest(RetracementLookback)
Trough = ta.lowest (RetracementLookback)
// DEVIATION
Deviation = Peak - Trough
// SIDE
Side = Buy and Active ? 1 : (Sell and Active ? -1 : 0)
// FIBONACCI RETRACEMENT ==========================================================================
// FIBONACCI RETRACEMENT
var TP1 = float(na)
var TP2 = float(na)
var Stop = float(na)
F0 = (Side > 0 ? Trough : Peak) + Side * Deviation * 0.000
F1 = (Side > 0 ? Trough : Peak) + Side * Deviation * 0.236
F2 = (Side > 0 ? Trough : Peak) + Side * Deviation * 0.382
F3 = (Side > 0 ? Trough : Peak) + Side * Deviation * 0.500
F4 = (Side > 0 ? Trough : Peak) + Side * Deviation * 0.618
F5 = (Side > 0 ? Trough : Peak) + Side * Deviation * 0.786
F6 = (Side > 0 ? Trough : Peak) + Side * Deviation * 1.000
F7 = (Side > 0 ? Trough : Peak) + Side * Deviation * 1.236
F8 = (Side > 0 ? Trough : Peak) + Side * Deviation * 1.382
F9 = (Side > 0 ? Trough : Peak) + Side * Deviation * 1.500
FX = (Side != 0 ? 1 : (Side != 0 ? 2 : (Side != 0 ? 3 : 0)))
if Side > 0 and FX == 0
TP1 := (close < F1 ? F2 : (close < F2 ? F3 : (close < F3 ? F4 : (close < F4 ? F5 : (close < F5 ? F6 : (close < F6 ? F7 : na))))))
TP2 := (close < F1 ? F3 : (close < F2 ? F4 : (close < F3 ? F5 : (close < F4 ? F6 : (close < F5 ? F7 : (close < F6 ? F8 : na))))))
Stop := close - (Deviation * 0.236 + StopLossBufferPoints)
if Side < 0 and FX == 0
TP1 := (close > F1 ? F2 : (close > F2 ? F3 : (close > F3 ? F4 : (close > F4 ? F5 : (close > F5 ? F6 : (close > F6 ? F7 : na))))))
TP2 := (close > F1 ? F3 : (close > F2 ? F4 : (close > F3 ? F5 : (close > F4 ? F6 : (close > F5 ? F7 : (close > F6 ? F8 : na))))))
Stop := close + (Deviation * 0.236 + StopLossBufferPoints)
// DRAW FIBONACCI RETRACEMENT
var OpenPosition = int(0), OpenPosition := FX > 0 ? OpenPosition + 1 : 0
var Line = float(na), Line := OpenPosition == 1 ? Stop : (OpenPosition == 2 ? TP2 : Line)
plot(Line, linewidth = 1, color = FX == 0 ? na : (OpenPosition < 3 and OpenPosition > 1 ? color.lime : na))
plot(Stop, linewidth = 1, color = FX == 0 ? na : (OpenPosition < 6 and OpenPosition > 0 ? color.fuchsia : na))
plot(TP1, linewidth = 1, color = FX == 0 ? na : (OpenPosition < 6 and OpenPosition > 0 ? color.aqua : na))
plot(TP2, linewidth = 1, color = FX == 0 ? na : (OpenPosition < 6 and OpenPosition > 0 ? color.aqua : na))
// DRAW POINTS IN THE BOX
Box = array.new_box()
if Active and (Buy or Sell) and bar_index > 2 and BoxPoints
StopPoints = str.tostring(math.round(math.abs(close - Stop) / syminfo.mintick) * syminfo.mintick) + " pts"
TP1Points = str.tostring(math.round(math.abs(close - TP1) / syminfo.mintick) * syminfo.mintick) + " pts"
TP2Points = str.tostring(math.round(math.abs(close - TP2) / syminfo.mintick) * syminfo.mintick) + " pts"
array.push(Box, box.new(left = bar_index - 2, top = Stop + BoxHeight, right = bar_index + BoxWidth, bottom = Stop - BoxHeight, text = StopPoints, text_size = size.auto, text_halign = text.align_right, border_color = color.fuchsia, bgcolor = color.new(color.fuchsia, 80)))
array.push(Box, box.new(left = bar_index - 2, top = TP1 + BoxHeight, right = bar_index + BoxWidth, bottom = TP1 - BoxHeight, text = TP1Points, text_size = size.auto, text_halign = text.align_right, border_color = color.aqua, bgcolor = color.new(color.aqua, 80)))
array.push(Box, box.new(left = bar_index - 2, top = TP2 + BoxHeight, right = bar_index + BoxWidth, bottom = TP2 - BoxHeight, text = TP2Points, text_size = size.auto, text_halign = text.align_right, border_color = color.aqua, bgcolor = color.new(color.aqua, 80)))
// WEBHOOK
message = array.new_string()
array.push(message, "\"id\": \"" + WebhookID + "\"")
array.push(message, "\"token\": \"" + WebhookToken + "\"")
array.push(message, "\"ticker\": \"" + syminfo.ticker + "\"")
array.push(message, "\"action\": \"" + (Buy ? "BUY" : "SELL") + "\"")
array.push(message, "\"price\": \"" + str.tostring(close) + "\"")
array.push(message, "\"time\": \"" + str.tostring(time) + "\"")
if Active and (Buy or Sell)
alert(message = "{ " + array.join(message, ", ") + " }", freq = alert.freq_once_per_bar_close)
all‐in‐one RSI Divergence - Mutasem13All‐in‐one RSI Divergence script that detects the four divergence strengths (Strong, Medium, Weak, Hidden) for both Bullish and Bearish, matching your cheat sheet. We use pivot detection (ta.pivotlow, ta.pivothigh) on RSI, comparing price vs. RSI swings:
Strong: Price forms Lower Low (Bullish) or Higher High (Bearish), while RSI forms Higher Low (Bullish) or Lower High (Bearish).
Medium: Price forms Equal Low/High, RSI forms Higher/Lower Low/High.
Weak: Price forms Lower/ Higher Low/High, RSI forms Equal Low/High.
Hidden: Price forms Higher/Lower Low/High, RSI forms Lower/Higher Low/High.
Each type has a toggle in the settings. We allow equality checks (<=/>=) so you can capture “equal” swing points too. All calls are single‐line to avoid line‐continuation errors. Copy/paste into TradingView’s Pine Editor, click “Add to Chart,” and it will compile in PineScript v6 with no errors.
Simplified Buy/Sell StrategyThis Pine Script implements a Simplified Buy/Sell Strategy based on the Moving Average Crossover technique. Here's a breakdown of the functionality:
Description:
Purpose:
The script generates Buy and Sell signals on the chart to help traders identify potential entry and exit points based on short-term and long-term price trends.
Indicators Used:
Short Moving Average (Short MA): Calculates the average closing price over a shorter period (default: 5).
Long Moving Average (Long MA): Calculates the average closing price over a longer period (default: 10).
Buy Signal:
A buy signal is generated when the Short MA crosses above the Long MA. This suggests a potential upward trend in price.
Sell Signal:
A sell signal is generated when the Short MA crosses below the Long MA. This indicates a possible downward trend.
Visualization:
Buy signals are shown as green arrows below the price bars with the label "BUY."
Sell signals are displayed as red arrows above the price bars with the label "SELL."
The Short and Long MAs are plotted on the chart for visual confirmation of trends (blue for Short MA, orange for Long MA).
Customization:
Traders can adjust the lengths of the moving averages to fit different timeframes or assets using the input fields.
Hourly Market Movement Pattern Indicator# Hourly Market Movement Pattern Indicator
This versatile technical analysis tool identifies the most active hours for trading by analyzing historical price movements. While it can be viewed on any timeframe chart, the indicator specifically tracks and displays which hours of the day historically show the strongest upward or downward price movements, helping traders optimize their trading schedule around these recurring hourly patterns.
## Core Features
- Tracks the best performing hours for both upward and downward movements
- Viewable on any timeframe chart while maintaining hourly analysis
- Clear visual display through a color-coded table overlay
- Real-time updates with new market data
- Works with all trading instruments (stocks, crypto, forex, futures, etc.)
## Timeframe Applications
### Chart Viewing Options
- Can be viewed on any timeframe chart (1min to Monthly)
- Maintains hourly pattern analysis regardless of chart timeframe
- Helps correlate hourly patterns with your preferred trading timeframe
- Allows detailed visualization of hourly patterns within your analysis period
### Intraday Trading
- Identify the most profitable hours for trading
- Plan trading sessions around historically strong hours
- Optimize entry and exit timing based on hourly patterns
- Structure day trading schedules around peak movement hours
### Swing Trading
- Use hourly statistics to optimize entry/exit timing
- Plan trade executions during historically strong hours
- Time position entries based on hourly success rates
- Enhance swing trading decisions with hourly pattern data
## Practical Applications
### Pattern Recognition
- Track recurring hourly market movements
- Identify institutional trading hour patterns
- Detect regular market cycle hours
- Recognize changes in hourly market behavior
### Risk Management
- Adjust position sizing based on historical hourly patterns
- Plan entries during statistically favorable hours
- Time stop loss adjustments around known volatile hours
- Scale positions according to hourly success rates
### Trade Planning
- Schedule trading sessions during optimal hours
- Plan trade executions around strong movement periods
- Structure trading day around peak hours
- Time position adjustments to favorable hours
## Setup Options
- Timeframe: View on any chart timeframe while tracking hourly patterns
- Visual Display: Non-intrusive table overlay
- Color Coding: Green for upward movements, Red for downward movements
- Hour Display: 24-hour format for global market compatibility
## Trading Strategy Integration
The indicator enhances trading approaches through:
- Optimal hour identification for trade execution
- Historical hourly pattern analysis
- Day trading session optimization
- Position timing based on hourly statistics
## Notes
This indicator proves particularly valuable for:
- Traders seeking to optimize their daily trading schedule
- Day traders focusing on peak market hours
- Swing traders optimizing entry/exit timing
- Traders adapting strategies to specific market hours
- International traders tracking hour-specific patterns across sessions
The tool's hourly pattern analysis provides crucial timing information regardless of your preferred chart timeframe or trading style, helping optimize trade execution around the most statistically favorable hours of the day.
Intraday Leading Indicator Strategy DHRUPAL JOSHIUseful for intraday and swing trading
Use Strategy before making proper analysis