RecoveryPLAN - XAUUSD 1DCopyright RecoveryPLAN
This indicator utilizes the probability opportunities of the XAUUSD candlestick habits which are specifically designed for the 1D timeframe and have minimal risk because they use a relatively small stop loss.
Candlestick Analysis
Engulfing Pattern with Fibonacci Retracement//@version=5
indicator("Engulfing Pattern with Fibonacci Retracement by M.shiham", overlay=true)
// --- Fibonacci Retracement Levels ---
fib_levels = array.new_float(7)
array.push(fib_levels, 0.1)
array.push(fib_levels, 1.618)
array.push(fib_levels, 2.618)
array.push(fib_levels, 2.88)
array.push(fib_levels, 4.236)
array.push(fib_levels, 1.88)
array.push(fib_levels, 4.88)
// --- Fungsi untuk mengidentifikasi Bullish dan Bearish Engulfing ---
is_bullish_engulfing = close > open and close < open and close > open and open < close
is_bearish_engulfing = close < open and close > open and close < open and open > close
// --- Menampilkan Pola Engulfing ---
plotshape(series=is_bullish_engulfing, title="Bullish Engulfing", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=is_bearish_engulfing, title="Bearish Engulfing", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// --- Menarik Fibonacci Retracement ---
var float high_price = na
var float low_price = na
// Tentukan titik tertinggi dan terendah untuk Fibonacci Retracement
if (not na(high_price) and not na(low_price))
// Gunakan titik tertinggi dan terendah untuk menarik Fibonacci
fib_high = high_price
fib_low = low_price
// Gambar level Fibonacci
for i = 0 to 6
fib_level = fib_low + (fib_high - fib_low) * array.get(fib_levels, i)
line.new(bar_index , fib_level, bar_index, fib_level, color=color.blue, width=1, style=line.style_dashed)
else
// Tentukan titik tertinggi dan terendah untuk rentang waktu tertentu
if (not na(high_price) and na(low_price))
high_price := ta.highest(high, 100)
if (not na(low_price) and na(high_price))
low_price := ta.lowest(low, 100)
// --- Menampilkan Informasi Fibonacci Retracement ---
plot(high_price, color=color.green, linewidth=2, title="High Price")
plot(low_price, color=color.red, linewidth=2, title="Low Price")
HSI Futures Big CandleThis Pine Script indicator is designed to help traders identify and highlight significant candlestick patterns at specific times during the Hong Kong Time (HKT) market sessions. It focuses on detecting large bullish or bearish candles based on user-defined criteria, such as price gaps and volume thresholds, and provides clear visual markers and detailed labels to make key market movements easy to spot.
這個 Pine Script 指標專為交易者設計,旨在幫助識別香港時間(HKT)市場時段內特定時間點的重要燭台模式。它能檢測大陽燭或大陰燭,並根據用戶設定的條件(如價格差距和成交量)進行篩選,同時提供視覺標記和詳細標籤,讓交易者輕鬆掌握市場的關鍵動向。
Time-Based Filtering
the options in the "Select Time to Filter" dropdown menu:
"0915": Only show large bullish and bearish candles at HKT 09:15.
"0930": Only show large bullish and bearish candles at HKT 09:30.
"0915 & 0930": Show large bullish and bearish candles at both HKT 09:15 and 09:30.
"Day Session": Show large bullish and bearish candles during the Day Session (HKT 09:15 to 16:29).
"Night Session": Show large bullish and bearish candles during the Night Session (HKT 17:30 to 02:59).
"All Day": Show large bullish and bearish candles at all times.
時間篩選
"Select Time to Filter" 下拉選單,提供以下選項:
"0915":僅顯示 HKT 09:15 的大陽燭和大陰燭。
"0930":僅顯示 HKT 09:30 的大陽燭和大陰燭。
"0915 & 0930":顯示 HKT 09:15 和 09:30 的大陽燭和大陰燭。
"Day Session":顯示 HKT 09:15 至 16:29 的大陽燭和大陰燭。
"Night Session":顯示 HKT 17:30 至 02:59 的大陽燭和大陰燭。
"All Day":顯示所有時間的大陽燭和大陰燭。
Visual Tools:
Plots a green upward triangle for large bullish candles and a red downward triangle for large bearish candles.
Adds a detailed label to each qualifying candle, showing:
Candle type (Bullish or Bearish)
Time in HKT (e.g., "09:15")
Open price
Price difference (Close - Open)
Close price
Midpoint price
Volume
視覺化工具
大陽燭:顯示綠色上三角形。
大陰燭:顯示紅色下三角形。
在符合條件的燭台上附加標籤,顯示以下資訊:
燭台類型(Bullish 或 Bearish)
HKT 時間(如「09:15」)
開盤價
價格差異(收盤價 - 開盤價)
收盤價
中間價
成交量
US Day Session Previous OHLCThis indicator is designed for US Market,
which shows the previous day session OHLC.
** Work ONLY in 1/3/5/15/30 minutes timeframe
** Default: Daylight Saving Time (DST)
** Untick the DST checkbox for Winter Time
NY Midnight Strategy with Advanced OptionsThe purpose of this script was originally to test one of ICT 's statements and check where it works best. In this case it was to set positions towards the direction of the New York midnight opening price inside ICT Killzones .
The default settings of this script work best with S&P E-mini futures (ES!), but can work just as well with other instruments. Often the parameters need to be adjusted.
To see results, use the 1h chart in the Tradingview strategy tester.
Multi-Timeframe Short StrategyShort nifty with this code. Has moving averages as indicator with multi time frame MA being used.
Inside Candle (Full color)📌 Indicator: Inside Candle (Full color)
This indicator visually highlights Inside Bars — candles that form entirely within the range of the previous candle — using fully customizable styling.
🛠️ You can completely control the appearance of:
• Candle Body
• Wick
• Border
To make things easier, we’ve provided a set of elegant preset themes:
• Gold – Classic shiny gold with goldenrod accents
• Rose – Warm rose tones for a soft aesthetic
• Silver – Clean, white-gold inspired look
• Vintage – Muted golden hues with character
• Bronze – Rich, grounded brown-metallic tones
Only historical (closed) candles are considered to avoid repainting or visual confusion.
⸻
💡 Use Cases:
• Spot price compression zones
• Identify potential breakout or reversal areas
• Add a stylish and functional edge to your chart
⸻
⚠️ Troubleshooting:
If the gold candles disappear when hovering or clicking on the chart:
👉 Right-click the script in the chart’s Indicators list > Choose “Visual Order” > “Bring to Front”
This ensures your custom candles are drawn on top of TradingView’s built-in ones.
Session Start & Day BackgroundThis indicator visually enhances your TradingView charts by highlighting the start of each new trading day and coloring the background based on the day of the week.
The first candle of each new trading day is marked in gray for better session separation.
The background color changes based on the current day of the week, making it easier to recognize market patterns and trends at a glance.
Works across all markets including Forex, Stocks, and Crypto.
Designed to improve chart readability and market structure visualization.
Ideal for traders who want a clearer overview of daily sessions and better differentiation between trading days! 🚀
RSI SignalsHanya Indicator untuk kegunaan pengguna BO System seperti saya yang scalping di US Session.
Candle Body Close TrendObjective trend based on candles continuing to close above/below the body of the prior candle for a certain trend.
Ichimoku BoxIntroducing Ichimoku Box Indicator:
Key Features:
Customizable Box Periods: Adjustable box periods with default settings of 9, 26, and 52.
Shifted Span A and Span B Points: Easily adjustable shifts and colors.
Additional Box Option: Capability to add an extra box for more detailed analysis.
High and Low Markers: Identifies the highest and lowest candle within each box with distinct markers.
Candle Countdown Timer: Displays the remaining candles before a box loses its high or low.
Drag-and-Drop Functionality: Move boxes to any position on the chart with a vertical line.
Automatic Box Drawing: When the indicator is first applied, a vertical line appears on the mouse cursor, and clicking on any point automatically draws the boxes.
How It Works:
The indicator allows users to visualize Ichimoku periods as boxes, highlighting key price levels and shifts in market structure. It simplifies the analysis process by providing visual cues and customizable settings for enhanced flexibility.
Clean OHLC Lines | BaksPlots clean, non-repainting OHLC lines from higher timeframes onto your chart. Ideal for tracking key price levels (open, high, low, close) with precision and minimal clutter.
Core Functionality
Clean OHLC Lines = Historical Levels + Non-Repainting Logic
• Uses lookahead=on to anchor historical lines, ensuring no repainting.
• Displays OHLC lines for customizable timeframes (15min to Monthly).
• Optional candlestick boxes for visual context.
Key Features
• Multi-Timeframe OHLC:
Plot lines from 15min, 30min, 1H, 4H, Daily, Weekly, or Monthly timeframes.
• Non-Repainting Logic:
Historical lines remain static and never recalculate.
• Customizable Styles:
Adjust colors, line widths (1px-4px), and transparency for high/low/open/close lines.
• Candle Display:
Toggle candlestick boxes with bull/bear colors and adjustable borders.
• Past Lines Limit:
Control how many historical lines are displayed (1-500 bars).
User Inputs
• Timeframe:
Select the OHLC timeframe (e.g., "D" for daily).
• # Past Lines:
Limit historical lines to avoid overcrowding (default: 10).
• H/L Mode:
Draw high/low lines from the current or previous period.
• O/C Mode:
Anchor open/close lines to today’s open or yesterday’s close.
• Line Styles:
Customize colors, transparency, and styles (solid/dotted/dashed).
• Candle Display:
Toggle boxes/wicks and adjust bull/bear colors.
Important Notes
⚠️ Alignment:
• Monthly/weekly timeframes use fixed approximations (30d/7d).
• For accuracy, ensure your chart’s timeframe ≤ the selected OHLC timeframe (e.g., use 1H chart for daily lines).
⚠️ Performance:
• Reduce # Past Lines on low-end devices for smoother performance.
Risk Disclaimer
Trading involves risk. OHLC lines reflect historical price levels and do not predict future behavior. Use with other tools and risk management.
Open-Source Notice
This script is open-source under the Mozilla Public License 2.0. Modify or improve it freely, but republishing must follow TradingView’s House Rules.
📈 Happy trading!
Diamond PatternDiamond Pattern Indicator
This indicator is designed to detect the Diamond Pattern, a technical formation that often signals potential trend reversals. The diamond pattern can lead to strong price movements, making it a valuable tool for traders.
Features:
✅ Automatic Detection – Identifies diamond patterns on the chart.
✅ Trend Reversal Signals – Highlights potential price direction changes.
✅ Multi-Timeframe Compatibility – Works across all timeframes.
✅ User-Friendly – Simple to use with no complex settings required.
How to Use:
1. Add the indicator to your chart.
2. Monitor for the formation of a Diamond Pattern.
3. Use the breakout direction to guide your trading decisions.
Doji DetectorThis script is designed to detect Doji candlesticks, which are characterized by a small body compared to the overall candle range. The script identifies a Doji when:
✔ The body size is smaller than 10% of the total candle range, OR
✔ The body size is less than 3 pips.
How It Works:
The script calculates the body size of each candle (absolute difference between the open and close price).
It then compares the body size with the total candle range (high - low).
If the body size is smaller than 10% of the candle range or less than 3 pips, the script marks it as a Doji.
How to Use It:
Apply the script to your TradingView chart.
It will highlight Doji candles automatically.
Suitable for traders using price action analysis to identify potential market reversals or indecision zones.
🚀 Best suited for: Forex, Stocks, and Crypto markets.
🔔 Optional: You can modify the conditions to fit your trading strategy.
Sweep Engulf CHoCH📖 Indicator Overview
The Sweep Engulf CHoCH indicator is designed to detect the Sweep + Engulf + CHoCH (Change of Character) pattern on price charts. This indicator helps traders identify bullish and bearish entry opportunities based on the last three candles forming this pattern.
📊 How the Indicator Works
The indicator analyzes specific conditions in the last three candles:
🔹 Bullish Entry (Buy Signal)
✔️ Candle 1 must be bearish (close < open )
✔️ Candle 2 must sweep the low of candle 1 (low < low )
✔️ Candle 2 must also engulf candle 1 (close > close )
✔️ Candle 3 must break structure (CHoCH) by closing above the open of candle 1 (close > open )
🔻 Bearish Entry (Sell Signal)
✔️ Candle 1 must be bullish (close > open )
✔️ Candle 2 must sweep the high of candle 1 (high > high )
✔️ Candle 2 must also engulf candle 1 (close < open )
✔️ Candle 3 must break structure (CHoCH) by closing below the open of candle 1 (close < open )
Sweep Engulf 2 Candle🔍 Overview:
This script identifies Bullish Engulfing and Bearish Engulfing candlestick patterns on the chart. These formations are widely used in technical analysis to spot potential reversals in price action. The indicator helps traders quickly identify these patterns by marking them directly on the chart with small arrows.
📌 Features:
✅ Bullish Engulfing & Bearish Engulfing Detection
✅ Customizable Display Options (Enable/Disable Bullish or Bearish signals)
✅ Real-Time Alerts (Receive notifications when a pattern is formed)
✅ Optimized Marker Size (Smaller icons for better chart visibility)
📊 How It Works:
1. Bullish Engulfing Condition:
The second candle's low is lower than the first candle's low.
The second candle's close is higher than the first candle's open (if the first candle is bearish) OR higher than the first candle's close (if the first candle is bullish).
2. Bearish Engulfing Condition:
The second candle's high is higher than the first candle's high.
The second candle's close is lower than the first candle's close (if the first candle is bearish) OR lower than the first candle's open (if the first candle is bullish).
⚙️ How to Use:
Add the script to your TradingView chart.
Adjust settings to enable/disable Bullish or Bearish Engulfing patterns.
Enable alerts to receive real-time notifications when a pattern is detected.
Use this indicator to support your technical analysis and trade decisions.
📌 Notes:
This indicator is best used in combination with other technical analysis tools like support & resistance levels, trendlines, or volume analysis.
It works on all timeframes and asset
Engulfing Candles (ATR-Based)This indicator detects Engulfing Patterns with an ATR-based filtering mechanism and trend confirmation. Unlike a basic engulfing pattern indicator that only checks if a current candle engulfs the previous one, this script incorporates trend detection using either the 50-period SMA alone or a combination of 50 and 200-period SMAs to ensure that signals align with the broader trend. The indicator identifies Bullish Engulfing patterns when a strong bullish candle engulfs a smaller bearish candle in a downtrend and Bearish Engulfing patterns when a strong bearish candle engulfs a smaller bullish candle in an uptrend. It also generates alerts and visually marks these patterns with labels ("BU" for bullish and "BE" for bearish) while highlighting the background accordingly.
What sets this indicator apart from a normal engulfing indicator is its ATR-based filtering system, which ensures that only significant engulfing candles are considered. Instead of accepting any engulfing pattern, the script measures candle body size relative to 1.5x ATR (configurable) to filter out weak signals. It also differentiates between long-bodied and small-bodied candles to confirm that the engulfing pattern represents real momentum shifts. This approach reduces false signals caused by small, insignificant candles and ensures that traders focus on high-probability reversal patterns. By integrating trend-based filtering and ATR-based confirmation, this indicator provides more reliable and context-aware engulfing signals than a standard engulfing pattern detector.
[S1B] Engulfing Orderblock
The Engulfing Orderblock indicator is a custom script designed to visually highlight and track bullish and bearish engulfing patterns on a price chart. These patterns are widely used in technical analysis to identify potential reversal points. The indicator dynamically draws colored boxes around the previous candle involved in the engulfing event, making it easier for traders to spot these setups in the price action.
Key Features:
Bullish Engulfing Pattern:
When a bearish candle (one where the open is higher than the close) is followed by a candle whose close is above the previous candle’s open, the indicator detects a bullish engulfing pattern. A green box is drawn around the previous candle.
• Box Style Options: Users can choose whether the box represents the candle’s body (from open to close) or its wick (from open to low).
Bearish Engulfing Pattern:
When a bullish candle (one where the open is lower than the close) is followed by a candle whose close is below the previous candle’s open, a bearish engulfing pattern is identified. A red box is drawn around the previous candle.
• Box Style Options: The box can be drawn using the candle’s body (from close to open) or its wick (from high to open), according to the user’s preference.
Dynamic Box Management:
Once a box is drawn, the indicator continuously monitors the price. If the price moves beyond the box’s range, the box is either deleted or its color changes to gray, indicating that the pattern’s relevance may be diminishing.
Max Pattern Tracking:
To prevent clutter, the indicator limits the number of displayed engulfing boxes to 500 by default. Older boxes are removed as new patterns are detected.
Customization:
Users can adjust the number of previous bars scanned for engulfing patterns as well as the maximum number of patterns displayed. An option is also provided to select whether the box should reflect the candle’s body or include the wick.
How It Works:
Pattern Detection:
The script compares the current price with the previous candle’s data to detect either a bullish or bearish engulfing pattern.
Box Creation:
When a pattern is detected, a colored box is drawn around the previous candle’s price range (using the user-selected style) to visually highlight the orderblock.
Pattern Expiry and Cleanup:
The indicator monitors each drawn box, deleting or modifying it (changing the color to gray) if the price moves significantly beyond the box’s range.
Remark:
The original concept for this indicator is from daisukeburn .
Triple Doji SequenceThe Triple Doji Sequence indicator helps traders identify consecutive Doji candlestick patterns, allowing them to choose between spotting single, double, or triple Dojis. A Doji is detected when the candle's body is small relative to its wicks, with either the upper or lower wick being significantly larger. Users can customize their own Doji criteria by adjusting the body size and wick dominance settings. The indicator ensures that consecutive Dojis align in the same direction before confirming a valid pattern, making it easier to identify market indecision or potential trend reversals.
When the chosen Doji sequence is detected, the indicator plots a star (*) above bearish Dojis (upper wick dominant) and below bullish Dojis (lower wick dominant). It also sends alerts when a valid sequence is confirmed at the close of the bar. This tool helps traders refine their strategy by spotting repeated Doji formations, which may indicate key turning points or continuation patterns in price action.
How to Use the Triple Doji Sequence Indicator?
Apply the Indicator:
Add the Triple Doji Sequence indicator to your TradingView chart.
It will automatically scan for Doji patterns based on your settings.
Customize Your Doji Criteria:
Adjust the body size and wick dominance settings to define what qualifies as a Doji.
Choose whether to detect single, double, or triple Doji sequences.
Interpret the Signals:
A star (*) above a candle signals a bearish Doji (upper wick dominant).
A star (*) below a candle signals a bullish Doji (lower wick dominant).
Set Up Alerts:
Enable alerts to receive notifications when a Doji sequence is confirmed at bar close.
Choose alert frequency based on your trading strategy (e.g., once per bar, once per bar close).
Use in Trading Strategy:
Doji sequences can indicate trend reversals or market indecision.
Combine this indicator with support/resistance levels, volume, or other indicators to confirm signals.
PS: Good luck in finding a Triple Doji :)
Candle Size Alertت وضیحات برای انتشار ابزار در TradingView
🔹 نام ابزار: Candle Size Alert
🔹 توضیحات:
این اندیکاتور برای شناسایی کندلهای بزرگ طراحی شده است. این ابزار میانگین اندازهی ۱۰ کندل گذشته را محاسبه کرده و اگر کندل فعلی ۳ برابر میانگین کندلهای قبلی باشد، یک لیبل هشدار در بالای کندل نمایش میدهد. همچنین میتوان هشدارهای معاملاتی را از طریق alertcondition() فعال کرد.
🔹 ویژگیها:
✅ امکان تغییر تعداد کندلهای محاسبه شده (پیشفرض: ۱۰)
✅ امکان تنظیم ضریب حساسیت (پیشفرض: ۳ برابر)
✅ نمایش لیبل هشدار در بالای کندلهای بزرگ
✅ پشتیبانی از هشدارهای خودکار (AlertCondition)
⚠️ نکته: این اندیکاتور فقط برای تحلیل استفاده میشود و سیگنال خرید یا فروش ارائه نمیدهد.
🔹 Indicator Name: Candle Size Alert
🔹 Description:
This indicator detects large candles by calculating the average size of the last 10 candles. If the current candle is 3 times larger than the average of the previous candles, a warning label appears above the candle. Additionally, automated alerts can be triggered using alertcondition().
🔹 Features:
✅ Adjustable candle count for calculations (default: 10)
✅ Customizable sensitivity multiplier (default: 3x)
✅ Visual alert label above large candles
✅ Supports automated alerts (AlertCondition)
⚠️ Note: This indicator is for analysis purposes only and does not provide buy/sell signals.
Previous Day LevelsThis indicator plots the previous day's high, low, and 50% levels, providing a framework for analyzing price behavior relative to these key levels.
Full Description:
The Previous Day Levels indicator is a tool designed to help traders analyze price action based on key levels from the previous trading session. By plotting the high, low, and mid-point (50%) of the prior day’s range, traders can assess potential market bias and directional tendencies for the current trading day.
Key Features:
Plots the previous day’s high (100%), low (0%), and intermediate levels (25%, 50%, 75%).
Allows users to customize line visibility, color, style, and width.
Helps traders identify potential support and resistance zones.
Provides a bias framework for determining whether price is more likely to target the previous high or low based on behavior around the 50% level.
Use Case:
This indicator is particularly useful for intraday and short-term traders who incorporate price action into their strategy.
If price trades above the 50% level and holds, it suggests a bullish bias, indicating that price may aim for the previous day's high.
If price trades below the 50% level and holds, it suggests a bearish bias, indicating that price may aim for the previous day's low.
The high and low levels can act as key support and resistance zones, where price may react or reverse.
How to Use:
Apply the indicator to your chart.
Observe how price interacts with the 50% level.
Use price behavior around these levels to establish a directional bias.
Adjust the line styles and colors to match your personal preference.
Disclaimer:
This indicator is a tool for market analysis and does not provide financial advice. Always perform your own analysis and risk management when trading.
MainFX session indicatorScript Title: MainFX Session Indicator with Customizable Lines
Overview:
This script is designed to help traders visually identify key market sessions on their TradingView charts. It marks both the opening and closing of major sessions (Frankfurt, London, New York, Sydney, and Tokyo) by drawing lines and labels on the chart. The indicator is highly customizable, allowing you to define specific session times, choose your preferred time zone, and adjust the visual appearance of all lines.
Key Features:
Custom Session Times:
Each session’s start and end times are defined by user inputs in a simple HHMM-HHMM format. This means you can adjust the sessions to match the exact market hours you follow, making the indicator flexible for different trading strategies and markets.
Time Zone Flexibility:
The "Chart/Local Time Zone" input lets you override the default time zone of your chart. By setting a specific time zone (e.g., "Africa/Lagos" or "Africa/Accra"), the script calculates session start and end events relative to that zone. This ensures that, regardless of where you are trading from, the session markers accurately reflect the intended market hours and adjust automatically for Daylight Saving Time if applicable.
Open Range Levels (ORH/ORL):
When a session opens or closes, the script draws horizontal lines at the high and low of the candle immediately before the event. These levels act as the Open Range High (ORH) and Open Range Low (ORL) markers. They serve as key reference points for traders to gauge price levels established just before a session change.
Customizable Visuals:
Every visual element is customizable. You can adjust the color, width, and style (defaulting to a dotted line) of both the ORH/ORL lines and the combined session lines that label open and close events. This allows you to tailor the indicator to match your charting style and ensure that the lines stand out clearly.
Session Event Detection:
The script utilizes helper functions to check each bar on the chart. It compares the current bar’s session status with that of the previous bar to determine whether a session has just started or ended. When such a transition is detected, it triggers the drawing of the appropriate lines and labels.
Optimized for Intraday Trading:
Since the script’s functionality is based on minute-level bar changes, it is best used on 1-minute or lower timeframes. This ensures precision in marking the exact moments when sessions transition, which is critical for intraday trading strategies.
How It Works:
Session Timing:
The script calculates the session periods using the time() function with the user-defined session strings and time zone. This makes it independent of the chart’s inherent time settings.
Event Triggering:
When the current bar transitions into or out of a session (i.e., the session status changes between bars), the script detects this change. It then draws horizontal lines at the previous candle’s high and low (marking ORH and ORL) and adds session labels for clarity.
Visual Customization:
Users can easily change the appearance of the drawn lines and session labels via the script’s input options, ensuring that the indicators are both aesthetically pleasing and functionally clear.
Usage:
For Traders:
Use this indicator to keep track of critical market sessions and to spot participants in the session.
Customization:
Adjust session times and the time zone to suit your local market or the specific market you are analyzing.
Visual Clarity:
Customize line styles to ensure that your chart remains clear and that the session markers are easy to interpret even during overlapping sessions.