(MA-EWMA) with ChannelsHamming Windowed Volume-Weighted Bidirectional Momentum-Adaptive Exponential Weighted Moving Average
This script is an advanced financial indicator that calculates a Hamming Windowed Volume-Weighted Bidirectional Momentum-Adaptive Exponential Weighted Moving Average (MA-EWMA). It adapts dynamically to market conditions, adjusting key parameters like lookback period, momentum length, and volatility sensitivity based on price volatility.
Key Components:
Dynamic Adjustments: The indicator adjusts its lookback and momentum length using the ATR (Average True Range), making it more responsive to volatile markets.
Volume Weighting: It incorporates volume data, weighting the moving average based on the volume activity, adding further sensitivity to price movement.
Bidirectional Momentum: It calculates upward and downward momentum separately, using these values to determine the directional weighting of the moving average.
Hamming Window: This technique smooths the price data by applying a Hamming window, which helps to reduce noise in the data and enhances the accuracy of the moving average.
Channels: Instead of plotting a single line, the script creates dynamic channels, providing more context for support and resistance levels based on the market's behavior.
The result is a highly adaptive and sophisticated moving average indicator that responds dynamically to both price momentum and volume trends.
Göstergeler ve stratejiler
VIDYA with Dynamic Length Based on ICPThis script is a Pine Script-based indicator that combines two key concepts: the Instantaneous Cycle Period (ICP) from Dr. John Ehlers and the Variable Index Dynamic Average (VIDYA). Here's an overview of how the script works:
Components:
Instantaneous Cycle Period (ICP):
This part of the indicator uses Dr. John Ehlers' approach to detect the market cycle length dynamically. It calculates the phase of price movement by computing the in-phase and quadrature components of the price detrended over a specific period.
The ICP helps adjust the smoothing length dynamically, giving a real-time estimate of the dominant cycle in price action. The script uses a phase calculation, adjusts it for cycle dynamics, and smoothes it for more reliable readings.
VIDYA (Variable Index Dynamic Average):
VIDYA is a moving average that dynamically adjusts its smoothing length based on the market conditions, in this case, using the RSI (Relative Strength Index) as a weight.
The length of VIDYA is determined by the dynamically calculated ICP, allowing it to adapt to changing market cycles.
This indicator performs several recursive layers of VIDYA smoothing (applying VIDYA multiple times) to provide a more refined result.
Key Features:
Dynamic Length: The length for the VIDYA calculation is derived from the smoothed ICP value, meaning that the smoothing adapts to the detected cycle length in real-time, making the indicator more responsive to market conditions.
Multiple VIDYA Layers: The script applies multiple layers of VIDYA smoothing (up to 5 iterations), further refining the output to smooth out market noise while maintaining responsiveness.
Plotting: The final smoothed VIDYA value and the smoothed ICP length are plotted. Additionally, overbought (70) and oversold (30) horizontal lines are provided for visual reference.
Application:
This indicator helps identify trends, smooths out price data, and adapts dynamically to market cycles. It's useful for detecting shifts in momentum and trends, and traders can use it to identify overbought or oversold conditions based on dynamically calculated thresholds.
Optimized WaveletsThe script, High-Resolution Volume-Price Pressure Indicator with Wavelets, utilizes wavelet transforms and high-resolution data to analyze market pressure based on volume and price dynamics. The approach combines volume data from smaller timeframes (1 second) with non-linear transformation techniques to generate a refined view of market conditions. Here’s a detailed breakdown of how it works:
Key Components:
Wavelet Transform:
A wavelet function is applied to the price and volume data to capture patterns over a set time period. This technique helps identify underlying structures in the data that might be missed with traditional moving averages.
High-Resolution Data:
The indicator fetches 1-second high-resolution data for price movements and volume. This allows the strategy to capture granular price and volume changes, crucial for short-term trading decisions.
Normalized Difference:
The script calculates the normalized difference in price and volume data. By comparing changes over the selected length, it standardizes these movements to help detect sudden shifts in market pressure.
Sigmoid Transformation:
After combining the price and volume wavelet data, a sigmoid function is applied to smooth out the resulting values. This non-linear transformation helps highlight significant moves while filtering out minor fluctuations.
Volume-Price Pressure:
The up and down volume differences, together with price movements, are combined to create a "Volume-Price Pressure Score." The final indicator reflects the pressure exerted on the market by both buyers and sellers.
Indicator Plot:
The final transformed score is plotted, showing how price and volume dynamics, combined through wavelet transformation, interact. The indicator can be used to identify potential market turning points or pressure buildups based on volume and price movement patterns.
This approach is well-suited for traders looking for advanced signal detection based on high-frequency data and can provide insight into areas where typical indicators may lag or overlook short-term volatility.
Sweep + MSS# Sweep + MSS Indicator
This indicator identifies market sweeps and Market Structure Shifts (MSS) to help traders recognize potential trend changes and market manipulations.
How it works:
1. Sweep Detection:
- Identifies when price briefly moves beyond a recent high/low (pivot point) and then reverses.
- Bullish sweep: Price drops below a recent low, then closes above it.
- Bearish sweep: Price rises above a recent high, then closes below it.
2. Market Structure Shift (MSS):
- Occurs when price action invalidates a previous sweep level.
- Bullish MSS: Price closes above a bearish sweep level.
- Bearish MSS: Price closes below a bullish sweep level.
Key Features:
- Customizable pivot lookback length for sweep detection
- Minimum bar requirement after a sweep before MSS can trigger
- One MSS per sweep level to avoid multiple signals
- Visual representation with lines connecting sweep points to MSS triggers
- Emoji labels for easy identification (🐂-MSS for bullish, 🐻-MSS for bearish)
Logic Behind MSS:
The MSS aims to identify potential trend changes by recognizing when the market invalidates a previous sweep level. This often indicates a shift in market structure, suggesting that the previous trend may be weakening or reversing.
- A bullish MSS occurs when the price closes above a bearish sweep level, potentially signaling a shift from bearish to bullish sentiment.
- A bearish MSS occurs when the price closes below a bullish sweep level, potentially signaling a shift from bullish to bearish sentiment.
By requiring a minimum number of bars between the sweep and the MSS, the indicator helps filter out noise and focuses on more significant structural changes in the market.
This indicator can be a valuable tool for traders looking to identify potential trend changes and entry/exit points based on market structure analysis.
Merged Efficiency & Time-Based OscillatorThis indicator is a fusion of two key trading concepts: the Efficiency Ratio and the Time-to-Change RSI, designed to give a comprehensive analysis of market movement and trend sustainability.
Efficiency Ratio (ER): This part of the indicator measures how effectively the market is moving in a certain direction by comparing net price change to the total price movement over a set period. The ratio helps identify whether the market is trending smoothly or experiencing choppy, inefficient moves. A higher ratio indicates more efficient, directional movement, while a lower ratio suggests market noise or indecision.
Time-to-Change RSI: This section tracks both the duration and value of upward and downward price movements. It calculates how much time is spent in upward or downward trends (gain time vs. loss time) and the size of these price changes. The Time-to-Change RSI and the Value RSI provide insight into how long and how strongly the market has been moving in one direction, helping traders gauge potential shifts in momentum.
By merging these two indicators, the resulting oscillator offers a more dynamic signal that highlights both market efficiency and momentum. The combined output shows how efficiently the market is trending while also taking into account the time spent in these trends and the relative strength of price changes. This allows traders to detect possible trend reversals, overbought/oversold conditions, and shifts in market momentum.
The indicator plots the merged signal, as well as overbought and oversold thresholds.
Oversold and overbought levels seem to be really effective
UtilityLibrary "Utility"
A utility library for various trading tools such as signal generation, custom indicators, and multi-condition crossovers.
multiCrossover(source1, source2, threshold1, threshold2)
multiCrossover
@description Detects multi-condition crossovers between two sources with threshold filters.
Parameters:
source1 (float) : The first data series to compare.
source2 (float) : The second data series to compare.
threshold1 (float) : A value that source1 must exceed to trigger the crossover.
threshold2 (float) : A value that source2 must exceed to trigger the crossunder.
Returns: A tuple: (crossUp, crossDown) where crossUp is a boolean for upward crossover, and crossDown is for downward crossover.
macdCustom(source, fastLength, slowLength, signalLength, macdThresh)
macdCustom
@description Calculates custom MACD signals based on thresholds.
Parameters:
source (float) : The price data or input series.
fastLength (simple int) : The length of the fast EMA.
slowLength (simple int) : The length of the slow EMA.
signalLength (simple int) : The signal line length.
macdThresh (float) : A threshold for the MACD line to confirm buy/sell signals.
Returns: A tuple: (macdBuySignal, macdSellSignal) where macdBuySignal is true when MACD crosses above, and macdSellSignal is true when MACD crosses below the signal line.
combinedMacdRsi(source, fastLength, slowLength, signalLength, rsiLength, macdThresh, rsiThresh)
combinedMacdRsi
@description Generates combined signals from MACD and RSI indicators.
Parameters:
source (float) : The price data or input series.
fastLength (simple int) : The length of the fast EMA for MACD.
slowLength (simple int) : The length of the slow EMA for MACD.
signalLength (simple int) : The signal line length for MACD.
rsiLength (simple int) : The length of the RSI calculation.
macdThresh (float) : The threshold for MACD signals.
rsiThresh (float) : The threshold for RSI signals.
Returns: A tuple: (buySignal, sellSignal) where buySignal is generated when MACD is positive and RSI is below the threshold, and sellSignal when MACD is negative and RSI is above the threshold.
movingAverageCrossover(source, shortLength, longLength)
movingAverageCrossover
@description Detects crossovers between short-term and long-term moving averages.
Parameters:
source (float) : The price data or input series.
shortLength (int) : The length of the short-term moving average.
longLength (int) : The length of the long-term moving average.
Returns: A tuple: (crossUp, crossDown) where crossUp is true when the short-term MA crosses above the long-term MA, and crossDown when the reverse occurs.
BTC ETF Flow Trading SignalsTracks large money flows (500M+) across major Bitcoin ETFs (IBIT, BTCO, FBTC, ARKB, BITB)
Generates long/short signals based on institutional money movement
Shows flow trends and strength of movements
This script provides a foundation for comparing ETF inflows and Bitcoin price. The effectiveness of the analysis depends on the quality of the data and your interpretation of the results. Key levels of 500M and 350M Inflow/Outflow Enjoy
Collaboration with Vivid Vibrations
Enjoy & improve!
Highest Single-Day Percentage Change (Close to Close)This Pine Script is designed to calculate and display the largest percentage change in stock price between consecutive days' closing prices. Here's a high-level breakdown of what the script does:
Daily Percentage Change Calculation:
It calculates how much the stock price changed from the previous day's close to the current day's close. The change is expressed as a percentage of the previous day's closing price.
Tracking the Highest Change:
The script keeps track of the largest percentage increase or decrease it has encountered in the dataset (from previous close to current close). It updates the value if a new day exceeds the current largest recorded percentage change.
Visual Representation:
The daily percentage changes are plotted as a line graph, allowing you to see how the stock's price fluctuates from one day to the next.
A separate line is drawn to represent the highest percentage change detected so far.
If a day's price change matches the highest recorded change, a label appears on the chart to highlight that specific point.
Dynamic Updates:
The script is dynamic, meaning it continually updates as new data comes in. So, as new days are added to the chart, the script checks if the percentage change exceeds the previously highest recorded value.
Why This Is Useful:
For traders and investors: It provides a quick way to identify which day saw the most significant price movement, helping to spot major market events or volatility.
For historical analysis: You can quickly find the most extreme single-day price swings in a stock's historical data, which might be useful for understanding past market behavior or making predictions about future moves.
Saturn Retrograde PeriodsSaturn Retrograde Periods Visualizer for TradingView
This Pine Script visualizes all Saturn retrograde periods since 2009, including the current retrograde ending on November 15, 2024. The script overlays yellow boxes on your TradingView chart to highlight the exact periods of Saturn retrograde. It's a great tool for astrologically-inclined traders or those interested in market timing based on astrological events.
Key Features:
Full Historical Coverage: Displays Saturn retrograde periods from 2009 (the inception of Bitcoin) to the current retrograde ending in November 2024.
Customizable Appearance: You can easily adjust the color and opacity of the boxes directly from the script's settings window, making it flexible for various chart styles.
Visual Clarity: The boxes span the full vertical range of your chart, ensuring the retrograde periods are clearly visible over any asset, timeframe, or price action.
How to Use:
Add the script to your TradingView chart.
Adjust the color and opacity in the settings to suit your preferences.
View all relevant Saturn retrograde periods and analyze how these astrological events may align with price movements in your selected asset.
This script is perfect for traders and analysts who want to combine astrology with financial market analysis!
scripted by chat.gpt - version 1.0
High Volume Strikes - NovaTheMachineConverts your inputs into Horizontal Lines on a chart, Creates a table to indicate all known levels input & tell you how far away you are from each level.
This is a quality of life indicator, not a signal, or trend indicator.
In order for the indicator to plot the levels correctly, please use the following format (Where '$TICKER' is replaced by your instrument of choice such as ' AMEX:SPY ', and 'value' is a positive number with up to 2 decimal places, such as '123.45';
"$TICKER: Golden Strike:value, HVOL Upper:value, HVOL Lower:value, MVC:value, MVP:value, CVR Upper:value, CVR Lower:value, PVR Upper:value, PVR Lower:value, Block 1:value, Block 2:value, Block 3:value, Block 4:value, Block 5:value, Block 6:value"
These Key Levels described below, are values You must determine yourself via Options Chain Volume Analysis
MVC: Most Volume Call - Single Strike with Highest Volume Traded on Call Side
MVP: Most Volume Put - Single Strike with Highest Volume Traded on Put Side
Golden Strike: When MVC = MVP, otherwise = The Sum of (MVP + MVC)/2
HVOL Range: The Range in which Strikes are traded most on both Call & Put sides
PVR: The Total useful Range that is un-interrupted on both Call & Put sides
CVR: The Range of Strikes that is un-interrupted on both Call & Puts sides for the Next Expiry
Blocks: Individual Blocks that may be of significant Volume, on either Call or Put sides, outside the range of CVR & PVR
[EmreKb] Combined CandlesThis script combines multiple candlestick patterns into a single, unified candle when they are of the same type (bullish or bearish). Instead of displaying every individual candle on the chart, it merges consecutive candles based on their direction to simplify the visual analysis of price movements.
What It Does:
Combines Candles: If two or more consecutive candles are bullish (close price higher than open price) or bearish (close price lower than open price), the script merges them into a single candle, adjusting the high, low, and close values accordingly.
Displays Merged Candles: The merged candles are drawn on the chart. A green bar represents a bullish period, while a red bar represents a bearish period.
How It Works:
The script tracks whether each candle is bullish or bearish.
If a candle is the same type as the previous one, it updates the combined candle (adjusting the high, low, and close values).
When the type changes (from bullish to bearish or vice versa), it finalizes the current combined candle and starts a new one.
The merged candles are displayed on the chart at the end of the data series.
Use Case:
This script simplifies price action by grouping similar candles together, making it easier to identify trends and spot periods of sustained buying or selling pressure. It can help traders focus on the overall direction of the market rather than being distracted by small fluctuations between individual candles.
Wave Anchor IndicatorThe Wave Anchor Indicator is designed to mark the crossing of overbought and oversold levels of higher time frame momentum waves, based on the VuManChu Cipher B+Divergences Wave Trend Indicator. This tool is inspired by the TP Mint trading strategy, which relies heavily on the momentum waves of Market Cipher B or VuManChu Cipher B for identifying optimal entry and exit points.
Key Concept: Anchored Waves
In the TP Mint strategy, momentum waves in overbought (above 60) or oversold (below -60) conditions on higher time frames are considered "anchored." These anchored waves provide strong signals for entries and take-profit points when viewed on lower time frames. The Wave Anchor Indicator focuses on these anchor conditions to help traders make informed decisions by seeing higher time frame anchor states directly on the entry time frame chart.
How It Works
Labeling Signals:
- On lower time frames, such as the 15-minute chart, the indicator shows labels when higher
time frame momentum waves (1-hour and 4-hour) cross the overbought or oversold levels.
- Labels above price indicate overbought conditions, with green labels when the wave crosses
upward and red labels when crossing downward.
- Labels below price signal oversold conditions, with red for a downward cross and green for an
upward cross.
- Each label displays the time frame of the crossing momentum wave, providing context for
traders at a glance.
Time Frame Pairings:
- On the 15-minute time frame, the indicator tracks anchor conditions from the 1-hour and 4-
hour time frames.
- On the 1-hour chart, it monitors 4-hour and daily time frame anchor conditions.
Customization and Alerts
Flexible Display Options : Users can choose to display none, one, or both of the grouped higher time frame labels, depending on their strategy and preferences.
Alerts : The indicator also allows for custom alerts when a label appears, helping traders stay on top of key market movements without constantly monitoring the chart.
Use Cases
This indicator is ideal for traders who use momentum-based strategies across multiple time frames. It simplifies the process of identifying key entry and exit points by focusing on the anchor conditions from higher time frames, making it easier to execute the TP Mint strategy or similar methods.
Thank you to VuManChu and LazyBear for mamking the momentum wave code open source and allowing it’s use in this indicator.
Time Vertical LinesVLines - Time-Based Vertical Lines with Zones
This PineScript indicator creates vertical time lines with customizable zones between them. Perfect for marking trading sessions, key market times, or any time-based analysis.
Key Features:
- 5 configurable time lines
- 3 customizable zones (between lines 1-2, 2-3, and 4-5)
- Each zone features:
- Background shading
- Horizontal lines at high/low points
- Independent color controls
- Adjustable line styles and widths
- Time zone offset adjustment
- Option to show/hide historical lines
Installation Instructions:
1. Open TradingView's Pine Script Editor
2. Create a new script
3. Copy and paste the entire code
4. Add to Chart
Setup Guide:
1. Time Zone Adjustment:
- Find the "Time Zone Offset (Hours)" setting
- Adjust if lines appear at wrong times
- Example: If lines appear 3 hours early, set offset to 3
2. Basic Time Lines (1-3):
- Each line has settings for:
- Hour (0-23)
- Minute (0-59)
- Color
- Show/Hide toggle
3. Session Lines (4-5):
- Special lines typically used for session marking
- Same settings as basic lines
- Default red color to distinguish from other lines
4. Zone Customization:
Three separate zones are available:
- Zone 1-2 (between first and second lines)
- Zone 2-3 (between second and third lines)
- Zone 4-5 (between fourth and fifth lines)
Each zone can be customized with:
- Background color and transparency
- Horizontal line color
- Line style (Solid/Dashed/Dotted)
- Line width
- Individual show/hide toggles for zone and lines
5. Additional Settings:
- "Show Historical Lines" - toggle to show/hide lines on previous days
- Global line style and width settings for vertical lines
Suggested Uses:
1. Mark pre-market, market, and post-market sessions
2. Highlight specific trading windows
3. Track time-based support/resistance levels
4. Monitor price ranges during specific time periods
Tips:
- Start by setting just one zone to get familiar with the controls
- Use different colors for different sessions/time periods
- Adjust transparency to maintain chart visibility
- Use the show/hide toggles to focus on specific times
- The horizontal lines automatically mark the high/low range between time points
Sector Trend MapThe Sector Trend Map is a powerful tool designed to provide a sentiment heatmap for major market sectors. This indicator tracks the average trend direction across 11 key sectors, including Technology, Financials, Healthcare, Energy, and more. By monitoring each sector's sentiment, the Sector Trend Map helps traders quickly assess whether sectors are bullish or bearish, allowing for better-informed trading decisions.
This indicator plots a visual heatmap showing the sentiment strength for each sector on a scale from 0 to 100. The colors range from green for bullish sentiment to red for bearish sentiment. Additionally, it displays a real-time percentage of sectors that are bullish and bearish in a dynamic table located in the bottom right corner of the chart.
This indicator simplifies sector sentiment analysis by providing clear visual cues, making it easy to stay on top of market dynamics and make data-driven trading decisions.
Key Features:
Sentiment Heatmap: Displays a heatmap of sector sentiment ranging from bullish (green) to bearish (red).
Bullish/Bearish Percentages: A dynamic table showing the percentage of sectors that are bullish or bearish.
Tracks 11 Key Sectors: Monitors sectors such as Technology, Financials, Energy, Healthcare, and more.
Simple and Clear Visuals: Provides easy-to-read color coding for quick decision-making.
Customizable Moving Averages: Select between SMA, EMA, WMA, or DEMA for the trend calculation.
Market Hours Sensitivity: Indicator operates during regular market hours, ensuring relevance for day traders and active traders.
Overlay Sentiment Colors on Candles:
This feature allows you to overlay the sentiment (green for bullish, red for bearish) directly onto the price chart candles. You can enable or disable this option based on your preference.
How to Use the Sector Trend Map:
The heatmap is divided into different sectors. Each sector is colored based on its current sentiment:
🟢 Green (Bullish sentiment)
🔴 Red (Bearish sentiment)
Sentiment is calculated on a scale from 0 to 100, with 50 being the neutral point. Sectors above 50 are bullish, while sectors below 50 are bearish.
Bullish/Bearish Percentage Table:
A table is displayed in the bottom right corner of the screen, showing the percentage of sectors that are currently bullish and bearish.
Bullish %: The percentage of sectors above 50 on the sentiment scale.
Bearish %: The percentage of sectors below 50 on the sentiment scale.
Market Hours Activity:
The indicator only calculates and displays data during market hours (09:30 AM to 4:00 PM EST), ensuring it stays relevant to intraday trading. Outside of market hours, the indicator remains inactive.
Best Used For:
Intraday Traders: Get real-time sector sentiment during market hours and make better trading decisions based on sector strength or weakness.
Swing Traders: Monitor sector trends to spot shifts in market sentiment over time.
Sector Rotation Strategies: Use the indicator to identify which sectors are gaining or losing strength, aiding in sector rotation strategies.
Practical Example:
If 7 out of the 11 sectors display a bullish sentiment, the table will show 63.64% as bullish and 36.36% as bearish. The heatmap will show green sectors for those above the 50 sentiment threshold, allowing you to visually spot the sectors leading the market.
Personal Nested Fractal IndicatorThis script implements a nested fractal-based indicator that identifies potential buy and sell signals by analyzing fractal patterns in price action. It calculates larger and smaller fractal highs and lows and uses these patterns to confirm entry points. When smaller fractals appear within the range of larger fractals, the script generates buy or sell signals, which are plotted on the chart as visual markers. The logic is based on detecting price turning points through fractal analysis without any further complexity or additional filters.
Daily Volume Metrics BoxDaily Volume Metrics Box
A powerful tool for monitoring intraday trading metrics in real-time. This indicator provides a clean, customizable display of key market statistics that reset daily.
🔑 Key Features:
- Daily Volume Distribution - Track positive and negative volume separately
- Net Volume Analysis - Monitor the balance of buying vs selling volume
- Average Candle Size - Dynamic calculation of recent price movement magnitude
- Flexible Positioning - Place the metrics box in any corner of your chart
- Auto-Reset - All metrics automatically reset at the start of each trading day
- Current Date Display - Always know which day's data you're viewing
📊 Metrics Explained:
1. Avg Size: Average candle size over your specified lookback period
2. Pos Vol: Accumulated volume from up-moves during the current day
3. Neg Vol: Accumulated volume from down-moves during the current day
4. Net Vol: The difference between positive and negative volume (Pos Vol - Neg Vol)
⚙️ Customization Options:
- Number of candles for average (1-∞)
- Background color and transparency
- Text color
- Box position (Top/Bottom, Left/Right)
- Distance from chart edge (1-5 bars)
📌 Usage Tips:
- Use larger lookback periods for more stable average candle size
- Position the box where it won't interfere with your chart analysis
- Monitor net volume for potential trend strength confirmation
- Compare positive and negative volume for insight into price momentum
🔄 Daily Reset:
All volume metrics reset at the start of each trading day, ensuring you're always looking at current day data only.
Perfect for day traders, swing traders, and anyone who wants to monitor intraday market dynamics with clean, organized metrics.
Note: This indicator works best on intraday timeframes where volume data is available.
Gap and Candle Pattern with Wick ConditionThis script is designed to identify specific gap and candlestick patterns, incorporating wick conditions for enhanced accuracy. It detects gap up and gap down movements between candles, then looks for shooting star (bearish reversal) or hammer (bullish reversal) formations. Additionally, the script applies a condition where the wicks of these patterns must be longer than the previous candle’s range. When both the gap and wick criteria are met, the script generates signals for potential reversals in the market
Fluid Dynamics-Inspired Indicator with Bidirectional ScalingThe "Enhanced Fluid Dynamics-Inspired Indicator with Bidirectional Scaling" is a sophisticated technical analysis tool that draws inspiration from the principles of fluid dynamics to measure both upward and downward price movements, while also incorporating volatility and momentum into its calculations. The indicator aims to provide traders with a clear understanding of market dynamics by analyzing "streamflow" (price and volume movements) in both directions, enhanced with adaptive scaling techniques.
Key Features:
Bidirectional Price Momentum:
The indicator separately calculates positive and negative momentum using the price's rate of change. This allows for independent analysis of upward and downward price movements, providing a balanced view of the market's direction.
Streamflow Model:
The "streamflow" is calculated by multiplying volume flow with price momentum. This approach treats the market as a fluid system, where the momentum and volume of trades influence the flow of prices in both upward and downward directions. Streamflow is calculated independently for each direction.
Adaptive Volatility Scaling:
Volatility is dynamically calculated using the Average True Range (ATR) and is weighted to adjust to varying market conditions. An adaptive logarithmic scaling factor is applied to the volatility to capture the dynamic nature of market environments.
DRMA (Displaced Rolling Moving Average):
The indicator uses the DRMA function to smooth out price and volume data, improving the accuracy of its measurements. This allows the indicator to capture longer-term trends while still being responsive to short-term fluctuations.
Non-Linear Scaling and Normalization:
To ensure that the output values are within a usable range, the indicator employs a sigmoid-based non-linear scaling function. This helps normalize the composite output, making it easier to interpret overbought and oversold conditions.
Visual Representation:
The indicator plots two separate lines for upward and downward market movements, making it easy to distinguish between bullish and bearish trends. Background colors are also used to highlight periods of strong upward or downward momentum, as well as high volatility.
Overbought/Oversold Conditions:
Upper and lower thresholds are used to signal potential overbought and oversold conditions. Alerts are triggered when the market moves into extreme levels, helping traders identify potential entry and exit points.
Usage:
This indicator is designed for traders who are looking for a more nuanced and dynamic tool to measure both bullish and bearish trends. By using bidirectional scaling, it provides clearer signals for market direction, while adaptive volatility and momentum adjustments ensure the indicator responds to different market environments. The alert conditions make it especially useful for timing trades in highly volatile conditions or when price movements reach extreme levels.
Fractal & Entropy Market Dynamics with Mexican Hat WaveletThis indicator combines fractal analysis, entropy, and wavelet theory to model market dynamics using a customized approach. It integrates advanced mathematical techniques to assess the complexity and structure of price action, while also incorporating volume and price volatility.
Key Concepts and Features:
Volume-Weighted Price:
The script calculates a volume-adjusted price using a moving average of volume to give more weight to periods with higher volume. This allows the indicator to account for the impact of trading volume on price movements, enhancing its sensitivity to significant price shifts.
Mexican Hat Wavelet Approximation:
The script employs the Mexican Hat Wavelet, a mathematical tool that approximates price movements based on the Laplacian of the price series. This helps capture localized oscillations in price, acting as a filter to highlight certain price dynamics over the specified length. This wavelet is commonly used to identify key inflection points and trends in financial data.
Fractal Dimension Calculation:
The fractal dimension is calculated to quantify the market's complexity. It measures how price moves between intervals, with higher values indicating chaotic or more volatile market behavior. This dimension captures the self-similarity in price movements across different time frames, a key feature of fractals.
Shannon Entropy Calculation:
Shannon Entropy is used to measure the randomness or uncertainty in the price action. It calculates the degree of unpredictability based on the price changes, providing insight into the market's informational efficiency. Higher entropy indicates more randomness, while lower entropy suggests more predictable trends.
Custom Normalization:
The script includes a custom normalization function that processes the composite score (derived from fractal dimension and entropy). This normalization helps scale the values into a consistent range, making it easier to interpret the output. The smoothing factor and RSI-based approach ensure that the normalized value reacts smoothly to the changes in market dynamics.
Composite Score:
The composite score is a weighted combination of the fractal dimension and entropy. This score aims to provide a holistic view of the market by combining the structural complexity (fractal) and randomness (entropy) into one unified metric.
Plotting and Visuals:
The indicator plots the normalized composite score on a scale where a baseline of 50 is provided for reference. The resulting plot helps traders visualize market dynamics, with the score fluctuating based on changes in the market's fractal dimension and entropy. A score above or below the baseline of 50 indicates potential market shifts.
Use Case:
The "Enhanced Fractal and Entropy Market Dynamics with Mexican Hat Wavelet" is useful for traders looking to identify market conditions where there is a balance between price structure and randomness. By integrating wavelets, fractals, and entropy, the indicator can provide insights into market complexity, helping traders recognize potential trend reversals, periods of consolidation, or increased volatility. This can be particularly effective for those employing swing trading or trend-following strategies
Macros ICT KillZones [TradingFinder] Times & Price Trading Setup🔵 Introduction
ICT Macros, developed by Michael Huddleston, also known as ICT (Inner Circle Trader), is a powerful trading tool designed to help traders identify the best trading opportunities during key time intervals like the London and New York trading sessions.
For traders aiming to capitalize on market volatility, liquidity shifts, and Fair Value Gaps (FVG), understanding and using these critical time zones can significantly improve trading outcomes.
In today’s highly competitive financial markets, identifying the moments when the market is seeking buy-side or sell-side liquidity, or filling price imbalances, is essential for maximizing profitability.
The ICT Macros indicator is built on the renowned ICT time and price theory, which enables traders to track and leverage key market dynamics such as breaks of highs and lows, imbalances, and liquidity hunts.
This indicator automatically detects crucial market times and optimizes strategies for traders by highlighting the specific moments when price movements are most likely to occur. A standout feature of ICT Macros is its automatic adjustment for Daylight Saving Time (DST), ensuring that traders remain synced with the correct session times.
This means you can rely on accurate market timing without the need for manual updates, allowing you to focus on capturing profitable trades during critical timeframes.
🔵 How to Use
The ICT Macros indicator helps you capitalize on trading opportunities during key market moments, particularly when the market is breaking highs or lows, filling Fair Value Gaps (FVG), or addressing imbalances. This indicator is particularly beneficial for traders who seek to identify liquidity, market volatility, and price imbalances.
🟣 Sessions
London Sessions
London Macro 1 :
UTC Time : 06:33 to 07:00
New York Time : 02:33 to 03:00
London Macro 2 :
UTC Time : 08:03 to 08:30
New York Time : 04:03 to 04:30
New York Sessions
New York Macro AM 1 :
UTC Time : 12:50 to 13:10
New York Time : 08:50 to 09:10
New York Macro AM 2 :
UTC Time : 13:50 to 14:10
New York Time : 09:50 to 10:10
New York Macro AM 3 :
UTC Time : 14:50 to 15:10
New York Time : 10:50 to 11:10
New York Lunch Macro :
UTC Time : 15:50 to 16:10
New York Time : 11:50 to 12:10
New York PM Macro :
UTC Time : 17:10 to 17:40
New York Time : 13:10 to 13:40
New York Last Hour Macro :
UTC Time : 19:15 to 19:45
New York Time : 15:15 to 15:45
These time intervals adjust automatically based on Daylight Saving Time (DST), helping traders to enter or exit trades during key market moments when price volatility is high.
Below are the main applications of this tool and how to incorporate it into your trading strategies :
🟣 Combining ICT Macros with Trading Strategies
The ICT Macros indicator can easily be used in conjunction with various trading strategies. Two well-known strategies that can be combined with this indicator include:
ICT 2022 Trading Model : This model is designed based on identifying market liquidity, structural price changes, and Fair Value Gaps (FVG). By using ICT Macros, you can identify the key time intervals when the market is seeking liquidity, filling imbalances, or breaking through important highs and lows, allowing you to enter or exit trades at the right moment.
Silver Bullet Strategy : This strategy, which is built around liquidity hunting and rapid price movements, can work more accurately with the help of ICT Macros. The indicator pinpoints precise liquidity times, helping traders take advantage of market shifts caused by filling Fair Value Gaps or correcting imbalances.
🟣 Capitalizing on Price Volatility During Key Times
Large market algorithms often seek liquidity or fill Fair Value Gaps (FVG) during the intervals marked by ICT Macros. These periods are when price volatility increases, and traders can use these moments to enter or exit trades.
For example, if sell-side liquidity is drained and the market fills an imbalance, the price might move toward buy-side liquidity. By identifying these moments, which may also involve breaking a previous high or low, you can leverage rapid market fluctuations to your advantage.
🟣 Identifying Liquidity and Price Imbalances
One of the important uses of ICT Macros is identifying points where the market is seeking liquidity and correcting imbalances. You can determine high or low liquidity levels in the market before each ICT Macro, as well as Fair Value Gaps (FVG) and price imbalances that need to be filled, using them to adjust your trading strategy. This capability allows you to manage trades based on liquidity shifts or imbalance corrections without needing a bias toward a specific direction.
🔵 Settings
The ICT Macros indicator offers various customization options, allowing users to tailor it to their specific needs. Below are the main settings:
Time Zone Mode : You can select one of the following options to define how time is displayed:
UTC : For traders who need to work with Universal Time.
Session Local Time : The local time corresponding to the London or New York markets.
Your Time Zone : You can specify your own time zone (e.g., "UTC-4:00").
Your Time Zone : If you choose "Your Time Zone," you can set your specific time zone. By default, this is set to UTC-4:00.
Show Range Time : This option allows you to display the time range of each session on the chart. If enabled, the exact start and end times of each interval are shown.
Show or Hide Time Ranges : Toggle on/off for visual clarity depending on user preference.
Custom Colors : Set distinct colors for each session, allowing users to personalize their chart based on their trading style.These settings allow you to adjust the key time intervals of each trading session to your preference and customize the time format according to your own needs.
🔵 Conclusion
The ICT Macros indicator is a powerful tool for traders, helping them to identify key time intervals where the market seeks liquidity or fills Fair Value Gaps (FVG), corrects imbalances, and breaks highs or lows. This tool is especially valuable for traders using liquidity-based strategies such as ICT 2022 or Silver Bullet.
One of the key features of this indicator is its support for Daylight Saving Time (DST), ensuring you are always in sync with the correct trading session timings without manual adjustments. This is particularly beneficial for traders operating across different time zones.
With ICT Macros, you can capitalize on crucial market opportunities during sensitive times, take advantage of imbalances, and enhance your trading strategies based on market volatility, liquidity shifts, and Fair Value Gaps.
DualTrend [CHE]DualTrend Indicator for TradingView
Overview
Introducing the DualTrend indicator, a powerful tool designed to enhance your trading strategies on TradingView. Inspired by the renowned HalfTrend Indicator developed by everget, DualTrend combines dual amplitude settings to provide clearer trend signals and more precise entry and exit points. Whether you're a beginner or an experienced trader, this indicator is crafted to assist you in making informed trading decisions with greater confidence.
Key Features
- Dual Amplitude Settings
- Fast Amplitude: Configurable to quickly respond to market changes, ideal for short-term trading.
- Slow Amplitude: Smoother and less sensitive, perfect for identifying long-term trends.
- Channel Deviation Control
- Customize the channel deviation to adjust the sensitivity of the trend lines based on market volatility.
- Visual Trade Signals
- Buy Signals: Indicated by green upward-pointing triangles below the price bars.
- Sell Signals: Indicated by red downward-pointing triangles above the price bars.
- Easily distinguishable signals to streamline your trading decisions.
- Customizable Alerts
- Set up alerts for buy and sell signals to stay informed in real-time, ensuring you never miss an opportunity.
- Clear Trend Lines
- Fast HalfTrend Line: Plotted in blue for quick trend identification.
- Slow HalfTrend Line: Plotted in orange for long-term trend analysis.
- User-Friendly Inputs
- Adjustable parameters to tailor the indicator to your specific trading style and market conditions.
How It Works
The DualTrend indicator calculates two HalfTrend lines based on different amplitude settings—Fast and Slow. These lines represent potential support and resistance levels derived from the average true range (ATR) and simple moving averages (SMA).
- Trend Detection:
- When the Fast HalfTrend line crosses above the Slow HalfTrend line, a Buy Signal is generated.
- Conversely, when the Fast HalfTrend line crosses below the Slow HalfTrend line, a Sell Signal is triggered.
- Adaptive Channels:
- The indicator dynamically adjusts the channels around the trend lines using ATR-based deviations, providing a responsive measure to market volatility.
Why Choose DualTrend ?
- Inspired by Excellence: Built upon the foundational principles of the HalfTrend Indicator by everget, DualTrend offers enhanced functionality and flexibility.
- Versatile Application: Suitable for various financial instruments, including stocks, forex, commodities, and cryptocurrencies.
- Educational Purpose: Designed to help traders understand and implement trend-following strategies effectively.
Disclaimer
Disclaimer:
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Installation & Usage
1. Add to TradingView:
- Copy the provided Pine Script code.
- Open TradingView and navigate to the Pine Script editor.
- Paste the code and save the script as "DualTrend ".
- Add the indicator to your chart.
2. Customize Settings:
- Adjust the Fast Amplitude and Slow Amplitude to match your trading preferences.
- Modify the Channel Deviation to control the sensitivity of the trend lines.
- Toggle Show Arrows to display or hide buy/sell signals.
3. Set Up Alerts:
- Configure alerts based on the buy and sell signals to receive real-time notifications.
Conclusion
Elevate your trading strategy with the DualTrend indicator. Leveraging the proven methodology of the HalfTrend Indicator by everget, this tool offers dual trend analysis, customizable settings, and clear visual signals to help you navigate the markets with precision. Whether you're aiming to capture short-term movements or identify long-term trends, DualTrend is your reliable companion on TradingView.
Happy Trading!
Best regards
Chervolino
This indicator is inspired by the well-known Everget HalfTrend:
Bernoulli Price Dynamics with IntraBar Volume (Bidirectional)This indicator adapts the principles of Bernoulli’s equation from fluid dynamics to analyze price and volume dynamics in the market. By incorporating intrabar volume data and splitting price movements into upward and downward components, it provides a bidirectional view of the market's kinetic and potential energies. This approach helps assess market pressure in both upward and downward directions, offering insights into potential price movement with energy-based mechanics.
Key Features:
Intrabar Volume Integration: The indicator collects up and down volume data from a lower timeframe, such as seconds or minutes, to provide more granular insights.
Bidirectional Market Pressure: By separating upward and downward price movements, it calculates market pressure in both directions, which is akin to fluid pressure. The separation enables tracking of distinct upward and downward energy flows in the market.
Energy Calculation:
Kinetic Energy: This represents the "movement" aspect of the price, weighted by volume. It is calculated for both upward and downward movements based on price velocity squared.
Potential Energy: This represents the "position" aspect of the price, calculated as the product of volume and the current price level. It is also separated into upward and downward components.
Market Pressure: The difference between the total energy (sum of kinetic and potential energies) and the highest observed total energy over a defined period (N). This provides an insight into the current momentum of price movement in both directions.
Visualization:
Market Pressure Up/Down: Plots the calculated market pressure for upward (green) and downward (red) movements.
Kinetic and Potential Energies: Provides individual plots for kinetic and potential energy in both directions to analyze the behavior of price and volume in more detail.
This indicator can be used to track market momentum and potential reversals by understanding the energy and pressure dynamics in both upward and downward price movements.
BOS TRADER [v 1.0] [Influxum]The name of the tool, BOS Trader, comes from the abbreviation BOS, which stands for Break Of Structure. In simple terms, this tool identifies situations where a change in market structure occurs after liquidity has been grabbed. Following the structural change, it looks for a point where the balance between buyers and sellers will be tested, potentially continuing the price movement in the direction of the structural break.
The goal of this tool is to identify areas where a trader can look for potential entry opportunities based on their entry rules and filters. In our own research, we found that while this tool is not a standalone strategy, it provides a statistical advantage that stems from the nature of the market itself. If you expect the market to reverse at a certain price level against a short-term, medium-term, or long-term trend, that reversal must logically begin with a change in structure – i.e., its break. BOS Trader then highlights the zone where you can expect a strong reaction from traders speculating on the continuation of price in the direction of the break.
Another important piece of the puzzle is the concept of liquidity. Liquidity grabs are generally considered by traders to be events that can trigger market direction changes. That's why BOS Trader is complemented with multiple ways to identify liquidity in the market from a Price Action perspective. We have explored the liquidity concept in depth in our other tools – the Liquidity Tool and Liquidity Strategy Tester – so we won’t go into too much detail on liquidity settings here.
🟪 Pivots
Liquidity can be found beyond pivot extremes – the highest candles in a series of candles. The pivot liquidity setting specifies how many candles must be before and after the pivot candle with a lower high for a pivot high or a higher low for a pivot low. A pivot high is the local highest point of the last 31 candles (15 before the pivot candle, the pivot candle itself, and 15 after). Another option is to set the time period in which the pivot extreme must occur. For example, you can differentiate between pivot highs of the Asian or London session.
🟪 % Percent Change
This setting is based on the well-known Zig Zag indicator and confirms swing highs or swing lows when there is a certain percentage change in price. This helps filter out noise that can occur when the market consolidates and randomly creates pivot highs or lows that aren’t significant.
🟪 Session High/Low
Many popular strategies are based on liquidity defined as the price range of a specific trading session. This doesn't have to be London, Asia, or New York sessions, but could be, for instance, the first hour of the New York session, and so on.
🟪 Day High/Low, Week High/Low, Month High/Low
As the name suggests, liquidity is often defined by the high/low of the previous day, week, or month. These price levels are watched by many market participants, and it's reasonable to expect reactions at these levels. That’s why we included this option in the BOS tool.
Tip for Traders
To avoid common issues with setting the correct session time, we have added the BG option to the tool – the ability to display a background for the configured trading session. This makes it easy to verify that your trading session is set correctly in relation to your time zone.
Delete grabbed liquidity
If a liquidity level is breached by price, it becomes invalid. For those who prefer to keep their charts clean and uncluttered, there is an option to delete grabbed liquidity. This way, only untraded, valid liquidity lines will be visible on the chart.
Bars after liquidity grab
A liquidity grab should be a significant event that triggers a reaction from market participants. To ensure this is a real response to liquidity rather than random market behavior, we added a time test to the BOS tool. A structural break must occur within a specified time after the liquidity grab. You can define this time in the tool as the number of bars after which the structural break is still considered valid following the liquidity grab.
🟪 AOI (Area of Interest) Settings
Initially, it's important to note that there are two main options for setting the behavior of the AOI. The first option is to fix its duration by the number of bars – Duration, and the second is to keep the AOI valid until it is traded through – Extended.
Duration
Since we expect a quick reaction to the liquidity grab, we also expect a fast pullback to the AOI and a swift response of traders. Our research has shown that the strongest reactions typically occur within a maximum of 15 bars from the formation of the AOI (fractally across timeframes). Therefore, this value is set as the default. However, we recommend considering not just the speed of the reaction but also its intensity. After the set number of bars, the AOI stops extending further.
Extended
We have noticed that price has a tendency to return to the AOI even after a longer period and react again. For this reason, we included the option in the BOS tool to extend the AOI into the future, with the ability to freely adjust the Max AOI Length.
🟪 AOI Size Mode
There are two options for setting the size of the AOI. Either it can be calculated as a percentage of the swing size (% of swing) in which the structural break occurred (the default setting is 30%), or you can set a different concept for the AOI size. For example, the well-known Optimal Trade Entry model. Custom values can be set in the FIBO Levels option, where you can define either preferred Fibonacci values or values based on your own criteria.
🟪 Trading Session (signals + alerts + visibility)
The main goal of our tools is to make it easier for traders to identify patterns and opportunities in the market and allow them to be alerted to their occurrence. The time for AOI plotting after a liquidity grab is combined into a single Trading Session function. This controls both the AOI plotting and when the tool will send alerts. All of this is aimed at helping traders avoid spending the entire day in front of their monitors, waiting for trading opportunities. Here, too, you can use the BG feature to plot a background on the chart showing the current session.
🟪 Trading within session range
We found that some traders have difficulty navigating the many AOIs plotted during times when the market consolidates and creates numerous false breakouts. Therefore, we included an option in the BOS tool to track only structural changes at the price extremes of the current day and trading session. The tool will not plot structural changes for internal liquidity grabs (within the session range), but only for external liquidity grabs (highest highs and lowest lows of the session or liquidity from previous days).
Visuals
The BOS tool is, of course, supplemented with the option to customize the appearance of all its components according to your preferences.