Buy Low Sell High Composite Upgraded V6 [kristian6ncqq]NOTICE: This script is an upgraded and enhanced version of the original "Buy Low Sell High Composite" indicator by (published in 2017).
The original script provided a composite indicator combining multiple technical analysis metrics such as RSI, MACD, and MFI.
Why I Republished This Script
I found the original indicator to be exceptionally useful for identifying optimal accumulation zones for stocks or assets when prices are low (red area) and potential profit-taking zones when prices are high (green area).
To ensure it remains accessible and functional for modern trading strategies, I have updated and enhanced the original version with additional features and flexibility.
Intended Use
This indicator is designed for traders and investors looking to:
Accumulate stocks or assets when the price is in the low (red) zone.
Take profits or reduce positions when the price is in the high (green) zone.
The composite score provides a clear visualization of multiple technical indicators combined into a single actionable signal.
Enhancements in This Version
Updated to Pine Script v6 (from version 3).
Added input parameters for key settings (e.g., RSI length, MACD parameters, smoothing).
Introduced Chande Momentum Oscillator (CMO) and directional ADX for improved trend detection.
Implemented slope-based trend coloring for outer edges to highlight significant changes in trend direction.
Enhanced visualizations with customizable thresholds and smoothing for improved usability.
Credits
Original script: "Buy Low Sell High Composite" by , 2017.
URL to the original script: Buy Low Sell High Composite.
This script is designed to build upon the strengths of the original while adding flexibility and new features to meet the needs of modern traders.
Indicatori e strategie
MES Position Sizing EstimatorDescription and Use:
Here is an indicator which aims to help all Micro-ES futures traders who struggle with risk management! I created this indicator designed as a general guideline to help short term traders (designed for 1 minute candles) determine how many contracts to trade on the MES for their desired profit target.
To use the indicator, simply go to MES on the 1 minute timeframe, apply the indicator, and enter your Holding Period (how long you want to have your position open for), Value Per Tick
(usually 1.25 for MES since one point is $5) and your target PnL for the trade in the inputs tab.
It will then show in a table the recommended position sizing, as well as the estimated price change for your holding period. Additionally, there are two plotted lines also showing the position sizing and estimated price change historically.
How the indicator works
On the technical level, I made calculations for this indicator using Python. I downloaded 82 days of 1 minute OHLC data from TradingView, and then ran regression (log-transformed linear regression specifically) to calculate how the average price change in MES futures scales with the amount of time a position is held for, and then ran these regressions for every hour of the day. I then copied the equations from those regressions into Pinescript, and used the assumption that:
position size = target PnL / (estimated price change for time * tick value)
Therefore, Choosing the number of contracts to trade position sizing for Micro E-mini S&P 500 Futures (MES) based on time of day, holding period, and tick value. This tool leverages historical volatility patterns and log-transformed linear regression models to provide precise recommendations tailored to your trading strategy.
If you want to check out how the regression code worked in python, it is all open source and available on my Github repository for it .
Notes:
The script assumes a log-normal distribution of price movements and is intended as an educational tool to aid in risk management.
It is not a standalone trading system and should be used in conjunction with other trading strategies and risk assessments.
Past performance is not indicative of future results, and traders should exercise caution and adjust their strategies based on personal risk tolerance.
This script is open-source and available for use and modification by the TradingView community. It aims to provide a valuable resource for traders seeking to enhance their risk management practices through data-driven insights.
Support & Resistance SentinelSupport & Resistance Sentinel
The Support & Resistance Sentinel is a powerful and versatile indicator designed to identify and visualize key support and resistance levels on your charts. By leveraging multiple technical analysis tools, it ensures accuracy and adaptability across different market conditions and timeframes.
Key Features:
Dynamic Support and Resistance Levels: The indicator dynamically identifies local highs and lows, adapting to evolving market conditions.
Volume Spike Detection: Incorporates volume analysis to highlight significant market activity, ensuring the identified levels are robust.
Moving Average and RSI Filters: Utilizes moving averages and Relative Strength Index (RSI) to validate the significance of support and resistance levels.
Higher Timeframe Confirmation: Integrates higher timeframe data to provide an additional layer of confirmation for identified levels.
Customizable Visuals: Allows users to customize the length, color, and extension of support and resistance boxes for clear and personalized chart visualization.
Alerts: Includes alert conditions to notify users when the price hits significant support or resistance levels.
How It Works:
Identification: The indicator analyzes historical price data to identify local highs and lows within a specified lookback period.
Validation: It uses moving averages and RSI to filter out less significant levels, focusing on key support and resistance zones.
Volume Analysis: Detects volume spikes to ensure the levels correspond to substantial market activity.
Higher Timeframe Integration: Combines current timeframe data with higher timeframe levels for added confirmation.
Visualization: Draws customizable boxes around the identified support and resistance levels, extending them for better visual clarity.
Alerts: Sets up alerts to notify users when the price interacts with these crucial levels.
How to Use:
Customization: Adjust input settings such as lookback period, box length, and colors to fit your trading preferences.
Observation: Monitor the chart for highlighted support and resistance zones to understand key market levels.
Trading Decisions: Use these zones to make informed trading decisions, including setting entry and exit points or stop-loss orders.
Alerts: Enable alerts to get notified when price action hits significant support or resistance levels, allowing timely decision-making.
Enhance your trading strategy with the Support & Resistance Sentinel and gain deeper insights into market dynamics..
2-Year MA Multiplier [UAlgo]The 2-Year MA Multiplier is a technical analysis tool designed to assist traders and investors in identifying potential overbought and oversold conditions in the market. By plotting the 2-year moving average (MA) of an asset's closing price alongside an upper band set at five times this moving average, the indicator provides visual cues to assess long-term price trends and significant market movements.
🔶 Key Features
2-Year Moving Average (MA): Calculates the simple moving average of the asset's closing price over a 730-day period, representing approximately two years.
Visual Indicators: Plots the 2-year MA in forest green and the upper band in firebrick red for clear differentiation.
Fills the area between the 2-year MA and the upper band to highlight the normal trading range.
Uses color-coded fills to indicate overbought (tomato red) and oversold (cornflower blue) conditions based on the asset's closing price relative to the bands.
🔶 Idea
The concept behind the 2-Year MA Multiplier is rooted in the cyclical nature of markets, particularly in assets like Bitcoin. By analyzing long-term price movements, the indicator aims to identify periods of significant deviation from the norm, which may signal potential buying or selling opportunities.
2-year MA smooths out short-term volatility, providing a clearer view of the asset's long-term trend. This timeframe is substantial enough to capture major market cycles, making it a reliable baseline for analysis.
Multiplying the 2-year MA by five establishes an upper boundary that has historically correlated with market tops. When the asset's price exceeds this upper band, it may indicate overbought conditions, suggesting a potential for price correction. Conversely, when the price falls below the 2-year MA, it may signal oversold conditions, presenting potential buying opportunities.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Donchian Trend Ribbon (Gradient)Donchian Trend Ribbon (Gradient) Indicator
The Donchian Trend Ribbon (Gradient) uses Donchian Channels to visualize trend direction, strength, and market phases. Columns with varying colors and intensity help traders quickly assess trends.
Key Components:
Green Columns (Bullish):
Appear when price is above the upper Donchian Channel boundary.
Bright green in the top zone (25-50): Strong bullish trend.
Darker green in the lower zone (0-25): Weak/moderate bullish trend.
A full-height bright green column indicates a very strong upward move.
Red Columns (Bearish):
Appear when price is below the lower Donchian Channel boundary.
Bright red in the top zone (25-50): Strong bearish trend.
Darker red in the lower zone (0-25): Weak/moderate bearish trend.
A full-height bright red column indicates a very strong downward move.
Black Columns (Neutral):
Indicate no trend or market consolidation.
Signal to wait for trend emergence.
Expanding Steps:
Steps expanding downward from the upper edge (50) suggest diminishing momentum.
Steps expanding upward from the lower edge (0) indicate growing trend strength.
Methods of Use:
Identify Trends: Green (buy) or red (sell) columns in the top zone (25-50) signal strong trends.
Assess Strength: Bright colors = strong trends, darker colors = weaker trends. Full-height bright columns indicate very strong moves.
Neutral Phases: Black columns suggest waiting for a trend.
Example Strategy:
Buy when green columns appear in the 25-50 range with bright intensity.
Sell when red columns appear in the 25-50 range with bright intensity.
Exit positions if columns turn black or darker-colored.
LETF Leveraged Edge Strategy v1.5Overview
The strategy is based on Stochastics to detect trends and then makes Buys and Sell based on custom entry and exit criteria as described below in the Execution Logic Rules section. It will NOT work with standard Stochastics.
This is not a standard Stochastics implementation. It has been customized and modified, and does not match any widely known Stochastics variations (like Fast, Slow, or Full Stochastics) in its smoothing and iterative calculation process with:
• A unique smoothing mechanism.
• Iterative calculations.
• Additional conditional logic for strategy execution.
This strategy is designed to focus on volatile, liquid leveraged ETFs to capture gains equal to or better than Buy and Hold, and mitigate the risk of trading with a goal of reducing drawdown to a lot less than Buy and Hold. It has had successful backtest performance to varying degrees with TQQQ, SOXL, FNGU, TECL, FAS, UPRO, NAIL and SPXL. Results have not been good on other LETFs that have been backtested.
Performance
In this backtest the Net Profit shows to be $4,561 or 45.61%. Considering the initial order size was $1,000 I have to wonder if the Strategy Tester is calculating this correctly. The Strategy Tester Performance Summary shows the Buy and Hold Return at $61,165 or 611.7%. Based on calculating the price of the last shares sold, less the price paid, times the number of initial shares purchased, my math shows the Buy and Hold Gain at $4,572 or about equal with the strategy performance in this case. The Performance Summary also states the strategy had a Max DD of 3.46% which I believe is incorrect. Based on other backtests I’ve done, I believe the strategy drawdown here was closer to 28.4% and the Buy and Hold Drawdown at 82.7%. I manually calculated the Buy and Hold drawdown.
How it Works
The author provides training and support resource materials for this at his website. The strategy execution logic is driven by these rules:
Execution Logic Rules
Buy the LETF When:
BR #1a) The Daily Fast Line (FL) crosses above the Daily Slow Line (SL) and the FL is between the Low (L*) and High (H*) Range set (often referred to as Oversold and Overbought Lines). This can execute (Buy) any trading day of the week.
BR #1b) Re-Buy the next day after any Stop or Take Profit Sell if the Buy Rule condition is true (FL is above SL), if not, remain in cash and wait for the next Buy Signal.
Sell the LETF When:
SR #1a) The Daily Fast Line (FL) crosses below Daily Slow Line (SL) within the Low (L*) and High (H*) Range (often referred to as Oversold and Overbought Lines). “Crossunder Range Exit” This can execute (Sell) any trading day of the week.
SR #1b) If the (FL) crosses Below the SL above the Exit Level*, wait. Only Sell if the FL drops down below the Exit Level* “Crossunder Level Exit” This can execute (Sell) any trading day of the week.
SR #2a) Sell at the open any day the gap-down price is at or below the 1-Day Stop%*, based on previous day’s closing price (Execute on the day it happens.)
SR #2b) Sell intraday any day the price is at or below the 1-Day Stop %*, based on previous day’s closing price (Execute on the day it happens.)
SR #3a) Sell at the open any day the price is at or below the Trailing Stop %*, based on highest intraday price since Buy date (Execute on the day it happens.)
SR #3b) Sell intraday any day the price is at or below the Trailing Stop%*, based on highest intraday price since Buy date (Execute on the day it happens.)
SR #4) Sell any day when the opening price exceeds, or intraday price meets the Profit Target % price* (Execute on the day it happens.)
SR #5) After each Sell go to Rule BR #1b to determine if a Re-Buy should occur the next day, or stay in cash until next Buy Signal
Settings:
Properties Tab – Initial Capital has been set to $10,000 and order size 10% of Equity, 0.1% commission and 3 Ticks for slippage. Net order size is $1,000
Input Tab:
Stochastic
Timeframe is selected to Daily or Weekly based on preference. Daily has more trades, but on average higher profitability.
Type: Proprietary (best selection for most LETFs, but a few will work better with the Full selection
%k Length 20, %K Smoothing 14, %D Smoothing (many LETFs work better with a specific Stoch setting, often each different) A List of these is provided for your starting point.
Trade Settings
Direction: Longs (This strategy only works on the Long side)
Stop Type: Trailing is recommended, but Fixed is an option.
Stop % (based on user risk tolerance)
PD Stop % (Suggest start at 5%. Based on volatility of LETF and is a stop percentage from prior day’s close. Designed to protect against sudden market volatility. Will need to balance between strategy performance and user risk tolerance)
Profit Target: User preference. (I can help with suggestions based on historical performance)
Entry/Exit Conditions
Enter on Tie: Default Checked – if a Fast line crosses a Slow line for a Buy signal, but doesn’t do so in the range set, this will trigger if it crosses at a tie.
Renter – Default Checked – If stopped out of a position, this tells the strategy to re-buy the position the next day if the conditions are still positive.
Exit Level: This is a exit level for a Fast cross below a Slow line that takes place above the Sell Range, but only happens if the Fast continues down to the level set. These usually don’t happen often, but can have a significant impact on performance. Unfortunately, it’s a trial and error process starting with 90 and working down to see if there’s any positive impact.
Trade Range
Buy Range: Start at typical 20 to 80. Expand the low end down first to check on performance impact. Normally a wide buying range is better for performance.
Sell Range: Start at 20 to 80 and tighten gradually to see performance impact. In some cases a very tight sell range does better. I have worked on our primary LETFs for many months to determine ranges for each that typically produce better results.
External Indicator: Some additional indicators have a positive impact on the strategy performance by increasing P/l, reducing drawdown and reducing the number of trades. This is not always the case and each LETF and time period for the LETF will have a bearing on whether the secondary indicator will help or not. Two that have helped are the MACD Histogram, and the Sloe-Velocity Indicator by Kamleshkumar43. Sometimes a couple of different indicators will have a positive impact, then it’s a personal preference which you pick to use with the strategy.
Since this strategy is focused on a very narrow selection of liquid LETFs, I have a lot of experience experimenting with the settings for the primary ones and can suggest things that will help. Additional training on the rules, working with the settings, and mitigating some of the negative trades during choppy markets is available at the website.
Chart
The strategy can be selected to use either a Daily or Weekly version of stochastic. This is important because the characteristics are different while still generating very good gains and minimal drawdowns. Generally, the daily stochastic will have a greater number of, and certainly more frequent, trades than the weekly stochastic. However, on average the daily version of the stochastic will generates greater profitability.
The Settings tabs have tooltip icons that will assist in inputting values that correspond to the written rules for the strategy, and some include specific rule detail.
Buying
The strategy generates Buy signals with the Fast line crossing over the Slow line within a “Buy Range” which is adjusted based on volatility of the leveraged ETF. This is unique in that a default is set for these entries to occur if the values are tied and doesn’t need to be within the high and low range if that occurs. The trader can select in the strategy for this to occur the same day, if he’s selected a Daily Stochastic timeframe, or at the end of the trading week if he’s selected a Weekly stochastic timeframe. The volatility of a leveraged ETF will sometimes cause a shake-out exit, a trailing stop can be hit, or there can be an exit based on taking a profit. A big part of the timing challenge was how to handle these. The strategy normally (set as a default) will immediately re-buy the next day only if the original buy conditions are still true. This helps capture gains when conditions are still favorable but keeps the trader out when they’re not.
Selling
Exits are handled in several ways. The strategy will exit if there is a fast line cross below a slow line within the “range”. The range is adjusted based on volatility of the leveraged ETF. The exit occurs at the close of the day if the trader has selected to use a Daily stochastic setting. The exit will occur at the end of the trading week if the trader has chosen a weekly stochastic strategy. The trader will set a level based on the instrument and volatility for another exit type. The level will sometimes coincide with the range exit high level but does not need to. If a fast line crosses down through a slow line above the level set, and then comes down to that level, the strategy will exit the position.
Another unique aspect of the strategy is the PD Stop setting. This is short for “Prior Day”, Rather than a normal stop based on the price paid for a position, the PD Stop is based on a percentage drop from the previous day’s closing price. This helps account for the volatility of the leveraged ETF and will cause an exit quickly if there’s a market, or index moving event. This helps capture gains and reduce risk should there be continued pullback.
Exits will also occur based on setting a trailing stop level and profit taking level. These are adjusted based on the leveraged ETFs volatility and historical performance.
Limitations
Choppy, or sideways markets are the most prone to poor performance and potential for being stopped out multiple times. If stopped out two consecutive times, make sure you’re monitoring market health and there are clear signs of a new uptrend such as a 10D and 21D MA in proper alignment and moving up. If you get a Buy signal from the strategy and you’re not confident yet about market and price direction then it’s fine to wait a day, or several days, to enter after the Buy signal when you have greater confidence about market direction. The author can help with a short list of tactical rules developed for these sideways or choppy markets.
This strategy has proven successful backtest results with a very limited set of LETFs as discussed earlier. The author does not know if it will prove successful with any others, or other types of ETFs such as 2X or plain ETFs. A lot more testing needs to be done.
The strategy buys and sells , excluding stops or take profit, at the market close. It can be very challenging to enter an order at market close.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting. This post and the script do not provide any financial advice and are for educational and entertainment purposes only.
Historical High/Lows Statistical Analysis(More Timeframe interval options coming in the future)
Indicator Description
The Hourly and Weekly High/Low (H/L) Analysis indicator provides a powerful tool for tracking the most frequent high and low points during different periods, specifically on an hourly basis and a weekly basis, broken down by the days of the week (DOTW). This indicator is particularly useful for traders seeking to understand historical behavior and patterns of high/low occurrences across both hourly intervals and weekly days, helping them make more informed decisions based on historical data.
With its customizable options, this indicator is versatile and applicable to a variety of trading strategies, ranging from intraday to swing trading. It is designed to meet the needs of both novice and experienced traders.
Key Features
Hourly High/Low Analysis:
Tracks and displays the frequency of hourly high and low occurrences across a user-defined date range.
Enables traders to identify which hours of the day are historically more likely to set highs or lows, offering valuable insights into intraday price action.
Customizable options for:
Hourly session start and end times.
22-hour session support for futures traders.
Hourly label formatting (e.g., 12-hour or 24-hour format).
Table position, size, and design flexibility.
Weekly High/Low Analysis by Day of the Week (DOTW):
Captures weekly high and low occurrences for each day of the week.
Allows traders to evaluate which days are most likely to produce highs or lows during the week, providing insights into weekly price movement tendencies.
Displays the aggregated counts of highs and lows for each day in a clean, customizable table format.
Options for hiding specific days (e.g., weekends) and customizing table appearance.
User-Friendly Table Display:
Both hourly and weekly data are displayed in separate tables, ensuring clarity and non-interference.
Tables can be positioned on the chart according to user preferences and are designed to be visually appealing yet highly informative.
Customizable Date Range:
Users can specify a start and end date for the analysis, allowing them to focus on specific periods of interest.
Possible Uses
Intraday Traders (Hourly Analysis):
Analyze hourly price action to determine which hours are more likely to produce highs or lows.
Identify intraday trading opportunities during statistically significant time intervals.
Use hourly insights to time entries and exits more effectively.
Swing Traders (Weekly DOTW Analysis):
Evaluate weekly price patterns by identifying which days of the week are more likely to set highs or lows.
Plan trades around days that historically exhibit strong movements or price reversals.
Futures and Forex Traders:
Use the 22-hour session feature to exclude the CME break or other session-specific gaps from analysis.
Combine hourly and DOTW insights to optimize strategies for continuous markets.
Data-Driven Trading Strategies:
Use historical high/low data to test and refine trading strategies.
Quantify market tendencies and evaluate whether observed patterns align with your strategy's assumptions.
How the Indicator Works
Hourly H/L Analysis:
The indicator calculates the highest and lowest prices for each hour in the specified date range.
Each hourly high and low occurrence is recorded and aggregated into a table, with counts displayed for all 24 hours.
Users can toggle the visibility of empty cells (hours with no high/low occurrences) and adjust the table's design to suit their preferences.
Supports both 12-hour (AM/PM) and 24-hour formats.
Weekly H/L DOTW Analysis:
The indicator tracks the highest and lowest prices for each day of the week during the user-specified date range.
Highs and lows are identified for the entire week, and the specific days when they occur are recorded.
Counts for each day are aggregated and displayed in a table, with a "Totals" column summarizing the overall occurrences.
The analysis resets weekly, ensuring accurate tracking of high/low days.
Code Breakdown:
Data Aggregation:
The script uses arrays to store counts of high/low occurrences for both hourly and weekly intervals.
Daily data is fetched using the request.security() function, ensuring consistent results regardless of the chart's timeframe.
Weekly Reset Mechanism:
Weekly high/low values are reset at the start of a new week (Monday) to ensure accurate weekly tracking.
A processing flag ensures that weekly data is counted only once at the end of the week (Sunday).
Table Visualization:
Tables are created using the table.new() function, with customizable styles and positions.
Header rows, data rows, and totals are dynamically populated based on the aggregated data.
User Inputs:
Customization options include text colors, background colors, table positioning, label formatting, and date ranges.
Code Explanation
The script is structured into two main sections:
Hourly H/L Analysis:
This section captures and aggregates high/low occurrences for each hour of the day.
The logic is session-aware, allowing users to define custom session times (e.g., 22-hour futures sessions).
Data is displayed in a clean table format with hourly labels.
Weekly H/L DOTW Analysis:
This section tracks weekly highs and lows by day of the week.
Highs and lows are identified for each week, and counts are updated only once per week to prevent duplication.
A user-friendly table displays the counts for each day of the week, along with totals.
Both sections are completely independent of each other to avoid interference. This ensures that enabling or disabling one section does not impact the functionality of the other.
Customization Options
For Hourly Analysis:
Toggle hourly table visibility.
Choose session start and end times.
Select hourly label format (12-hour or 24-hour).
Customize table appearance (colors, position, text size).
For Weekly DOTW Analysis:
Toggle DOTW table visibility.
Choose which days to include (e.g., hide weekends).
Customize table appearance (colors, position, text size).
Select values format (percentages or occurrences).
Conclusion
The Hourly and Weekly H/L Analysis indicator is a versatile tool designed to empower traders with data-driven insights into intraday and weekly market tendencies. Its highly customizable design ensures compatibility with various trading styles and instruments, making it an essential addition to any trader's toolkit.
With its focus on accuracy, clarity, and customization, this indicator adheres to TradingView's guidelines, ensuring a robust and valuable user experience.
Nifty Options Trendy Markets with TSLNifty options strategy that works on volume, technical analysis etc
X4 Moving AverageThe X4 Moving Averages (X4MA) indicator is designed to provide traders with an enhanced view of market trends by combining multiple dimensions of price data. Unlike traditional moving averages that rely solely on closing prices, X4MA integrates high, low, open, and close values for a more nuanced analysis of market movements.
1- High-Low Average (HLAvg):
Captures the market's range during a given period:
HLAvg = (High + Low) / 2
2- Open-Close Average (OCAvg):
Reflects the directional momentum of the price during the same period:
OCAvg = (Open + Close) / 2
3- Combined Average (CMA):
Combines the range (HLAvg) and momentum (OCAvg) for a balanced view of price behavior:
CMA = (HLAvg + OCAvg) / 2
4- Exponential Moving Average (X4MA):
Smooths the combined average using an EMA for better responsiveness to recent price changes while filtering noise:
X4MA = EMA(CMA, Length)
20 Pips Candle Finder for XAUUSD20 Pips Candle Finder for XAUUSD
This custom Pine Script indicator is specifically designed for XAUUSD (Gold) price action analysis. It identifies and visually marks candles with a body size of 20 pips or more, which can be important for traders focusing on strong momentum or significant price movement.
Key Features:
Dynamic Detection:
The script dynamically identifies candles whose body size exceeds 20 pips.
Calculations are based on XAUUSD's pip size of 0.1.
Visual Markers:
Candles meeting the 20-pip threshold are labeled with a green marker above the candle for quick identification.
Background Highlighting:
The candles meeting the condition are also visually highlighted with a transparent green background, making them easier to spot on the chart.
Debugging Tools:
The indicator plots:
A blue line showing the size of the candle bodies over time for better visibility.
A red dotted horizontal line showing the 20-pip threshold for quick reference.
Ideal Use Case:
This indicator is particularly useful for:
Traders focusing on momentum-based strategies.
Spotting candles with significant price movement.
Assessing market volatility during key trading hours or events.
By visually spotting these candles, traders can identify entry and exit opportunities, support/resistance breakouts, or potential reversals.
Inputs & Customization:
Currently, the indicator is set for XAUUSD's standard pip value (0.1) but can be adjusted if you plan to use it on other symbols. You can fine-tune the 20 pips threshold or other parameters to align with your trading strategy.
[AlbaTherium] Volume Venturius Premium Volume Venturius Premium
Introduction
The Volume Venturius Premium is an advanced market analysis tool designed to deeply investigate the behavior of active market participants. By focusing exclusively on executed market orders, Volume Venturius offers traders a unique perspective on buy and sell volumes. Unlike traditional order books that track passive orders, this indicator isolates active orders, shedding light on real market dynamics.
Chapter 1: Understanding Market Participants
1.1 Categories of Market Participants
Market participants can be classified into several categories based on their:
Size : The volume of trades executed.
Influence : Their ability to initiate bull or bear campaigns.
Strategy : The trading methods employed, such as scalping, swing trading, or high-frequency trading.
Objectives : Whether their focus is on speculation, hedging, or arbitrage.
Time Horizon : Short-term versus long-term goals.
Behavioral Patterns : Their reaction to liquidity levels or price movements.
1.2 Objectives of Market Participants
Each category pursues specific objectives, such as profit-making or risk management. Regulatory reports like the Commitment of Traders (COT) provide weekly insights into the positions and intentions of major players.
Chapter 2: The Philosophy of Volume Analysis
2.1 Active Orders vs. Passive Orders
Unlike passive orders waiting to be filled at specific prices, active orders directly impact market prices. By focusing on these executed orders, Volume Venturius Premium provides traders with actionable insights into market trends and momentum.
2.2 Wyckoff’s Market Dynamics
According to Wyckoff, markets operate in two primary phases:
Manipulation: Where large participants accumulate or distribute positions to prepare for a move.
Expansion: The phase where price trends begin to unfold, either in a bullish or bearish direction.
Wyckoff’s theory emphasizes understanding how major players manipulate the market to identify accumulation or distribution zones. Volume Venturius Premium aids in pinpointing these manipulative actions by analyzing volume and order flow data.
Chapter 3: The Secrets of Order Flow and Volume
3.1 Unveiling Market Control
By studying the positioning and execution volumes of large players, traders can discern who holds control in the market. Volume Venturius Premium identifies the balance of power and tracks shifts that signal potential trend reversals.
3.2 Behavioral Patterns in Volume
Key metrics tracked by Volume Venturius Premium include:
Volume Clusters : Areas of concentrated buying or selling activity.
Directional Bias : Whether market participants are net buyers or sellers.
Momentum Shifts : Changes in execution speed and volume that may precede major moves.
3.2.1 Volume Clusters, Directional Bias and Directional Bias: Areas of Concentrated Buying or Selling Activity
Volume clusters play a crucial role in understanding market dynamics by highlighting areas where aggressive buying or selling activity is most concentrated. These clusters often serve as key decision zones, providing insights into potential reversals, breakouts, or continuations. To better visualize and interpret these zones, a distinct color-coding system has been implemented. Each color represents a specific market condition or level of activity, allowing for a more intuitive analysis of volume behavior and its influence on price movement.
Below is a detailed explanation of the color logic used to represent these clusters and their significance within the trading framework.
Color Interpretation and Meaning :
Extra Extreme Zones
These zones highlight areas where clusters of aggressive buyers or sellers are most heavily concentrated. They represent critical levels for identifying potential reversals or strong continuations.
Bright Red (#ff003c) : Represents extra-extreme sell zones, where aggressive sellers dominate.
Meaning: Indicates extreme selling pressure, often signaling potential exhaustion of sellers.
Bright Blue (#001eff) : Represents extra-extreme buy zones, where aggressive buyers are most active.
Meaning: Shows extreme buying pressure, possibly marking a saturation point for buyers.
Main Zones
These zones help identify key levels based on volume activity and well-defined clusters.
Dark Red (#d60033) : Represents strong selling pressure.
Orange (#ff8000) : Indicates significant selling pressure that begins to fade.
Yellow (#ffff00) : Represents moderate selling pressure, signaling a potential slowdown.
White (#ffffff) : Marks transition zones, which are interesting entry points for potential reversals or continuations.
Transition Zones (Frontier Zones)
These zones indicate intermediate movements and potential shifts in momentum.
Transparent Black (#000000, 50) : Represents transition areas, where the market tests boundaries between buyers and sellers.
Meaning: These are critical decision points.
Neutral Zone (Sea Zone)- Trend Zones
These zones represent more balanced market activity, where neither buyers nor sellers dominate clearly.
Transparent Green (#00e040, 25) : Indicates slight bullish activity in a neutral zone.
Transparent Red (#e01a00, 25) : Indicates slight bearish activity in a neutral zone.
This color logic allows you to pinpoint areas where volume clusters show a clear dominance, exhaustion, or optimal entry opportunities.
3.3 Divergences Between Price and Volume
Divergences between price and volume are critical for identifying key shifts in market sentiment. Volume Venturius Premium distinguishes two main types of divergences: Lack of Participation and Absorption, each offering valuable signals for potential reversals or continuations.
Lack of Participation
This divergence occurs when price movements are not supported by corresponding volume dynamics, signaling a reduction in activity from significant market participants.
1. Bullish Lack of Participation:
Characteristics : Price is making lower lows, but volume is making higher lows.
This indicates waning selling pressure as prices drop.
Inference : A potential bullish reversal may occur. Traders could consider looking for opportunities to go long.
2.Bearish Lack of Participation:
Characteristics : Price is making higher highs, but volume is making lower highs. This suggests diminishing buying pressure even as prices rise.
Inference : A potential bearish reversal might follow. Traders might position to go short.
Absorption
Absorption occurs when larger market participants neutralize the pressure from smaller participants, often leading to significant market moves.
1.Bullish Absorption:
Characteristics : Price is making higher bottoms, but volume is making lower bottoms.
This reflects sellers being trapped as their selling efforts are absorbed by larger buyers.
Inference : A potential upward breakout is likely. Traders may look for opportunities to go long.
2.Bearish Absorption:
Characteristics : Price is making lower tops, but volume is making higher tops. This indicates buyers being trapped as larger sellers absorb their buying activity.
Inference : A downward breakout is probable. Traders may consider positioning to go short.
Chapter 4: Practical Application and Trading Strategies
4.1 Leveraging Active Order Insights
Learn how to use Volume Venturius Premium to detect hidden accumulation or distribution phases. Strategies include identifying spikes in active volume that signal institutional participation.
4.2 Confirming Bull and Bear Campaigns
Gain confidence in detecting the early stages of bullish or bearish campaigns by analyzing the interplay between active orders and volume flow.
Chapter 5: Real-World Examples
5.1 Analyzing Market Manipulation
See how Volume Venturius Premium can reveal manipulation tactics employed by large players to trigger liquidity events.
5.2 Spotting Trends with Active Orders
Real-life scenarios demonstrate how the tool can be used to identify and ride the market’s dominant trend.
Conclusion
The Volume Venturius Premium is an indispensable tool for traders who seek to understand the underlying mechanics of market movement. By focusing on active order flows and drawing on Wyckoff’s principles, it provides unique insights into market manipulation and expansion phases. Whether you’re an intraday trader or a long-term strategist, this tool empowers you to anticipate market shifts and trade with confidence.
Stay tuned for updates as we continue to refine Volume Venturius Premium to further enhance your trading journey.
CauchyTrend [InvestorUnknown]The CauchyTrend is an experimental tool that leverages a Cauchy-weighted moving average combined with a modified Supertrend calculation. This unique approach provides traders with insight into trend direction, while also offering an optional ATR-based range analysis to understand how often the market closes within, above, or below a defined volatility band.
Core Concepts
Cauchy Distribution and Gamma Parameter
The Cauchy distribution is a probability distribution known for its heavy tails and lack of a defined mean or variance. It is characterized by two parameters: a location parameter (x0, often 0 in our usage) and a scale parameter (γ, "gamma").
Gamma (γ): Determines the "width" or scale of the distribution. Smaller gamma values produce a distribution more concentrated near the center, giving more weight to recent data points, while larger gamma values spread the weight more evenly across the sample.
In this indicator, gamma influences how much emphasis is placed on values closer to the current price versus those further away in time. This makes the resulting weighted average either more reactive or smoother, depending on gamma’s value.
// Cauchy PDF formula used for weighting:
// f(x; γ) = (1/(π*γ)) *
f_cauchyPDF(offset, gamma) =>
numerator = gamma * gamma
denominator = (offset * offset) + (gamma * gamma)
pdf = (1 / (math.pi * gamma)) * (numerator / denominator)
pdf
A chart showing different Cauchy PDFs with various gamma values, illustrating how gamma affects the weight distribution.
Cauchy-Weighted Moving Average (CWMA)
Using the Cauchy PDF, we calculate normalized weights to create a custom Weighted Moving Average. Each bar in the lookback period receives a weight according to the Cauchy PDF. The result is a Cauchy Weighted Average (cwm_avg) that differs from typical moving averages, potentially offering unique sensitivity to price movements.
// Summation of weighted prices using Cauchy distribution weights
cwm_avg = 0.0
for i = 0 to length - 1
w_norm = array.get(weights, i) / sum_w
cwm_avg += array.get(values, i) * w_norm
Supertrend with a Cauchy Twist
The indicator integrates a modified Supertrend calculation using the cwm_avg as its reference point. The Supertrend logic typically sets upper and lower bands based on volatility (ATR), and flips direction when price crosses these bands.
In this case, the Cauchy-based average replaces the usual baseline, aiming to capture trend direction via a different weighting mechanism.
When price closes above the upper band, the trend is considered bullish; closing below the lower band signals a bearish trend.
ATR Stats Range (Optional)
Beyond the fundamental trend detection, the indicator optionally computes ATR-based stats to understand price distribution relative to a volatility corridor centered on the cwm_avg line:
Volatility Range:
Defined as cwm_avg ± (ATR * atr_mult), this range creates upper and lower bands. Turning on atr_stats computes how often the daily close falls: Within the range, Above the upper ATR boundary, Below the lower ATR boundary, Within the range but above cwm_avg, Within the range but below cwm_avg
These statistics can help traders gauge how the market behaves relative to this volatility envelope and possibly identify if the market tends to revert to the mean or break out more often.
Backtesting and Performance Metrics
The code is integrated with a backtesting library that allows users to assess strategy performance historically:
Equity Curve Calculation: Compares CauchyTrend-based signals against the underlying asset.
Performance Metrics Table: Once enabled, displays key metrics such as mean returns, Sharpe Ratio, Sortino Ratio, and more, comparing the strategy to a simple Buy & Hold approach.
Alerts and Notifications
The indicator provides Alerts for key events:
Long Alert: Triggered when the trend flips bullish.
Short Alert: Triggered when the trend flips bearish.
Customization and Calibration
Important: The default parameters are not optimized for any specific instrument or time frame. Traders should:
Adjust the length and gamma parameters to influence how sharply or broadly the cwm_avg reacts to price changes.
Tune the atr_len and atr_mult for the Supertrend logic to better match the asset’s volatility characteristics.
Experiment with atr_stats on/off to see if that additional volatility distribution information provides helpful insights.
Traders may find certain sets of parameters that align better with their preferred trading style, risk tolerance, or asset volatility profile.
Disclaimer: This indicator is for educational and informational purposes only. Past performance in backtesting does not guarantee future results. Always perform due diligence, and consider consulting a qualified financial advisor before trading.
Blue Sniper V.1Overview
This Pine Script indicator is designed to generate Buy and Sell signals based on proximity to the 50 EMA, stochastic oscillator levels, retracement conditions, and EMA slopes. It is tailored for trending market conditions, making it ideal for identifying high-probability entry points during strong bullish or bearish trends.
Key Features:
Filters out signals in non-trending conditions.
Focuses on retracements near the 50 EMA for precise entries.
Supports alert notifications for Buy and Sell signals.
Includes a cooldown mechanism to prevent signal spamming.
Allows time-based filtering to restrict signals to a specific trading window.
How It Works
Trending Market Conditions
The indicator is most effective when the market exhibits a clear trend. It uses two exponential moving averages (50 EMA and 200 EMA) to determine the overall market trend:
Bullish Trend: 50 EMA is above the 200 EMA, and both EMAs have upward slopes.
Bearish Trend: 50 EMA is below the 200 EMA, and both EMAs have downward slopes.
Buy and Sell Conditions
Buy Signal:
The market is in a bullish trend.
Stochastic oscillator is in the oversold zone.
Price retraces upwards, breaking away from the recent low by more than 1.5 ATR.
Price is near the 50 EMA (within the defined proximity percentage).
Sell Signal:
The market is in a bearish trend.
Stochastic oscillator is in the overbought zone.
Price retraces downwards, breaking away from the recent high by more than 1.5 ATR.
Price is near the 50 EMA.
Outputs
Signals:
Buy Signal: Green "BUY" label below the price bar.
Sell Signal: Red "SELL" label above the price bar.
Alerts:
Alerts are triggered for Buy and Sell signals if conditions are met within the specified time window (if enabled).
EMA Visualization:
50 EMA (blue line).
200 EMA (red line).
Limitations
Not Suitable for Non-Trending Markets: This script is designed for trending conditions. Sideways or choppy markets may produce false signals.
Proximity Tolerance: Adjust the proximityPercent to prevent signals from triggering too frequently during minor oscillations around the 50 EMA.
No Guarantee of Accuracy: As with any technical indicator, it should be used in conjunction with other tools and analysis.
TLA20 - Multi-Session Box and Level ToolTLA20 is a highly customizable indicator designed to enhance intraday analysis by marking predefined trading sessions, key levels, and midpoints directly on your charts. With its versatile features, TLA20 is ideal for traders looking to visualize multiple time zones, daily price ranges, and historical reference levels efficiently.
Key Features:
Session Visualization: Mark up to three custom trading sessions with distinct start and end times, adjustable for different time zones and weekend inclusions.
Dynamic Highlights: Automatically draw session highs, lows, midlines, and open prices with options to extend beyond session bounds.
Custom Styling: Configure border colors, styles, and fill options for each session box to match your chart preferences.
Historical Levels: Highlight previous daily highs/lows, weekly highs/lows, and monthly highs/lows for improved context in your trading.
Intuitive Adjustments: Enable or disable each feature and customize settings for precise alignment with your trading strategy.
Use Cases:
Track trading sessions across different markets and time zones.
Identify key price levels like session midpoints and opens for entry/exit strategies.
Overlay historical levels to recognize potential support and resistance areas.
This indicator does not provide direct trading signals but serves as a robust tool for enhancing technical analysis.
Disclaimer: The script is provided “as is” without warranties of any kind. Always test on a demo account before applying in live markets.
Enhanced Reversal DetectorEnhanced Reversal Detector - Script Description
Overview:
The Enhanced Reversal Detector is a highly refined indicator designed to identify precise trend reversals in financial markets. It improves upon the original reversal detection logic by incorporating additional filters for trend confirmation (using EMA), volume spikes, and candle patterns. These enhancements significantly increase the reliability and accuracy of reversal signals, making it an excellent tool for both short-term and long-term traders.
Key Features
Candle Lookback Logic:
The indicator evaluates historical price action over a user-defined lookback period to detect potential reversal zones.
Bullish reversal conditions are met when price consistently tests lows, and bearish reversal conditions are met when price tests highs.
Trend Confirmation (EMA Filter):
To ensure that reversal signals align with the broader market trend, the indicator incorporates an Exponential Moving Average (EMA) filter.
Bullish signals are only triggered when the price is above the EMA, while bearish signals are only triggered when the price is below the EMA.
Volume Spike Filter:
The indicator checks for significant increases in trading volume to confirm that the reversal is supported by strong market activity.
Volume spikes are calculated as trading volume exceeding a multiple of the 20-bar average volume (default: 1.5x).
Confirmation Period:
Users can define a confirmation window within which reversal signals must be validated.
This reduces false positives and ensures only strong reversals are considered.
Non-Repainting Mode:
Offers a non-repainting option, where signals are based on confirmed conditions from previous bars, ensuring reliability for backtesting.
Visual and Alert Features:
Clear visual markers on the chart indicate bullish (green triangle) and bearish (red triangle) reversal points.
Alert notifications can be enabled for both bullish and bearish reversals, keeping traders informed in real-time.
Inputs
Candle Lookback: Number of candles to evaluate for reversal conditions.
Confirm Within: Number of candles within which a reversal must be validated.
Non-Repainting Mode: Option to enable or disable repainting for signals.
EMA Length: The length of the Exponential Moving Average used for trend confirmation.
Volume Spike Multiplier: Multiplier for identifying significant increases in trading volume.
How It Works
Reversal Detection:
Bullish signals are triggered when:
Price consistently tests recent lows (lookback period).
Price closes above the EMA.
A significant volume spike occurs.
Bearish signals are triggered under opposite conditions (price testing highs, closing below EMA, and volume spike).
Signal Filtering:
Incorporates EMA and volume-based filters to eliminate false positives and focus on high-confidence reversal signals.
Alert Notifications:
Alerts notify users of bullish or bearish reversal opportunities as soon as they are detected.
Use Cases
Scalping and Day Trading:
Ideal for identifying reversals on lower timeframes (e.g., 1-minute or 5-minute charts).
Swing Trading:
Works effectively on higher timeframes (e.g., 1-hour or daily charts) for capturing significant
trend reversals.
Volatile Markets:
Particularly useful in high-volatility markets like cryptocurrencies or forex.
Customization Tips
Adjust the lookback period to fine-tune the sensitivity of the reversal detection.
Increase the volume spike multiplier for markets with irregular trading volumes to focus on significant moves.
Experiment with the EMA length to align signals with your trading strategy's preferred trend duration.
Conclusion
The Enhanced Reversal Detector combines advanced price action analysis, trend confirmation, and market participation filters to deliver high-accuracy reversal signals. With its customizable settings and robust filtering mechanisms, this indicator is an invaluable tool for identifying profitable trading opportunities while minimizing noise and false signals.
Average Price Range Screener [KFB Quant]Average Price Range Screener
Overview:
The Average Price Range Screener is a technical analysis tool designed to provide insights into the average price volatility across multiple symbols over user-defined time periods. The indicator compares price ranges from different assets and displays them in a visual table and chart for easy reference. This can be especially helpful for traders looking to identify symbols with high or low volatility across various time frames.
Key Features:
Multiple Symbols Supported:
The script allows for analysis of up to 10 symbols, such as major cryptocurrencies and market indices. Symbols can be selected by the user and configured for tracking price volatility.
Dynamic Range Calculation:
The script calculates the average price range of each symbol over three distinct time periods (default are 30, 60, and 90 bars). The price range for each symbol is calculated as a percentage of the bar's high-to-low difference relative to its low value.
Range Visualization:
The results are visually represented using:
- A color-coded table showing the calculated average ranges of each symbol and the current chart symbol.
- A line plot that visually tracks the volatility for each symbol on the chart, with color gradients representing the range intensity from low (red/orange) to high (blue/green).
Customizable Inputs:
- Length Inputs: Users can define the time lengths (default are 30, 60, and 90 bars) for calculating average price ranges for each symbol.
- Symbol Inputs: 10 symbols can be tracked at once, with default values set to popular crypto pairs and indices.
- Color Inputs: Users can customize the color scheme for the range values displayed in the table and chart.
Real-Time Ranking:
The indicator ranks symbols by their average price range, providing a clear view of which assets are exhibiting higher volatility at any given time.
Each symbol's range value is color-coded based on its relative volatility within the selected symbols (using a gradient from low to high range).
Data Table:
The table shows the average range values for each symbol in real-time, allowing users to compare volatility across multiple assets at a glance. The table is dynamically updated as new data comes in.
Interactive Labels:
The indicator adds labels to the chart, showing the average range for each symbol. These labels adjust in real-time as the price range values change, giving users an immediate view of volatility rankings.
How to Use:
Set Time Periods: Adjust the time periods (lengths) to match your trading strategy's timeframe and volatility preference.
Symbol Selection: Add and track the price range for your preferred symbols (cryptocurrencies, stocks, indices).
Monitor Volatility: Use the visual table and plot to identify symbols with higher or lower volatility, and adjust your trading strategy accordingly.
Interpret the Table and Chart: Ranges that are color-coded from red/orange (lower volatility) to blue/green (higher volatility) allow you to quickly gauge which symbols are most volatile.
Disclaimer: This tool is provided for informational and educational purposes only and should not be considered as financial advice. Always conduct your own research and consult with a licensed financial advisor before making any investment decisions.
IBD Market School [tradeviZion]IBD Market School Indicator: User Guide and Settings Reference
A comprehensive guide to configuring and using the IBD Market School indicator for TradingView
Introduction
The IBD Market School indicator is an advanced market analysis tool that implements Investor's Business Daily's methodology for identifying optimal trading opportunities. By tracking key market indexes and analyzing price and volume patterns, it provides actionable buy and sell signals based on the CANSLIM investment system.
The indicator offers a comprehensive set of features:
Complete Signal System
10 primary buy signals (B1-B10)
Additional buy-side indicators (HH - Higher High, ED - Expired Days)
14 sell signals (S1-S14)
Index Rise 6% signal for Distribution/Stalling Day expiration
Market Health Tracking
Distribution Day detection and counting
Stalling Day identification and validation
Automatic 25-day signal expiration
6% price rise monitoring for signal clearing
Market Condition Analysis
Rally Day detection (major and minor)
Follow-Through Day confirmation
Dynamic market exposure management (0-100%)
Power Trend analysis with multiple states
Risk Management Features
Circuit Breaker system for major declines
Buy Switch system for exposure control
Customizable volume analysis (Nasdaq/S&P 500)
Distribution day clustering detection
Visual Analysis Tools
IBD-style candle display option
Power Trend state visualization
Signal line drawing system
Customizable tooltips and alerts
Proper configuration of the indicator's settings is essential as it affects:
Signal detection sensitivity and accuracy
Market exposure calculations and adjustments
Volume confirmation requirements
Visual display of market conditions and signals
Alert system behavior and notifications
This guide provides detailed explanations of each component and setting to help you optimize the indicator for your trading strategy while maintaining adherence to IBD's proven methodology.
📊 General Settings
This section controls the indicator's tooltip display, alert behavior, and candle visualization preferences.
The General Settings panel allows you to configure tooltip modes, alert types, and candle appearance.
Tooltip Display Mode
Select how detailed the tooltips should be when hovering over signals and indicators:
The three tooltip display modes: Simple (left), Detailed (center), and Market Analysis (right).
Simple Mode
Displays concise signal definitions
Shows basic entry and exit conditions
Focuses on essential trigger points
Perfect for experienced traders
Detailed Mode
Provides in-depth explanations of each buy/sell signal
Shows complete validation criteria and conditions
Includes volume requirements and percentage thresholds
Explains the context and significance of each signal
Market Analysis Mode
Focuses on broad market health metrics
Shows market exposure percentage and trend
Displays buy switch and power trend status
Tracks distribution days and signal buffers
Note: Choose the tooltip mode based on your needs:
- Simple: Provides quick, essential information on signals for fast decision-making
- Detailed: Breaks down conditions for each buy/sell signal, ideal for users wanting in-depth explanations
- Market Analysis: Focuses on broad market health, including exposure, buy switch, distribution days, and trends
Market Exposure Alert System
The indicator alerts you when market exposure levels change, helping you adjust your positions accordingly.
Alert Types
On Close (Recommended)
Triggers only after bar closes
More reliable signals as price action is confirmed
Real-Time
Triggers immediately when conditions are met
Note: Signals may change by bar close
Setting Up Alerts
Click the "..." (More) button on the indicator label "$tradeviZion - IBD Market School"
Select "Add alert on $tradeviZion - IBD Market School..."
In the Create Alert dialog:
Settings tab:
Verify the symbol and timeframe (e.g., NASDAQ:IXIC , 1D)
Condition: Select "$tradeviZion - IBD Market School"
Alert function: Choose "Any alert() function call"
Expiration: Set to "Open-ended alert"
Alert name will auto-populate
Switch to Notifications tab:
Enable "Notify in app" for push notifications in the mobile app
Enable "Show toast notification" for on-screen alerts
Enable "Play sound" and customize duration (e.g., Thin, 10 seconds)
Optional settings:
Send email (requires profile settings configuration)
Webhook URL for POST requests
Send plain text for alternative email format
Click Create to activate the alert
Alert Messages
Message format: "Market exposure change for : Market exposure from % to %"
Example: "Market exposure change for NASDAQ:IXIC : 📈 Market exposure reduced from 100% to 75%"
📈 Arrow indicates exposure increase
📉 Arrow indicates exposure decrease
Messages include previous and new exposure percentages
Note: These alerts specifically track changes in market exposure levels, helping you stay aligned with market conditions. They are essential for maintaining proper position sizing and risk management.
Chart Style Options
IBD-style Candles
Enable to match Investor's Business Daily chart style
For MarketSmith style setup, right-click on chart and go to Settings
Navigate to Symbol tab
Uncheck Body, Borders, and Wicks
Press Alt+R to restore chart view if zoom affects display
To revert to original style, right-click on chart and go to Settings
Navigate to Symbol tab
Check Body, Borders, and Wicks
Color Based on Previous Close
Colors bars based on close vs. previous close
When enabled, determines colors by comparing current close to previous close
Use blue color for closes above previous
Use pink color for closes below previous
📈 Market Exposure Table Settings
Configure how the market exposure information is displayed on your chart.
The Market Exposure Table Settings panel allows you to customize the appearance and layout of the market status display.
Layout Options
• Hide Table
Completely hides the market status display
• Basic (2 Columns)
Shows main indicators in two columns
Compact view without signal list
Ideal for minimalist chart view
• Detailed (2 Columns with Signals)
Displays main indicators plus signal panel
Shows Buy and Sell signals in separate columns
Provides comprehensive market overview
• Stacked (1 Column, Compact)
Vertical layout with single column
Most space-efficient option
Ideal for smaller chart windows
Color Settings
Background : Dark gray background for the table
Text : White text for general information
Buy Signal : Green highlighting for buy signals
Sell Signal : Red highlighting for sell signals
Additional Options
Show Trading Wisdom: Enable rotating trading messages
Displays empowering trading messages
Helps reinforce disciplined trading practices
Updates every 5 bars with new wisdom
Includes tooltips with comprehensive trading guidance
Customizable yellow text color for messages
💹 Buy Signals Settings
This section controls the visibility and behavior of buy signals and related indicators.
The Buy Signals Settings panel allows you to configure signal visibility, volatility calculations, and visual appearance of buy signals.
Signal Display Options
Buy Signals Display : Choose display mode
Show Selected Signals
Hide All
Compact Signals
Individual Signal Toggles
Primary Buy Signals (B1-B10)
Special Indicators (HH, ED)
Understanding Buy Signals
B1: Follow-Through Day (FTD)
Buy on the initial FTD with volume higher than the previous day. You may use an FTD from an index other than the NASDAQ:IXIC , but if you do, you must stay within that index for future Buy and Sell Signals.
B2: Additional Follow-Through
Buy on all additional follow-through days within 25 days from a rally day that closes above the low of the initial follow-through day.
B3: Low Above EMA21
Buy on an up or flat day when the intraday low is at or above the EMA21. Note: Once you have a B3 or B4, you can't have another until it is reset by an S5.
Special Buy Indicators
HH: Higher High (No FTD after Rally)
Triggers when current close exceeds highest point since last confirmed rally. Must not have a Follow-Through Day (FTD). Buy switch turns on when close exceeds last rally's high and turns off if close drops below that high.
ED: Expired Days
Tracks Distribution and Stalling days that have aged out. Days are tracked for a specific trading period and expired days are removed from the count.
Index Rise Settings
Index Rise 6% from DD & SD
Toggle to enable/disable monitoring of price rises above Distribution and Stalling Days. Default value of 6% (adjustable) for monitoring rises above these days.
Understanding Index Rise
This feature tracks significant market recoveries by monitoring when the index rises substantially above Distribution Days (DD) or Stalling Days (SD). When the index rises 6% or more above the closing price of any DD or SD, it indicates a strong market recovery. This is an important signal because it helps identify when the market has shown enough strength to potentially overcome previous distribution periods. When triggered, this signal reduces the distribution day count, effectively acknowledging that the previous distribution pattern may no longer be as relevant due to the market's strong recovery.
B1 Signal Configuration
Volatility Settings
B1 Auto Volatility: Calculates FTD price requirement based on 200-day volatility
B1 Manual Volatility: Fixed value (default 1.245) when auto is disabled
Visual Settings
Label Size: Small (options: Tiny, Small, Normal, Large)
Signal Color: Light green background for buy signals
Text Color: Customizable text color for signal labels
Important Notes
Signal visibility affects both chart display and calculations
Auto volatility is recommended for most users
Manual volatility should only be adjusted by experienced users
Visual settings apply to all enabled buy signals
Confirmation Rules
Price Requirements
Follow-Through Day (B1) thresholds based on 200-day volatility:
Below 0.4% volatility: 0.7% gain required
0.4% to 0.55% volatility: 0.85% gain required
0.55% to 1% volatility: 1% gain required
Above 1% volatility: 1.245% gain required
EMA Breaks (S5/S6): 0.2% threshold below 21 EMA
Downside Reversal (B9): 1.75% high-to-low spread required
Volume Requirements
Distribution Days: Volume > previous day, with -0.20% or more price decline
Stalling Days: Volume ≥ 95% of previous day
Follow-Through Days (B1/B2): Volume > previous day
Accumulation Days (B7): Volume > previous day, close in upper 25% range
Sell Signals Settings
This section controls the visibility and behavior of sell signals and market weakness indicators.
The Sell Signals Settings panel allows you to configure signal visibility and visual appearance of sell signals and market health indicators.
Signal Display Options
Sell Signals Display: Dropdown with options to control signal visibility:
Show Selected Signals
Hide All
Compact Signals
Individual Signal Toggles
Primary Sell Signals: S1-S14 and CB (Circuit Breaker)
Market Health Indicators:
Distribution Days (DD): Indicative of institutional selling. Occurs when:
Market closes down by at least 0.2%
Volume greater than or equal to prior day
Tracked for 25 trading days
Stalling Days (SD): Sign of heavy volume without upside progress. Occurs when:
Market at/near new highs
Closes with small gain (0% to 0.4%)
High volume in lower half of day's range
Understanding Sell Signals
S1: Follow-Through Day Undercut
Sell if the index closes below the low of the initial follow-through day.
S2: Failed Rally Attempt
Sell if the index undercuts the major low of the rally attempt. Market exposure is reduced to zero and the Buy Switch is turned off.
S2ml: Minor Low Undercut
Minor Low undercut of rally attempt. Market exposure is reduced by two. This does not turn off the Buy Switch.
S3: Full Distribution Minus One
Sell after the distribution count increases to one less than the full distribution count.
S4: Full Distribution
Sell after reaching the full distribution count.
S5: Break Below EMA21
Sell if the index closes 0.2% or more below the EMA21. Note: Once you have an S5, S6, or S7, you can't have another until it is reset by a B3.
S6: Overdue Break Below EMA21
Sell if the index closes down 0.2% or more below the EMA21 after 30 days have passed since the last B3 without triggering an S5.
S7: Trending Below EMA21
Sell after S5 on the 5th consecutive day that the high is below the EMA21 and a down day.
S8: Living Below EMA21
Sell after S5 on the 10th and every 5th consecutive day after that (15th, 20th, 25th, etc.) that the high is below the EMA21.
S9: Break Below 50-Day MA
Sell if the index closes below the 50-Day Moving Average. Triggers only if a B6 signal was previously printed.
S10: Bad Break
Sell if the close is down 2.25% or greater in the bottom 25% of the range. Close below the MA50 or intraday high below EMA21.
S11: Downside Reversal
Sell after a Downside Reversal Day, which occurs with:
New High within 13 weeks
Close in bottom quartile of range
Close Down for the day
Spread of 1.75% or greater
S12: Lower Low
Sell after closing below the last marked low as defined by MarketSmith.
S13: Distribution Cluster
Distribution and stalling days increase to four up to eight days within a rolling eight-day period.
S14: Break Below Higher High
Sell after closing below the last marked high that printed a B8 (Higher High).
CB: Circuit Breaker
Triggers when the index drops 10% from the highest high since the FTD (B1) and falls 5% or more below the 50-Day MA intraday.
Buy/Sell Undercut Lines
This section controls the visibility and appearance of important price level lines on your chart.
The Buy/Sell Undercut Lines panel allows you to configure which signal lines are displayed and their visual appearance.
Line Visibility
Buy Signal Lines :
B8 Line: First high above the last pivot high
HH Line: Close above the prior high since last confirmed rally without FTD
Sell Signal Lines :
S1 Line: Close below the initial follow-through day
S2 Line: Undercut of major low
S2ml Line: Minor low undercut
S12 Line: Close below last marked low
S14 Line: Close below last marked high
Line Appearance
Color Settings :
B8: Green (Buy signal)
HH: Green (Buy signal)
S1: Red (Sell signal)
S2: Red (Sell signal)
S2ml: Orange (Modified sell signal)
S12: Purple (Pivot low signal)
S14: Blue (Close below pivot)
Line Style : Dashed (options: solid, dotted, dashed)
Line Width : 1 (adjustable)
📈 Rally Signal Settings
The Rally Signal Settings panel allows you to configure Rally Day detection and visualization.
Rally Day:
Toggle to enable/disable Rally Day signals. These mark the beginning of potential market uptrends when the market closes higher than the previous day, following a significant decline.
Visual Settings:
Label Size: small (options: tiny, small, normal, large)
Background Color: Customizable background for Rally Day labels
Text Color: Customizable text color for Rally Day labels
Distribution Day Settings:
Use Manual FullDDcount: Option to manually set the minimum combined number of Distribution and Stalling Days
Count Value: Default is 6 days (adjustable when manual mode is enabled)
This setting determines how many Distribution/Stalling Days are required to trigger a new rally
Pivot Point Settings
The Pivot Point Settings panel allows you to configure the display of high/low points and percentage changes between pivots.
Display Options
Display H/L Points
Toggle to show or hide pivot levels (high and low points) on the chart
%Change
Toggle to display percentage changes between pivot points
Color Settings
Positive % Color : Blue (customizable) - Used for positive percentage changes
Negative % Color : Pink (customizable) - Used for negative percentage changes
Precision Settings
Decimal Places: Set the number of decimal places (default: 2) for:
Pivot point price levels
Percentage change calculations
⚡ Power Trend Settings
This section controls how Power Trend information is visualized on your chart.
The Power Trend Settings panel allows you to configure how trend states are displayed and customize their visual appearance.
Example of Power Trend visualization showing both boxes (green background) and trend lines. The boxes indicate trend state while lines show trend transitions.
Display Options
Show Power Trend Line : Display trend states as lines on the chart
Show Boxes : Display trend states as boxes
Show Background : Display trend states as background colors
Power Trend Color Settings
On : Light green - Full power trend active
Resume : Light green - Power trend resuming
Off : Gray - Power trend inactive
With Floor : Yellow - Under pressure with support
No Floor : Orange - Under pressure without support
Power Trend Line Settings
Line Width : Set line thickness (default: 1)
Line Offset : Adjust line position (default: 5)
Power Trend Box Settings
Text Align : Set text alignment (left, center, right)
Text Position : Set vertical position (top, middle, bottom)
Size : Set box size (tiny, small, normal, large)
Color : Customize box background color
Power Trend States
Full Power (On)
Represents strongest market condition with maximum exposure of +7
Base maximum exposure of 5 plus 2 buffer signals
Buffer allows maintaining high exposure during normal pullbacks
2 sell signals reduce count from 7 to 5 without affecting base
Indicates very healthy market that can absorb normal profit-taking
Resume State
Shows successful market recovery after pressure period
Requires 10+ days without S2 minor, S9, or S13 signals
Must reestablish all initial strength conditions
Maintains same benefits as Full Power (+7 max, +2 floor)
Shows as light green in visualization
Under Pressure With Floor
First warning stage triggered by S2 minor or S13 signals
Reduces maximum exposure to +5
Maintains minimal protection with +1 floor
Suggests defensive positioning while keeping core positions
Shows as yellow in visualization
Under Pressure No Floor
Severe warning stage triggered by S9 signal
Maintains +5 maximum exposure but removes floor protection
Indicates higher risk of continued market decline
Requires careful position management
Shows as orange in visualization
Power Trend Off
Triggered by EMA/MA crossdowns with declining price
Can also be activated by S2 or Circuit Breaker signals
Maximum exposure limited to +5 with no buffer signals
Suggests focus on capital preservation
Shows as gray in visualization
Power Trend System Rules
Each state enforces strict exposure limits with automatic floor and ceiling adjustments
Power Trend can activate Buy Switch when entering Full Power state
Restraint Rule limits exposure to +2 until significant progress or B4 signal when starting from zero exposure
State transitions immediately update exposure limits and Buy Switch status
Distribution Cluster (S13) can move Power Trend to Under Pressure With Floor state
System maintains exposure floors to prevent panic selling while allowing flexibility below floor levels
Weekly SMAs Settings
The Weekly SMAs Settings panel allows you to configure the weekly moving averages display and calculations.
SMA 1: 10 periods (enabled), Red
Length: 10
Optional EMA toggle
Width: 1
SMA 2: 20 periods, Pink
Length: 20
Optional EMA toggle
Width: 1
SMA 3: 30 periods, Green
Length: 30
Optional EMA toggle
Width: 1
SMA 4: 40 periods (enabled), White
Length: 40
Optional EMA toggle
Width: 1
SMAs Settings
The SMAs Settings panel allows you to configure the daily moving averages display and calculations.
MA 1: 10 periods, Optional EMA, Pink
Length: 10
Optional EMA toggle
Width: 1
MA 2: 21 periods (enabled), EMA, Green
Length: 21
EMA enabled
Width: 1
MA 3: 50 periods (enabled), SMA, Red
Length: 50
EMA disabled
Width: 1
MA 4: 200 periods (enabled), SMA, White
Length: 200
EMA disabled
Width: 1
Volume Settings (NASDAQ & S&P 500)
This section controls volume data sources for market analysis. Proper volume settings are crucial for confirming market signals and analyzing institutional participation.
The Volume Settings panel allows you to configure volume data sources and custom ticker options for accurate market analysis.
Important Volume Source Information
TradingView's default volume data differs from IBD's Yahoo Finance data source
Current default settings (IXIC and TVOL) provide the most accurate results compared to IBD signals
Volume differences between TradingView and IBD are expected due to different data sources
Custom ticker options are provided for future compatibility with Yahoo Finance volume data
Volume Configuration
Nasdaq Volume Settings
Default Source: NASDAQ:IXIC (Nasdaq Composite Index)
Custom Ticker Option: USI:TVOL.NQ
Enable custom source by checking "Use Custom Nasdaq Ticker?"
Note: Custom ticker must be price-based for accurate volume analysis
S&P 500 Volume Settings
Default Source: TVOL (S&P 500 Total Volume)
Custom Ticker Option: USI:TVOL.NY
Enable custom source by checking "Use Custom S&P 500 Ticker?"
Note: Custom ticker must be price-based for accurate volume analysis
Volume Analysis Impact
Used for Distribution Day confirmation
Required for Follow-Through Day validation
Helps identify institutional buying/selling
Critical for Stalling Day detection
Recommendations
Keep default settings for most accurate current results
Only use custom tickers if you have confirmed price-based volume sources
Be aware that volume-based signals might slightly differ from IBD due to data source differences
Future updates may add Yahoo Finance volume compatibility
Market Status Table
The Market Status Table provides a real-time visual overview of current market conditions and signal status. Users can customize the table's appearance through the Market Exposure Table Settings.
The Market Status Table can be displayed in three different layouts: Basic (left), Detailed (center), and Stacked (right).
Layout Options
Hide Table
Completely hides the market status display
Basic (2 Columns)
Shows main indicators in two columns
Compact view without signal list
Ideal for minimalist chart view
Detailed (2 Columns with Signals)
Displays main indicators plus signal panel
Shows Buy and Sell signals in separate columns
Provides comprehensive market overview
Stacked (1 Column, Compact)
Vertical layout with single column
Most space-efficient option
Ideal for smaller chart windows
Main Indicators
• Market Exposure
Displayed as colored dots: 🟠 🟢 🟢 🟢 🟢
Shows current exposure level (0-100%)
(⚪ ⚪ ⚪ ⚪ ⚪): 0% exposure
(🟠 ⚪ ⚪ ⚪ ⚪): 30% exposure
(🟠 🟡 ⚪ ⚪ ⚪): 55% exposure
(🟠 🟡 🟢 ⚪ ⚪): 75% exposure
(🟠 🟡 🟢 🟢 ⚪): 90% exposure
(🟠 🟡 🟢 🟢 🟢): 100% exposure
• Key Status Indicators
Buy Switch: Shows ON (forced) or OFF status
Power Trend: Displays current state with floor and maximum values
Restraint Rule: Indicates ON or OFF status
Count / Signals Buffer: Shows current count and available buffer (e.g., "7 / (+0)")
Dist. Days / Cluster: Displays distribution day count and cluster status (e.g., "1 / 0")
• Signal Panel (Available in Detailed layout)
Lists all active Buy and Sell signals
Highlighted signals indicate currently active conditions
Green highlighting shows confirmed signals
Provides quick reference for all available signals
Status Indicator Colors
🟢 indicates "ON" or positive conditions (e.g., Buy Switch ON, Power Trend Full Power)
🟡 indicates "Under Pressure" or caution (e.g., Power Trend Under Pressure With Floor)
🟠 indicates "Under Pressure No Floor" or increased caution
🔴 indicates "OFF" or negative conditions (e.g., Buy Switch OFF, Power Trend OFF)
• Signal Colors
Green background for buy signals
Red background for sell signals
Black text on signal backgrounds for better visibility
• Number Formats
Count / Buffer signals shown as "7 / (+2)"
Distribution Days / Cluster count shown as "1 / 0"
Exposure percentage shown with dots (e.g., "90%")
Trading Wisdom - Market Risk Management
"The key to successful trading is not just knowing when to enter, but managing your exposure based on market health. Always check two critical indicators before any trade:
1. Market Exposure Levels
100% (5 dots): Full positions in strong market
90% (4 dots): Slightly reduced positions
75% (3 dots): Moderate positions, more cautious
55% (2 dots): Half positions only
30% (1 dot): Small positions only
0% (0 dots): Stay in cash
2. Distribution Days Risk Levels
1-2 Days: Normal market behavior
3 Days: Caution - reduce new positions
4+ Days: High risk - defensive positioning
5-6 Days: Consider moving to cash
Remember: It's better to miss an opportunity than to catch a falling market. Let the Market Exposure Table be your guide to smart position sizing."
Pro Tip: Make checking these two indicators part of your daily routine. They're your first line of defense against major drawdowns.
Conclusion
The IBD Market School indicator brings William O'Neil's proven methodology to TradingView, providing a comprehensive system for market analysis and risk management. This tool automates the complex task of tracking market signals while maintaining strict adherence to IBD's time-tested principles.
Key Features
Follows IBD's core methodology for identifying market direction
Automates tracking of Distribution Days, Follow-Through Days, and market signals
Provides clear market exposure guidance through the Power Trend system
Helps maintain discipline through systematic Buy Switch control
Offers multiple layers of risk management
Best Practices
Always check Market Exposure and Distribution Day count before making trades
Let the Buy Switch guide your market participation
Follow Power Trend states for proper position sizing
Use the default volume settings for most accurate signal generation
Monitor all confirmation rules for proper signal validation
Remember: This indicator is designed to replicate IBD's methodology as closely as possible within TradingView's environment. While it automates signal detection and exposure management, successful trading still requires discipline, patience, and strict adherence to risk management principles.
"The goal is not to be right about the market - it's to make money by following the market's signals and managing risk."
Volume Spike DetectorVolume Spike Detector
This script is designed to identify significant spikes in trading volume and visually represent them on the chart. It calculates the 20-period simple moving average (SMA) of the trading volume and multiplies it by a user-defined threshold to determine the spike threshold. When the current volume exceeds this threshold, the script detects and highlights a volume spike.
Key Features:
Dynamic Spike Threshold:
The script calculates the spike threshold dynamically based on the average trading volume. Users can customize the threshold multiplier using an input setting.
Example: A threshold multiplier of 2.0 means the current volume must be twice the 20-period SMA to trigger a detection.
Visual Representation:
The current volume is plotted in blue bars.
The spike threshold is plotted as a red line, making it easy to visually identify when the volume crosses the threshold.
Alert Notification:
When a volume spike is detected, an alert is triggered to notify the user.
This feature is useful for real-time monitoring and spotting potential trading opportunities.
Use Case:
Traders can use this tool to identify sudden increases in trading activity, which may indicate a significant market move or event. It’s suitable for all markets, including cryptocurrencies, stocks, and forex.
Scatter PlotThe Price Volume Scatter Plot publication aims to provide intrabar detail as a Scatter Plot .
🔶 USAGE
A dot is drawn at every intrabar close price and its corresponding volume , as can seen in the following example:
Price is placed against the white y-axis, where volume is represented on the orange x-axis.
🔹 More detail
A Scatter Plot can be beneficial because it shows more detail compared with a Volume Profile (seen at the right of the Scatter Plot).
The Scatter Plot is accompanied by a "Line of Best Fit" (linear regression line) to help identify the underlying direction, which can be helpful in interpretation/evaluation.
It can be set as a screener by putting multiple layouts together.
🔹 Easier Interpretation
Instead of analysing the 1-minute chart together with volume, this can be visualised in the Scatter Plot, giving a straightforward and easy-to-interpret image of intrabar volume per price level.
One of the scatter plot's advantages is that volumes at the same price level are added to each other.
A dot on the scatter plot represents the cumulated amount of volume at that particular price level, regardless of whether the price closed one or more times at that price level.
Depending on the setting "Direction" , which sets the direction of the Volume-axis, users can hoover to see the corresponding price/volume.
🔹 Highest Intrabar Volume Values
Users can display up to 5 last maximum intrabar volume values, together with the intrabar timeframe (Res)
🔹 Practical Examples
When we divide the recent bar into three parts, the following can be noticed:
Price spends most of its time in the upper part, with relative medium-low volume, since the intrabar close prices are mostly situated in the upper left quadrant.
Price spends a shorter time in the middle part, with relative medium-low volume.
Price moved rarely below 61800 (the lowest part), but it was associated with high volume. None of the intrabar close prices reached the lowest area, and the price bounced back.
In the following example, the latest weekly candle shows a rejection of the 45.8 - 48.5K area, with the highest volume at the 45.8K level.
The next three successive candles show a declining maximum intrabar volume, after which the price broke through the 45.8K area.
🔹 Visual Options
There are many visual options available.
🔹 Change Direction
The Scatter Plot can be set in 4 different directions.
🔶 NOTES
🔹 Notes
The script uses the maximum available resources to draw the price/volume dots, which are 500 boxes and 500 labels. When the population size exceeds 1000, a warning is provided ( Not all data is shown ); otherwise, only the population size is displayed.
The Scatter Plot ideally needs a chart which contains at least 100 bars. When it contains less, a warning will be shown: bars < 100, not all data is shown
🔹 LTF Settings
When 'Auto' is enabled ( Settings , LTF ), the LTF will be the nearest possible x times smaller TF than the current TF. When 'Premium' is disabled, the minimum TF will always be 1 minute to ensure TradingView plans lower than Premium don't get an error.
Examples with current Daily TF (when Premium is enabled):
500 : 3 minute LTF
1500 (default): 1 minute LTF
5000: 30 seconds LTF (1 minute if Premium is disabled)
🔶 SETTINGS
Direction: Direction of Volume-axis; Left, Right, Up or Down
🔹 LTF
LTF: LTF setting
Auto + multiple: Adjusts the initial set LTF
Premium: Enable when your TradingView plan is Premium or higher
🔹 Character
Character: Style of Price/Volume dot
Fade: Increasing this number fades dots at lower price/volume
Color
🔹 Linear Regression
Toggle (enable/disable), color, linestyle
Center Cross: Toggle, color
🔹 Background Color
Fade: Increasing this number fades the background color near lower values
Volume: Background color that intensifies as the volume value on the volume-axis increases
Price: Background color that intensifies as the price value on the price-axis increases
🔹 Labels
Size: Size of price/volume labels
Volume: Color for volume labels/axis
Price: Color for price labels/axis
Display Population Size: Show the population size + warning if it exceeds 1000
🔹 Dashboard
Location: Location of dashboard
Size: Text size
Display LTF: Display the intrabar Lower Timeframe used
Highest IB volume: Display up to 5 previous highest Intrabar Volume values
FVG Chain (Consecutive Fair Value Gaps / Imbalances)This indicator detects fair value gaps that are created out of the touch of older fair value gaps, hence creating an "FVG chain".
It counts +1 for the chain whenever a new price leg's FVG is touched.
You can use the current FVG Chain count, as well as the high, low, and price leg high/low of the current FVG as input source in external indicators. Check the data window to see the plot values.
How FVGs are detected:
Bullish: The low of the current confirmed bar is above the high of 2 bars back.
Bearish: The high of the current confirmed bar is below the low of 2 bars back.
A bullish FVG chain is broken if:
The current FVG's price leg low is broken.
The previous bar closed below the FVG, and the current confirmed bar closed below the previous bar.
A bearish FVG chain is broken if:
The current FVG's price leg high is broken.
The previous bar closed above the FVG, and the current confirmed bar closed above the previous bar.
Romantic Information CoefficientThis script calculates the Mutual Information (MI) between the closing prices of two assets over a defined lookback period. Mutual Information is a measure of the shared information between two time-series datasets. A higher MI indicates a stronger relationship between the two assets.
Key Features:
Ticker Inputs: You can select the tickers for two assets. For example, SPY (S&P 500 ETF) and AAPL (Apple stock) can be compared.
Lookback Period: Choose the number of bars to look back and calculate the Mutual Information. A larger lookback period incorporates more data, but may be less responsive to recent price changes.
Bins for Discretization: Control the level of granularity for discretizing the asset prices. More bins result in a more detailed MI calculation but can also reduce the signal-to-noise ratio.
Color Coded MI: The MI plot dynamically changes color to provide visual feedback on whether the relationship between the two assets is strengthening (red) or weakening (blue).
Only for educational purposes. Not in anyway, investment advice.
James Gordon StrategyThis strategy is designed to identify potential bullish “bounce” points off a long-term moving average, specifically the 200-period Exponential Moving Average (EMA), on a 4-hour chart. The logic behind the strategy assumes that when price action interacts with this key support level and then closes above it, buyers are showing renewed interest and strength at that price level.
How It Works:
1. Focus on the 200 EMA:
The 200 EMA is often considered a long-term trend indicator. Price trading above the 200 EMA generally suggests an uptrend, while price trading below it suggests a downtrend. By targeting bounces on this EMA, the strategy looks for moments when price is demonstrating a willingness to hold or reclaim a pivotal support level.
2. Bounce Condition:
A “bounce” is defined by two key criteria:
- Test of Support: During the chosen candle (4-hour timeframe), the low price of the candle reaches the 200 EMA or dips just below it, indicating the market is testing that support zone.
- Close Above the EMA: By the end of that same candle, the price closes above the 200 EMA, signaling that buyers stepped in and defended that level.
3. Why This Matters:
When a candle’s low touches or moves below an important moving average, it might appear that the price could break down further. However, if the candle still manages to close above this moving average, it indicates resilience and potential bullish momentum. This can be an early sign of a price rebound, potentially offering a trading opportunity for those looking to go long.
4. Practical Use:
- Entry Signals: Traders may use these bounce signals to time entries, betting on the idea that price could move higher now that key support has held.
- Stop Placement and Risk Management: Traders can define their risk by placing stops just below the recent low or slightly under the 200 EMA.
- Market Context: To maximize its usefulness, traders should combine the bounce condition with other indicators, market structure analysis, and fundamental insights.
Traders should consider the overall trend, momentum indicators, volume profiles, or macro events to increase confidence in the signal.
In essence, the strategy aims to highlight moments when price action “bounces” off a crucial support level, potentially signaling a favorable entry point for bullish trades.
Weekly Opening Range and Previous Data for FuturesThis indicator will not predict future price action.
This indicator is a time based range tool. These types of tools are great to use when there is not any historical data to look back on (as in all time highs/lows). The user can use this indicator to measure distributions, use deviations of the range to identify support/resistance levels, and see how historical price action influences current price action. This indicator is unique because it uses the price range from the open of the futures market on Sunday 18:00 America/New York to the open of the Bond Market 8:00 America/New York as the range for all calculations.
This indicator collects the multiple points of data from each day of the week, and gives the user many options on how to use the data that is collected. The amount of data collected is based on the time frame of the chart (best used on a 15 minute chart), but is limited to 30 minute charts.
Data Collected:
Opening Range for the week
High of Each Day
Low of Each Day
Close of Each Day
Initially the range is plotted on the chart as a box, when the Bond market opens the high/low/mid is plotted, as well as the current week open and previous week close.
How the data is used.
Intraday: Monday does not have a previous day to pull data on, so all data for Monday is intraday data. When a new high is made, the indicator will search all previous data in the lookback period for the current day , find all highs that are within a set variance (determined by the user), and plot the corresponding lows from the matching days. It will do the same for new lows that are made, with corresponding historical highs. All of these levels are plotted on the chart, as well as the Average High, Average Low. If price moves beyond either Average, the Average of all days that distributed higher than the Average is plotted on the chart as Min/Max Average.
Previous Day Data: Tuesday - Friday. After the close of the day, the user has the option to choose either the High, Low, or Close of that day to find previous data that matches within a variance determined by the user; or an option to find the n closest matches (up to 20). That data is then matched to the corresponding next day data and plotted on the chart as a box. Example: Monday closes at +1 Deviation (Dev) of the Weekly Opening Range (WOR). The user sets the variance at 0.5 (0.5 Dev of the WOR), the indicator will search the lookback period for all Mondays that closed between 1.25 Dev and 0.75 Dev of the WOR. The matching Mondays will then be matched to their corresponding Tuesdays and the data for the High and Low from those Tuesdays will be placed on the chart as a box overlaying the current Tuesday. Each match is numbered so that corresponding Highs and Lows of each historical day can be identified. The same can be done for either the High or Low of the Previous Day.
The indicator has a table that can be shown.
Data shown in table:
Current Extension of the WOR
Maximum Extension of the WOR
Average WOR in %
Current WOR in %
Average Range for the day in % based on data set
Current Range for the day in %
Number of days in the data set
Number of Previous Day Matches
Variance for previous day data
Number of Intraday High Matches
Number of Intraday Low Matches
Variance for Intraday Matches
The table as well as all lines and boxes have the option of being shown or not, as well as have their settings customized to fit the users chart layout.
As with any indicator, do not let the data shown change your trading model. Past performance is not indicative to future performance.