BTCUSD Momentum After Abnormal DaysThis indicator identifies abnormal days in the Bitcoin market (BTCUSD) based on daily returns exceeding specific thresholds defined by a statistical approach. It is inspired by the findings of Caporale and Plastun (2020), who analyzed the cryptocurrency market's inefficiencies and identified exploitable patterns, particularly around abnormal returns.
Key Concept:
Abnormal Days:
Days where the daily return significantly deviates (positively or negatively) from the historical average.
Positive abnormal days: Returns exceed the mean return plus k times the standard deviation.
Negative abnormal days: Returns fall below the mean return minus k times the standard deviation.
Momentum Effect:
As described in the academic paper, on abnormal days, prices tend to move in the direction of the abnormal return until the end of the trading day, creating momentum effects. This can be leveraged by traders for profit opportunities.
How It Works:
Calculation:
The script calculates the daily return as the percentage difference between the open and close prices. It then derives the mean and standard deviation of returns over a configurable lookback period.
Thresholds:
The script dynamically computes upper and lower thresholds for abnormal days using the mean and standard deviation. Days exceeding these thresholds are flagged as abnormal.
Visualization:
The mean return and thresholds are plotted as dynamic lines.
Abnormal days are visually highlighted with transparent green (positive) or red (negative) backgrounds on the chart.
References:
This indicator is based on the methodology discussed in "Momentum Effects in the Cryptocurrency Market After One-Day Abnormal Returns" by Caporale and Plastun (2020). Their research demonstrates that hourly returns during abnormal days exhibit a strong momentum effect, moving in the same direction as the abnormal return. This behavior contradicts the efficient market hypothesis and suggests profitable trading opportunities.
"Prices tend to move in the direction of abnormal returns till the end of the day, which implies the existence of a momentum effect on that day giving rise to exploitable profit opportunities" (Caporale & Plastun, 2020).
Educational
LRSI-TTM Squeeze - AynetThis Pine Script code creates an indicator called LRSI-TTM Squeeze , which combines two key concepts to analyze momentum, squeeze conditions, and price movements in the market:
Laguerre RSI (LaRSI): A modified version of RSI used to identify trend reversals in price movements.
TTM Squeeze: Identifies market compressions (low volatility) and potential breakouts from these squeezes.
Functionality and Workflow of the Code
1. Laguerre RSI (LaRSI)
Purpose:
Provides a smoother and less noisy version of RSI to track price movements.
Calculation:
The script uses a filtering coefficient (alpha) to process price data through four levels (L0, L1, L2, L3).
Movement differences between these levels calculate buying pressure (cu) and selling pressure (cd).
The ratio of these pressures forms the Laguerre RSI:
bash
Kodu kopyala
LaRSI = cu / (cu + cd)
The LaRSI value indicates:
Below 20: Oversold condition (potential buy signal).
Above 80: Overbought condition (potential sell signal).
2. TTM Squeeze
Purpose:
Analyzes the relationship between Bollinger Bands (BB) and Keltner Channels (KC) to determine whether the market is compressed (low volatility) or expanded (high volatility).
Calculation:
Bollinger Bands:
Calculated based on the moving average (SMA) of the price, with an upper and lower band.
Keltner Channels:
Created using the Average True Range (ATR) to calculate an upper and lower band.
Squeeze States:
Squeeze On: BB is within KC.
Squeeze Off: BB is outside KC.
Other States (No Squeeze): Neither of the above applies.
3. Momentum Calculation
Momentum is computed using the linear regression of the difference between the price and its SMA. This helps anticipate the direction and strength of price movements when the squeeze ends.
Visuals on the Chart
Laguerre RSI Line:
An RSI indicator scaled to 0-100 is plotted.
The line's color changes based on its movement:
Green line: RSI is rising.
Red line: RSI is falling.
Key levels:
20 level: Oversold condition (buy signal can be triggered).
80 level: Overbought condition (sell signal can be triggered).
Momentum Histogram:
Displays momentum as histogram bars with colors based on its direction and strength:
Lime (light green): Positive momentum increasing.
Green: Positive momentum decreasing.
Red: Negative momentum decreasing.
Maroon (dark red): Negative momentum increasing.
Squeeze Status Indicator:
A marker is plotted on the zero line to indicate the squeeze state:
Yellow: Squeeze On (compression active).
Blue: Squeeze Off (compression ended, movement expected).
Gray: No Squeeze.
Information Table
A table is displayed in the top-right corner of the chart, showing closing prices for different timeframes (e.g., 1 minute, 5 minutes, 1 hour, etc.). Each timeframe is color-coded.
Alerts
LaRSI Alerts:
Crosses above 20: Exiting oversold condition (buy signal).
Crosses below 80: Exiting overbought condition (sell signal).
Squeeze Alerts:
When the squeeze ends: Indicates a potential price move.
When the squeeze starts: Indicates volatility is decreasing.
Summary
This indicator is a powerful tool for determining market trends, momentum, and squeeze conditions. It helps users identify periods when the market is likely to move or remain stagnant, providing alerts based on these analyses to support trading strategies.
PIVOTBOSS ADR The PivotBoss ADR Method offers a complete approach to analyzing the volatility for a
given market in multiple timeframes by simply using average daily range. The ADR Breakout
helps us identify markets that are extremely compressed and due for significant expansion.
The PivotBoss ADR Targets Indicator is a simple, yet powerful, tool that helps you forecast extremely accurate targets based on the volatility of a given instrument. This indicator self-adjusts to a market's current volatility in order to plot reliable targets in multiple timeframes, including daily, weekly, and monthly targets.
1. Compression/Expansion: The development of trading ranges (Compression) builds the energy that will lead to the next
phase of price discovery (Expansion). ADR helps us quantify when a range is significantly compressed and due for expansion.
2. Volatility: Measures the SPEED of a market in order to forecast future volatility and price behavior. Markets rotate between
LOW and HIGH volatility states. Low ADR readings (<65% ADR) suggest significant compression, implying expansion ahead.
3. The ADR Breakout (Expansion Day): A true breakout from a narrow ADR range includes an Expansion Day, which is a
Trend Day on Day 1, wherein the session’s midpoint exceeds the breakout point and sees a Close beyond the range.
4. The ADR Breakout (Rejection Day): A failed breakout from a narrow ADR range includes a Rejection Day, which may take
the form of a long tail on Day 1, wherein the market attempted range expansion, but failed and closes back within the range.
This signature oftentimes leads to major expansion on the OPPOSITE side of the range.
5. A Variety of Trade Opportunities: Once TRUE expansion occurs from a narrow ADR range, a variety of trade opportunities
present themselves over the course of the next several days, or even weeks. These opportunities include swing trades, day
trades, and even scalps. Understanding when and where to look for these opportunities is key
Crypto Arbitrage Scanner [CryptoSea]Crypto Arbitrage Scanner
The Crypto Arbitrage Scanner is an advanced tool designed to help traders identify arbitrage opportunities across multiple cryptocurrency exchanges. With the ability to compare prices, volumes, and differences in price, this indicator is a must-have for any trader seeking to exploit cross-exchange inefficiencies in real time.
Key Features
Multi-Exchange Price and Volume Comparison: Tracks data from multiple major cryptocurrency exchanges, including BINANCE, COINBASE, KUCOIN, and others, allowing traders to easily compare prices and volume across platforms.
Customizable Difference Metrics: Allows users to toggle between displaying price differences in percentages or absolute dollar values, depending on the preferred metric for arbitrage analysis.
Sorting and Filtering Options: Includes user-defined sorting options to order the data by Price, Volume, or Difference, helping to prioritize potential arbitrage opportunities based on the trader's chosen criteria.
Difference and Volume Thresholds: Users can specify the minimum volume and price difference thresholds, ensuring that only significant arbitrage opportunities are highlighted.
Real-Time Alerts: Built-in alert conditions notify users when arbitrage opportunities exceed their defined price difference thresholds, helping traders respond instantly to market movements.
The Crypto Arb Scanner displays a table of prices, volumes, and price differences across selected exchanges. Each exchange is listed along with the current close price, volume, and the difference in price compared to the average price across all exchanges. Highlighting is used to indicate significant differences that may present arbitrage opportunities.
In the example below, we can see a highlighted opportunity in green showing that the price is below the user inputed thresold.
How it Works
Data Collection: Gathers real-time volume and price data from various exchanges using a streamlined process, allowing for a detailed comparison.
Average Price Calculation: Computes the average price across all valid exchanges to identify where price discrepancies occur, providing a clear picture of arbitrage potential.
Sorting Mechanism: Utilizes custom sorting based on user preferences, making it easy to quickly analyze and identify key opportunities.
Dynamic Highlighting and Alerts: Price differences that exceed user-defined thresholds are highlighted, and alerts can be triggered for these arbitrage opportunities, allowing for a timely response.
Application
Arbitrage Trading: The Crypto Arb Scanner is ideal for traders looking to exploit price differences across exchanges, enabling efficient arbitrage opportunities.
Market Efficiency Analysis: Offers insights into the consistency of prices across exchanges, which can help gauge the efficiency and liquidity of the markets being traded.
Customizable Alerts: Set alerts based on price differences or volume, allowing traders to stay informed about changes without constantly monitoring the markets.
The Crypto Arbitrage Scanner is a powerful addition to any trader's toolkit, offering comprehensive features to detect arbitrage opportunities with confidence. With real-time monitoring, customizable metrics, and a user-friendly interface, this tool allows traders to make informed decisions and capitalize on inefficiencies across exchanges.
RamanVol with Bull Snort Candles and Power Volumes1. Volume Analysis and Conditions:
Pocket Pivot Volume (PPV): A condition where a bar's volume on an up day is greater than the highest down-day volume in the last lookbackPeriod (e.g., 10 days). This indicates strong buying interest and is highlighted with blue bars.
High Down-Bar Volume: Identifies high volume on down days, with the volume greater than the 50-period moving average. This is represented by red bars.
High Up-Bar Volume: Identifies high volume on up days, with the volume greater than the 50-period moving average, represented by green bars.
Low Volume: When the volume is below 20% of the moving average volume (lowVolumeFraction), the bar is colored orange, indicating a "dry" or low volume day.
HVE (Highest Volume Ever): Marks the highest volume ever observed, indicated by a purple label above the bar.
HVQ (Highest Volume in Quarter): Marks the highest volume in the last quarter (63 days), indicated by an orange label (Q).
LVQ (Lowest Volume in Quarter): Marks the lowest volume in the last quarter, indicated by a Q label above the bar.
LVY (Lowest Volume in Year): Marks the lowest volume in the last year, indicated by a Y label.
2. Bull Snort Candles:
A Bull Snort candle is a specific type of candle that meets the following criteria:
Volume is more than 3 times the 50-period volume moving average.
The price closes within the top 35% of the day's range.
The close is higher than the previous bar's close.
When a Bull Snort is detected, the background color of the chart turns purple, and a small dot is plotted below the bar (if enabled).
3. Power Volume:
Power Volume occurs when the volume exceeds a certain threshold (e.g., 500,000) and the price moves at least 5% on that bar.
When these conditions are met, the background of the chart is highlighted with a yellow headlight effect, indicating a significant volume and price movement.
4. Relative Volume (RVol):
Relative Volume compares the current volume to the moving average of volume (50-period), showing how much higher or lower the volume is relative to the average. This is expressed as a percentage (e.g., 200% if today's volume is twice the average volume).
5. Table Display:
The indicator updates a table on the right side of the chart with the following metrics:
RVol: Displays the relative volume as a percentage.
Avg Dollar Volume: Shows the average dollar volume (average volume * average price).
Volume RR (Run Rate): Displays the percentage by which today's volume is higher or lower than the moving average.
Up/Down Volume Ratio: A measure of the ratio of total volume on up days to down days. If this ratio is greater than 1, it's considered bullish.
6. Background Highlights:
Bull Snort Candles: The background turns purple when Bull Snort candles are detected.
Power Volumes: The background turns yellow when Power Volume conditions are met.
Low Volume: Days with very low volume are marked with orange bars.
CREDITS: @finallynitin, Mark Minervini, Gill Morales, Dr Chris, Oliver Kell
Double Purge Theory (DPT)The purpose of this script is to identify the Double Purge Theory-MMXM i.e. the run on liquidity on both the sell-side and the buy-side liquidity.
The simple use case behind this script is to provide additional entry confluence for your trade setups and more efficient stop loss placement on any given timeframe.
DPT in itself is a price signature that generally occurs before price makes impulsive move in the direction of the higher time frame narrative. It is not to be used as a standalone indicator for building narrative/framing bias.
How to use this script ?
1) Wait for the indicator to display the BLUE CANDLE highlight (DPT candle) that indicates the double purge has occurred.
2) The DPT should occur at/after price has tapped into a key level and is within the ICT killzones.
3) Position to frame your trade setup once you get a candle with a body close below / above the DPT candle , depending on your bias and stop loss placement at DPT candle high/low or after the body closure as mentioned in step 2.
For example :
Quantum Transform - AynetQuantum Transform Trading Indicator: Explanation
This script is called a "Quantum Transform Trading Indicator" and aims to enhance market analysis by applying complex mathematical models. Written in Pine Script, the indicator includes the following elements:
1. General Structure
Quantum Parameters: Inspired by physical and mathematical concepts (Planck constant ℏ, wave function Ψ, time τ, etc.), it uses specific parameters.
Transformation Functions: Applies various mathematical operations to transform price data in different ways.
Signal Generation: Produces signals for long and short positions.
Visualization: Displays different price transformations and signals on the chart.
2. Core Parameters
The parameters allow users to control various transformations:
Planck Constant (ℏ): A scaling factor for wave modulation.
Wave (Ψ): Controls oscillation in price data.
Time (τ): The length of the lookback period for calculations.
Relativity (γ): Power factor in the Lorentz transformation.
Phase Shift (β): Manages phase shift in transformations.
Frequency (ω): Represents the frequency of price movements.
Dimensions (∇): Enables multi-dimensional field analysis.
3. Functions
a) Relativistic Transform
Inspired by the theory of relativity.
Calculates the Lorentz factor using the rate of price change.
Transforms price data to amplify the relativity effect.
b) Phase Transform
Calculates the phase of price data and applies wave modulation.
Creates phase and amplitude modulation based on the bar index.
c) Resonance Transform
Calculates resonance effects using natural frequency and oscillations.
Highlights periodic behaviors of price movements.
d) Field Transform
Applies multi-dimensional field calculations.
Combines strength, wave, and coherence aspects of price data.
e) Chaos Transform
Implements a chaos effect based on sensitivity analysis.
Simulates chaotic behaviors of price movements.
4. Main Calculations
Quantum Price: The average of all transformation functions.
Bands:
Upper Band: The highest level of quantum price.
Lower Band: The lowest level of quantum price.
Mid Band: The average of upper and lower bands.
Momentum: Calculates the rate of change in quantum price.
5. Signal Generation
Long Signal:
Triggered when the phase price crosses above the field price.
Momentum must be positive, and the price above the mid-band.
Short Signal:
Triggered when the phase price crosses below the field price.
Momentum must be negative, and the price below the mid-band.
Signal strength is calculated relative to the momentum moving average.
6. Visualization
Each transformation is displayed in a unique color.
Bands and Momentum: Visualize price behavior.
Signal Icons: Show buy/sell signals using up/down arrows on the chart.
7. Information Panel
A table in the top-right corner of the chart displays:
The current values of each transformation.
Signal strength (as a percentage).
The type of signal (⬆: Long, ⬇: Short).
Applications
Trend Following: Analyze trends with complex transformations.
Resonance and Chaos Analysis: Understand dynamic behaviors of price.
Signal Strategies: Create strong and reliable buy/sell signals.
If you have any additional questions or customization requests regarding this indicator, feel free to ask!
Azlan MA Silang PLUS++Overview
Azlan MA Silang PLUS++ is an advanced moving average crossover trading indicator designed for traders who want to jump back into the market when they missed their first opportunity to take a trade. It implements a sophisticated dual moving average system with customizable settings and re-entry signals, making it suitable for both trend following and swing trading strategies.
Key Features
• Dual Moving Average System with multiple MA types (EMA, SMA, WMA, LWMA)
• Customizable price sources for each moving average
• Smart re-entry system with configurable maximum re-entries
• Visual signals with background coloring and shape markers
• Comprehensive alert system for both initial and re-entry signals
• Flexible parameter customization through input options
Input Parameters
Moving Average Configuration
• MA1 Type: Choice between SMA, EMA, WMA, LWMA (default: EMA)
• MA2 Type: Choice between SMA, EMA, WMA, LWMA (default: EMA)
• MA1 Length: Minimum value 1 (default: 8)
• MA2 Length: Minimum value 1 (default: 15)
• MA1 & MA2 Shift: Offset values for moving averages
• Price Sources: Configurable for each MA (Open, High, Low, Close, HL/2, HLC/3, HLCC/4)
Re-entry System
• Enable/Disable re-entry signals
• Maximum re-entries allowed (default: 3)
Technical Implementation
Price Source Calculation
The script implements a flexible price source system through the price_source() function:
• Supports standard OHLC values
• Includes compound calculations (HL/2, HLC/3, HLCC/4)
• Defaults to close price if invalid source specified
Moving Average Types
Implements four MA calculations:
1. SMA (Simple Moving Average)
2. EMA (Exponential Moving Average)
3. WMA (Weighted Moving Average)
4. LWMA (Linear Weighted Moving Average)
Signal Generation Logic
Initial Signals
• Buy Signal: MA1 crosses above MA2 with price above both MAs
• Sell Signal: MA1 crosses below MA2 with price below both MAs
Re-entry Signals
Re-entry system activates when:
1. Price crosses under MA1 in buy mode (or over in sell mode)
2. Price returns to cross back over MA1 (or under for sells)
3. Position relative to MA2 confirms trend direction
4. Number of re-entries hasn't exceeded maximum allowed
Visual Components
• MA1: Blue line (width: 2)
• MA2: Red line (width: 2)
• Background Colors:
o Green (60% opacity): Bullish conditions
o Red (60% opacity): Bearish conditions
• Signal Markers:
o Initial Buy/Sell: Up/Down arrows with "BUY"/"SELL" labels
o Re-entry Buy/Sell: Up/Down arrows with "RE-BUY"/"RE-SELL" labels
Alert System
Generates alerts for:
• Initial buy/sell signals
• Re-entry opportunities
• Alerts include ticker and timeframe information
• Configured for once-per-bar-close frequency
Usage Tips
1. Moving Average Selection
o Shorter periods (MA1) capture faster moves
o Longer periods (MA2) identify overall trend
o EMA responds faster to price changes than SMA
2. Re-entry System
o Best used in strong trending markets
o Limit maximum re-entries based on market volatility
o Monitor price action around MA1 for potential re-entry points
3. Risk Management
o Use additional confirmation indicators
o Set appropriate stop-loss levels
o Consider market conditions when using re-entry signals
Code Structure
The script follows a modular design with distinct sections:
1. Input parameter definitions
2. Helper functions for price and MA calculations
3. Main signal generation logic
4. Visual elements and plotting
5. Alert system implementation
This organization makes the code maintainable and easy to modify for custom needs.
Relative Momentum StrengthThe Relative Momentum Strength (RMS) indicator is designed to help traders and investors identify tokens with the strongest momentum over two customizable timeframes. It calculates and plots the percentage price change over 30-day and 90-day periods (or user-defined periods) to evaluate a token's relative performance.
30-Day Momentum (Green Line): Short-term price momentum, highlighting recent trends and movements.
90-Day Momentum (Blue Line): Medium-term price momentum, providing insights into broader trends.
This tool is ideal for comparing multiple tokens or assets to identify those showing consistent strength or weakness. Use it to spot outperformers and potential reversals in a competitive universe of assets.
How to Use:
Apply this indicator to your TradingView chart for any token or asset.
Look for tokens with consistently high positive momentum for potential strength.
Use the plotted values to compare relative performance across your watchlist.
Customization:
Adjust the momentum periods to suit your trading strategy.
Overlay it with other indicators like RSI or volume for deeper analysis.
3 Drive Harmonic Pattern [TradingFinder] Three Drive Reversal🔵 Introduction
The Three Drive harmonic pattern closely resembles other price structures such as Wedge Pattern and Three Push Pattern, yet it stands out due to its precise use of Fibonacci ratios and symmetrical price movements.
This pattern comprises three consecutive and symmetrical price drives, each validated by key Fibonacci ratios (1.27 and 1.618), which help identify critical Potential Reversal Zones (PRZ).
Unlike the Wedge, which relies on converging trend lines and can indicate either continuation or reversal, and the Three Push, which lacks defined Fibonacci ratios and symmetry, the Three Drive pattern defines PRZ with greater accuracy, providing traders with high-probability trading opportunities.
This pattern appears in both bullish and bearish trends. After the completion of the third drive (Drive 3), it signals the market's readiness to reverse direction. The PRZ in this pattern serves as a crucial zone where price is highly likely to reverse, offering a strategic point for entering or exiting trades. Professional traders utilize the Three Drive pattern and PRZ as essential tools for analyzing and capitalizing on potential market reversals.
Bullish Pattern :
Bearish Pattern :
🔵 How to Use
The Three Drive harmonic pattern is an effective tool for identifying potential reversal points in the market. By utilizing Fibonacci extension levels (1.27 and 1.618) and focusing on the pattern’s symmetry, traders can pinpoint Potential Reversal Zones (PRZ) where the price is likely to change direction. This pattern works in both bearish and bullish scenarios, each with distinct characteristics and trading opportunities.
🟣 Bullish Three Drive Pattern
The bullish Three Drive pattern develops during a downtrend, indicating a potential reversal to the upside. Similar to its bearish counterpart, this pattern features three consecutive downward price movements (drives) with retracements in between. The third drive concludes within the PRZ, which serves as a strong support zone where the price is expected to reverse upwards.
The first drive begins with a downward movement, followed by a retracement to the 0.618 Fibonacci level. The second drive continues downward to reach a 1.27 or 1.618 Fibonacci extension of the retracement. Finally, the third drive aligns with the PRZ, where a confluence of Fibonacci levels creates a high-probability support zone.
In the PRZ, traders look for bullish confirmation signals such as bullish candlestick patterns (e.g., bullish engulfing or pin bars) or increasing trading volume. Once confirmation is observed, the PRZ becomes an ideal entry point for a buy position. Stop-loss orders are placed slightly below the PRZ to minimize risk, while take-profit targets are set at key resistance levels or Fibonacci retracement levels.
🟣 Bearish Three Drive Pattern
The bearish Three Drive pattern forms during an uptrend, signaling a potential reversal to the downside. This pattern consists of three consecutive upward price movements (drives) and intermediate retracements. Each drive aligns with Fibonacci extension levels, and the third drive ends within the PRZ, indicating a high probability of a bearish reversal.
In the first drive, the price moves upward and then retraces to approximately the 0.618 Fibonacci retracement level, forming the base for the second drive. The second drive then extends upward to the 1.27 or 1.618 Fibonacci extension of the preceding retracement. This process repeats for the third drive, which reaches the PRZ, typically defined by the convergence of Fibonacci levels from previous drives.
Once the PRZ is identified, traders look for confirmation signals such as bearish candlestick patterns (e.g., bearish engulfing or pin bars) or declining trading volume. If confirmation is present, the PRZ becomes an optimal zone for entering a sell position. Stop-loss levels are typically placed slightly above the PRZ to protect against pattern failure, and take-profit targets are set at key support levels or Fibonacci retracement levels of the overall structure.
🟣 Three Drive Vs Wedge Pattern Vs 3 Push pattern
The Three Drive, Wedge, and Three Push patterns are all used to identify potential price reversal points, but they differ significantly in structure and application. The Three Drive pattern is based on three consecutive and symmetrical price movements, validated by precise Fibonacci ratios (1.27 and 1.618), to define Potential Reversal Zones (PRZ).
In contrast, the Wedge pattern relies on converging trend lines and does not require Fibonacci ratios; it can act as either a reversal or continuation pattern. Meanwhile, the Three Push pattern shares similarities with Three Drive but lacks precise symmetry and Fibonacci-based validation.
Instead of a PRZ, Three Push focuses on identifying areas of support and resistance, often signaling weakening momentum in the current trend. Among these, the Three Drive pattern is more reliable for pinpointing high-probability reversal zones due to its strict Fibonacci-based and symmetrical structure.
🔵 Setting
🟣 Logical Setting
ZigZag Pivot Period : You can adjust the period so that the harmonic patterns are adjusted according to the pivot period you want. This factor is the most important parameter in pattern recognition.
Show Valid Format : If this parameter is on "On" mode, only patterns will be displayed that they have exact format and no noise can be seen in them. If "Off" is, the patterns displayed that maybe are noisy and do not exactly correspond to the original pattern.
Show Formation Last Pivot Confirm : if Turned on, you can see this ability of patterns when their last pivot is formed. If this feature is off, it will see the patterns as soon as they are formed. The advantage of this option being clear is less formation of fielded patterns, and it is accompanied by the latest pattern seeing and a sharp reduction in reward to risk.
Period of Formation Last Pivot : Using this parameter you can determine that the last pivot is based on Pivot period.
🟣 Genaral Setting
Show : Enter "On" to display the template and "Off" to not display the template.
Color : Enter the desired color to draw the pattern in this parameter.
LineWidth : You can enter the number 1 or numbers higher than one to adjust the thickness of the drawing lines. This number must be an integer and increases with increasing thickness.
LabelSize : You can adjust the size of the labels by using the "size.auto", "size.tiny", "size.smal", "size.normal", "size.large" or "size.huge" entries.
🟣 Alert Setting
Alert : On / Off
Message Frequency : This string parameter defines the announcement frequency. Choices include: "All" (activates the alert every time the function is called), "Once Per Bar" (activates the alert only on the first call within the bar), and "Once Per Bar Close" (the alert is activated only by a call at the last script execution of the real-time bar upon closing). The default setting is "Once per Bar".
Show Alert Time by Time Zone : The date, hour, and minute you receive in alert messages can be based on any time zone you choose. For example, if you want New York time, you should enter "UTC-4". This input is set to the time zone "UTC" by default.
🔵 Conclusion
The Three Drive pattern is a highly effective harmonic tool for identifying potential reversal points in the market. By leveraging its symmetrical structure and precise Fibonacci ratios (1.27 and 1.618), this pattern provides traders with clear entry and exit signals, enhancing the accuracy of their trades.
Whether in bullish or bearish scenarios, the identification of the Potential Reversal Zone (PRZ) serves as a critical aspect of this pattern, enabling traders to anticipate price movements with greater confidence.
Compared to similar patterns like Wedge and Three Push, the Three Drive pattern stands out for its stringent reliance on Fibonacci levels and symmetrical price movements, making it a more robust choice for forecasting reversals. However, as with any technical analysis tool, its effectiveness increases when combined with confirmation signals, such as candlestick patterns, volume analysis, and broader market context.
Mastering the Three Drive pattern requires practice and attention to detail, especially in accurately defining the PRZ and ensuring the pattern adheres to its criteria. Traders who consistently apply this pattern as part of a comprehensive trading strategy can capitalize on high-probability opportunities and improve their overall performance in the market.
Crypto Index Creator (MEMES & AI Supercycle Dominance, etc)This indicator aims to help to create any INDEX desired including but not limited to its Market Cap and Dominance on the crypto market.
This script was inspired originally by Murad's "Memecoins Dominance" but then I extended it to AI and can be extended to anything in fact, so you can create any index!
I made each token entry editable so that the script can survive the evolution of time as likely projects and INDEXES are going to change a lot, so that you can add/modify your own indices of preference if not listed by default and in order to make it future proof.
You can play with the settings, can compare to BTC, ETC, SOL, etc. for helping in your studies
You also have the option to check the info of each symbol on a table available on the settings, in order to help you figure out if there are any errors and also help you to easily check how the symbols are performing individually
Notes:
- Many projects are not like MEMECOINS that have fixed supply, normally VC projects have a very variable circulating supply, so you might want to update the info of the circulating supply for your projects to make it more accurate if you desire.
- For this script there is a limit of 32 Symbols, due to tradingview own limits, yet you can always "add" multiple projects per line as long as their circulating supply is the same.
- You might want to edit/sort the tickers of the top3, top5 and top10 if they follow bellow those top ranks, but this is not necessary if you don't care about Top 3-10 specific calculations.
- My default "indices" were made of token selections of mine as of November 2024, those defaults indices/tickers I might or might not update them eventually but you are free to adapt/modify the tickers in the settings as history evolves, and you can leave your own indexes on the comment section of this post for others to use
- As you might not be able to create/store multiple different indexes at the same time, you might want to add this indicator multiple times on your screen and then modify the tickers of each instance of this indicator, by that you can have multiple indexes.
Daily PlayDaily Play Indicator
The Daily Play Indicator is a clean and versatile tool designed to help traders organize and execute their daily trading plan directly on their charts. This indicator simplifies your workflow by visually displaying key inputs like market trend, directional bias, and key levels, making it easier to focus on your trading strategy.
Features
Dropdown Selection for Trend and Bias:
• Set the overall market trend (Bullish, Bearish, or Neutral) and your directional bias (Long, Short, or Neutral) using intuitive dropdown menus. No more manual typing or guesswork!
Key Levels:
Quickly input and display the Previous Day High and Previous Day Low. These levels are essential for many trading strategies, such as breakouts.
Real-Time News Notes:
Add a quick note about impactful news or market events (e.g., “Fed meeting today” or “Earnings season”) to keep contextual awareness while trading.
Simple On-Chart Display:
The indicator creates a “table-like” structure on the chart, aligning your inputs in an easy-to-read format. The data is positioned dynamically so it doesn’t obstruct the price action.
Customisable Visual Style:
Simple labels with clear text to ensure that your chart remains neat and tidy.
----
Use Case
The Daily Play Indicator is ideal for:
• Day traders and scalpers who rely on precise planning and real-time execution.
• Swing traders looking to mark critical levels and develop a trade plan before the session begins.
• Anyone who needs a structured way to stay focused and disciplined during volatile market conditions.
By integrating this tool into your workflow, you can easily align your daily preparation with live market action.
----
How to Use
Open the indicator settings to configure your inputs:
• Trend: Use the dropdown to choose between Bullish, Bearish, or Neutral.
• Bias: Select Long, Short, or Neutral to align your personal bias with the market.
• Previous Day Levels: Enter the High and Low of the previous trading session for key reference points.
• News: Add a short description of any relevant market-moving events.
TCSE24TCSE24 or Trendband Cycle Special Edition is designed to help create a simple trading plan by identifying potential Entry, Exit, Target Price, and Stop Loss. I use TCSE24 as a guide for short-term swing trading!
Please note, TCSE24 is not a directional indicator but fits better in Trend Following Strategy.
Only work with chart that have volume by default
Signals for Bullish Trade
1. Trendband Below Candlestick
Filled Red with a Purple Line.
2. Cycle Begin
Bar Color: Vivid Green.
Green Circle Above Candlestick: Target Price.
Green Circle Below Candlestick: Pullback Entry.
Red Circle Below Candlestick: Stop Loss.
3. Breakout
Bar Color: Lemon Green.
Green Circle Below Candlestick: Pullback Entry.
Red Circle Below Candlestick: Stop Loss.
4. Broken Minor Support
Bar Color: Yellow.
Price closes below the lowest low of the last 4 candles.
5. Volume Test
Green Triangle-Up below Candlestick.
Current bar shows 3 consecutive falling volumes.
6. Inside Bar
Orange Triangle-Up below Candlestick.
High and low are within the high and low of the previous candlestick.
7. Box Trading
Purple Diamond
8. Cycle End
Bar Color: Red.
Red Triangle-Up below Candlestick.
9. Info Panel
Background Green, turning Yellow after 20 bars from Cycle Begin.
Background Red when Cycle Ends.
Displays info such as Current Price, Target Price, Pullback Price, Stop Loss.
________________________________________
Signals for Bearish Trade
1. Trendband Above Candlestick
Filled with Blue.
2.Short Selling Begin
Bar Color: Blue.
Blue Circle Above Candlestick: Stop Loss.
Blue Circle Below Candlestick: Target Price.
3. Breakdown
Blue Circle Above Candlestick: Stop Loss.
4. Short Selling End
Bar Color: White.
Blue Triangle-Down above Candlestick.
5. Info Panel
Background Blue throughout the trade.
________________________________________
Bullish Trade Entry Suggestions
1. Ensure Cycle Begin is confirmed:
Buy near the closing price.
Use a Buy Stop 2 ticks higher than Cycle Begin's highest price.
Use a Buy Limit at the pullback price.
Wait for a signal candlestick, then Buy the next day if the price rises above the signal candlestick’s high.
2. Ensure Breakout is confirmed:
Buy near the closing price.
Use a Buy Stop 2 ticks higher than Breakout’s highest price.
Use a Buy Limit at the pullback price.
3. Box Trading:
Buy on the third day (T3).
Buy above the Box Trading line.
4. Candlestick Signal:
Ensure the signal candlestick is confirmed:
Look for Doji, Spinning Top, or Hammer patterns.
Buy the next day if the price rises above the signal candle's high.
________________________________________
Bullish Trade Exit Suggestions
1. Target Sell
Sell when the Target Price (TP) is reached or hold as long as Stop Loss isn’t hit.
Sell if the price doesn’t move, doesn’t reach the target, or doesn’t hit the Stop Loss after 20 candles from Cycle Begin.
Sell if the price closes below the Stop Loss.
2. Candlestick Signal
Look for Doji, Spinning Top, or Hammer patterns.
Sell the next day if the price drops below the signal candle's low.
________________________________________
Bearish Trade Suggestions
Ensure Short Selling Signal or Breakdown is confirmed:
Sell near the closing price.
Close the position at Target 1, Target 2, Target 3.
Close the position if Stop Loss is hit or when Short Selling End appears.
________________________________________
Any alert() function call freq
Once_per_bar_close
Cycle Begin, Inside Bar, Doji, Hammer, Spinning Top, Box Trading, Volume Test, Short Selling
Once_per_bar
Breakout, Cycle End
For educational purposes only and should not be taken as advice on how to invest your capital. Always speak with a professional financial planner or advisor before making any investment decisions.
superiority-DivergenceThis indicator is designed to analyze the price behavior of a cryptocurrency simultaneously in two markets: USDT and BTC pairs.
Key Features:
Chart Comparison: Displays the price charts of the cryptocurrency for both the USDT and BTC pairs simultaneously.
Divergence Detection: Automatically identifies and highlights divergences between the two charts.
Useful for Technical Analysis: Helps you evaluate the relative price movements across the two markets and identify potential trading opportunities.
Advantages:
Ideal for professional traders looking to analyze correlations and divergences between different markets.
Helps reduce decision-making risk by providing a detailed view of price behavior in both pairs.
How to Use:
Add this indicator to the chart of the cryptocurrency you want to analyze.
The second chart (BTC pair) will be displayed below. Any detected divergence will be visually highlighted.
Use the identified divergences to confirm or refine your trading strategies.
Mean Price
^^ Plotting switched to Line.
This method of financial time series (aka bars) downsampling is literally, naturally, and thankfully the best you can do in terms of maximizing info gain. You can finally chill and feed it to your studies & eyes, and probably use nothing else anymore.
(HL2 and occ3 also have use cases, but other aggregation methods? Not really, even if they do, the use cases are ‘very’ specific). Tho in order to understand why, you gotta read the following wall, or just believe me telling you, ‘I put it on my momma’.
The true story about trading volumes and why this is all a big misdirection
Actually, you don’t need to be a quant to get there. All you gotta do is stop blindly following other people’s contextual (at best) solutions, eg OC2 aggregation xD, and start using your own brain to figure things out.
Every individual trade (basically an imprint on 1D price space that emerges when market orders hit the order book) has several features like: price, time, volume, AND direction (Up if a market buy order hits the asks, Down if a market sell order hits the bids). Now, the last two features—volume and direction—can be effectively combined into one (by multiplying volume by 1 or -1), and this is probably how every order matching engine should output data. If we’re not considering size/direction, we’re leaving data behind. Moreover, trades aren’t just one-price dots all the time. One trade can consume liquidity on several levels of the order book, so a single trade can be several ticks big on the price axis.
You may think now that there are no zero-volume ticks. Well, yes and no. It depends on how you design an exchange and whether you allow intra-spread trades/mid-spread trades (now try to Google it). Intra-spread trades could happen if implemented when a matching engine receives both buy and sell orders at the same microsecond period. This way, you can match the orders with each other at a better price for both parties without even hitting the book and consuming liquidity. Also, if orders have different sizes, the remaining part of the bigger order can be sent to the order book. Basically, this type of trade can be treated as an OTC trade, having zero volume because we never actually hit the book—there’s no imprint. Another reason why it makes sense is when we think about volume as an impact or imbalance act, and how the medium (order book in our case) responds to it, providing information. OTC and mid-spread trades are not aggressive sells or buys; they’re neutral ticks, so to say. However huge they are, sometimes many blocks on NYSE, they don’t move the price because there’s no impact on the medium (again, which is the order book)—they’re not providing information.
... Now, we need to aggregate these trades into, let’s say, 1-hour bars (remember that a trade can have either positive or negative volume). We either don’t want to do it, or we don’t have this kind of information. What we can do is take already aggregated OHLC bars and extract all the info from them. Given the market is fractal, bars & trades gotta have the same set of features:
- Highest & lowest ticks (high & low) <- by price;
- First & last ticks (open & close) <- by time;
- Biggest and smallest ticks <- by volume.*
*e.g., in the array ,
2323: biggest trade,
-1212: smallest trade.
Now, in our world, somehow nobody started to care about the biggest and smallest trades and their inclusion in OHLC data, while this is actually natural. It’s the same way as it’s done with high & low and open & close: we choose the minimum and maximum value of a given feature/axis within the aggregation period.
So, we don’t have these 2 values: biggest and smallest ticks. The best we can do is infer them, and given the fact the biggest and smallest ticks can be located with the same probability everywhere, all we can do is predict them in the middle of the bar, both in time and price axes. That’s why you can see two HL2’s in each of the 3 formulas in the code.
So, summed up absolute volumes that you see in almost every trading platform are actually just a derivative metric, something that I call Type 2 time series in my own (proprietary ‘for now’) methods. It doesn’t have much to do with market orders hitting the non-uniform medium (aka order book); it’s more like a statistic. Still wanna use VWAP? Ok, but you gotta understand you’re weighting Type 1 (natural) time series by Type 2 (synthetic) ones.
How to combine all the data in the right way (khmm khhm ‘order’)
Now, since we have 6 values for each bar, let’s see what information we have about them, what we don’t have, and what we can do about it:
- Open and close: we got both when and where (time (order) and price);
- High and low: we got where, but we don’t know when;
- Biggest & smallest trades: we know shit, we infer it the way it was described before.'
By using the location of the close & open prices relative to the high & low prices, we can make educated guesses about whether high or low was made first in a given bar. It’s not perfect, but it’s ultimately all we can do—this is the very last bit of info we can extract from the data we have.
There are 2 methods for inferring volume delta (which I call simply volume) that are presented everywhere, even here on TradingView. Funny thing is, this is actually 2 parts of the 1 method. I wonder how many folks see through it xD. The same method can be used for both inferring volume delta AND making educated guesses whether high or low was made first.
Imagine and/or find the cases on your charts to understand faster:
* Close > open means we have an up bar and probably the volume is positive, and probably high was made later than low.
* Close < open means we have a down bar and probably the volume is negative, and probably low was made later than high.
Now that’s the point when you see that these 2 mentioned methods are actually parts of the 1 method:
If close = open, we still have another clue: distance from open/close pair to high (HC), and distance from open/close pair to low (LC):
* HC < LC, probably high was made later.
* HC > LC, probably low was made later.
And only if close = open and HC = LC, only in this case we have no clue whether high or low was made earlier within a bar. We simply don’t have any more information to even guess. This bar is called a neutral bar.
At this point, we have both time (order) and price info for each of our 6 values. Now, we have to solve another weighted average problem, and that’s it. We’ll weight prices according to the order we’ve guessed. In the neutral bar case, open has a weight of 1, close has a weight of 3, and both high and low have weights of 2 since we can’t infer which one was made first. In all cases, biggest and smallest ticks are modeled with HL2 and weighted like they’re located in the middle of the bar in a time sense.
P.S.: I’ve also included a "robust" method where all the bars are treated like neutral ones. I’ve used it before; obviously, it has lesser info gain -> works a bit worse.
Diamonds Infiniti - Aynet FiboThe "Diamonds Infiniti - Aynet Fibo" Pine Script combines the geometric visualization of diamond patterns with Fibonacci retracement levels to create an innovative technical indicator for analyzing market trends and potential reversal points. Below is a detailed explanation of the code and its functionality:
Key Features
Dynamic Fibonacci Levels
High and Low Points: The script calculates the highest high and lowest low over a user-defined lookback period (lookback) to establish a price range.
Fibonacci Price Levels: Using the defined price range, the script calculates the Fibonacci retracement levels (0%, 23.6%, 38.2%, 50%, 61.8%, 100%) relative to the low point.
Trend Change Detection
Crossovers and Crossunders: The script monitors whether the closing price crosses over or under the calculated Fibonacci levels. This detection is encapsulated in the isTrendChange function.
Trend Signal: If a trend change occurs at any of the Fibonacci levels (23.6%, 38.2%, 50%, 61.8%), the script flags it as a trend change and stores the bar index of the last signal.
Diamond Pattern Visualization
Diamond Construction: The drawDiamond function draws a diamond shape at a given bar index using a central price, a top price, and a bottom price.
Trigger for Drawing Diamonds: When a trend change is detected, the script draws two diamonds—one on the left and one on the right—connected by a central line. The diamonds are based on the calculated price range (price_range) and a user-defined pattern height (patternHeight).
Fibonacci Level Visualization
Overlay of Fibonacci Levels: The script plots the calculated Fibonacci levels (23.6%, 38.2%, 50%, 61.8%) on the chart as dotted lines for easier visualization.
Scientific and Trading Use Cases
Trend Visualization:
The diamond pattern visually highlights trend changes around key Fibonacci retracement levels, providing traders with clear indicators of potential reversal zones.
Support and Resistance Zones:
Fibonacci retracement levels are widely recognized as key support and resistance zones. Overlaying these levels helps traders anticipate price behavior in these areas.
Adaptive Trading:
By dynamically recalculating Fibonacci levels and diamond patterns based on the most recent price range, the script adapts to changing market conditions.
Possible Enhancements
Multi-Timeframe Support:
Extend the script to calculate Fibonacci levels and diamond patterns across multiple timeframes for broader market analysis.
Alerts:
Add alerts for when the price crosses specific Fibonacci levels or when a new diamond pattern is drawn.
Additional Patterns:
Include other geometric patterns like triangles or rectangles for further trend analysis.
This script is a powerful visualization tool that combines Fibonacci retracement with unique diamond patterns. It simplifies complex price movements into easily interpretable signals, making it highly effective for both novice and experienced traders.
Fibonacci Renko Trend - AynetThe "Fibonacci Renko Trend - Aynet" Pine Script combines the Renko charting technique with Fibonacci retracement levels to create a highly customizable and adaptive trend-following tool. Below is a detailed explanation of the script and its components:
Scientific and Trading Applications
Noise Reduction:
By using Renko charts, the script filters out time-based noise and focuses solely on price movement, making it ideal for trend-following strategies.
Adaptability:
The ATR-based box size ensures that the Renko blocks automatically adjust to market volatility, making the tool versatile for different market conditions and asset classes.
Fibonacci-Based Decision Making:
The integration of Fibonacci retracement levels provides a structured framework for identifying key support and resistance levels. Traders can use these levels to anticipate price reversals or continuations.
Visualization:
The color-coded Renko blocks allow traders to quickly identify trends and potential reversals without additional indicators, improving decision-making efficiency.
Possible Improvements
Signal Generation:
Add entry and exit signals when price crosses significant Fibonacci levels or when a trend reversal is detected.
Multi-Timeframe Support:
Extend the script to compute Renko levels and Fibonacci ratios for multiple timeframes simultaneously.
Alerts:
Implement alert notifications for key events, such as trend changes or Fibonacci level breaches.
This script is a robust tool for traders looking to combine the simplicity of Renko charts with the analytical power of Fibonacci retracement levels. It offers a clear visualization of price trends and potential reversal points, making it suitable for both novice and experienced traders.
BTC Seasonality Strategy (Weekly)This strategy identifies potential weekend opportunities in Bitcoin (BTC) markets by leveraging the concept of seasonality, entering a position at a predefined time and day, and exiting at a specified time and day.
Key Features
Customizable Time and Day Selection:
Users can select the entry and exit days and corresponding times (in EST).
Directional Flexibility:
The strategy allows traders to choose between long or short positions.
TradingView Compliance:
The script adheres to TradingView's house rules, avoids overly complex conditions, and provides clear user-configurable inputs.
How It Works
The script determines the current weekday and hour in EST, converting TradingView's UTC time for accurate comparisons.
If the current day and hour match the selected entry conditions, a trade (long or short) is opened.
The position is closed when the current day and hour match the specified exit conditions.
Theoretical Basis
Market Seasonality:
The concept of seasonality in financial markets refers to predictable patterns based on time, such as weekends or specific days of the week. Studies have shown that cryptocurrency markets exhibit unique trading behaviors during weekends due to reduced institutional activity and higher retail participation behavioral Biases**:
Retail traders often dominate weekend markets, potentially causing predictable inefficiencies .
Reverences**
Baur, D. G., Hong, K., & Lee, A. D. (2018). Bitcoin: Medium of exchange or speculative assets? Journal of International Financial Markets, Institutions and Money, 54, 177–189.
Urquhart, A. (2016). The inefficiency of Bitcoin. Economics Letters, 148, 80–82.
Alans Date Range CalculatorOverview
Setting a date range for backtesting enables you to evaluate your trading strategy under various market conditions. Traders can test a strategy’s performance during specific periods, such as economic downturns, bull markets, or periods of high volatility. This helps assess the trading strategy’s robustness and adaptability across different scenarios.
Specifying years of data instead of just inputting specific start and end dates offers several advantages:
1. **Consistency**: Using a fixed number of years ensures that the testing period is consistent across different strategies or iterations. This makes it easier to compare performance metrics and draw meaningful conclusions.
2. **Flexibility**: Specifying years allows for automatic adjustment of the start date based on the current date or selected end date. This is particularly useful when new data becomes available or when testing on different assets with varying historical data lengths.
3. **Efficiency**: It simplifies updating and retesting strategies. Instead of recalculating specific start dates each time, traders can quickly adjust the number of years to process, making it easier to test strategies over different timeframes.
4. **Comprehensive Analysis**: Broader timeframes defined by years help you evaluate how your strategy performs over multiple market cycles, providing insights into long-term viability and potential weaknesses.
Defining a date range by specifying years allows for more thorough and systematic backtesting, helping traders develop more reliable and effective trading systems.
Alan's Date Range Calculator: A TradingView Pine Script Indicator
Purpose
This Pine Script indicator calculates and displays a date range for backtesting trading strategies. It allows users to specify the number of years to analyze and an end date, then calculates the corresponding start date. Most importantly, users can copy the inputs and function into their own strategies to quickly add a time span feature for backtesting.
Key Features
User-defined input for the number of years to analyze
Customizable end date with a calendar input
Automatic calculation of the start date
Visual display of both start and end dates on the chart
How It Works
User Inputs
Years of Data to Process: An integer input allowing users to specify the number of years for analysis (default: 20, range: 1-100)
End Date: A calendar input for selecting the end date of the analysis period (default: December 31, 2024)
Date Calculation
The script uses a custom function calcStartDate() to determine the start date. It subtracts the specified number of years from the end date's year and sets the start date to January 1st of that year.
Visual Output
The indicator displays two labels on the chart:
Start Date Label: Shows the calculated start date
End Date Label: Displays the user-specified end date
Both labels are positioned horizontally at the bottom of the chart, with the end date label to the right of the start date label.
Applications
This indicator is particularly useful for traders who want to:
Define specific date ranges for backtesting strategies
Quickly visualize the time span of their analysis
Ensure consistent testing periods across different strategies or assets
Customization
Users can easily adjust the analysis period by changing the number of years or selecting a different end date. This flexibility allows for testing strategies across various market conditions and time frames.
Custom Date Range - Return CalculatorCustom Date Range Return Indicator
Overview
This indicator is designed to help traders quickly calculate the percentage return of a particular stock, sector, currency, or cryptocurrency over a custom date range. It simplifies the process of analyzing performance by allowing traders to navigate through multiple charts efficiently and compare returns over different periods.
Key Features
Custom Date Ranges: Traders can input two different date ranges to compare returns. For example, they can view the Year-to-Date (YTD) return versus the return from a recent swing high.
Visual Levels and Labels:
Start-1 Label: Marks the start date of the first input range with a green horizontal line.
Start-2 Label: Marks the start date of the second input range with an orange horizontal line.
End Label: Marks the end date with a red horizontal line. Table positioning can be adjusted from the input.
Performance Comparison: Enables traders to gauge how a stock is performing relative to its benchmark index by comparing returns over two different periods. % Return is Green if positive else Red is Negative.
Usage
Analysis Only: This indicator is intended for analysis purposes and does not provide buy or sell recommendations.
Complementary Tool : Traders should use this indicator in conjunction with other technical indicators and solid fundamental analysis to make informed decisions.
Benefits
Efficiency : Eliminates the need to manually draw price ranges on each chart, allowing traders to quickly assess performance across multiple charts.
Informed Decisions: By comparing returns over different periods, traders can make better-educated decisions about the behavior of an asset in relation to its benchmark.
Important Note
Traders must use their own discretion when analyzing stocks and should consider other technical indicators and fundamental factors before making any trading decisions.
Rate of Change of OBV with RSI ColorThis indicator combines three popular tools in technical analysis : On-Balance Volume (OBV), Rate of Change (ROC), and Relative Strength Index (RSI). It aims to monitor momentum and potential trend reversals based on volume and price changes.
Calculation:
ROC(OBV) = ((OBV(today) - OBV(today - period)) / OBV(today - period)) * 100
This calculates the percentage change in OBV over a specific period. A positive ROC indicates an upward trend in volume, while a negative ROC suggests a downward trend.
What it Monitors:
OBV: Tracks the volume flow associated with price movements. Rising OBV suggests buying pressure, while falling OBV suggests selling pressure.
ROC of OBV:
Measures the rate of change in the OBV, indicating if the volume flow is accelerating or decelerating.
RSI: Measures the strength of recent price movements, indicating potential overbought or oversold conditions.
How it can be Used:
Identifying Trend Continuation: Rising ROC OBV with a rising RSI might suggest a continuation of an uptrend, especially if the color is lime (RSI above 60).
Identifying Trend Reversal: Falling ROC OBV with a declining RSI might suggest a potential trend reversal, especially if the color approaches blue (RSI below 40).
Confirmation with Threshold: The horizontal line (threshold) can be used as a support or resistance level. Bouncing ROC OBV off the threshold with a color change could suggest a pause in the trend but not necessarily a reversal.
When this Indicator is Useful:
This indicator can be useful for assets with strong volume activity, where tracking volume changes provides additional insights.
It might be helpful during periods of consolidation or trend continuation to identify potential breakouts or confirmations.
ICT Macro Sessions by @zeusbottradingICT Macro Sessions Indicator
The ICT Macro Sessions Indicator is a powerful tool designed for traders who follow the ICT (Inner Circle Trader) methodology and want to optimize their trading during specific high-probability time intervals. This indicator highlights all the key macro sessions throughout the trading day in the GMT+8 (Hong Kong) time zone.
What Does the Indicator Do?
This indicator visually marks ICT Macro Sessions on your trading chart using background colors and optional labels. Each session corresponds to specific time intervals when institutional activity is most likely to drive price action. By focusing on these periods, traders can align their strategies with market volatility and liquidity, increasing their chances of success.
Highlighted Sessions
The indicator covers all major ICT Macro Sessions, each with a unique color for easy identification:
London Macro 1 (15:33–16:00 GMT+8):
- Marks the early London session, often characterized by strong directional moves.
London Macro 2 (17:03–17:30 GMT+8):
- Captures the mid-London session, where price frequently reacts to liquidity levels.
New York AM Macro 1 (22:50–23:10 GMT+8):
- Highlights the start of the New York session, a prime time for price reversals or continuations.
New York AM Macro 2 (23:50–00:10 GMT+8):
- Focuses on late-morning New York activity, often aligning with key news releases.
New York Lunch Macro (00:50–01:10 GMT+8):
- Covers the lunch period in New York, where price may consolidate or set up for afternoon moves.
New York PM Macro 1 (02:10–02:40 GMT+8):
- Tracks post-lunch activity in New York, often featuring renewed volatility.
New York PM Macro 2 (04:15–04:45 GMT+8):
- Captures late-session moves as institutional traders finalize their positions.
Features of the Indicator
Fixed Time: The indicator is pre-configured for GMT+8 but it will adapt automatically to your timezone. No need to change anything in the code.
Background Highlighting: Each session is visually marked with a unique background color for quick recognition.
Optional Labels: Traders can enable or disable labels for each session, providing flexibility in how information is displayed.
Session Toggles: You can choose which sessions to display based on your trading preferences and strategy.
Intraday Timeframes: The indicator is optimized for intraday charts with timeframes of 45 minutes or less. You can change it to anything you like.
Why Use This Indicator?
The ICT Macro Sessions Indicator helps traders focus on the most critical times of the trading day when institutional activity is at its peak. These periods often coincide with significant price movements, making them ideal for scalping, day trading, or even swing trading setups. By visually highlighting these sessions, the indicator eliminates guesswork and allows traders to plan their trades with precision.
Optimized Grid with KNN_2.0Strategy Overview
This strategy, named "Optimized Grid with KNN_2.0," is designed to optimize trading decisions using a combination of grid trading, K-Nearest Neighbors (KNN) algorithm, and a greedy algorithm. The strategy aims to maximize profits by dynamically adjusting entry and exit thresholds based on market conditions and historical data.
Key Components
Grid Trading:
The strategy uses a grid-based approach to place buy and sell orders at predefined price levels. This helps in capturing profits from market fluctuations.
K-Nearest Neighbors (KNN) Algorithm:
The KNN algorithm is used to optimize entry and exit points based on historical price data. It identifies the nearest neighbors (similar price movements) and adjusts the thresholds accordingly.
Greedy Algorithm:
The greedy algorithm is employed to dynamically adjust the stop-loss and take-profit levels. It ensures that the strategy captures maximum profits by adjusting thresholds based on recent price changes.
Detailed Explanation
Grid Trading:
The strategy defines a grid of price levels where buy and sell orders are placed. The openTh and closeTh parameters determine the thresholds for opening and closing positions.
The t3_fast and t3_slow indicators are used to generate trading signals based on the crossover and crossunder of these indicators.
KNN Algorithm:
The KNN algorithm is used to find the nearest neighbors (similar price movements) in the historical data. It calculates the distance between the current price and historical prices to identify the most similar price movements.
The algorithm then adjusts the entry and exit thresholds based on the average change in price of the nearest neighbors.
Greedy Algorithm:
The greedy algorithm dynamically adjusts the stop-loss and take-profit levels based on recent price changes. It ensures that the strategy captures maximum profits by adjusting thresholds in real-time.
The algorithm uses the average_change variable to calculate the average price change of the nearest neighbors and adjusts the thresholds accordingly.