Buy and Sell Signal at 50% Retracement, Based on MANDO MODELthe sell is taking out a previous high. leave some runners and practice safe trading.
Explanation of Behavior:
When the price retraces 50% of the defined range (from the low to high), a Buy signal is triggered.
After the Buy signal, if the price moves above the previous high (after retracement), a Sell signal is triggered.
Once a Sell signal is triggered, the range is reset, and a new range needs to form before another signal can be triggered.
Test this:
Apply the script to your chart.
Check for Buy signals when the price crosses the 50% retracement level.
Sell signals will trigger once the price breaks above the previous high after the retracement phase.
Ensure that the signals are plotted as arrows on the chart and that the background color changes to indicate Buy or Sell.
Alerts Setup:
To set up alerts:
Right-click on the chart and select Add Alert.
For Buy Signal: Choose the condition Buy and Sell Signal at 50% Retracement with Top Break > Buy Signal.
For Sell Signal: Choose the condition Buy and Sell Signal at 50% Retracement with Top Break > Sell Signal.
Set your preferred alert type (popup, email, etc.).
Click Create to set the alert.
รูปแบบชาร์ต
Eze Profit - VWAP + MACD Combined SignalThe Eze Profit - VWAP + MACD Combined Signal is an advanced trading tool designed to help traders align price trends with momentum confirmation for better decision-making. By combining Volume-Weighted Average Price (VWAP) and Moving Average Convergence Divergence (MACD), this indicator provides clear entry and exit signals, allowing traders to follow trends and take advantage of momentum shifts.
How It Works:
VWAP:
VWAP represents the average price of an asset, weighted by volume, over a specific period.
It acts as a dynamic support/resistance level and trend filter. Price above VWAP indicates bullish conditions, while price below VWAP suggests bearish conditions.
MACD:
MACD measures momentum through the difference between fast and slow exponential moving averages (EMAs).
Signals are generated when the MACD line crosses its signal line:
Bullish Crossover: Indicates increasing upward momentum.
Bearish Crossunder: Indicates increasing downward momentum.
Combined Logic:
Long Signal: Triggered when price is above VWAP, and MACD exhibits a bullish crossover.
Short Signal: Triggered when price is below VWAP, and MACD exhibits a bearish crossunder.
The script tracks the trader's "in-position" state to prevent redundant signals and ensure clarity.
How to Use:
Use this script to identify potential long and short trading opportunities:
Buy Signal: Enter a long position when the price moves above VWAP and MACD confirms bullish momentum.
Sell Signal: Exit or short when the price drops below VWAP and MACD confirms bearish momentum.
Combine with additional tools like support/resistance, volume analysis, or candlestick patterns for confirmation.
Features:
VWAP Trend Filter: Dynamically adjusts to the trading session to identify overall trend direction.
MACD Momentum Confirmation: Detects key momentum shifts with configurable settings for fast, slow, and signal lengths.
Position State Tracking: Avoids signal redundancy by monitoring open positions.
Buy/Sell Visualizations: Plots Buy/Sell signals directly on the chart for ease of use.
Alerts: Notifies traders in real-time when a long or short signal is triggered.
Customizable Settings:
MACD Fast Length, Slow Length, and Signal Smoothing parameters.
VWAP timeframe resolution to adapt to different trading styles (e.g., intraday or daily).
Credits:
This script is based on standard VWAP and MACD calculations provided by TradingView’s library and has been enhanced with unique logic for combined signal generation.
Notes:
This indicator is intended for educational purposes and should not be considered financial advice. Use it as part of a broader trading strategy alongside other tools for optimal results.
Top-Down Analysis previous day Top-Down Analysis 2nd Candle with Enhanced Features
This powerful TradingView script is designed for traders looking for a comprehensive and customizable top-down analysis tool. The indicator plots horizontal lines based on significant price levels from multiple timeframes (Daily, 4-Hour, 1-Hour, and Weekly), offering clear reference points for technical analysis. Each timeframe is associated with high and low levels from the previous candle, and these levels are represented with customizable line styles, colors, and widths.
Key Features:
Multi-Timeframe Support: Displays high and low levels from the previous candle for the Daily, 4-Hour, 1-Hour, and Weekly timeframes. Customize which timeframes to show.
Customizable Line Appearance: Choose the line color, style (solid, dotted, dashed), and width for each timeframe. This allows for a personalized chart appearance to suit your trading strategy.
Text Labels: Add custom text labels to each line, and move them dynamically to the right, keeping them visible as the candles progress. The labels can be customized with user-defined text for each timeframe’s high and low levels.
Toggle Line Visibility: Easily control the visibility of the horizontal lines and their labels for each timeframe, allowing you to focus on the levels that matter most.
Price Alerts: Set price alerts when the price crosses any of the plotted levels, including the Daily, 4-Hour, 1-Hour, and Weekly levels. Receive notifications when significant price interactions occur.
User Control: With inputs for changing timeframes, colors, labels, and more, this indicator is fully customizable to fit your trading style.
This indicator is ideal for day traders, swing traders, and anyone utilizing multi-timeframe analysis for more informed decision-making.
Advanced Pattern Detector**Script Overview**
**Indicator Name:** Advanced Pattern Detector
**Pine Script Version:** v5
**Indicator Type:** Overlaid on the chart (overlay=true)
**Main Features:**
- Detection and visualization of various technical patterns.
- Generation of BUY and SELL signals based on detected patterns.
- Display of Fibonacci levels to identify potential support and resistance levels.
- Ability to enable or disable each pattern through the indicator settings.
---
**Indicator Settings**
**Switches to Enable/Disable Patterns**
At the top of the indicator, there are parameters that allow the user to select which patterns will be displayed on the chart:
- Three Drives
- Rounding Top
- Rounding Bottom
- ZigZag Pattern
- Inverse Head and Shoulders
- Fibonacci Retracement
**Parameters for ZigZag**
Settings are also available for the ZigZag pattern, such as the depth of peak and trough detection, allowing the user to adjust the indicator's sensitivity to price changes.
---
**Pattern Detection**
Each pattern is implemented with its own logic, which checks specific conditions on the current bar (candle). Below are the main patterns:
1. **Three Drives**
- **Description:** This pattern consists of three consecutive price movements in one direction (up or down). It can signal the continuation of the current trend or its reversal.
- **How It Works:**
- **Upward Drive:** The indicator checks that the closing price of each subsequent candle is higher than the previous one for three bars.
- **Downward Drive:** The indicator checks that the closing price of each subsequent candle is lower than the previous one for three bars.
2. **Rounding Top**
- **Description:** A pattern representing a smooth decrease in maximum prices over several bars, which may indicate a potential downward trend reversal.
- **How It Works:**
- The indicator checks that the maximum prices of the last five bars are gradually decreasing, and the current bar shows a decrease in the maximum price.
3. **Rounding Bottom**
- **Description:** A pattern characterized by a smooth increase in minimum prices over several bars, signaling a possible upward trend reversal.
- **How It Works:**
- The indicator checks that the minimum prices of the last five bars are gradually increasing, and the current bar shows an increase in the minimum price.
4. **ZigZag Pattern**
- **Description:** Used to identify corrective movements on the chart. The pattern shows peak and trough points connected by lines, helping to visualize the main price movement.
- **How It Works:**
- The indicator uses a function to determine local maxima and minima based on the specified depth.
- Detected peaks and troughs are connected by lines to create a visual zigzag structure.
5. **Inverse Head and Shoulders**
- **Description:** An inverted head and shoulders formation signals a possible reversal of a downward trend to an upward one.
- **How It Works:**
- The indicator looks for three local minima: the left shoulder, the head (the lowest minimum), and the right shoulder.
- It checks that the left and right shoulders are approximately at the same level and below the head.
6. **Fibonacci Retracement Levels**
- **Description:** Automatically builds key Fibonacci levels based on the maximum and minimum prices over the last 50 bars. These levels are often used as potential support and resistance levels.
- **How It Works:**
- Daily, the minimum and maximum prices over the last 50 bars are calculated.
- Based on these values, Fibonacci levels are drawn: 100%, 23.6%, 38.2%, 50%, 61.8%, and 0%.
- Old levels are removed when a new day begins to keep the chart clean and up-to-date.
---
**Generation of Buy and Sell Signals**
The indicator combines the results of detected patterns to generate trading signals:
- **Buy Signals (BUY):**
- Rounding Bottom
- Three Drives Up
- Inverse Head and Shoulders
- ZigZag Low
- **Sell Signals (SELL):**
- Rounding Top
- Three Drives Down
- Inverse Head and Shoulders
- ZigZag High
**How It Works:**
- If one or more buy conditions are met, a "BUY" label is displayed below the corresponding bar on the chart.
- If one or more sell conditions are met, a "SELL" label is displayed above the corresponding bar on the chart.
---
**Visualization of Patterns on the Chart**
Each detected pattern is visualized using various graphical elements, allowing traders to easily identify them on the chart:
- **Three Drives Up:** Green upward triangle below the bar.
- **Three Drives Down:** Red downward triangle above the bar.
- **Rounding Top:** Orange "RT" label above the bar.
- **Rounding Bottom:** Blue "RB" label below the bar.
- **Inverse Head and Shoulders:** Turquoise "iH&S" label below the bar.
- **ZigZag High/Low:** Purple circles at the peaks and troughs of the zigzag.
---
**Displaying Fibonacci Levels**
Fibonacci levels are displayed as horizontal lines on the chart with corresponding labels. These levels help traders determine potential entry and exit points, as well as support and resistance levels.
---
**Drawing ZigZag Lines**
ZigZag lines connect the detected peaks and troughs, visualizing corrective movements. To avoid cluttering the chart, the number of lines is limited, and old lines are automatically removed as new ones are added.
ICT Candle Block (fadi)ICT Candle Block
When trading using ICT concepts, it is often beneficial to treat consecutive candles of the same color as a single entity. This approach helps traders identify Order Blocks, liquidity voids, and other key trading signals more effectively.
However, in situations where the market becomes choppy or moves slowly, recognizing continuous price movement can be challenging.
The ICT Candle Block indicator addresses these challenges by combining consecutive candles of the same color into a single entity. It redraws the resulting candles, making price visualization much easier and helping traders quickly identify key trading signals.
FVGs and Blocks
In the above snapshot, FVGs/Liquidity Voids, Order Blocks, and Breaker Blocks are easily identified. By analyzing the combined candles, traders can quickly determine the draw on liquidity and potential price targets using ICT concepts.
Unlike traditional higher timeframes that rigidly combine lower timeframe candles based on specific start and stop times, this indicator operates as a "mixed timeframe." It combines all buying and all selling activities into a single candle, regardless of when the transactions started and ended.
Limitations
There are currently TradingView limitations that affect the functionality of this indicator:
TradingView does not have a Candle object; therefore, this indicator relies on using boxes and lines to mimic the candles. This results in wider candles than expected, leading to misalignment with the time axis below (plotcandle is not the answer).
There is a limit on the number of objects that can be drawn on a chart. A maximum of 500 candles has been set.
A rendering issue may cause a sideways box to appear across the chart. This is a display bug in TradingView; scroll to the left until it clears.
FVG - NibzDescription: Fair Value Gap (FVG) Indicator - Nibz
This Pine Script identifies and visualizes Fair Value Gaps (FVGs) on your TradingView chart. FVGs are price inefficiencies left behind when the market moves too quickly, skipping price levels that might not be tested. These gaps often act as magnets, attracting price for potential reversals or continuations.
The script works by detecting upward (bullish) and downward (bearish) price imbalances based on specific candlestick criteria and then marks these zones on your chart using customizable shaded boxes. This tool is essential for traders looking to identify key areas of market inefficiency that could signify support/resistance levels, potential reversal zones, or areas to monitor for market rebalancing.
How It Works
1. Bullish FVG Detection
The script identifies an upward imbalance when:
The low of the candlestick two bars back is less than or equal to the open of the previous bar.
The high of the current candlestick is greater than or equal to the close of the previous bar.
When this condition is met and the size of the imbalance is greater than zero, a green box is drawn from the low of the second candlestick back to the high of the current candlestick.
2. Bearish FVG Detection
The script identifies a downward imbalance when:
The high of the candlestick two bars back is greater than or equal to the open of the previous bar.
The low of the current candlestick is less than or equal to the close of the previous bar.
When this condition is met and the size of the imbalance is greater than zero, a red box is drawn from the low of the current candlestick to the high of the second candlestick back.
Customization Options
This script is highly customizable, allowing you to tailor the appearance of the FVG boxes to suit your trading style and chart aesthetics:
Bullish FVG:
Fill color and transparency.
Border color and transparency.
Bearish FVG:
Fill color and transparency.
Border color and transparency.
The settings are user-friendly, with intuitive sliders for transparency and color pickers for customization.
How to Use the Indicator
Adding the Script:
Add the indicator to your chart, and it will automatically mark bullish (green) and bearish (red) FVGs.
Interpreting FVGs:
Bullish FVGs (green zones): These often act as support or areas of potential price rebalancing on retracement.
Bearish FVGs (red zones): These often act as resistance or areas of interest for short entries.
Trade Ideas:
Use FVG zones to confirm other trade signals or strategies.
Watch for price interaction with these zones to time entries and exits.
Key Features
Automated detection of Fair Value Gaps.
Customizable visual representation to match your chart preferences.
Enhances trading precision by identifying price inefficiencies.
Suitable for scalping, day trading, or swing trading strategies.
This script provides a powerful tool to highlight important price levels and inefficiencies in the market, enabling traders to make informed decisions. Whether you're using it as a standalone indicator or combining it with other tools, the 'FVG - Nibz' indicator is a valuable addition to any trader's toolkit!
DB369 - Directional Bias 369
DB369 - Directional Bias 369 Indicator
The **DB369** indicator helps traders identify key market levels and trends by combining multiple timeframes' price action analysis. It highlights important **pivot points** on the chart and provides visual cues to help you make more informed buy and sell decisions based on the overall market direction.
Key Features
1. Pivot Points Across Multiple Timeframes**:
- The indicator calculates and displays pivot points for the **Monthly**, **Weekly**, **Daily**, **4-Hour**, and **1-Hour** timeframes (or 30-minute equivalent if desired). These pivots represent significant price levels where the market may retest.
2. **Trend Detection**:
- The indicator evaluates the relationship between the current price and the pivot point for each timeframe. Based on this comparison, it classifies the market as **Bullish**, **Bearish**, or **Neutral** on each timeframe.
3. **Pivot Lines**:
- Horizontal lines are drawn to mark the key pivot points for each selected timeframe. These lines extend into the future and adjust dynamically as the market moves in real time.
- **Customizable**: You can choose which timeframes to display pivot points by enabling/disabling them in the settings.
4. **Trend Table**:
- A **table** is displayed at the top-right of the chart to show the trend for the **Daily**, **4-Hour**, and **30-Minute** timeframes. It provides an easy-to-read view of the trend direction across these timeframes.
5. **Buy/Sell Arrows**:
- **Buy Arrow**: A green arrow will appear when the **Daily**, **4-Hour**, and **30-Minute** trends are all **Bullish** (aligned in the same direction).
- **Sell Arrow**: A red arrow will appear when all three timeframes show a **Bearish** trend.
- These arrows appear only once per alignment change and can be enabled or disabled for alerts. This helps avoid clutter on the chart and ensures that you only see a signal when the alignment occurs or changes.
### **How to Use the DB369 Indicator**:
1. **Pivot Points**:
- The pivot points represent significant price levels where the market might retest in the future. For instance:
- **Bullish Market**: If the price is above the pivot point, the market is considered bullish.
- **Bearish Market**: If the price is below the pivot point, the market is considered bearish.
- **Neutral Market**: When the price is near the pivot point, the market is neither strongly bullish nor bearish.
2. **Trend Alignment**:
- When the **Daily**, **4-Hour**, and **30-Minute** timeframes all show the same trend direction (either **Bullish** or **Bearish**), this alignment signifies a stronger trend.
- You will receive a **Buy Arrow** when all three timeframes are aligned bullish, and a **Sell Arrow** when they are aligned bearish.
- These arrows are displayed at the point when the alignment is first detected and can also trigger **alerts**.
3. **Alerts**:
- You can choose to enable alerts for when a **Buy** or **Sell** arrow appears on the chart. This allows you to be notified in real-time when the alignment conditions are met.
4. **Using the Pivot Points for Entry**:
- **Buy Trade**: Look for a buy trade when the price is near the **pivot line** of the higher timeframes, particularly when the trend across all three timeframes is **Bullish**.
- **Sell Trade**: Similarly, look for a sell trade when the price is near a **pivot line** and the trend is **Bearish**.
5. **Customization**:
- You can customize which timeframes' pivots are shown on the chart by toggling the visibility of the **Monthly**, **Weekly**, **Daily**, **4-Hour**, and **1-Hour** pivots in the settings.
- The indicator automatically adjusts the pivot levels in real-time as the market progresses.
**Important Notes**:
- This indicator does not guarantee successful trades; it is intended to assist in identifying potential trade opportunities based on the alignment of higher timeframe trends.
- Always combine the information from the DB369 indicator with other technical analysis tools and risk management strategies to ensure more accurate trade decisions.
Abnormal Candle DetectorAbnormal Candle Detector
The Abnormal Candle Detector identifies sudden and unusual price movements by comparing the current candle's size and volume to recent averages. It highlights candles that deviate significantly from normal market behavior, helping traders spot breakouts, reversals, or high-impact events.
Features:
1. Abnormal Size Detection: Flags candles where the range (high-low) exceeds a user-defined multiplier of the average range.
2. Volume Confirmation: Optionally ensures abnormal movements are backed by higher-than-average volume.
3. Visual Markers:
Green triangles for bullish abnormal candles.
Red triangles for bearish abnormal candles.
Background highlights for better visibility.
4. Alerts: Real-time notifications when abnormal candles are detected.
Why Use It?
Spot early breakouts or trend reversals.
Identify high-impact events driven by news or institutional activity.
Filter noise and focus on significant market movements.
Customizable for any market or timeframe, the Abnormal Candle Detector is perfect for traders who want to stay ahead of major price action.
Pivotal Point Detection
The indicator highlights price gaps (overnight gaps) with significantly increased volume in the daily chart only. These price jumps can occur after earnings reports or other significant news and often point to an important event (e.g., a new product or business model). According to Jesse Livermore, these are called Pivotal Points.
The price jumps displayed by the indicator are not a guarantee that they represent a true Pivotal Point, but they provide a hint of a significant business development - especially when they occur repeatedly alongside revenue growth. This can help identify potentially strong growth stocks and high-performing investments. However, the underlying events and connections must be investigated through additional research.
make posible to find stocks like:
NYSE:PLTR NASDAQ:ROOT NASDAQ:NVDA NYSE:CVNA NYSE:LRN
A "pivotal price line" is drawn at the opening price of the Pivotal Point. This line is considered a support level. If the price falls below this line, the Pivotal Point loses its validity.
LiquidFusion SignalPro [CHE] LiquidFusion SignalPro – Indicator Overview
The LiquidFusion SignalPro is a powerful and sophisticated TradingView indicator designed to identify high-quality trade entries and exits. By combining seven unique sub-indicators, it provides comprehensive market analysis, ensuring traders can make informed decisions. This tool is suitable for all market conditions and supports customization to fit individual trading strategies.
Key Components (Sub-Indicators):
1. RPM (Relative Price Momentum):
- Measures cumulative price momentum over a specified period.
- Provides insights into price strength and directional bias.
- Input Customization:
- Source: Data for momentum calculation.
- Period: Length for momentum measurement.
- Resolution: Timeframe for data fetching.
2. BBO (Bull-Bear Oscillator):
- Calculates the strength of bullish or bearish momentum based on price movement and RSI conditions.
- Uses a super-smoothing technique for reliable signals.
- Customizable parameters include the oscillator's period and repainting options.
3. MACD (Moving Average Convergence Divergence):
- A classic momentum indicator for trend direction and strength.
- Provides buy/sell signals based on the crossover of the MACD line and signal line.
- Input Customization:
- Fast/Slow EMA Periods.
- Signal Line Period.
- Resolution and Source Data.
4. RSI (Relative Strength Index):
- Tracks overbought and oversold conditions.
- A key tool to validate trend continuation or reversals.
- Customizable period, resolution, and source.
5. CCI (Commodity Channel Index):
- Measures the deviation of price from its average.
- Useful for identifying cyclical trends.
- Input Customization includes period, resolution, and source.
6. Stochastic Oscillator:
- Indicates momentum by comparing closing prices to a range of highs and lows.
- Includes smoothing factors for %K and %D lines.
- Customizable parameters:
- %K Length and Smoothing.
- Resolution and Repainting Options.
7. Supertrend:
- A trailing stop-and-reverse system for trend-following strategies.
- Excellent for identifying strong trends and potential reversals.
- Inputs include the multiplier factor and period for ATR-like calculations.
Inputs Overview:
The indicator supports extensive customization for each sub-indicator, grouped under intuitive categories:
- Color Settings: Define bullish and bearish plot colors.
- RPM, BBO, MACD, RSI, CCI, Stochastic, and Supertrend Settings: Tailor each sub-indicator's behavior with adjustable parameters.
- UI Options: Toggle features such as bar coloring, indicator names, and plotted candles.
Trade Signals:
- Long Signal:
- All indicators align in a bullish state:
- RPM > 0, MACD > 0, RSI > 50, Stochastic > 50, CCI > 0, BBO > 0, Supertrend below price.
- Plot: Green triangle below the candle.
- Alert: Notifies the trader of a potential long entry.
- Short Signal:
- All indicators align in a bearish state:
- RPM < 0, MACD < 0, RSI < 50, Stochastic < 50, CCI < 0, BBO < 0, Supertrend above price.
- Plot: Red triangle above the candle.
- Alert: Notifies the trader of a potential short entry.
Features:
- Enhanced Visuals: Plots sub-indicator statuses using labels and color-coded shapes for clarity.
- Alerts: Integrated alert conditions for both long and short trades.
- Bar Coloring: Provides overall trend bias with green (bullish), red (bearish), or gray (neutral) bars.
- Customizable Table: Displays the indicator's status in the chart’s top-right corner.
Trading Benefits:
The LiquidFusion SignalPro excels in generating high-quality entries and exits by:
- Reducing noise through multiple indicator alignment.
- Supporting multiple timeframes and resolutions for flexibility.
- Offering customizable inputs for personalized trading strategies.
Use this tool to enhance your market analysis and improve your trading performance.
Disclaimer:
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
This indicator is inspired by the Super 6x Indicators: RSI, MACD, Stochastic, Loxxer, CCI, and Velocity . A special thanks to Loxx for their relentless effort, creativity, and contributions to the TradingView community, which served as a foundation for this work.
Happy trading and best regards
Chervolino
Supply and Demand [tambangEA]Supply and Demand Indicator Overview
The Supply and Demand indicator on TradingView is a technical tool designed to help traders identify areas of significant buying and selling pressure in the market. By identifying zones where price is likely to react, it helps traders pinpoint key support and resistance levels based on the concepts of supply and demand. This indicator plots zones using four distinct types of market structures:
1. Rally-Base-Rally (RBR) : This structure represents a bullish continuation zone. It occurs when the price rallies (increases), forms a base (consolidates), and then rallies again. The base represents a period where buying interest builds up before the continuation of the upward movement. This zone can act as support, where buyers may step back in if the price revisits the area.
2. Drop-Base-Rally (DBR) : This structure marks a bullish reversal zone. It forms when the price drops, creates a base, and then rallies. The base indicates a potential exhaustion of selling pressure and a build-up of buying interest. When price revisits this zone, it may act as support, signaling a buying opportunity.
3. Rally-Base-Drop (RBD) : This structure signifies a bearish reversal zone. Here, the price rallies, consolidates into a base, and then drops. The base indicates a temporary balance before sellers overpower buyers. If price returns to this zone, it may act as resistance, with selling interest potentially re-emerging.
4. Drop-Base-Drop (DBD) : This structure is a bearish continuation zone. It occurs when the price drops, forms a base, and then continues dropping. This base reflects a pause before further downward movement. The zone may act as resistance, with sellers possibly stepping back in if the price revisits the area.
Features of Supply and Demand Indicator
Automatic Zone Detection : The indicator automatically identifies and plots RBR, DBR, RBD, and DBD zones on the chart, making it easier to see potential supply and demand areas.
Customizable Settings : Users can typically adjust the color and transparency of the zones, time frames for analysis, and zone persistence to suit different trading styles.
Visual Alerts : Many versions include alert functionalities, notifying users when price approaches a plotted supply or demand zone.
How to Use Supply and Demand in Trading
Identify High-Probability Reversal Zones : Look for DBR and RBD zones to identify potential areas where price may reverse direction.
Trade Continuations with RBR and DBD Zones : These zones can indicate strong trends, suggesting that price may continue in the same direction.
Combine with Other Indicators: Use it alongside trend indicators, volume analysis, or price action strategies to confirm potential trade entries and exits.
This indicator is particularly useful for swing and day traders who rely on price reaction zones for entering and exiting trades.
Large Candle Marker (Threshold in Cents)This indicator, Large Candle Marker, identifies and marks candles that exceed a specified size threshold. The size can be based on either the candle's body (difference between open and close) or the total range (difference between high and low). The threshold is entered in cents for easy configuration, and the indicator highlights these significant candles directly on the chart with a orange flag. It's perfect for spotting momentum or volatility in price movements. I use it to not enter trades after a large candle.
// INSTRUCTIONS:
// 1. Input the desired candle size threshold in cents in the settings menu.
// - For example, enter "30" for 30 cents or "50" for 50 cents.
// 2. Choose the size type:
// - Select "True" to use the candle body size (difference between open and close).
// - Select "False" to use the total range size (difference between high and low).
// 3. The script will mark candles exceeding the threshold with a red marker above the candle.
// 4. Apply this indicator to any chart to identify significant candles based on the threshold.
RSI Instant DivergenceThis script detects RSI divergence—a common signal indicating potential trend reversals. It compares price action and RSI behavior to identify two types of divergences:
1- Bearish Divergence (Sell Signal):
Occurs when the price forms a higher high while RSI drops (weaker momentum).
A label appears above the candle, and an alert is triggered: "Divergence: Sell Signal."
2 -Bullish Divergence (Buy Signal):
Occurs when the price makes a lower low while RSI rises (stronger momentum).
A label appears below the candle, and an alert is triggered: "Divergence: Buy Signal."
The labels are color-coded (orange for sell, blue for buy) and include detailed RSI and price info in a tooltip. Alerts help you act immediately when divergence is detected.
This tool is perfect for spotting potential trend reversals and refining your entry/exit strategy. Let me know if you'd like to customize it further! 😊
Tooltip Feature: Each label includes a tooltip with precise RSI and price details (current and previous values) as well as the percentage change in RSI, giving you deeper insight into the divergence. This tool is great for identifying trend reversal points and includes visual labels, tooltips, and alerts to make real-time trading decisions easier. Let me know if you’d like adjustments!
Dynamic Horizontal Lines
Gann levels (squares of 9) have multiple levels. Adding lines at all these levels would add too much noise on the chart.
This indicator adds horizontal lines as per the Gann levels (Squares of 9) closest to the days close.
The current indicator add horizontal lines at the Gann level closest to the days close. It also adds 4 lines above & below the closest Gann level
I have considered Gann levels from 1 to 10000. You can append the Gann levels based on your requirements.
Market Open Range Breakaway v1.2Script Name: Market Open Range Breakaway 1.2
This TradingView script, "Market Open Range Breakaway," highlights the market's opening range for a user-selected day of the week. It calculates the high and low prices during a specified period after the market opens, plots these levels, and tracks the opening price. The script dynamically adjusts for time zones and only displays data during market hours on the chosen day, with optional background shading for the defined range period.
Purpose: Identifies and highlights the market's opening range for a selected day of the week.
Features: Calculates and plots the high, low, and open price during the market's opening range.
Configurable range duration (e.g., 15, 30, or 60 minutes).
Automatically adjusts for different time zones.
Displays levels only during market hours on the target day.
Optional background shading for the opening range.
Inputs: Target day of the week.
Opening range duration.
Use Case: Ideal for traders looking to analyze breakout levels or price movements around the opening range.
Aligned Highs and Lows (0.25% Error, 3+ Required)This indicator shows when three or more bars in a row have the same end as the previous start within a 0.25% range. This helps identify when there is a possible accumulation or an attempt to break a support or resistance level from an order block.
BUY/SELL Timeframe ContinuityTime frame continuity refers to the alignment of price trends across multiple time frames. This means that the price movement is showing a consistent trend (either up or down) on various timeframes, like the 5-minute, 30-minute, hourly, and daily charts.
Why is it important?
Confirms Trend Strength: When multiple timeframes align, it indicates a strong and sustained trend.
Risk Management: Trading in the direction of the aligned trend can reduce risk.
This indicator checks if the current price of a selected timeframe is above or below its opening price. A buy/sell signal appears the second all bullish timeframes align (buy) or all bearish timeframes align. You can choose to paint the candles when the buy/sell conditions happen. You can select up to 10 different timeframes.
NOTE: With this indicator I prefer timeframes 15m, 30m, 1H, 4H, D, 5D, W - Together these timeframes are great for short-term trends on any stock.
Roman's Ranges(GOLD FUTURES)This indicator provides the user with Gold Future's previous day’s range and how long it took for the price to reach its first extreme for the day. This information is used to predict the most probable daily direction trend and estimate how long you should expect to hold your winning trade. The distance and time are based on the market open candle (6:30 am). It measures from the retracement wick of the candle to the last 5m close of the day’s first extreme low or high point. It also includes that distance in pts.
Previous market data does not guarantee future results, however, you can leverage the knowledge of the previous day’s ranges to set reasonable take profit levels and when your target is not met automatically, you know how long it took on the previous day to reach the day’s first low/high. If you are nearing that amount of time and your trade is not as profitable as expected, it is easier to get out with less profits using this estimated time rather than hoping the market closes in your favor.
Markets go through cycles and it can be difficult to trade them all if you have a fault expectation how how far the price is expected to move. Price tends to deviate slowly from the average ranges slightly day after day, but you can expect an average range to prevail throughout the week +/- 3 points. It can be very easy to be stuck on 5-point take-profit levels that you don’t pay attention to the average range being twice or three times that distance. The same can be said for the opposite scenario with having higher profit expectations than reasonably possible.
This indicator and my statements are not financial advice. This is meant for educational purposes only.
Candlestick Pattern ScannerCandlestick Pattern Scanner
This indicator identifies popular candlestick patterns on the chart and provides visual and alert-based support for traders. Based on technical analysis, it provides insights into potential trend reversals or continuation signals in price action. The following patterns are detected and marked:
1. Bullish Engulfing
Definition: Considered a strong bullish signal. A small red candle is followed by a large green candle that completely engulfs the previous one.
Chart Display: Marked with a green arrow below the price bar.
Alert Message: "Bullish Engulfing Pattern Detected!"
2. Bearish Engulfing
Definition: Considered a strong bearish signal. A small green candle is followed by a large red candle that completely engulfs the previous one.
Chart Display: Marked with a red arrow above the price bar.
Alert Message: "Bearish Engulfing Pattern Detected!"
3. Doji
Definition: Indicates indecision in the market. The candlestick has an opening and closing price that are almost the same, forming a very small body.
Chart Display: Marked with a blue triangle below the price bar.
Alert Message: "Doji Pattern Detected!"
4. Hammer
Definition: Can signal a strong bullish reversal. It has a long lower shadow and a small body, often appearing at the end of a downtrend.
Chart Display: Marked with an orange triangle below the price bar.
Alert Message: "Hammer Pattern Detected!"
5. Shooting Star
Definition: Can signal a strong bearish reversal. It has a long upper shadow and a small body, often appearing at the end of an uptrend.
Chart Display: Marked with a purple triangle above the price bar.
Alert Message: "Shooting Star Pattern Detected!"
Features:
Visual Support: Patterns are clearly marked on the chart using distinct shapes (arrows and triangles).
Alerts: Receive real-time notifications through TradingView’s alert system when a pattern is detected.
Versatility: Useful for identifying both trend reversals and continuation signals.
User-Friendly: Patterns are easily distinguishable with unique color coding.
Purpose:
This indicator helps traders identify potential reversal points or strong trend beginnings in price action. It can be used as a supportive tool in scalping, swing trading, or long-term investment strategies.
XAUUSD Trend Strategy### Description of the XAUUSD Trading Strategy with Pine Script
This strategy is designed to trade gold (**XAUUSD**) using proven technical analysis principles. It combines key indicators such as **Exponential Moving Averages (EMA)**, the **Relative Strength Index (RSI)**, and **Bollinger Bands** to identify trading opportunities in trending market conditions.
---
#### Objective:
To maximize profits by identifying trend-aligned entry points while minimizing risks through well-defined Stop Loss and Take Profit levels.
---
### How It Works
1. **Indicators Used:**
- **Exponential Moving Averages (EMA):** Tracks short-term and long-term trends to confirm market direction.
- **Relative Strength Index (RSI):** Detects overbought or oversold conditions for potential reversals or trend continuation.
- **Bollinger Bands:** Measures volatility to identify breakout or reversion points.
2. **Entry Rules:**
- **Long (Buy):** Triggered when:
- The short-term EMA crosses above the long-term EMA (bullish trend confirmation).
- RSI exits oversold territory (<30), signaling buying momentum.
- The price breaks above the upper Bollinger Band, indicating a strong trend.
- **Short (Sell):** Triggered when:
- The short-term EMA crosses below the long-term EMA (bearish trend confirmation).
- RSI exits overbought territory (>70), signaling selling momentum.
- The price breaks below the lower Bollinger Band, indicating a strong downtrend.
3. **Risk Management:**
- **Stop Loss:** Automatically calculated based on a percentage of equity risk (customizable via inputs).
- **Take Profit:** Defined using a risk-to-reward ratio, ensuring consistent profitability when trades succeed.
4. **Visualization:**
- The chart displays the EMAs, Bollinger Bands, and entry/exit points for clear analysis.
---
### Key Features:
- **Customizable Parameters:** You can adjust EMAs, RSI thresholds, Bollinger Band settings, and risk levels to suit your trading style.
- **Alerts:** Automatic alerts for potential trade setups.
- **Backtesting-Ready:** Easily test historical performance on TradingView.
---
This strategy is ideal for gold traders looking for a systematic, rule-based approach to trading trends with minimal emotional interference.
Previous High and Low Count with Probabilities + Risk On/Off1. Purpose of the Script:
This trading script combines two important concepts:
Previous High and Low Count: It tracks whether the current price exceeds the previous day’s high or low and calculates probabilities for the next price movement (up or down).
Risk On / Risk Off Indicator: It evaluates market sentiment through various indicators (such as the Fear & Greed Index, VIX, and others) and shows whether the market is in a risk-on or risk-off state. This information impacts the probabilities of price movement.
2. How it Works:
Previous High and Low:
The script tracks how often the price exceeds the previous day’s high or low and calculates the probability of an upward or downward movement based on that. This gives you an idea of how often the market reacts at the previous day's high or low.
Risk On / Risk Off:
Based on various market factors (Fear & Greed Index, VIX, Put-Call Ratio, etc.), the script calculates the Risk On or Risk Off state.
In Risk On, the probability of an upward movement increases, and the probability of a downward movement decreases. In Risk Off, it’s the opposite.
Adjusted Probabilities:
The probabilities for an Up or Down movement are adjusted based on the current Risk On / Risk Off state. In a Risk On environment, the probability for an upward move increases, while in a Risk Off environment, the probability for a downward move increases.
3. How to Use the Script:
Add the Script in TradingView:
TradingView:
Click on "Add to Chart" to apply the script to your chart.
Manual Input of Indicators:
For the Fear & Greed Index, VIX, and other indicators, you need to manually enter the current values. You can get these values from various publicly available sources:
Fear & Greed Index: CNN Fear & Greed Index
VIX (Volatility Index): VIX Index
Other indicators like Put-Call Ratio, Bitcoin Volatility, Oil Prices, and US Dollar Index can also be manually inputted, and they can be found on finance websites like Yahoo Finance, MarketWatch, and Bloomberg.
Observe the Colors and Symbols:
If the market is in a Risk On state, the background will turn green, and a green triangle will appear below the candle.
If the market is in a Risk Off state, the background will turn red, and a red triangle will appear above the candle.
Track the Probabilities:
A label will appear on the chart showing the calculated probabilities for Up and Down movements. These probabilities are adjusted based on the current market state (Risk On/Off).
4. Meaning of the Probabilities:
Up Probability: Indicates the probability that the price will rise.
Down Probability: Indicates the probability that the price will fall.
The probabilities are dynamic and adjust based on the Risk On / Risk Off state, helping you make better decisions based on the current market conditions.
Custom Zig Zag with Absolute Price DifferenceThis Zig-Zag indicator visualizes the price movements of a financial instrument and highlights the relevant turning points (pivots) where the price has undergone a significant change. It uses a deviation threshold to mark only substantial movements and ignore minor fluctuations.
The input parameters allow the user to customize the indicator:
Deviation (%): Defines the minimum percentage deviation required to mark a turning point.
Depth: Specifies how many periods before and after a pivot are considered to determine whether it is a real high or low.
Line Color: Allows the user to change the color of the lines that connect the pivots.
Extend to Last Bar: If enabled, extends the last lines to the current bar.
Display Absolute Price Difference: If enabled, the indicator shows the absolute price difference between the current pivot and the previous one.
Label Size: Allows adjusting the font size of the displayed labels.
The logic of the indicator is based on calculating pivots (highs and lows) using price movements. The indicator then tracks the changes between successive pivots and represents them as lines. When the price shows a significant difference from the last pivot (measured in percentage), a line is drawn, and a label displaying the price difference is shown.
Additionally, the indicator uses the calc_dev function to compute the price deviation between the last pivot and the current price. This provides users with a clear visualization of price changes, helping to identify larger price movements.
Support, Resistance & OHLCUPDATE:
This Pine Script code is an indicator for TradingView that displays support, resistance, and OHLC (Open, High, Low, Close) data across various timeframes. The code is divided into two main sections: Support/Resistance and OHLC Data.
Support and Resistance:
Logic for Support and Resistance: The indicator draws support and resistance lines after 4 consecutive candles without forming new lows (for support) or new highs (for resistance). This means that a support or resistance level is created after 4 candles that don't set new extremes.
Support: When the last 3 candles have lower lows, and the current candle forms a higher low, the support level is set.
Resistance: When the last 3 candles have higher highs, and the current candle forms a lower high, the resistance level is set.
Drawing the Lines and Labels:
Once the support or resistance level is determined, a horizontal line is drawn that extends left and right from the candle.
Additionally, labels for support and resistance are shown if the corresponding settings are enabled. These labels appear at a distance from the line and display the current support or resistance value.
Deleting the Lines:
If the price falls below the support level or rises above the resistance level, the respective line is deleted. This means that the market has breached the support or resistance level, making the line invalid.
When the support or resistance line is breached, alerts can be triggered to notify the trader.
Alerts:
The script provides options to set alerts when a support or resistance line is created or broken. These alerts notify the trader when the price reaches an important level.
OHLC Data:
The code allows the display of the high, low, close, and open values of the last candles across different timeframes (hourly, daily, weekly, monthly).
Settings:
Options are available to show these values for the respective timeframes.
The user can also adjust the size of the labels.
Visualization: The indicator plots lines for the high, low, and close values for each timeframe and places labels showing the respective values.
In summary, the indicator provides a detailed view of support and resistance levels, which are based on a 4-candle logic, and displays important OHLC values across different timeframes. The indicator also allows setting alerts for specific price levels, so traders can quickly react to market movements.