Candlestick analysis
True Liquidity BlocksSo basically I've been deep diving into liquidity trading concepts similar to ICT (Inner Circle Trader) and developed an indicator that breaks down market movement through a volume-centric lens.
Key Concept:
Markets move not just by price, but by resolving trapped positions
Volume segments, not time intervals, show true market dynamics
VWAP (Volume Weighted Average Price) becomes a key structural reference
What Makes This Different:
Tracks volume segments instead of fixed time frames
Identifies "trapped" trader positions
Measures liquidity level efficiency
Color-codes bars based on nearest liquidity zone
Indicator Features:
Cyan/Red liquidity levels showing buy/sell pressure
Efficiency tracking for each level
Dynamic volume-based segmentation
Bar coloring to show nearest liquidity zone
Theoretical Inspiration: Viewed markets as energy systems where:
Positions create potential energy
Price movement resolves this energy
Trends form through systematic position liquidation
VWAP Recalculation in Each Segment:
Segment Start:
VWAP resets when volume threshold User Inputtable (600,000) is reached
Uses the last 4 price values (High, Low, Close, Close) for calculation
Weighted by volume traded during that segment
Calculation Method:
pineCopy = ta.vwap(hlcc4, na(segment_start) ? true : na, 1)
hlcc4: Combines high, low, close prices
na(segment_start): Ensures reset at new segment
Weighted by volume, not equal time intervals
Key Points:
Dynamic recalculation each segment
Reflects most recent trading activity
Provides real-time fair price reference
Tracks positioning
Essentially, VWAP resets and recalculates with each new volume segment, creating a rolling, volume-weighted average price that maps trader positioning.
BSL (Buy Side Liquidity) and SSL (Sell Side Liquidity) Explained:
When a volume segment closes relative to VWAP, it creates natural positioning traps:
BSL (Cyan) - Created when price closes BELOW THAT SEGMENT'S VWAP:
Bulls are positioned BELOW VWAP (trapped)
Shorts are positioned ABOVE VWAP (In Profit)
SSL (Red) - Created when price closes ABOVE THAT SEGMENT"S VWAP:
Bulls are positioned ABOVE VWAP (trapped)
Shorts are positioned BELOW VWAP (trapped)
Core Mechanism:
VWAP acts as a reference point for trader positioning
Trapped positions create inherent market tension
Levels expand to show accumulating pressure
Color-coded for quick identification of potential move direction
The goal: Visualize where traders are likely "stuck" and must eventually resolve their positions or liquidate other's, driving market movement.
It was just a fun experiment but If ya'll have any thoughts on it or what I could do to improve it, I would appreciate it.
Just a little note, It's optimized for futures, but if u uncheck the "Rest at Futures Open ?" setting, it allow full reign of any asset with volume data.
[GrandAlgo] MTF Historical Highs and LowsMany traders rely on weekly highs and lows to identify key market levels, but what if you could see how price reacted to these levels in past weeks, months, or even years? With MTF Historical Highs and Lows, you can visualize all past highs, lows, and midpoints from any timeframe, allowing you to refine your strategy and make more informed trading decisions.
This indicator retrieves and plots historical highs, lows, and midpoints based on a user-selected timeframe (default: Weekly). It dynamically updates, ensuring that all significant price levels remain visible on your chart. Additionally, smart filtering helps you focus only on relevant levels, and alerts notify you when price interacts with key zones.
Key Features:
✅ Automatically Fetches & Plots Historical Highs, Lows, and Midpoints
✅ Customizable Timeframes (default: Weekly, but adjustable)
✅ Visibility Filtering – Hides lines that are too far from the current price
✅ Alerts for Key Levels – Get notified when price touches an important historical level
✅ Customizable Colors & Display Preferences for clarity
How It Works:
1️⃣ Select a Date Range – Focus on historical levels that are most relevant to the current market conditions
2️⃣ Choose a Timeframe – Use Weekly, Monthly, or any timeframe that suits your strategy.
3️⃣ Enable Highs, Lows, and Midpoints – Customize what you want to see.
4️⃣ Adjust Filtering – Hide lines that are too far from the current price to reduce clutter.
5️⃣ Get Alerts – Be notified when price reaches a historical level for potential trade setups.
Ideal for Traders Who:
Trade Support & Resistance Levels – Understand how price reacts at historical highs and lows.
Analyze Market Structure – Identify key areas where price may reverse or break out.
Want Smart Alerts – Stay informed without staring at charts all day.
E9 MM Nuke signalScript identifies wickless candles on a specified higher timeframe and plots them on a lower timeframe (If desired), such as 15 minutes. It includes options to adjust the margin for error (e.g. 5 tick wick), higher timeframe, and toggle the volume filter with period adjustment.
Wickless candles signal strong market sentiment shifts, indicating areas of significant buying or selling pressure. These areas can become key levels of support or resistance, making them crucial to monitor for potential price revisits.
Why Price Revisits Wickless Areas
Manipulators often create artificial wickless candles to deceive traders. However, genuine market movements can also produce wickless candles, indicating a strong consensus among market participants. In either case, the price is likely to revisit these areas as traders and investors react to the perceived market sentiment shift.
Key Features:
Margin Input:
Description: Allows users to specify the margin in 0.01 tick increments to account for small wicks due to spread issues.
Example: A margin of 0.05 ticks means the script will consider candles wickless if the high is within 0.05 ticks of the open and the low is within 0.05 ticks of the open.
Volume Filter:
Description: Users can enable or disable a volume filter to consider only candles with a volume greater than the average volume over a specified period.
Default: Enabled by default.
Volume Period Input: Users can specify the period for calculating the average volume (e.g., 9 periods).
Higher Timeframe Input:
Description: Allows users to select the higher timeframe on which to identify wickless candles.
Options: H4 ("240"), Daily ("D"), Weekly ("W"), Monthly ("M").
Plotting:
Bearish Wickless Candles: Plotted with a red circle and a "🐻" emoji above the bar.
Bullish Wickless Candles: Plotted with a green circle and a "🐂" emoji below the bar.
Sadosi Gap SelecterThis indicator is designed to be used on daily charts. Please note that it will not work with weekly or hourly data.
The Sadosi Gap Selecter is a powerful indicator designed to identify price gaps that occur between specific dates on the chart. It allows users to easily analyze price movements between selected weeks and days, highlighting these periods with visual boxes. This helps traders spot potential trend reversals and key price levels more effectively. It’s particularly valuable for those utilizing gap trading strategies to identify market inefficiencies.
The core functionality of this indicator is based on detecting price differences between two selected days within a defined date range. With the Start Day (day1) and End Day (day2) options, you can choose the exact days of the week you’d like to analyze. For instance, if you want to focus on price movements from Friday to Monday, simply select those days. Additionally, the Start Week (week1) and End Week (week2) settings allow you to narrow down the time frame on a weekly basis, making it easy to analyze price behavior during specific periods of the year.
For visual customization, several options are available. The Color (renk) setting lets you choose between red and yellow for the highlighted boxes. The Transparency (op) control adjusts the background opacity from 0% (fully opaque) to 100% (completely transparent), allowing you to manage how prominently the boxes appear on your chart. Furthermore, the Border (hat) option enables you to add or remove borders around the boxes, helping reduce visual clutter or emphasize certain areas depending on your preference.
Once applied to the chart, the indicator automatically generates boxes for the specified date ranges. The upper and lower bounds of each box are determined based on the price movement within that period, providing insights into the direction and strength of the trend. However, this tool does not generate definitive buy or sell signals on its own. It is recommended to use it alongside other technical analysis tools to make more informed trading decisions.
With the Sadosi Gap Selecter, you can gain clearer insights into price behavior, strengthen your trend analyses using historical data, and fully customize the settings to match your trading style for more effective results.
This indicator is designed to be used on daily charts. Please note that it will not work with weekly or hourly data
Range Chart Time Analyzer by Shresht
DISCLAIMER :
This indicator is provided for informational and educational purposes only. It is not intended as financial, investment, or trading advice. The calculations and data presented by this indicator are based on available historical information and predefined logic, which may not always reflect real-time market conditions accurately.
I do not guarantee the accuracy, reliability, or completeness of the values displayed by this indicator. Users should independently verify any data before making trading decisions. I am not responsible or liable for any losses, damages, or financial consequences resulting from the use of this indicator.
By using this indicator, you acknowledge and accept full responsibility for any actions taken based on its output. Always conduct your own research and consult with a qualified financial professional before making any investment or trading decisions.
Range-Chart Time Analyzer
Make your Range Chart Complete
Overview:
This indicator is specifically designed for Range Charts. Unlike traditional charts, Range Charts plot bars at varying time intervals. This indicator helps visualize these "time warps" by calculating the difference between the opening time of the current bar and the opening time of the previous bar, along with their averages. Additionally, it offers optional settings to display Green-only, Red-only, or Green vs. Red averages .
Time Unit:
This indicator uses seconds as the unit of measurement for time
Logic: At its core, it relies solely on the opening time of each candle. The averages are calculated based on the time difference between consecutive pair of bars. For example, with a length of 3, the average is computed as:
/ 2
Features :
~Three Averages
~Green Candle only Average , Red Candle only Average and Green vs Red Average ( Green only Average minus Red only Average )
Inputs/Settings :
~Reference Bar: When the indicator is first added to the chart, it will prompt you to select a Reference Bar. This selection can be changed later without reapplying the indicator by either specifying the timestamp in the settings or adjusting the slider that appears above the red "R" label when hovering over it. The Reference Bar allows you to calculate an average starting from a specific point in time, such as the beginning of a trading session or a significant event like a news release or an announcement.
~Session Breaker: This feature ensures that averages are not skewed by the large time gap between trading sessions, i.e., the last candle of the previous session and the first candle of the current session. It is measured in seconds, as mentioned earlier. Set it to a large number of seconds, but ensure that it is less than the actual time gap between sessions.
~ Length and Length 2: The default Length is set to 2, allowing you to see individual differences. It is important to understand the following: WHEN LENGTH IS 2, THE AVERAGE DISPLAYED BELOW A CANDLE REPRESENTS THE DIFFERENCE BETWEEN THE PREVIOUS CANDLE'S OPEN TIME AND THE CURRENT/LATEST CANDLE'S OPEN TIME. BECAUSE, IN RANGE CHARTS, THE CLOSE OF THE PREVIOUS CANDLE AND THE OPEN OF THE CURRENT CANDLE ARE THE SAME, THIS MAY RESULT IN A RED-COLORED COLUMN APPEARING BELOW A GREEN CANDLE IF THE PREVIOUS CANDLE WAS RED. HOWEVER, THIS DOES NOT AFFECT THE ACCURACY OF THE RED ONLY OR GREEN ONLY AVERAGES. THIS INDICATOR IS ALWAYS "ONE CANDLE AHEAD" IN ITS PLOTTING.
Length 2 is used to calculate a third, larger average with a custom length of your choice.
~ Length for Green Only Average and Length for Red Only Average: These inputs define the lookback period for calculating the average of a specific candle color. A crucial point to remember is that when displaying the Green vs Red Average, both these inputs must be set to the same value to ensure an accurate comparison .
DISCLAIMER :
This indicator is provided for informational and educational purposes only. It is not intended as financial, investment, or trading advice. The calculations and data presented by this indicator are based on available historical information and predefined logic, which may not always reflect real-time market conditions accurately.
I do not guarantee the accuracy, reliability, or completeness of the values displayed by this indicator. Users should independently verify any data before making trading decisions. I am not responsible or liable for any losses, damages, or financial consequences resulting from the use of this indicator.
By using this indicator, you acknowledge and accept full responsibility for any actions taken based on its output. Always conduct your own research and consult with a qualified financial professional before making any investment or trading decisions.
Advanced Trend and Volatility Indicator with Alerts by ZaimonThis script presents a comprehensive analytical tool that integrates multiple technical indicators to provide a holistic view of market trends and volatility. By uniquely combining Moving Averages (MA), Relative Strength Index (RSI), Stochastic Oscillator, Bollinger Bands, and Average True Range (ATR), it offers nuanced insights into price movements and helps identify potential trading opportunities.
---
### **Key Features and Integration:**
1. **Moving Averages (MA20 & MA50):**
- **Trend Identification:**
- **Methodology:** Calculates two Simple Moving Averages—MA20 (short-term) and MA50 (long-term).
- **Bullish Trend:** When MA20 crosses above MA50, indicating upward momentum.
- **Bearish Trend:** When MA20 crosses below MA50, signaling downward momentum.
- **Golden Cross & Death Cross Alerts:**
- **Golden Cross:** MA20 crossing above MA50 generates a bullish alert and visual symbol.
- **Death Cross:** MA20 crossing below MA50 triggers a bearish alert and visual symbol.
- **Integration:**
- Serves as the foundational trend indicator, influencing interpretations of other indicators within the script.
2. **Relative Strength Index (RSI):**
- **Momentum Measurement:**
- **Methodology:** Calculates RSI to assess the speed and change of price movements over a 14-period length.
- **Overbought/Oversold Conditions:** Customizable thresholds set at 70 (overbought) and 30 (oversold).
- **Alerts:**
- Generates alerts when RSI crosses above or below the specified thresholds.
- **Integration:**
- Confirms trend strength identified by MAs.
- Overbought/Oversold signals can precede potential trend reversals, especially when aligned with MA crossovers.
3. **Stochastic Oscillator:**
- **Momentum and Reversal Signals:**
- **Methodology:** Uses %K and %D lines to evaluate price momentum relative to high-low range over recent periods.
- **Bullish Signal:** %K crossing above %D in oversold territory (below 20).
- **Bearish Signal:** %K crossing below %D in overbought territory (above 80).
- **Alerts:**
- Provides alerts on bullish and bearish crossovers in extreme regions.
- **Integration:**
- Enhances RSI signals by providing additional momentum confirmation.
- When both RSI and Stochastic indicate overbought/oversold conditions, it strengthens the likelihood of a reversal.
4. **Bollinger Bands:**
- **Volatility Visualization:**
- **Methodology:** Plots upper and lower bands based on standard deviations from a moving average (BB Basis).
- **Dynamic Support/Resistance:** Prices touching or exceeding the bands may indicate potential reversals.
- **Integration:**
- Works with RSI and Stochastic to identify overextended price movements.
- Helps in assessing volatility alongside trend and momentum indicators.
5. **Average True Range (ATR):**
- **Volatility Assessment:**
- **Methodology:** Calculates ATR over a 14-period length to measure market volatility.
- **ATR Bands:** Plots upper and lower bands relative to the current price using an ATR multiplier.
- **Integration:**
- Assists in setting stop-loss and take-profit levels based on current volatility.
- Complements Bollinger Bands for a comprehensive volatility analysis.
6. **Information Table:**
- **Real-Time Data Display:**
- Shows current values of MA20, MA50, RSI, Stochastic %K and %D, BB Basis, ATR, and Trend Status.
- **Trend Status Indicator:**
- Displays "Bullish," "Bearish," or "Sideways" based on MA conditions.
- **Integration:**
- Provides a consolidated view for quick decision-making without analyzing individual indicators separately.
7. **Periodic Labels:**
- **Enhanced Visibility:**
- Adds labels every 50 bars showing RSI and Stochastic values.
- **Integration:**
- Helps track momentum changes over time and spot longer-term patterns.
---
### **How the Components Work Together:**
- **Synergistic Analysis:**
- **Trend Confirmation:** MA crossovers establish the primary trend, while RSI and Stochastic confirm momentum within that trend.
- **Volatility Context:** Bollinger Bands and ATR provide context on market volatility, refining entry and exit points suggested by trend and momentum indicators.
- **Signal Strength:** Concurrent signals from multiple indicators increase confidence in trading decisions.
---
### **Usage Guidelines:**
1. **Trend Analysis:**
- **Identify Trend Direction:**
- Observe MA20 and MA50 crossovers.
- Refer to the Trend Status in the information table.
- **Confirm with Momentum Indicators:**
- Ensure RSI and Stochastic support the identified trend.
2. **Entry and Exit Points:**
- **Overbought/Oversold Conditions:**
- Look for RSI and Stochastic reaching extreme levels.
- Consider entering positions when oversold in a bullish trend or overbought in a bearish trend.
- **Bollinger Band Interactions:**
- Use price interactions with Bollinger Bands to identify potential reversal zones.
3. **Risk Management:**
- **ATR-Based Levels:**
- Set stop-loss and take-profit levels using ATR bands to account for current volatility.
- **Adjusting to Volatility:**
- Modify position sizes and targets based on Bollinger Band width and ATR values.
4. **Alerts Setup:**
- **Customize Alert Thresholds:**
- Configure alerts for MA crossovers, RSI levels, and Stochastic crossovers according to your trading strategy.
- **Stay Informed:**
- Use alerts to monitor key events without constant chart observation.
---
### **Customization:**
- **Flexible Parameters:**
- All indicator lengths, thresholds, and settings are adjustable to suit different trading styles and timeframes.
- **Adjustable Visuals:**
- Modify plot colors, line styles, and label positions to enhance chart readability.
---
### **Originality and Value Addition:**
This script differentiates itself by:
- **Integrated Approach:**
- Seamlessly combining multiple indicators to provide a more comprehensive analysis than using each indicator separately.
- **Enhanced Visualization:**
- Utilizing plots, fills, labels, and an information table to present data intuitively.
- **User-Friendly Features:**
- Pre-configured alerts and real-time data displays reduce the need for manual monitoring.
By explaining how each component interacts and contributes to the overall analysis, the script adds substantial value to traders seeking a multi-faceted tool for market analysis.
---
### **Additional Notes:**
- **Learning Resource:**
- The script is well-commented, serving as an educational tool for those learning Pine Script and technical analysis integration.
- **Further Enhancements:**
- Opportunities exist to incorporate additional indicators like MACD or ADX, and to develop advanced alert logic, such as RSI or Stochastic divergences.
---
### **Disclaimer:**
- **Educational Purpose Only:**
- This script is provided for informational purposes and should not be construed as financial advice.
- **Risk Acknowledgment:**
- Trading involves significant risk; past performance is not indicative of future results.
- **Due Diligence:**
- Users should conduct their own analysis and consider consulting a financial professional before making trading decisions.
---
By providing detailed explanations of the methodologies and the synergistic use of multiple indicators, this script aligns with TradingView's guidelines for originality and usefulness. It offers traders a unique tool that enhances market analysis through the thoughtful integration of technical indicators.
Candle Information TableThis indicator provides a table and labels displaying key candle metrics, allowing traders to analyze candle structure and strength. The table updates to show real-time data for the current and previous candles.
Table Positioning: Choose from four preset locations (top_left, top_right, bottom_left, bottom_right) to place the table on the chart.
Customizable Appearance: Adjust background color, text color, and text size for optimal visibility.
Detailed Candle Metrics: View a breakdown of individual candle characteristics, including:
Profile: Identifies if the candle is Bullish or Bearish.
Range: Total high-to-low price range of the candle.
Body Range: Percentage of the candle body relative to its range.
Wick Range: Percentage of the combined wick length relative to the candle range.
Upper & Lower Wick Ranges: The relative size of the wicks above and below the body.
Candle Strength Indicator: Evaluates the candle’s strength (Firm, Weak, or Neutral) based on body-to-wick ratio.
Firm Candle Thresholds: Define a threshold to categorize strong candles based on body-to-range ratio.
Strength Analysis:
A candle is classified as Firm if its body is greater than the wick percentage threshold.
The indicator determines price levels required for the candle to close firmly in the current direction.
Strength can be displayed via a label near the current bar and is color-coded (Green for firm, Red for weak, White for neutral).
Price needed for firm close can also be displayed within a label at or near the current bar.
Real-Time Table:
The table updates in real-time and displays two columns:
Current Candle Metrics
Previous Candle Metrics
This tool can be helpful for traders looking to assess candle structure, wick pressure, and overall price action dynamics with clear visual cues.
[COG] WeatherForecaster🌤️ Just like a weather forecast that adjusts as new data emerges, this TMA Pivot Points Forecaster adapts to evolving market conditions!
Description:
This indicator combines the power of a Triple Moving Average (TMA) with pivot point analysis to identify potential market turning points and trend directions. Like a meteorologist using various atmospheric data to predict weather patterns, this tool analyzes price action through multiple lenses to forecast potential market movements.
Key Features:
- Dynamic TMA Line: Acts as our "atmospheric pressure system," showing the underlying market direction
- Adaptive Pivot Points: Like weather stations, these pivots identify key market levels where the "climate" might change
- Smart Entry Signals: ☀️ and 🌧️ icons appear when conditions align for potential trades
- Timeframe-Adaptive: Automatically adjusts sensitivity across different timeframes
- Customizable Visuals: Adjust colors and styles to match your trading environment
Settings Include:
✓ TMA Length and Slope Sensitivity
✓ Pivot Point Parameters
✓ Visual Customization Options
✓ Toggle Entry Signals
✓ Toggle Pivot Lines
Note: Like weather forecasts that update with new data, this indicator recalculates as market conditions evolve. Past signals may adjust as more price action develops. Always use proper risk management and combine with other analysis tools.
Usage Guide:
The indicator works best when used as part of a complete trading system. Here's how to interpret the signals:
📈 Bullish Conditions:
- TMA Line turns green: Indicates upward momentum
- "Buy above 🌋" level appears: Potential resistance turned support level
- ☀️ Signal: Indicates favorable buying conditions
📉 Bearish Conditions:
- TMA Line turns red: Indicates downward momentum
- "Sell below 🌋" level appears: Potential support turned resistance level
- 🌧️ Signal: Indicates favorable selling conditions
⏺️ Ranging Conditions:
- TMA Line turns yellow: Market in consolidation
- 💤 Signal: Suggests waiting for clearer direction
Best Practices:
1. Higher timeframes (4H, Daily) tend to produce more reliable signals
2. Use the pivot lines as potential entry/exit reference points
3. Adjust the TMA length based on your trading style:
• Shorter lengths (20-30) for more active trading
• Longer lengths (50-60) for trend following
Settings Explained:
TMA Settings:
- TMA Length: Determines the smoothing period (default: 30)
- Slope Threshold: Controls trend sensitivity (default: 0.015)
Pivot Settings:
- Left/Right Bars: Controls pivot point calculation
- Line Length: Adjusts the visual length of pivot lines
- Line Style & Colors: Customize the visual appearance
Disclaimer:
Past performance does not guarantee future results. This indicator, like any technical tool, provides possibilities rather than certainties. Please test thoroughly on your preferred timeframes and markets before using with real capital.
Bull vs Bear CandlesThe Bull vs Bear Candles indicator helps you analyze market sentiment by counting and comparing bullish and bearish candles. It tracks the number of bullish candles and calculates their percentage, then does the same for bearish candles. Based on this data, the indicator determines whether bulls or bears are in control. Additionally, it counts the total number of candles within the selected range, giving you a clearer picture of price action. Use this tool to quickly assess market trends and make more informed trading decisions. 🚀
SMT Divergence [TakingProphets]The SMT (Smart Money Technique) Divergence indicator identifies potential market manipulation and smart money footprints by comparing price action between correlated instruments. It uses a dual-detection system to catch both frequent local SMTs and larger structural SMTs:
• Primary detection uses a shorter lookback period (default 5) to identify common SMT patterns
• Secondary detection uses a longer lookback period (default 8) to catch larger structural SMTs
• Automatically filters significant moves to prevent noise
• Labels are placed clearly outside of price action for better visibility
• Toggle between showing all SMTs or only significant liquidity sweeps
Compare any two instruments to spot divergences in their price action. Particularly useful for:
- Futures vs Spot markets
- Related currency pairs
- Index vs its components
- Any correlated instruments
Default settings are optimized for intraday trading but can be adjusted for different timeframes.
Note: This indicator works best when comparing closely correlated instruments and should be used alongside other technical analysis tools.
RoGr75 Adaptive EMA CrossDescription:
The RoGr75 Adaptive EMA Cross indicator dynamically combines exponential moving averages (EMAs) with ATR-based volatility buffers to generate buy and sell signals across multiple timeframes. This script uses customizable settings for short and long EMAs, ATR, and volume filters, ensuring that signals are both volatility-adjusted and timeframe-aware. It includes features such as adaptive buffers, distinct price level filters for buying and selling, and a reset mechanism to prevent redundant signals. Additionally, the indicator manages signal labels efficiently to keep your chart uncluttered.
Warning:
This script is provided for testing and educational purposes only. It is not intended as financial advice, and past performance does not guarantee future results. Use at your own risk. Always conduct your own research before making any trading decisions.
Higher Timeframe Input: Choose a specific timeframe for the indicator’s calculations; leave blank to use the chart’s current timeframe.
Signal Distance: Sets the distance of signal labels from the candles as a multiple of the ATR.
Exact Value Offset: Adjusts the secondary marker’s position for precision on the chart.
ATR Length: Defines the period used to calculate the Average True Range for volatility measurement.
EMA Lengths: Specify the periods for the short and long exponential moving averages.
Buy/Sell Buffer ATR Multipliers: Dynamically adjust the trigger distance beyond the EMA crossovers based on volatility.
Price Level Filter: Activates a filter so that buy signals only occur above a set price and sell signals only occur below that price (0 disables the filter).
Volume Filter: Optionally requires current volume to exceed a set multiple of a 20-period average for signal confirmation.
Reset Period: Resets the last signal memory after a specified number of bars to avoid suppressing valid repeat signals.
EMA Colors & Line Width: Customize the appearance of the short and long EMAs.
Label Colors & Styles: Choose colors, text colors, and styles for the buy and sell signal labels.
Background Highlighting: Optionally colors the background when a buy or sell signal occurs.
Label Management: Automatically removes the oldest labels when a set maximum is reached to keep the chart clean.
Alerts: Predefined conditions allow you to set TradingView alerts when buy or sell signals are generated.
Warning: This indicator is for testing purposes only and is not financial advice. Use it at your own risk.
Reversal rehersal v1This indicator was designed to identify potential market reversal zones using a combination of RSI thresholds (shooting range/falling range), candlestick patterns, and Fair Value Gaps (FVGs). By combining all these elements into one indicator, it allow for outputting high probability buy/sell signals for use by scalpers on low timeframes like 1-15 mins, for quick but small profits.
Note: that this has been mainly tested on DE40 index on the 1 min timeframe, and need to be adjusted to whichever timeframe and symbol you intend to use. Refer to the backtester feature for checking if this indicator may work for you.
The indicator use RSI ranges from two timeframes to highlight where momentum is building up. During these areas, it will look for certain candlestick patterns (Sweeps as the primary one) and check for existance of fair value gaps to further enhance the hitrate of the signal.
The logic for FVG detection was based on ©pmk07's work with MTF FVG tiny indicator. Several major changes was implemented though and incorporated into this indicator. Among these are:
Automatically adjustments of FVG boxes when mitigated partially and options to extend/cull boxes for performance and clarity.
Backtesting Table (Experimental):
This indicator also features an optional simplified table to review historical theoretical performance of signals, including win rate, profit/loss, and trade statistics. This does not take commision or slippage into consideration.
Usage Notes:
Setup:
1. Add the indicator to your chart.
2. Decide if you want to use Long or Short (or both).
3. If you're scalping on ie. 1 min time frame, make sure to set FVG's to higher timeframes (ie. 5, 15, 60).
4. Enable the 'Show backtest results' and adjust the 'Signals' og 'Take profit' and 'Stop loss' values until you are satisfied with the results.
Use:
1. Setup an alert based on either of the 'BullishShooting range' or 'BearishFalling range' alerts. This will draw your attention to watch for the possible setups.
2. Verify if there's a significant imbalance prior to the signal before taking the trade. Otherwise this may invalidate the setup.
3. Once a signal is shown on the graph (either Green arrow up for buys/Red arrow down for sells) - you should enter a trade with the given 'Take profit' and 'Stop loss' values.
4. (optional) Setup an alert for either the Strong/Weak signals. Which corresponds to when one of the arrows are printed.
Important: This is the way I use it myself, but use at own risk and remember to combine with other indicators for further confluence. Remember this is no crystal ball and I do not guarantee profitable results. The indicator merely show signals with high probability setups for scalping.
Fibonacci Retracement/ExtensionThis Pine Script code implements Fibonacci retracement and extension levels based on a ZigZag pattern. Below is a breakdown of its functionality:
Overview
The script calculates Fibonacci retracement and extension levels by identifying swing highs and swing lows using the ZigZag algorithm. It then plots these levels on the chart for trend analysis.
1. ZigZag Length Input
Defines the ZigZag length, which determines the sensitivity of peak and trough identification.
2. Fibonacci Retracement Calculation
Computes Fibonacci retracement levels using swing highs and lows.
Uses pre-defined Fibonacci ratios (0.236, 0.382, 0.5, 0.618, 0.786, 1.0).
Adjusts line positions dynamically as the trend evolves.
3. Fibonacci Extension Calculation
Identifies Fibonacci extension levels for future price targets.
Uses previous ZigZag patterns to estimate potential price movements.
4. Trend and Fibonacci Configuration
Allows the user to configure Fibonacci trend analysis.
TrendSw: Sets the trend direction (1 = Bullish, -1 = Bearish, 0 = None).
ZigZagleg: Determines the countback value for retracement calculations.
Daily COC Strategy with SHERLOCK WAVESThis indicator implements a unique trading strategy known as the "Daily COC (Candle Over Candle) Strategy" enhanced with "SHERLOCK WAVES" for pattern recognition. It's designed for traders looking to capitalize on specific candlestick formations with a negative risk-reward ratio, with the aim of achieving a high win rate (over 70%) through numerous trading opportunities, despite each trade having a higher risk relative to the reward.
Key Features:
Pattern Recognition: Identifies a setup based on three consecutive candles - a red candle followed by a shooting star, then an entry candle that does not break below the shooting star's low.
Negative Risk/Reward Trade Selection: Focuses on entries where the potential stop loss is greater than the take profit, banking on a high win rate to offset the individual trade's negative risk-reward ratio.
Visual Signals:
Green Label: Marks potential entry points at the high of the candle before the entry.
Green Dot: Indicates a winning trade closure.
Red Dot: Signals a losing trade closure.
Blue Circle: Warns when the current candle is within 2% of breaking above the previous candle's high, suggesting a potential setup is developing.
Green Circle: Plots the take profit level.
Red Circle: Plots the stop loss level.
Dynamic Statistics: A live updating label showing the number of trades, wins, losses, open trades, current account balance, and win percentage.
Customizable Parameters:
Risk % per Trade: Adjust the percentage of your account balance you're willing to risk on each trade.
Initial Account Balance: Set your starting balance for tracking performance.
Start Date for Strategy: Define when the strategy should start calculating from, allowing for backtesting.
Alerts:
An alert condition is set for when a potential trade setup is developing, helping traders prepare for entries.
Usage Tips:
This strategy is predicated on the idea that a high win rate can compensate for the negative risk-reward ratio of individual trades. It might not suit all market conditions or traders' risk profiles.
Use this strategy in conjunction with other analysis methods to validate trade setups.
Note: Always backtest thoroughly before applying to live markets. Consider this tool as part of a broader trading strategy, not a standalone solution. Monitor your win rate and adjust your risk management accordingly to ensure the strategy remains profitable over time.
This description now correctly explains the purpose behind the negative risk-reward ratio in the context of your trading strategy.
Momentum TheoryMomentum Theory is a mechanical pattern-recognition tool for rapid multi-timeframe analysis. It utilizes higher timeframe breakout levels and peak levels to quickly identify multi-timeframe Swing Points that help in setting a bias, formulating a setup, and executing an entry. It takes advantage of the fractal nature of the market by applying one concept for top-down analysis that scalpers, day traders, and swing traders can use.
✅ Rapid Multi-Timeframe Analysis
✅ Mechanical Pattern-Recognition Used to Filter Setups
✅ For Scalpers, Day Traders, and Swing Traders
--- 📷 INDICATOR GALLERY ---
--- ⚡ ANALYSIS FEATURES ---
✔ Multi-Timeframe Map
Displays breakout levels, peak levels, bar flow, and swing points of higher timeframes. Read how the market is moving with a quick glance.
✔ Bar Flow
Displays whether the previous higher timeframe bar closed in breakout, fakeout, inside, or outside. Aids to quickly read market flow.
There are 4 Bar Types: Breakout , Fakeout , Inside , Outside
✔ Momentum Cycles
Displays which part of the Momentum Cycle the timeframe is currently in to anticipate future movement.
Read more information below at Momentum Theory Concept
✔ Quick Analysis
Calculates a percentage bias based on the position of the higher timeframes to set an overall bias. Great for when trying to narrow down a large watchlist to a few pairs.
✔ Market Snapshots
Takes a snapshot of the entire market on all valid trigger bars for future review. Tracks Quick Analysis, Momentum Cycles, and Bar Flow at that exact point in time.
Limited to the last 150 entry bars. Use TradingView Bar Replay to access more history.
--- ⛰️ LEVELS FEATURES ---
✔ Breakout Bias
Shows the location of all the higher timeframe breakout levels and if price is currently bullish or bearish. Breakout bias shows the overall bias of the timeframe.
✔ Peak Bias
Shows which peak level has been triggered of the higher timeframe and if price closed above or below it. Peak bias shows the current momentum of the timeframe.
✔ Trigger Bars
Displays when the lower and middle timeframes are moving in alignment. Spot when the lower timeframes are starting to move together.
⚠️ Trigger bars are an indication of breakout bias alignment at the lowest timeframes. They are NOT signals to be taken blindly without further analysis.
✔ Automatic Range Detection
Detects if the current and higher timeframe is in a range and plots those levels on the chart.
Ranges are created when the following 3 bar scenarios occur:
Inside Bar - Peaks of current bar closed inside previous bar's peaks
Outside Bar - Peaks of current bar are outside previous bar's peaks, but closed inside.
Mirrored Fakeout Bars - 2 opposite facing fakeout bars in a row
✔ Key Levels Highlights
Highlights the relevant levels for each timeframe and if current price is above or below them.
✔ Visual Elements
Highlights key elements like breakout level flips, fakeout bars, intraday session trading times, off session times, and higher timeframe swing points.
--- 🔥 OTHER FEATURES ---
✔ Built-In Alerts
Multiple built-in alert types to notify you of significant events in the market.
✔ Dark and Light Modes
Adjustable theme colors to trade your chart the way you want.
✔ Plug-and-Play
Automatically changes the relevant levels depending on the viewed timeframe. No initial settings to configure. Just add it to your chart and start trading!
H4 - Monthly Setups / Weekly Momentum
H1 -Weekly Setups / Daily Momentum
M15 - Daily Setups / H8 Momentum
M5 -H8 Setups / H2 Momentum
M3 - H4 Setups / H1 Momentum
M1 - H1 Setups / M15 Momentum
--- 💡 MOMENTUM THEORY CONCEPT ---
The best trade setups are found at swing points for 3 reasons:
They are the highest probability point the market will continue pushing.
They provide the best Stop Loss protection.
They offer the greatest Risk-to-Reward.
The goal of trading is to identify when these swing points occur to take the best trade setups.
Every swing point consists of a push towards a peak, a peak formation, and a push away from a peak. There is no way to know how long a push towards or away from a peak will last, but the peak formation can be identified by 2 elements:
A fakeout of a previous peak level
A flip of its last breakout level
We can track the movement of the market by looking at which peak level is triggered relative to its breakout level. How price behaves at the previous peak levels shows where momentum is headed. It continues to build towards a new peak until it fakes out the previous peak level and flips its breakout level, creating a swing point.
Swing points on the higher timeframes show up as multiple swing points on the lower timeframes, but they often won't be moving in sync. When 2 timeframe swing points get in alignment, the market will move smoothly together. You find the lower timeframe swing point the exact same way you find the higher timeframe one.
The market is constantly moving from one swing point to the next in a repeatable cycle. By using higher timeframe breakout levels and peak levels triggered, we can track where we are in this cycle to anticipate its future movement. This is the Momentum Cycle and it repeats itself over and over.
By using the exact same concept, we can identify mechanical alignment patterns on the lower timeframes to create setups that work in every phase of the market cycle. Identify your own patterns or use the suggested ones below. Watch the Live Trading Examples to see how these patterns are used.
✔ Range Setups
✔ Continuation Setups
✔ Reversal Setups
--- 🧩 EXTENDING MOMENTUM THEORY ---
If the best trade setups are found at swing points, then that must mean that every trading strategy that's worth learning must have some type of method to identify that specific move. Since Momentum Theory specializes in identifying the swing point, it can easily fit into most trading strategies by removing discretion and inserting a mechanical process to filter your existing strategy's setups. By using only non-negotiable levels such as Previous Day High / Low, you can convert most discretionary patterns into mechanical ones to hopefully help increase your consistency. My hope is that you can build your own library of mechanical setups that are specific to your strategy that go beyond the ones that I've provided.
--- 📝 HOW TO USE ---
⚠ Click on "Indicators > Invite-Only > Momentum Theory" to add it to your charts.
1) Determine directional bias on the higher timeframe chart.
2) Identify the cycle and setup pattern on the middle timeframe chart and wait for the momentum timeframe to be triggered.
3) Execute entries when the lower timeframes are aligned. Market is fractal and you can pick whatever timeframe you want for entry. Trade as simple or complex as you want.
⚠️ Trigger bars are an indication of breakout bias alignment at the lowest timeframes. They are NOT signals to be taken blindly without further analysis.
--- 🎞️ LIVE TRADING EXAMPLES ---
Market Analysis with Momentum Theory
Day Trading with Mechanical Setups (using Momentum Theory Scanner)
Momentum Theory Scalping Concepts - Asia Session - GOLD
RoGr75 - EMA Cross Signal with Buffer and Variable Distance**Overview**:
This script is designed to identify potential buy and sell signals based on the crossover of two Exponential Moving Averages (EMAs) – a short-term EMA (default: 8 periods) and a long-term EMA (default: 50 periods). To reduce noise and false signals, the script incorporates a customizable buffer percentage, ensuring that signals are only generated when the short-term EMA moves significantly above or below the long-term EMA. Additionally, the script allows users to adjust the distance of the signals from the candles using the Average True Range (ATR) for better visualization.
---
Improvements: Added Buffer Percentage for reduced noise in Signals
### **Key Features**:
1. **EMA Crossover Signals**:
Buy Signal: Generated when the short-term EMA crosses above the long-term EMA.
Sell Signal: Generated when the short-term EMA crosses below the long-term EMA.
2. **Buffer Percentage**:
A user-defined buffer percentage ensures that signals are only triggered when the short-term EMA moves a specified percentage above or below the long-term EMA, reducing false signals.
3. **Customizable Signal Distance**:
Signals are plotted at a user-defined distance from the candles, calculated using the ATR (Average True Range) for dynamic positioning.
4. **Visual Enhancements**:
Buy and sell signals are displayed as labels above or below the candles, with optional background highlighting for better visibility.
5. **Flexible Inputs**:
Users can customize the lengths of the short-term and long-term EMAs, the ATR period, the signal distance multiplier, and the buffer percentage.
6. **Alerts**:
Built-in alert conditions allow users to receive real-time notifications for buy and sell signals.
### **Input Parameters**:
**Short EMA Length**: Period for the short-term EMA (default: 8).
**Long EMA Length**: Period for the long-term EMA (default: 50).
**Signal Distance**: Multiplier for ATR to determine the distance of signals from the candles (default: 2.0).
**ATR Length**: Period for the ATR calculation (default: 14).
**Buffer Percentage**: Percentage buffer for reversal signals to reduce noise (default: 1.0%).
### **Ideal For**:
Traders who use EMA crossovers as part of their strategy.
Those looking to reduce false signals with a buffer mechanism.
Users who prefer dynamic signal positioning based on market volatility (ATR).
### **Notes**:
The buffer percentage ensures that signals are only generated when the price moves significantly, making it suitable for trend-following strategies.
The script is highly customizable, allowing traders to adapt it to different timeframes and instruments.
Micha Stocks Custom WatermarkThis Pine Script v5 indicator adds a customizable watermark to TradingView charts, displaying key stock information while allowing for flexible positioning and formatting.
📌 Features & Functionality:
✅ Custom Positioning:
• Fixed to the top-left corner.
• Adjustable spacing ensures the text is properly aligned.
✅ Displayed Information (Configurable):
• Company Name & Market Cap (Optional: Shows dynamically calculated market cap)
• Stock Ticker & Timeframe
• Industry & Sector
✅ Customization Options:
• Font Size: Huge, Large, Normal, Small
• Text Color & Transparency: Adjustable
• Proper Left Alignment for a clean, structured display
• Vertical Offset Tweaks to move text down for better visibility
✅ Optimized Table Layout:
• Uses table.new() for persistent placement.
• Added an empty row to fine-tune positioning, ensuring the watermark doesn’t overlap key chart areas.
🔧 Use Case:
Designed for traders who want a clear, customizable stock watermark to enhance their charting experience without obstructing price action.
Support and Resistancelookback: This input allows you to specify the number of bars to look back to calculate the support and resistance levels.
support: This is calculated as the lowest low over the specified lookback period.
resistance: This is calculated as the highest high over the specified lookback period.
plot: The support and resistance levels are plotted on the chart with different colors.
bgcolor: This optional feature highlights the support and resistance zones with a semi-transparent background color.
RoGr75 - EMA 50/8 Cross With Buy/Sell Signals RoGr75 - EMA 50/8 Cross With Buy/Sell Signals
---
**Overview:**
This script is designed to generate **Buy** and **Sell** signals based on the crossover and crossunder of two Exponential Moving Averages (EMAs): **EMA 8** (green line) and **EMA 50** (blue line). The signals are plotted at a user-defined distance from the candles, ensuring clear visibility and adaptability to market volatility.
---
**Key Features:**
1. **EMA Cross Signals**:
- A **Buy Signal** is generated when the **EMA 8** crosses above the **EMA 50**.
- A **Sell Signal** is generated when the **EMA 8** crosses below the **EMA 50**.
2. **Variable Signal Distance**:
- The distance of the Buy and Sell signals from the candles is controlled by a **user-defined input** (`signal_distance`).
- The distance is calculated using the **Average True Range (ATR)** to adapt to market volatility.
3. **Customizable Parameters**:
- `signal_distance`: Adjust the distance of the signals from the candles (default: 2.0).
- ATR period: Fixed at 14 but can be modified in the script.
4. **Visual Enhancements**:
- Buy signals are displayed as green labels below the candles.
- Sell signals are displayed as red labels above the candles.
- Optional background highlighting for Buy and Sell signals.
---
**How It Works:**
- The script calculates the **EMA 8** and **EMA 50** and plots them on the chart.
- When a crossover or crossunder occurs, a label is placed at a distance determined by the formula:
- **Buy Signal Position**: `low - (signal_distance * ATR(14))`
- **Sell Signal Position**: `high + (signal_distance * ATR(14))`
- The signals are clearly visible and adapt to the volatility of the asset.
---
**Input Parameters:**
- `signal_distance` (type: input float): Controls the distance of the Buy and Sell signals from the candles. Default value is `2.0`.
---
**Usage:**
1. Add the script to your chart in TradingView.
2. Adjust the `signal_distance` input to set the desired distance of the signals from the candles.
3. Monitor the Buy and Sell signals generated by the script for potential trading opportunities.
---
**Example:**
- If `signal_distance` is set to `2.0`, the Buy signal will appear **2x ATR** below the candle's low, and the Sell signal will appear **2x ATR** above the candle's high.
---
**Customization:**
- Modify the ATR period or replace it with a fixed value for static distance.
- Adjust the colors, styles, and sizes of the labels and EMAs to suit your preferences.
---
**Ideal For:**
- Traders looking for a simple and effective EMA crossover strategy.
- Users who want customizable signal placement for better visibility.
- Those who prefer volatility-adjusted signal distances.
---
**Note:**
This script is for educational and informational purposes only. Always backtest and validate strategies before using them in live trading.
RSI Crossover dipali parikhThis script generates buy and sell signals based on the crossover of the Relative Strength Index (RSI) and the RSI-based Exponential Moving Average (EMA). It also includes an additional condition for both buy and sell signals that the RSI-based EMA must be either above or below 50.
Key Features:
Buy Signal: Triggered when:
The RSI crosses above the RSI-based EMA.
The RSI-based EMA is above 50.
A green "BUY" label will appear below the bar when the buy condition is met.
Sell Signal: Triggered when:
The RSI crosses below the RSI-based EMA.
The RSI-based EMA is below 50.
A red "SELL" label will appear above the bar when the sell condition is met.
Customizable Inputs:
RSI Length: Adjust the period for calculating the RSI (default is 14).
RSI-based EMA Length: Adjust the period for calculating the RSI-based EMA (default is 9).
RSI Threshold: Adjust the threshold (default is 50) for when the RSI-based EMA must be above or below.
Visuals:
The RSI is plotted as a blue line.
The RSI-based EMA is plotted as an orange line.
Buy and sell signals are indicated by green "BUY" and red "SELL" labels.
Alerts:
Alerts can be set for both buy and sell conditions to notify you when either condition is met.
How to Use:
Use this script to identify potential buy and sell opportunities based on the behavior of the RSI relative to its EMA.
The buy condition indicates when the RSI is strengthening above its EMA, and the sell condition signals when the RSI is weakening below its EMA.
Strategy Use:
Ideal for traders looking to leverage RSI momentum for entering and exiting positions.
The RSI-based EMA filter helps smooth out price fluctuations, focusing on stronger signals.
This script is designed for both discretionary and algorithmic traders, offering a simple yet effective method for spotting trend reversals and continuation opportunities using RSI.
High/Low LabelsThis simple Version 6 script labels each bar on the chart with Green labels noting HH for higher highs and HL for higher lows. And Red labels noting LH for lower highs and LL for lower lows. Works on any Trading View chart and any time frame. Any comments or suggestions, please do!
Trend & ADX by Gideon for Indian MarketsThis indicator is designed to help traders **identify strong trends** using the **Kalman Filter** and **ADX** (Average Directional Index). It provides **Buy/Sell signals** based on trend direction and ADX strength. I wanted to create something for Indian markets since there are not much available.
In a nut-shell:
✅ **Buy when the Kalman Filter turns green, and ADX is strong.
❌ **Sell when the Kalman Filter turns red, and ADX is strong.
📌 **Ignore signals if ADX is weak (below threshold).
📊 Use on 5-minute timeframes for intraday trading.
------------------------------------------------------------------------
1. Understanding the Indicator Components**
- **Green Line:** Indicates an **uptrend**.
- **Red Line:** Indicates a **downtrend**.
- The **line color change** signals a potential **trend reversal**.
**ADX Strength Filter**
- The **ADX (orange line)** measures trend strength.
- The **blue horizontal line** marks the **ADX threshold** (default: 20).
- A **Buy/Sell signal is only valid if ADX is above the threshold**, ensuring a strong trend.
**Buy & Sell Signals**
- **Buy Signal (Green Up Arrow)**
- Appears **one candle before** the Kalman line turns green.
- ADX must be **above the threshold** (default: 20).
- Suggests entering a **long position**.
- **Sell Signal (Red Down Arrow)**
- Appears **one candle before** the Kalman line turns red.
- ADX must be **above the threshold** (default: 20).
- Suggests entering a **short position**.
2. Best Settings for 5-Minute Timeframe**
For day trading on the **5-minute chart**, the following settings work best:
- **Kalman Filter Length:** `50`
- **Process Noise (Q):** `0.1`
- **Measurement Noise (R):** `0.01`
- **ADX Length:** `14`
- **ADX Threshold:** `20`
- **(Increase to 25-30 for more reliable signals in volatile markets)**
3. How to Trade with This Indicator**
**Entry Rules**
✅ **Buy Entry**
- Wait for a **green arrow (Buy Signal).
- Kalman Line must **turn green**.
- ADX must be **above the threshold** (strong trend confirmed).
- Enter a **long position** on the next candle.
❌ **Sell Entry**
- Wait for a **red arrow (Sell Signal).
- Kalman Line must **turn red**.
- ADX must be **above the threshold** (strong trend confirmed).
- Enter a **short position** on the next candle.
**Exit & Risk Management**
📌 **Stop Loss**:
- Place stop-loss **below the previous swing low** (for buys) or **above the previous swing high** (for sells).
📌 **Take Profit:
- Use a **Risk:Reward Ratio of 1:2 or 1:3.
- Exit when the **Kalman Filter color changes** (opposite trend signal).
📌 **Avoid Weak Trends**:
- **No trades when ADX is below the threshold** (low trend strength).
4. Additional Tips
- Works best on **liquid assets** like **Bank Nifty, Nifty 50, and large-cap stocks**.
- **Avoid ranging markets** with low ADX values (<20).
- Use alongside **volume analysis and support/resistance levels** for confirmation.
- Experiment with **ADX Threshold (increase for stronger signals, decrease for more trades).**
Best of Luck traders ! 🚀