Candle Average PriceOverview
The Candle Average Price indicator is a custom tool designed to help traders identify key price levels by calculating and displaying the average price of recent candles on your TradingView chart. This indicator computes the average price based on a user-defined percentage of each candle's range over a specified number of candles. It then plots a horizontal line representing this average, covering only the last N candles as defined by you.
Key Features
Customizable Number of Candles: Define how many past candles to include in the average calculation.
Adjustable Percentage Level: Choose any percentage of each candle's range (from low to high) to calculate the price level.
Dynamic Horizontal Line: The indicator plots a horizontal line representing the calculated average, updating with each new bar and covering only the specified number of candles.
How It Works
Price at Specified Percentage:
For each candle, the indicator calculates a price level at your chosen percentage within the candle's range.
Formula: Price = Low + (Percentage Level / 100) * (High - Low)
Average Price Calculation:
It computes the average of these price levels over the last N candles.
Formula: Average Price = Sum of Price Levels over N Candles / N
Horizontal Line Plotting:
A horizontal line is drawn at the calculated average price level.
The line spans from N candles ago to the current candle, covering exactly the number of candles specified.
Input Parameters
Number of Candles (length):
Description: The number of recent candles over which the average is calculated.
Default Value: 4
Range: 1 to any positive integer.
Usage: Adjust this to include more or fewer candles in the calculation. A higher number smooths the average, while a lower number makes it more responsive to recent price changes.
Percentage Level (%):
Description: The percentage within each candle's range to calculate the price level.
Default Value: 50%
Range: 0% (candle low) to 100% (candle high).
Usage: Modify this to focus on different parts of each candle:
0%: Uses the low of each candle.
50%: Uses the midpoint of each candle.
100%: Uses the high of each candle.
Custom Percentage: Any value between 0% and 100% to target specific levels.
How to Use the Indicator
Adding the Indicator to Your Chart:
Open the TradingView chart of your preferred financial instrument.
Click on Indicators at the top of the chart.
Select Invite-Only Scripts if you've saved the script there, or use the Pine Editor to paste and apply the script.
Configuring the Settings:
After adding the indicator, click on the gear icon ⚙️ next to its name to open settings.
Adjust the Number of Candles (length) to your desired period.
Set the Percentage Level (%) (percentage) to the specific level within each candle's range you want to analyze.
Interpreting the Horizontal Line:
The horizontal line represents the average price calculated based on your inputs.
It updates with each new bar, always reflecting the most recent data over the specified number of candles.
The line only spans the last N candles, providing a focused view of recent price action.
Practical Applications
Identifying Support and Resistance Levels:
The average price line can act as a dynamic support or resistance level.
Traders can watch for price reactions around this line to make trading decisions.
Trend Analysis:
Observing how the price interacts with the average line can provide insights into the current trend's strength and potential reversals.
Entry and Exit Signals:
Use the line as a reference point for setting stop-loss orders or taking profits.
Combine it with other indicators for more robust trading signals.
In highly volatile markets, consider increasing the number of candles to avoid false signals.
Limitations and Considerations
Not a Standalone Tool:
This indicator should not be used in isolation for making trading decisions. Always consider additional analysis.
Market Conditions Matter:
The indicator may perform differently in trending markets versus ranging markets.
Data Refresh:
Ensure you have a stable internet connection and that your TradingView chart is set to the correct time frame.
Conclusion
The Candle Average Price indicator is a flexible and user-friendly tool that provides valuable insights into recent price action by calculating the average price based on your specific criteria. By adjusting the parameters to suit your trading style, you can incorporate this indicator into your technical analysis to help identify potential trading opportunities.
Disclaimer: Trading financial instruments involves risk, and past performance is not indicative of future results. This indicator is a tool to assist in analysis and should not be considered financial advice.
Happy Trading!
Candlestick analysis
Consecutive Lower Highs/Higher Lows v1 [tradinggeniusberlin]This indicator counts the lower highs and higher low streaks. If the streak is above a certain threshold a buy or exit arrow is shown.
Idea:
The probability of a reversal is rising the more lower highs the asset had already because if mean reversion tendencies of asset prices. Especially in uptrend above the 20ma and/or 50ma.
How to use it:
In Uptrends, lower high streak of 3 or more, enter at first new high.
Candlestick Strength and Volatility ReadoutDisplays a readout on the top right corner of the screen displaying a two basic calculations (volatility and strength; i.e. candlestick size and how close to the highs or lows it closed) for more convenient candlestick (price action) analysis.
Due to restrictions with Pine Script (or my knowledge thereof) only the current and previous candlestick data is shown, rather than the one currently hovered over.
The data is derived via two simple calculations; volatility being division between the range of the candlestick's high and low by the ATR; 'strength' (what I like to call it) being the range of the body by the range of the open to high or low, depending on the facing direction (positive or negative candlestick). These are expressed as percentages and will turn green depending on the set threshold.
Using this, one can effectively automate calculations you'd have to do by hand otherwise. I personally use these as entry filters in my trading, so it helps to not have to measure, remeasure, and divide before each potential entry.
Settings are implemented to change certain variables to your liking.
Optimus Trader Consolidation V.1 Indicator Description: "Optimus Trader Consolidation V.1"
This Pine Script indicator is designed to assist traders by identifying key market conditions, including **trend direction**, **volume dynamics**, **liquidity zones**, and **consolidation periods**, alongside candlestick patterns like **Pin Bars** and **Inside Bars**. It provides clear buy and sell signals based on a confluence of these factors. Here’s a detailed breakdown of its functionality:
---
Key Features:
1. **Moving Average (MA) and VWAP Integration**:
- The indicator uses a 50-period Simple Moving Average (SMA) and VWAP (Volume Weighted Average Price) to identify the market trend.
- **Uptrend**: Price is above both the MA and VWAP.
- **Downtrend**: Price is below both the MA and VWAP.
2. **Volume Threshold**:
- A dynamic volume threshold is calculated based on the 20-period SMA of volume, multiplied by a factor of 1.2.
- This ensures signals are filtered to consider only significant volume spikes, avoiding noise from low-volume periods.
3. **Pin Bar Detection**:
- Identifies bullish and bearish Pin Bars based on candlestick characteristics:
- **Bullish Pin Bar**: Large wick above the body, small lower wick, and a green body.
- **Bearish Pin Bar**: Large wick below the body, small upper wick, and a red body.
4. **Inside Bar Detection**:
- Detects Inside Bars, where the current candle’s high and low are fully contained within the previous candle’s range.
- Indicates a period of indecision or potential breakout zones.
5. **Liquidity Zone Identification**:
- Uses recent 20-period highs and lows to approximate liquidity zones.
- Highlights areas where price is near these zones, indicating potential support or resistance.
6. **Buy and Sell Signal Generation**:
- **Buy Signal**: Triggered when a bullish Pin Bar or Inside Bar occurs in an uptrend, with high volume, and near liquidity zones.
- **Sell Signal**: Triggered when a bearish Pin Bar or Inside Bar occurs in a downtrend, with high volume, and near liquidity zones.
- Signals are visually plotted with green (BUY) and red (SELL) markers.
7. **Consolidation Zone Detection**:
- Identifies periods of low price range volatility using a user-defined period (`length`) and range threshold (`range_threshold` in %).
- Highlights periods where the price range is less than the threshold, visually marking consolidation zones.
- Upper and lower boundaries of consolidation zones are plotted with green and red lines, respectively.
8. **Visual Enhancements**:
- Consolidation zones are shaded with a blue background to make them easily recognizable.
- Clear markers for buy and sell signals help traders quickly spot opportunities.
---
Use Cases:
- **Trend Confirmation**: By integrating MA, VWAP, and volume analysis, this indicator helps confirm trends before entering trades.
- **Liquidity Zone Trading**: Identifies price areas where support or resistance may lead to significant price movement.
- **Consolidation Breakouts**: Highlights consolidation zones, which often precede explosive moves, allowing traders to anticipate breakouts.
- **Candlestick Reversal Patterns**: Pin Bars and Inside Bars are powerful patterns that provide early indications of potential reversals or continuation setups.
---
Customizable Parameters:
- **MA Period**: Length of the moving average (default: 50).
- **Volume Threshold**: Sensitivity to volume spikes (default: 20-period SMA × 1.2).
- **Consolidation Period**: Lookback period for identifying consolidation (default: 20).
- **Consolidation Range Threshold**: Maximum percentage range considered as consolidation (default: 1%).
---
Visualization:
- **Green BUY Signals**: Bullish opportunities based on confluence of patterns, trends, and volume.
- **Red SELL Signals**: Bearish opportunities under similar conditions.
- **Consolidation Zones**: Marked by shaded blue backgrounds and clear horizontal lines for high and low boundaries.
- **Dynamic Levels**: Liquidity zones (highs and lows) plotted for added context.
---
Advantages:
- **Confluence of Factors**: Combines trend, volume, and candlestick analysis for robust signal generation.
- **Market State Detection**: Effectively identifies consolidation and breakout conditions.
- **Customizable**: Users can fine-tune parameters for different instruments or trading styles.
---
This indicator is ideal for traders seeking a comprehensive tool to navigate market conditions with precision, leveraging multiple layers of analysis in a single, easy-to-use overlay.
DI Oscillator with Adjustments by DSPDI Oscillator with Adjustments by DSP – High-Volatility Commodity Trading Tool 📈💥
Maximize Your Trading Efficiency in volatile commodity markets with the DI Oscillator with Adjustments by DSP. This unique indicator combines the classic +DI and -DI (Directional Indicators) with advanced adjustments that help you identify key trends and reversals in highly volatile conditions.
Whether you're trading commodities, forex, or stocks, this tool is engineered to help you navigate price fluctuations and make timely, informed decisions. Let this powerful tool guide you through turbulent market conditions with ease!
Key Features:
Dynamic Background Color Shifts 🌈:
Green Background: Signals a strong uptrend where +DI is clearly above -DI, and the trend is supported by clear separation between the two indicators.
Red Background: Signals a strong downtrend where -DI is above +DI, indicating bearish pressure.
Violet Background: Shows a neutral or consolidating market where the +DI and -DI lines are closely interwoven, giving you a clear picture of sideways movement.
Buy and Sell Labels 📊:
Buy Signal: Automatically triggers when the background changes to green, indicating a potential entry point during a bullish trend.
Sell Signal: Automatically triggers when the background shifts from purple to red, indicating a bearish trend reversal.
Labels are positioned away from the bars, ensuring your chart remains uncluttered and easy to read.
Enhanced Adjustments for Volatile Markets ⚡:
Custom adjustments based on consecutive green or red bars (excluding “sandwiched” bars) provide you with more nuanced signals, improving the accuracy of trend detection in volatile conditions.
Horizontal Line Reference 📏:
Set a custom horizontal level to mark significant price levels that may act as resistance or support, helping you identify key price points in volatile market swings.
Separation Threshold 🧮:
A custom separation threshold defines when the +DI and -DI lines are far enough apart to confirm a strong trend. This is crucial for commodity markets that experience rapid price changes and fluctuations.
Visual Clarity ✨:
Both +DI and -DI lines are plotted clearly in green and red, respectively, with a dedicated background color system that makes trend shifts visually intuitive.
Why This Indicator Works for Volatile Commodities 🌍📊:
Commodity markets are notorious for their volatility, with prices often experiencing rapid and unpredictable movements. This indicator gives you clear visual cues about trend strength and reversals, enabling you to act quickly and confidently.
By adjusting the +DI based on consecutive green and red bars, this tool adapts to the specific price action in high-volatility conditions, helping you stay ahead of the curve.
The background color system ensures that you can visually track market trends at a glance, making it easier to make split-second decisions without missing opportunities.
How to Use:
Add the Indicator: Simply add the DI Oscillator with Adjustments by DSP to your TradingView chart.
Watch for Background Color Shifts: Stay alert for the background color to shift from violet to green (for buy) or purple to red (for sell), signaling potential trade opportunities.
Set Alerts: Receive notifications when background color changes, providing you with real-time alerts to keep track of market movements.
Interpret the DI Lines: Use the +DI and -DI lines to gauge trend strength and adjust your strategy accordingly.
Who Can Benefit:
Day Traders: Take advantage of quick trend reversals and high volatility in commodities markets, such as gold, oil, or agricultural products.
Swing Traders: Identify key trend shifts over longer periods, making it easier to enter or exit trades during major price movements.
Risk Managers: Use this tool’s visual cues to better understand price fluctuations and adjust your position sizes according to market conditions.
💡 Unlock Your Potential with the DI Oscillator 💡
For traders in high-volatility commodity markets, this indicator is a game-changer. It simplifies the complexity of trend analysis and gives you the actionable insights you need to make fast, profitable decisions. Whether you're trading gold, oil, or other volatile commodities, the DI Oscillator with Adjustments by DSP can help you navigate market chaos and make better-informed trades.
Don’t miss out — enhance your trading strategy today with this powerful tool and stay ahead in any market environment!
Enigma UnlockedENIGMA Indicator: A Comprehensive Market Bias & Success Tracker
The ENIGMA Indicator is a powerful tool designed for traders who aim to identify market bias, track price movements, and evaluate trade performance using multiple timeframes. It combines multiple indicators and advanced logic to provide real-time insights into market trends, helping traders make more informed decisions.
Key Features
1. Multi-Timeframe Bias Calculation:
The ENIGMA Indicator tracks the market bias across multiple timeframes—Daily (D), 4-Hour (H4), 1-Hour (H1), 30-Minute (30M), 15-Minute (15M), 5-Minute (5M), and 1-Minute (1M).
How the Bias is Created:
The Bias is a key feature of the ENIGMA Indicator and is determined by comparing the current price with previous price levels for each timeframe.
- Bullish Bias (1): The market is considered **bullish** if the **current closing price** is higher than the **previous timeframe’s high**. This suggests that the market is trending upwards, and buyers are in control.
- Bearish Bias (-1): The market is considered **bearish** if the **current closing price** is lower than the **previous timeframe’s low**. This suggests that the market is trending downwards, and sellers are in control.
- Neutral Bias (0): The market is considered **neutral** if the price is between the **previous high** and **previous low**, indicating indecision or a range-bound market.
This bias calculation is performed independently for each timeframe. The **Bias** for each timeframe is then displayed in the **Bias Table** on your chart, providing a clear view of market direction across multiple timeframes.
2. **Customizable Table Display:**
- The indicator provides a table that displays the bias for each selected timeframe, clearly marking whether the market is **Bullish**, **Bearish**, or **Neutral**.
- Users can choose where to place the table on the chart: top-left, top-right, bottom-left, bottom-right, or center positions, allowing for easy and personalized chart management.
3. **Win/Loss Tracker:**
- The table also tracks the **success rate** of **buy** and **sell** trades based on price retests of key bias levels.
- For each period (Day, Week, Month), it tracks how often the price has moved in the direction of the initial bias, counting **Buy Wins**, **Sell Wins**, **Buy Losses**, and **Sell Losses**.
- This helps traders assess the effectiveness of the market bias over time and adjust their strategies accordingly.
#### **How the Success Calculation Determines the Success Rate:**
The **Success Calculation** is designed to track how often the price follows the direction of the market bias. It does this by evaluating how the price retests key levels associated with the identified market bias:
1. **Buy Success Calculation**:
- The success of a **Buy Trade** is determined when the price breaks above the **previous high** after a **bullish bias** has been identified.
- If the price continues to move higher (i.e., makes a new high) after breaking the previous high, the **buy trade is considered successful**.
- The indicator tracks how many times this condition is met and counts it as a **Buy Win**.
2. **Sell Success Calculation**:
- The success of a **Sell Trade** is determined when the price breaks below the **previous low** after a **bearish bias** has been identified.
- If the price continues to move lower (i.e., makes a new low) after breaking the previous low, the **sell trade is considered successful**.
- The indicator tracks how many times this condition is met and counts it as a **Sell Win**.
3. **Failure Calculations**:
- If the price does not move as expected (i.e., it does not continue in the direction of the identified bias), the trade is considered a **loss** and is tracked as **Buy Loss** or **Sell Loss**, depending on whether it was a bullish or bearish trade.
The ENIGMA Indicator keeps a running tally of **Buy Wins**, **Sell Wins**, **Buy Losses**, and **Sell Losses** over a set period (which can be customized to Days, Weeks, or Months). These statistics are updated dynamically in the **Bias Table**, allowing you to track your success rate in real-time and gain insights into the effectiveness of the market bias.
#### **Customizable Period Tracking:**
- The ENIGMA Indicator allows you to set custom tracking periods (e.g., 30 days, 2 weeks, etc.). The performance metrics reset after each tracking period, helping you monitor your success in different market conditions.
5. **Interactive Settings:**
- **Lookback Period**: Define how many bars the indicator should consider for bias calculations.
- **Success Tracking**: Set the number of candles to track for calculating the win/loss performance.
- **Time Threshold**: Set a time threshold to help define the period during which price retests are considered valid.
- **Info Tooltip**: You can enable the information tool in the settings to view detailed explanations of how wins and losses are calculated, ensuring you understand how the indicator works and how the results are derived.
#### **How to Use the ENIGMA Indicator:**
1. **Install the Indicator**:
- Add the ENIGMA Indicator to your chart. It will automatically calculate and display the bias for multiple timeframes.
2. **Interpret the Bias Table**:
- The bias table will show whether the market is **Bullish**, **Bearish**, or **Neutral** across different timeframes.
- Look for alignment between the timeframes—when multiple timeframes show the same bias, it may indicate a stronger trend.
3. **Use the Win/Loss Tracker**:
- Track how well your trades align with the bias using the **Win/Loss Tracker**. This helps you refine your strategy by understanding which timeframes and biases lead to higher success rates.
- For example, if you see a high number of **Buy Wins** and a low number of **Sell Wins**, you may decide to focus more on buying during bullish trends and avoid selling during bearish retracements.
4. **Track Your Period Performance**:
- The indicator will automatically track your performance over the set period (Days, Weeks, Months). Use this data to adjust your approach and evaluate the effectiveness of your trading strategy.
5. **Position the Table**:
- Customize the placement of the table on your chart based on your preferences. You can choose from options like **Top Left**, **Top Right**, **Bottom Left**, **Bottom Right**, or **Center** to keep the chart uncluttered.
6. **Adjust Settings**:
- Modify the indicator settings according to your trading style. You can adjust the **Lookback Period**, **Number of Candles to Track**, and **Time Threshold** to match the pace of your trading.
7. **Use the Info Tooltip**:
- Enable the **Info Tool** in the settings to understand how the Buy/Sell Wins and Losses are calculated. The tooltip provides a breakdown of how the indicator tracks price movements and calculates the success rate.
**Conclusion:**
The **ENIGMA Indicator** is designed to help traders make informed decisions by providing a clear view of the market bias and performance data. With the ability to track bias across multiple timeframes and evaluate your trading success, it can be a powerful tool for refining your trading strategies.
Whether you're looking to focus on a single timeframe or analyze multiple timeframes for a stronger bias, the ENIGMA Indicator adapts to your needs, providing both real-time market insights and performance feedback.
PSP Indicator [Elbaz]Precision Swing Point or PSP is a unique technical analysis tool designed to compare the price action of three tickers that are in sync.
It highlights moments when the price structure diverges between the markets, identifying ideal entry points for trades - We would like to enter a trade when we found PSP and one of the tickers took the wick while others didn't.
This strategy provides an edge by focusing on periods of desynchronization between the indices, where one index may be showing strength while another is lagging. The idea is to find the moments where the candle colors (bullish or bearish) differ across the markets, then wait for one of the tickers to "take" the wick of the PSP while other didn't and enter a trade.
Once a divergence is detected, the indicator plots an arrow on the chart, signaling a potential trade entry. To minimize risk, a good place to put stop loss will at the end of the wick of the PSP — the high or low wick of the candle where the divergence occurs.
The PSP Indicator allows for several custom inputs:
- Tickers: Customize the tickers to compare. The default values are S&P 500 E-mini, NASDAQ E-mini, and Dow Jones E-mini, if you trade Crypto you might want to use BTC, ETH, TOTAL3.
- Lookback Period: The lookback input defines how far back the indicator should evaluate to calculate the price structure point.
- Highlight Bar Times: Users can specify particular times during the trading day to highlight, such as the market open or significant news events. This helps traders focus on key trading windows.
Eze Profit Range Detection FilterThe Range Detection Filter is a technical analysis tool designed to help traders identify range-bound market conditions and focus on breakout opportunities. It combines the ATR (Average True Range) for volatility analysis and the ADX (Average Directional Index) for trend strength evaluation to highlight consolidation phases and alert traders when the market is ready to break out.
This indicator provides visual cues and customizable alerts, making it suitable for traders looking to avoid false signals during choppy markets and capitalize on trending moves following a breakout.
What Makes It Unique?
ATR for Volatility:
Measures market volatility by comparing ATR with its moving average.
Consolidation phases are flagged when ATR remains below its moving average for a sustained period.
ADX for Trend Strength:
Monitors trend strength, confirming range-bound conditions when ADX falls below a user-defined threshold (default: 20).
Combines with ATR to ensure accurate detection of trendless periods.
Breakout Alerts:
Notifies traders of breakout opportunities when the price moves outside the highest high or lowest low of the range.
How It Works:
Range Detection:
The market is considered "in range" when:
ATR is below its moving average, indicating low volatility.
ADX is below the threshold, confirming a lack of trend strength.
Visual Indication:
A yellow background highlights range-bound conditions, allowing traders to avoid low-probability trades.
Breakout Detection:
Alerts are triggered for breakouts above or below the range to help traders identify potential opportunities.
Features:
Range Highlighting:
Automatically detects and highlights range-bound markets using a yellow background.
Breakout Alerts:
Sends alerts for breakouts above or below the range once the market exits consolidation.
Customizable Inputs:
ATR length, moving average length, and ADX parameters are fully adjustable to adapt to various trading styles and asset classes.
Multi-Timeframe Compatibility:
Suitable for all markets and timeframes, including stocks, forex, and cryptocurrencies.
How to Use:
Identify Ranges:
Avoid trading when the yellow background appears, signaling a range-bound market.
Focus on Breakouts:
Look for alerts indicating breakouts above or below the range for potential trending opportunities.
Combine with Other Indicators:
Use volume analysis, momentum oscillators, or candlestick patterns to confirm breakout signals.
Credits:
This script utilizes widely accepted methodologies for ATR and ADX calculations. ADX is calculated manually using directional movement (+DI and -DI) for precise trend detection. The concept has been adapted and enhanced to create this comprehensive range-detection tool.
Notes:
This indicator is intended for educational purposes and should not be used as standalone financial advice.
Always incorporate this tool into a broader trading strategy for optimal results.
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.
Custom Volatility Price-Based IndicatorThis script provides an interactive volatility-based indicator that helps traders visualize key price levels based on the opening price, volatility (ATR), and the first 3 30-minute intervals of the trading day. It offers flexibility through user inputs for volatility adjustments, making it a customizable tool for assessing potential price movements and volatility for the current trading day.
Step 1: Input Volaiti
ATR Length: User-defined period for calculating volatility (default is 14).
Custom Multiplier Value: Allows users to adjust volatility with a multiplier. Defaults to using ATR if set to 0.
Step 2: Volatility Calculation
ATR Daily: Fetches the daily Average True Range (ATR) for volatility.
Volatility Adjustment: If the custom multiplier is used, it adjusts the ATR accordingly.
Step 3: Upper and Lower Levels
Opening Price: Displays the opening price of the current day.
Upper/Lower Levels: Calculated by adding/subtracting the adjusted volatility to/from the opening price.
Step 4: Plot Opening Price
Plots the Opening Price on the price scale in white.
Step 5: Highest and Lowest of First 3 30-Minute Intervals
Records the highest and lowest prices in the first three 30-minute intervals (9:30-11:00 AM).
Step 6: Adjusted Prices
Adjusted Top/Bottom: Adds/subtracts the ATR to the highest and lowest prices from Step 5 and plots them in purple and pink.
Plotting:
Displays the upper, lower, opening, and adjusted price levels as steplines in different colors for easy visualization.
This script helps traders visualize volatility-based levels, including the opening price and early market range, with customizable adjustments based on ATR.
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!
Absolute DM LevelsAbsolute DM Levels Indicator
The Absolute DM Levels indicator is a powerful tool designed to assist traders in identifying key price levels based on the Average Absolute Daily Movement (ADM) and Fibonacci ratios. This indicator combines volatility measurement with trend analysis to provide actionable insights for various trading strategies, including day trading, swing trading, and long-term investing.
Key Features:
1. Average Absolute Daily Movement (ADM) Calculation:
• Calculates the ADM over a user-specified period (default is 14 periods).
• ADM represents the average of the absolute differences between consecutive closing prices, offering a straightforward measure of market volatility.
2. Dynamic Level Generation Using Fibonacci Ratios:
• Computes multiple support and resistance levels above and below the previous close using ADM multiplied by key Fibonacci ratios (e.g., 38.2%, 50%, 61.8%, 78.6%, 100%).
• Optional Fibonacci extension levels are available for advanced target setting (e.g., 123.6%, 161.8%, up to 300%).
3. Trading Mode Customization:
• Allows selection of different trading types to adjust the timeframe and sensitivity of the indicator:
• Day Trading
• Multiday Trading
• Swing Trading
• Position Trading
• Long-term Trading
4. Trend Identification with EMA Ribbon:
• Utilizes a triple Exponential Moving Average (EMA) ribbon (default periods of 8, 21, and 34) to determine market trends.
• Identifies bullish, bearish, or neutral trends based on the alignment of price and EMAs.
5. Visual Aids and Alerts:
• Plots horizontal lines on the chart representing calculated levels for easy visualization.
• Color-coded levels and labels help distinguish between different types of levels (e.g., triggers, key targets, intermediate levels).
• Provides informational labels displaying current trading mode, range percentage of ADM, and trigger prices.
6. Customization Options:
• Use Options Labels: Choose between “Calls”/“Puts” or “Long”/“Short” labels for triggers.
• Show All Fibonacci Levels: Option to display all intermediate Fibonacci levels.
• Show Extensions: Option to display Fibonacci extension levels beyond 100% ADM.
• Level Size and Colors: Adjust line thickness and colors for different levels to suit personal preferences.
• Use Current Close: Option to base calculations on the current close price instead of the previous close.
How It Works:
1. ADM Calculation:
• The indicator calculates the ADM by taking the average of the absolute differences between consecutive closing prices over the specified period.
• ADM serves as a measure of average daily price movement, reflecting market volatility.
2. Level Computation:
• Trigger Levels:
• Upper Trigger: Previous Close + (Trigger Percentage × ADM)
• Lower Trigger: Previous Close - (Trigger Percentage × ADM)
• The default trigger percentage is 23.6% (a key Fibonacci retracement level).
• Fibonacci Levels:
• Levels are calculated by adding or subtracting Fibonacci ratios of the ADM from the previous close.
• These levels include common retracement percentages like 38.2%, 50%, 61.8%, and extensions like 123.6%, 161.8%, etc.
3. Trend Analysis:
• The EMA ribbon helps identify the market trend:
• Bullish Trend: Price ≥ Fast EMA ≥ Pivot EMA ≥ Slow EMA
• Bearish Trend: Price ≤ Fast EMA ≤ Pivot EMA ≤ Slow EMA
• Neutral Trend: Any other alignment.
• The trend is visually represented through color-coded labels and background colors.
4. Range Assessment:
• Compares the current period’s range (high - low) to the ADM.
• Displays the range as a percentage of ADM to assess whether the market is more or less volatile than average.
Use Cases:
1. Identifying Support and Resistance Levels:
• Use the plotted levels to anticipate potential areas where the price may encounter support or resistance.
• Helps in setting entry and exit points based on expected market reactions at these levels.
2. Trend Confirmation:
• Align trades with the identified trend to increase the probability of success.
• The EMA ribbon trend identification aids in confirming bullish or bearish market conditions.
3. Volatility Assessment:
• By comparing the current range to the ADM, traders can gauge market volatility.
• High percentages may indicate overextended moves, while low percentages might suggest consolidation.
4. Strategic Trade Planning:
• The trigger levels serve as potential breakout points.
• Fibonacci levels offer targets for profit-taking or setting stop-loss orders.
5. Customization for Different Trading Styles:
• Adjust the trading type to fit your trading horizon, whether you’re a day trader or a long-term investor.
• Customize levels and visual settings to match your analysis preferences.
How to Use the Indicator:
1. Add the Indicator to Your Chart:
• Apply the Absolute DM Levels indicator to your desired financial instrument chart.
2. Configure Settings:
• Select your Trading Type to adjust the timeframe and sensitivity.
• Set the ADM Length according to your preference for volatility measurement.
• Choose whether to Show All Fibonacci Levels and Show Extensions based on your analytical needs.
• Customize colors and level sizes for better visual clarity.
3. Interpret the Levels and Labels:
• Trend Labels: Observe the trend indication (bullish, bearish, neutral) provided by the EMA ribbon analysis.
• Information Table: Review the displayed range percentage and trigger prices.
• Plotted Levels: Use the horizontal lines to identify key support and resistance zones.
4. Incorporate into Your Trading Strategy:
• Combine the insights from the indicator with other technical analysis tools.
• Use the levels for setting up trades, managing risk, and identifying potential market turning points.
Notes:
• No Repainting: The indicator uses security functions with lookahead=barmerge.lookahead_on to ensure that calculations are based on completed data, minimizing repainting issues.
• Versatility: Suitable for various financial instruments, including stocks, forex, commodities, and cryptocurrencies.
• Complementary Tool: Designed to enhance your existing trading strategy, not replace thorough market analysis.
Disclaimer: The Absolute DM Levels indicator is intended for educational and informational purposes only. It should not be construed as financial advice. Trading financial instruments involves risk, and past performance is not indicative of future results. Always conduct your own analysis and consult with a professional financial advisor before making investment decisions.
Good Candles with Risk TableThis custom Pine Script indicator highlights bullish and bearish candles based on the highest and lowest close prices over the past specified number of candles (look-back period).
Bullish candles are marked with an orange color when the close is higher than the highest close from the previous candle.
Bearish candles are marked with a purple color when the close is lower than the lowest close from the previous candle.
The indicator also draws two lines for each colored candle:
Midline: A horizontal line drawn at the midpoint between the open and close of the candle, which helps visualize the candle's body.
Open line: A horizontal line drawn at the open price, offering an additional reference point for market action.
Lines are visible for the last 5 colored candles (either bullish or bearish), with old lines being removed to avoid clutter on the chart.
Additionally, the Risk Table at the top right of the chart shows the calculated units to buy for the specified risk amount (default value of $0.1), based on the distance between the candle’s close and its midpoint. This allows users to manage their risk effectively by knowing how many units they should purchase to match their desired risk level.
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.
Custom Ratio IndicatorThis indicator allows users to compare the price ratio of two customizable trading pairs. By dividing the closing price of the first trading pair by the second, it calculates and plots the resulting ratio on the chart. It is designed for traders who want to analyze correlations or relative performance between two assets. The default pairs are ETHUSDT and BTCUSDT, and users can customize these inputs. The indicator supports high precision to ensure accurate representation of small or large ratios. Additionally, the current ratio is dynamically displayed on the chart for easy reference.
Volatility-Driven Trend Reversal (VTR) IndicatorThe Volatility-Driven Trend Reversal (VTR) Indicator is a sophisticated Pine Script trading tool designed to provide clear, non-repainting buy and sell signals based on a combination of trend-following, volatility-based, and momentum analysis. It utilizes Exponential Moving Average (EMA) for trend direction, Average True Range (ATR) for dynamic volatility bands, and Relative Strength Index (RSI) for momentum filtering. The VTR Indicator is built to operate effectively on all market pairs, including cryptocurrency, stocks, and forex, providing traders with reliable, actionable signals for both trend continuation and reversal strategies.
This indicator is tailored to reduce noise and avoid over-signaling by filtering out minor fluctuations. With its unique volatility-based ATR bands, the VTR Indicator excels in volatile environments, such as cryptocurrency markets, and helps traders capture significant price movements while managing risk effectively.
Key Features
Trend Confirmation (EMA):
The indicator relies on the 50-period Exponential Moving Average (EMA) to define the market's primary trend direction. A rising EMA suggests an uptrend, while a falling EMA indicates a downtrend.
Volatility-Based ATR Bands:
ATR (Average True Range) is used to calculate dynamic support and resistance levels based on market volatility. The upper and lower bands represent potential overbought and oversold zones, ensuring that price action aligns with the overall market volatility.
These bands are adaptive to price fluctuations, making them a powerful tool for detecting volatility shifts in real-time.
Momentum Filter (RSI):
The 14-period Relative Strength Index (RSI) is applied to ensure that buy signals only appear when the market is showing upward momentum (RSI above 50) and sell signals when there is downward momentum (RSI below 50).
This filtering mechanism helps avoid false signals during periods of consolidation or ranging markets, improving the signal's overall accuracy.
Non-Repainting Logic:
The buy and sell signals generated by the VTR Indicator are persistent and will not repaint after the bar closes. Once a signal is confirmed, it stays active until an opposite condition triggers a new signal.
This is achieved using a persistent signalState variable, which tracks the current market trend and prevents premature or false signals.
Stop-Loss and Take-Profit Levels:
The indicator automatically generates Stop Loss (SL) and Take Profit (TP) levels based on the ATR multiplier to assist with trade risk management.
These levels are dynamically calculated as a multiple of the ATR value, helping traders manage potential volatility and exit at strategic points.
Multi-Market Compatibility:
The VTR Indicator is suitable for all market pairs (cryptocurrencies, stocks, forex, indices), allowing traders to apply it across various timeframes and asset classes without losing performance reliability.
Alert System:
Built-in alert conditions notify traders of Buy and Sell signals, ensuring they don’t miss any potential trading opportunities.
Signal Logic & Interpretation
Buy Signal (Long Entry):
Condition 1: The price closes above the upper ATR band, suggesting potential upward price movement.
Condition 2: The RSI is above 50, confirming bullish momentum.
Buy Signal Confirmation: The buy signal is generated when both conditions are met and there is no prior active buy signal.
Sell Signal (Short Entry):
Condition 1: The price closes below the lower ATR band, suggesting potential downward price movement.
Condition 2: The RSI is below 50, confirming bearish momentum.
Sell Signal Confirmation: The sell signal is generated when both conditions are met and there is no prior active sell signal.
No Repainting:
Once a buy or sell signal is confirmed, it will not be altered, erased, or replaced by future bars. This ensures that the trader can trust the signal once it appears, knowing it will not change as the market moves.
Exit Points:
Take Profit: When a long position is active, the TP level is calculated as a multiple of the ATR above the entry price.
Stop Loss: When a long position is active, the SL level is calculated as a multiple of the ATR below the entry price.
For short positions, these levels are reversed: TP is below the entry price, and SL is above the entry price.
Trading Strategy:
Entry:
Enter a long position when the buy signal is generated, confirmed by the price crossing the upper ATR band and the RSI being above 50.
Enter a short position when the sell signal is generated, confirmed by the price crossing the lower ATR band and the RSI being below 50.
Exit:
For long positions, exit when the price reaches the Take Profit (TP) level or hits the Stop Loss (SL) level.
For short positions, exit when the price reaches the Take Profit (TP) level or hits the Stop Loss (SL) level.
Risk Management:
Use the ATR-based Stop Loss (SL) and Take Profit (TP) levels to manage risk dynamically.
Always ensure your stop-loss levels are within your risk tolerance for each trade.
Unique Aspects:
Adaptability: The VTR Indicator adapts to changing market conditions, making it suitable for high volatility environments like cryptocurrency trading.
Non-Repainting: Once a signal is generated, it remains valid and doesn't change with new bars, ensuring a reliable trading strategy.
Built-in Risk Management: Automatic dynamic SL and TP levels allow for strategic trade exits, enhancing trade management.
Example Scenario
Scenario 1 (Bullish Trend):
The price is above the upper ATR band, and the RSI is above 50, signaling a strong bullish trend. The buy signal is triggered, and the price continues to rise, hitting the take-profit target based on ATR levels.
Exit: The price reaches the TP level or hits the SL level, and the position is closed.
Scenario 2 (Bearish Trend):
The price is below the lower ATR band, and the RSI is below 50, signaling a strong bearish trend. A sell signal is generated, and the price continues to decline, hitting the take-profit target.
Exit: The price reaches the TP level or hits the SL level, and the short position is closed.
Daily DividerWhat does this script do?
The “Daily Divider” script provides a visual tool for traders who need to divide their daily charts into clear intervals and label the days of the week. This is especially useful for identifying time-based patterns or conducting technical analysis on charts with timeframes lower than a day.
Key Features:
1. Customizable Day Dividers:
• Draws vertical lines on the chart to mark the start of each new day.
• Lines are fully customizable in terms of color, style (solid, dotted, or dashed), and visibility.
2. Day Name Labels:
• Displays labels on the chart indicating the day of the week.
• Day names can be fully customized with user-defined abbreviations.
3. Advanced Customization Options:
• Adjust the color and size of the label text.
• Configure a margin to position the labels above the highest price of the day.
• Enable or disable the labels and dividers as needed.
4. Ease of Use:
• Designed for daily or lower timeframes.
• Ideal for traders operating intraday strategies, scalping, or analyzing specific intra-day movements.
How does it work?
• Detects day changes using the built-in dayofweek function.
• Draws a vertical line on the chart when a new day is detected.
• Uses labels to display the day name with a clean and clear design, automatically positioned above the highest price.
Why is it useful?
• Enhances visual clarity on intraday charts by separating trading days.
• Helps traders quickly identify time-based patterns or recurring events associated with specific days of the week.
• Increases customization to fit individual trading styles and preferences.
Practical Use Case:
An intraday trader can use this script to divide the chart into days and observe how the price of an asset evolves on specific days, such as Mondays or Fridays. Additionally, with labels, it becomes easy to correlate these movements with weekly recurring events.
Lot Size & Risk Calculator (All Pairs)this indicator is designed to simplify and optimize risk management. It automatically calculates the ideal lot size based on your account balance, risk percentage, and defined entry and exit levels. Additionally, it includes visual tools to represent stop-loss (SL) and take-profit (TP) levels, helping you trade with precision and consistency.
WHAT IS THIS INDICATOR FOR?
This indicator is essential for traders who want to:
Maintain consistent risk in their trades.
Quickly calculate lot sizes for Forex, XAUUSD, BTCUSD, and US100.
Visualize key levels (Entry, SL, and TP) on the chart.
Monitor potential losses and gains in real time.
COMPATIBLE ASSETS
The Lot Size Calculator works with the following assets:
Forex: Standard currency pairs.
XAUUSD: Gold versus the US dollar.
BTCUSD: Bitcoin versus the US dollar.
US100: Nasdaq 100 index.
Calculations adjust automatically based on the selected asset.
TAKE-PROFIT (TP) LEVELS
The indicator allows you to define up to three take-profit levels:
TP1
TP2
TP3
.
Each level is configurable based on your exit strategy.
DASHBOARD
The dashboard is a visual tool that consolidates key information about your trade:
Account balance: Total amount available in your account.
Lot size: Calculated based on your risk and parameters.
Potential loss (SL): Amount you could lose if the price hits your stop-loss.
Potential gain (TP): Expected profit if the take-profit level is reached.
SETTINGS
The indicator offers multiple configurable options to adapt to your trading style:
Levels
Entry: Initial trade price.
Stop-Loss (SL): Maximum allowed loss level.
Take-Profit (TP): Up to three configurable levels.
Risk Management
Account balance ($): Enter your total available balance.
Risk percentage: Define how much you're willing to risk per trade
.
Visual Options
Visualization style: Choose between simple lines or visual fills.
Colors: Customize the colors of lines and labels.
Dashboard Settings
Statistics: Enable or disable key data display.
Size and position: Adjust the dashboard's size and location on the chart.
HOW TO CHANGE AN ENTRY?
Open the indicator settings in TradingView and entering the new data manually
Removing and re-adding the indicator to the chart