Stage AnalysisStage Analysis was created by Stan Weinstein, and helps traders to identify where a stock/etf/index is in its Price Cycle.
The Price Cycle was introduced by Richard D. Wyckoff in the early 1900s, where he noted that stocks repeatedly go through a cycle of Accumulation, Markup, Distribution and Markdown. Stan Weinstein’s Stage Analysis method modified the Wyckoff Price Cycle, and converted it into four stages, which are:
Stage 1 = Accumulation
Stage 2 = Markup
Stage 3 = Distribution
Stage 4 = Markdown
Stage Analysis indicator:
Stan Weinstein had different definitions for the four stages – Stage 1: The Basing Area, Stage 2: The Advancing Phase, Stage 3: The Top Area, Stage 4: The Declining Phase. But for the purposes of the Stage Analysis indicator, you’ll note that we’ve combined Stage 1 and Stage 3, as they share numerous technical characteristics, and in our opinion, still require some discretionary judgement to determine whether they are showing accumulation or distribution characteristics.
So, we believe that neutral better describes them from a purely technical aspect, as being in Stage 3 doesn’t necessarily mean the top area, as it can still make a Stage 2 continuation breakout to new highs, instead of breaking down into Stage 4. Just as a Stage 1 basing pattern, can still make a further Stage 4 continuation breakdown, and won’t necessarily breakout into a Stage 2 advance. Hence, we display both Stage 1 and Stage 3 as Neutral, to help remove the perceived bias associated with Stage 3 and Stage 1.
So, in the indicator the Stages are displayed as three different colored backgrounds:
Blue = Stage 1 / Stage 3: Neutral
Green = Stage 2: Uptrend
Red = Stage 4: Downtrend
Stage 1 / Stage 3: Neutral (Blue background)
Stage 1 shows signs of a potential accumulation base structure developing and begins with a close above the 30-week simple moving average, when the stock is still below its (usually declining) 40-week MA as well, following a Stage 4 downtrend, and then remains in Stage 1 until either it breaks out into a Stage 2 uptrend, or returns to a Stage 4 downtrend once more. Although, there are often multiple failed breakout and breakdown attempts, which change the Stage briefly to Stage 2 or Stage 4, before reverting back into Stage 1, as the base broadens out.
The initial move into Stage 1 can occur in numerous different ways. Sometimes following a powerful rebound rally from the 52-week lows to above the 30-week MA, and at other times, after a basing period first, while the stock is still in Stage 4, and then only briefly moving into Stage 1, before breaking out into a new Stage 2 uptrend. But with all ways, there is a notable Change of Character compared to the previous Stage 4 downtrend, as supply and demand moves towards equilibrium, and the stock starts to build a more significant sideways range/base structure.
Stage 3 is the exact opposite of Stage 1, and instead of accumulation. Signs of distribution begin to appear when a stock is getting later in a Stage 2 Uptrend, with the stock first closing below its 30-week MA, and then starting to build a more significant sideways range/base structure, than the minor structures that formed when it was still trending higher in Stage 2.
It begins with a change of behaviour (i.e. a bigger correction than seen during the rest of Stage 2, that takes it below its 30-week, but still above its (usually rising) 40-week MA, and then that often broadens out into a sideways structure, with multiple swings above and below the 30-week MA, with tests of the highs and lows of the developing structure. Which can see it briefly revert to Stage 2, with failed breakout attempts at the highs (Upthrusts), or Stage 4, with failed breakdown attempts at the lows of the structure (Shakeouts or Springs).
So, Stage 1 and Stage 3 are both more neutral periods between the Stage 2 (Uptrend) and Stage 4 (Downtrend).
Stage 2: Uptrend (Green Background)
Stage 2 is the most important Stage for traders looking to buy stocks with the Stage Analysis method, and begins with a breakout from the prior Stage 1 base, but can also occur more suddenly from a V-bottom pattern or earnings gaps. In which case, it will move directly from a Stage 4 downtrend into a Stage 2 uptrend.
The move to Stage 2 requires certain technical aspects to be present, including a close above its near-term range (we use a 13-week range based on weekly closes), as well as its 200-day MA (40-week MA), and for our proprietary Stage Analysis Technical Attributes (SATA)* score to be at a least a SATA 6 of 10. And so, the change from Stage 1 to Stage 2 will often occur while the stock is still within a “broader” base structure, as the quarterly range is continually shifting, and doesn’t consider technical levels prior to that period.
The breakout point as Stage 2 begins is the Stage Analysis methods favoured entry zone for investors, as it marks the change from the Stage 1 basing period into the more dynamic Stage 2 uptrend (chart changes to green)
A secondary investor entry point can often form soon after the Stage 2 breakout, as the momentum fades from the initial rally, and it pulls back towards the breakout level, before finding support and swinging back higher into the advancing phase. So, the Stage Analysis indicator can be used to determine this secondary entry point by dropping down to an intraday timeframe – such as the 30-minute chart, and waiting for a Stage 2 breakout attempt on that much shorter timescale.
The Trader method entry points also form during the Stage 2 advance, and occur at the Stage 2 continuation breakout points of the more minor re-accumulation bases that form as the Stage 2 advance progresses higher.
Stage 4: Downtrend (Red Background)
Stage 4 is the opposite of Stage 2, and marks the beginning of a potential downtrend, as the distributional forces from Stage 3 gain control, and the stock attempts to move lower.
Stage 4 is the most important Stage for traders looking to short stocks with the Stage Analysis method, and as with Stage 2, it can also begin more suddenly following a sudden sharp decline or an earnings gap lower etc, that knifes through the key MAs and quarterly range.
The move to Stage 4 also requires certain technical aspects to be present, including a close below its near-term range (we use a 13-week range based on weekly closes), as well as its 200-day MA (40-week MA), and for our proprietary Stage Analysis Technical Attributes (SATA) score to be a maximum of a SATA 3 of 10, as if the SATA score is higher than 3, then it will still be considered as Stage 3 (blue) until that drops to a SATA 3 or lower.
The initial short entry point in Stage 4 occurs at the breakdown from Stage 3 to Stage 4 (chart changes to red), and as with Stage 2, a secondary entry point can form, but in Stage 4 it is on a potential pullback towards the breakdown level that then reverses lower once more. So, the Stage Analysis indicator can be used to determine this secondary entry point by dropping down to an intraday timeframe – such as the 30-minute chart, and waiting for a Stage 4 breakdown attempt on that much shorter timescale.
The Trader method short entry points also form during the Stage 4 decline, and occur at the Stage 4 continuation breakdown points of the more minor re-distribution bases that form as the Stage 4 decline progresses lower.
Recommended Chart Setup:
Weekly
Logarithmic scale
Recommended Indicators:
10 – Simple Moving Average
30 – Simple Moving Average
40 – Simple Moving Average (optional)
Mansfield Relative Strength (Original Version) (optional)
Stage Analysis Technical Attributes (SATA) (optional)
The Stages are intended to be used on the Weekly timeframe with a Logarithmic scale primarily, with a 10-week MA, 30-week MA and 40-week MA. But Stage Analysis can be used across multiple timeframes. So, for shorter-term swing traders, the 195-min (2bars/day), 2-hour, 1-hour, 30-min charts etc are often used with the same relative chart settings. But note that the lower the timeframe, the more noise that you’ll get, so you should always refer back to the weekly Stage to trade with the major trend.
Customise the Stage Analysis indicator
Edit colours of the Stages
Show/Hide Stages
Reference:
*Stage Analysis Technical Attributes (SATA)
The Stage Analysis Technical Attributes (SATA) scoring system is our proprietary tool which measures 10 of the key components that we look for in the Stage Analysis method to help to determine the Stage, and is made up of the following components:
Breakouts and Breakdowns
Price / Moving Averages
Relative Strength versus the S&P 500
Momentum
Volume
Overhead Resistance
Combining the SATA score with the price elements described in the Stages descriptions above, provides a Stage Analysis indicator that is faithful to Stan Weinstein's Stage Analysis method, and truly unique from other more simplistic automated versions of the Stages that you might find elsewhere.
Disclaimer: This indicator is for informational and educational purposes only. We accept no liability for any loss which may arise from the use of this indicator. All trading decisions are your own, and should be researched thoroughly, with appropriate risk management in place.
We are not affiliated with Stan Weinstein, and this is our own unique interpretation of the Stage Analysis method, based on our long experience with it.
วัฏจักร
Trading SessionsTrading Sessions Indicator
Overview
Trading Sessions is a visually displays major trading sessions worldwide. It overlays the trading hours of four major markets - Sydney, Tokyo, London, and New York - on your chart.
Key Features
Simultaneous display of 4 trading sessions
Visual session dividers
Customizable session boxes
Session status display in top-right corner
Session Settings
Configuration Options per Session
Toggle visibility
Timezone configuration
Trading hours setting (Default: 08:00-17:00)
Background color setting (95% transparency)
Default Session Configuration
Sydney Session (Yellow)
Tokyo Session (Red)
London Session (Blue)
New York Session (Lime)
Session Divider Settings
Toggle divider visibility
Divider line position (top/bottom)
Session emoji position (top/bottom)
Customizable emoji per session
Sydney: 🦘
Tokyo: 🗼
London: 🚇
New York: 🗽
Overlay Settings
Force Overlay
When enabled: Forces session backgrounds behind candles
When disabled: Standard overlay display
Box Overlay
When enabled: Displays price range boxes during sessions
Shows session name at box top
Individual color settings per session
Display Features
1. Background Color Distinction
Each session shown in configured color
Visibility adjusted through transparency
2. Session Divider Display
Vertical line (|): Session start/end
Upper line (¯)/lower line (_): During session
Emoji: Session start
3. Status Display
Session status shown in top-right
Active sessions highlighted in corresponding colors
Inactive sessions shown in gray
Limitations
Timezones must conform to IANA Time Zone Database format
Gold Friday Anomaly StrategyThis script implements the " Gold Friday Anomaly Strategy ," a well-known historical trading strategy that leverages the gold market's behavior from Thursday evening to Friday close. It is a backtesting-focused strategy designed to assess the historical performance of this pattern. Traders use this anomaly as it captures a recurring market tendency observed over the years.
What It Does:
Entry Condition: The strategy enters a long position at the beginning of the Friday trading session (Thursday evening close) within the defined backtesting period.
Exit Condition: Friday evening close.
Backtesting Controls: Allows users to set custom backtesting periods to evaluate strategy performance over specific date ranges.
Key Features:
Custom Backtest Periods: Easily configurable inputs to set the start and end date of the backtesting range.
Fixed Slippage and Commission Settings: Ensures realistic simulation of trading conditions.
Process Orders on Close: Backtesting is optimized by processing orders at the bar's close.
Important Notes:
Backtesting Only: This script is intended purely for backtesting purposes. Past performance is not indicative of future results.
Live Trading Recommendations: For live trading, it is highly recommended to use limit orders instead of market orders, especially during evening sessions, as market order slippage can be significant.
Default Settings:
Entry size: 10% of equity per trade.
Slippage: 1 tick.
Commission: 0.05% per trade.
Cabal Dev IndicatorThis is a TradingView Pine Script (version 6) that creates a technical analysis indicator called the "Cabal Dev Indicator." Here's what it does:
1. Core Functionality:
- It calculates a modified version of the Stochastic Momentum Index (SMI), which is a momentum indicator that shows where the current close is relative to the high/low range over a period
- The indicator combines elements of stochastic oscillator calculations with exponential moving averages (EMA)
2. Key Components:
- Uses configurable input parameters for:
- Percent K Length (default 15)
- Percent D Length (default 3)
- EMA Signal Length (default 15)
- Smoothing Period (default 5)
- Overbought level (default 40)
- Oversold level (default -40)
3. Calculation Method:
- Calculates the highest high and lowest low over the specified period
- Finds the difference between current close and the midpoint of the high-low range
- Applies EMA smoothing to both the range and relative differences
- Generates an SMI value and further smooths it using a simple moving average (SMA)
- Creates an EMA signal line based on the smoothed SMI
4. Visual Output:
- Plots the smoothed SMI line in green
- Plots an EMA signal line in red
- Shows overbought and oversold levels as gray horizontal lines
- Fills the areas above the overbought level with light red
- Fills the areas below the oversold level with light green
This indicator appears designed to help traders identify potential overbought and oversold conditions in the market, as well as momentum shifts, which could be used for trading decisions.
Would you like me to explain any specific part of the indicator in more detail?
Aeon FluxAeon Flux visualizes rolling cumulative realized volatility, as a signal-generating leading indicator.
'Realized volatility' is shorthand for the metric's true output: entropy . The uniformity (or lack of uniformity) of price and volume distributions over a rolling cumulative period, normalized across the asset's full history.
Entropy = x⋅log2(x)−(1−x)⋅log2(1−x)
AEON FLUX VISUALIZES TIME CYCLES
Aeon Flux distills any asset's cyclical pendulum-like behavior, from bull to bear and vice versa, in a visualization that surfaces and isolates the pendulum shift.
As such, Aeon Flux may be the first metric to automate visualization of time cycles.
Time cycles are a soft science and esoteric concept in markets: an opinion, hard to prove or disprove.
They're ultimately just cycles of accumulation & distribution, that tend to recur at rough consistent intervals.
(Aeon Flux does not measure accumulation & distribution directly, those forces are merely implied.)
ENTROPY AS A LEADING INDICATOR
The transitions between state (from bullish to bearish & vice versa) are often good swing entries & exits, across a wide range of high cap risk markets.
ENTROPY AS A DISTRIBUTION MONITOR
Aeon Flux has a track record of detecting higher timeframe macro distribution on the BTC Index.
The signal: two cycles in a row of lower highs, where the cycle high (the highest oscillator print achieved that cycle) is lower than the previous cycle's high.
Invalidation: if the second cycle in a row of lower highs touches the green AND red target areas on its way up, that demonstrates robust volatility, and the distribution signal is invalidated.
ALERTS & NOTIFICATIONS
Alerts are enabled for swing long & short signals. Automating alerts to monitor distribution are a potential enhancement for future iterations of the script.
Bitcoin Value Capture HeatmapBTC Value Capture Heatmap answers a question originally posed by Willy Woo:
"How much pressure on Bitcoin's market cap does one dollar of purchasing power exert?"
The higher the print, the more market cap grows per dollar invested -- adjusted for global M2 growth.
Bitcoin Value Capture Heatmap = ( market cap / global M2 ) / realized cap
A NOVEL INGREDIENT REVEALS A UNIQUE USE CASE
Adjusting bitcoin's market cap for global M2 growth sharpens a legacy metric with a normalizing factor that 'stabilizes' its view across cycles.
The metric peaked at identical levels (4.2), three bitcoin bull markets in a row. On the same day bitcoin price volatility peaked for the cycle, every time.
One might naturally expect this to coincide with cycle tops. But it doesn't.
It precede's cycle's tops: in a consistent, very specific way, that predisposing a unique use case.
BITCOIN'S VOLATILTY TOP
The metric's true use case only comes into clear focus when paired with an unrelated insight:
Whether in distribution (in Spring 2021) or a parabolic blow off top (2017 & 2013), each of the last 3 bitcoin cycle tops shows tight consistent adherence to the Wykoff Distribution Schematic.
"But Wykoff schematics apply to distribution tops, not to blow off tops."
A closer look at the last 15-20 years of parabolic blow off tops, across all asset classes , viewed through a Wykoff lens, reveals recurring tight adherence to Wykoff's Distribution Schematic.
Including (and especially) BTC's parabolic top in Dec 2017; BTC's parabolic top in 2013; and ETH's blow off top in Jan 2018.
In our age of automation, this makes sense. Wykoff's schematics mirror the timeless archetypal goal of his 'Composite Operator': max pain for all other market participants.
A process that lends itself to automation, optimized a bit more each passing year.
Peak cycle volatility maps directly to the Wykoff Distribution Schematic's 'Buying Climax'.
An event that preceded parabolic cycle tops, by about 2 weeks.
Future BTC parabolas (should they recur) would come at exponentially higher market caps, so they may take longer to unfold -- I don't take the 2 week pattern too seriously.
But Parabolic Distribution as an emergent archetypal market structure is likely encoded.
PUTTING IT ALL TOGETHER
Bitcoin Value Capture Heatmap signals peak cycle volatility, on a daily close of 4.2 on the metric's Y axis. It has never reached that level twice in the same cycle.
Awareness that:
(a) peak volatility for the cycle has likely been reached, and
(b) peak volatility has a history of tightly preceding bitcoin cycle tops, can
(c) empowers traders with a data-driven 'guide post' to their likely exactly location in an increasingly archetypal topping process.
SPECIFIC USES IN AN EXIT STRATEGY
When the Heatmap's signal level is reached, one might (for instance):
* Hedge, since bitcoin is likely closing in on its cycle top, OR
* Start to DCA out, over a pre-planned time period OR
* Rotate up the risk curve, since BTC probably doesn't have much upside left, OR
* Wait for acceptance one leg higher, which (consistent with Wykoff logic) is the likeliest place to expect an actual cycle top.
Though the ratio (in the past) touched 4.2 each cycle, a closer look shows subtly lower peaks per cycle, like most other on-chain cycle oscillators.
Extrapolating out, one might expect bitcoin's next top on volatility to print on any touch of 4.0 or higher.
Or one might give it more room to run, consistent with record institutiional flows this cycle.
Alerts are enabled for both options.
The metric works on any timeframe, but should only be used on the 1D chart.
ADM Indicator [CHE] Comprehensive Description of the Three Market Phases for TradingView
Introduction
Financial markets often exhibit patterns that reflect the collective behavior of participants. Recognizing these patterns can provide traders with valuable insights into potential future price movements. The ADM Indicator is designed to help traders identify and capitalize on these patterns by detecting three primary market phases:
1. Accumulation Phase
2. Manipulation Phase
3. Distribution Phase
This indicator places labels on the chart to signify these phases, aiding traders in making informed decisions. Below is an in-depth explanation of each phase, including how the ADM Indicator detects them.
1. Accumulation Phase
Definition
The Accumulation Phase is a period where informed investors or institutions discreetly purchase assets before a potential price increase. During this phase, the price typically moves within a confined range between established highs and lows.
Characteristics
- Price Range Bound: The asset's price stays within the previous high and low after a timeframe change.
- Low Volatility: Minimal price movement indicates a balance between buyers and sellers.
- Steady Volume: Trading volume may remain relatively constant or show slight increases.
- Market Sentiment: General market interest is low, as the accumulation is not yet apparent to the broader market.
Detection with ADM Indicator
- Criteria: An accumulation is detected when the price remains within the previous high and low after a timeframe change.
- Indicator Action: At the end of the period, if accumulation has occurred, the indicator places a label "Accumulation" on the chart.
- Visual Cues: A yellow semi-transparent background highlights the accumulation phase, enhancing visual recognition.
Implications for Traders
- Entry Opportunity: Consider preparing for potential long positions before a possible upward move.
- Risk Management: Use tight stop-loss orders below the support level due to the defined trading range.
2. Manipulation Phase
Definition
The Manipulation Phase, also known as the Shakeout Phase, occurs when dominant market players intentionally move the price to trigger stop-loss orders and create panic among less-informed traders. This action generates liquidity and better entry prices for large positions.
Characteristics
- False Breakouts: The price moves above the previous high or below the previous low but quickly reverses.
- Increased Volatility: Sharp price movements occur without fundamental reasons.
- Stop-Loss Hunting: The price targets common stop-loss areas, triggering them before reversing.
- Emotional Trading: Retail traders may react impulsively, leading to poor trading decisions.
Detection with ADM Indicator
- Manipulation Up:
- Criteria: Detected when the price rises above the previous high and then falls back below it.
- Indicator Action: Places a label "Manipulation Up" on the chart at the point of detection.
- Manipulation Down:
- Criteria: Detected when the price falls below the previous low and then rises back above it.
- Indicator Action: Places a label "Manipulation Down" on the chart at the point of detection.
- Visual Cues:
- Manipulation Up: Blue background highlights the phase.
- Manipulation Down: Orange background highlights the phase.
Implications for Traders
- Caution Advised: Be wary of false signals and avoid overreacting to sudden price changes.
- Preparation for Next Phase: Use this phase to anticipate potential distribution and adjust strategies accordingly.
3. Distribution Phase
Definition
The Distribution Phase occurs when the institutions or informed investors who accumulated positions start selling to the general market at higher prices. This phase often follows a Manipulation Phase and may signal an impending trend reversal.
Characteristics
- Price Reversal: The price moves in the opposite direction of the prior manipulation.
- High Trading Volume: Increased selling activity as large players offload positions.
- Trend Weakening: The previous trend loses momentum, indicating a potential shift.
- Market Sentiment Shift: Optimism fades, and uncertainty or pessimism may emerge.
Detection with ADM Indicator
- Distribution Up:
- Criteria: Detected after a verified Manipulation Up when the price subsequently falls below the previous low.
- Indicator Action: Places a label "Distribution Up" on the chart.
- Distribution Down:
- Criteria: Detected after a verified Manipulation Down when the price subsequently rises above the previous high.
- Indicator Action: Places a label "Distribution Down" on the chart.
- Visual Cues:
- Distribution Up: Purple background highlights the phase.
- Distribution Down: Maroon background highlights the phase.
Implications for Traders
- Exit Signals: Consider closing long positions if in a Distribution Up phase.
- Short Selling Opportunities: Potential to enter short positions anticipating a downtrend.
Using the ADM Indicator on TradingView
Indicator Overview
The ADM Indicator automates the detection of Accumulation, Manipulation, and Distribution phases by analyzing price movements relative to previous highs and lows on a selected timeframe. It provides visual cues and labels on the chart, helping traders quickly identify the current market phase.
Features
- Multi-Timeframe Analysis: Choose from auto, multiplier, or manual timeframe settings.
- Visual Labels: Clear labeling of market phases directly on the chart.
- Background Highlighting: Distinct background colors for each phase.
- Customizable Settings: Adjust colors, styles, and display options.
- Period Separators: Optional separators delineate different timeframes.
Interpreting the Indicator
1. Accumulation Phase
- Detection: Price stays within the previous high and low after a timeframe change.
- Label: "Accumulation" placed at the period's end if detected.
- Background: Yellow semi-transparent color.
- Action: Prepare for potential long positions.
2. Manipulation Phase
- Detection:
- Manipulation Up: Price rises above previous high and then falls back below.
- Manipulation Down: Price falls below previous low and then rises back above.
- Labels: "Manipulation Up" or "Manipulation Down" placed at detection.
- Background:
- Manipulation Up: Blue color.
- Manipulation Down: Orange color.
- Action: Exercise caution; avoid impulsive trades.
3. Distribution Phase
- Detection:
- Distribution Up: After a Manipulation Up, price falls below previous low.
- Distribution Down: After a Manipulation Down, price rises above previous high.
- Labels: "Distribution Up" or "Distribution Down" placed at detection.
- Background:
- Distribution Up: Purple color.
- Distribution Down: Maroon color.
- Action: Consider exiting positions or entering counter-trend trades.
Configuring the Indicator
- Timeframe Type: Select Auto, Multiplier, or Manual for analysis timeframe.
- Multiplier: Set a custom multiplier when using "Multiplier" type.
- Manual Resolution: Define a specific timeframe with "Manual" option.
- Separator Settings: Customize period separators for visual clarity.
- Label Display Options: Choose to display all labels or only the most recent.
- Visualization Settings: Adjust colors and styles for personal preference.
Practical Tips
- Combine with Other Analysis Tools: Use alongside volume indicators, trend lines, or other technical tools.
- Backtesting: Review historical data to understand how the indicator signals would have impacted past trades.
- Stay Informed: Keep abreast of market news that might affect price movements beyond technical analysis.
- Risk Management: Always employ stop-loss orders and position sizing strategies.
Conclusion
The ADM Indicator is a valuable tool for traders seeking to understand and leverage market phases. By detecting Accumulation, Manipulation, and Distribution phases through specific price action criteria, it provides actionable insights into market dynamics.
Understanding the precise conditions under which each phase is detected empowers traders to make more informed decisions. Whether preparing for potential breakouts during accumulation, exercising caution during manipulation, or adjusting positions during distribution, the ADM Indicator aids in navigating the complexities of the financial markets.
Disclaimer:
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
This indicator is inspired by the Super 6x Indicators: RSI, MACD, Stochastic, Loxxer, CCI, and Velocity . A special thanks to Loxx for their relentless effort, creativity, and contributions to the TradingView community, which served as a foundation for this work.
Best regards Chervolino
Overview of the Timeframe Levels in the `autotimeframe()` Function
The `autotimeframe()` function automatically adjusts the higher timeframe based on the current chart timeframe. Here are the specific timeframe levels used in the function:
- Current Timeframe ≤ 1 Minute
→ Higher Timeframe: 240 Minutes (4 Hours)
- Current Timeframe ≤ 5 Minutes
→ Higher Timeframe: 1 Day
- Current Timeframe ≤ 1 Hour
→ Higher Timeframe: 3 Days
- Current Timeframe ≤ 4 Hours
→ Higher Timeframe: 7 Days
- Current Timeframe ≤ 12 Hours
→ Higher Timeframe: 1 Month
- Current Timeframe ≤ 1 Day
→ Higher Timeframe: 3 Months
- Current Timeframe ≤ 7 Days
→ Higher Timeframe: 6 Months
- For All Higher Timeframes (over 7 Days)
→ Higher Timeframe: 12 Months
Summary:
The function assigns a corresponding higher timeframe based on the current timeframe to optimize the analysis:
- 1 Minute or Less → 4 Hours
- Up to 5 Minutes → 1 Day
- Up to 1 Hour → 3 Days
- Up to 4 Hours → 7 Days
- Up to 12 Hours → 1 Month
- Up to 1 Day → 3 Months
- Up to 7 Days → 6 Months
- Over 7 Days → 12 Months
This automated adjustment ensures that the indicator works effectively across different chart timeframes without requiring manual changes.
[w3ss1] TimewindowsYou can use this if you want some subtle indication of a specific timewindow on the chart.
You can use it to see the macrowindows, or set the time of a session or any timewindow you want.
You can choose the color and plot it on the bottom or the top of the chart.
[w3ss1] Colored candlesA simple script that colors the candles in a color of choise on specific times of choice.
You can use it if you want to color like Asia session, or if you want to focus on specific times of day.
This keeps the chart clean, it just colors the candles in the choosen timings.
Statistical Volatility Injections [neo.|]Introduction:
The Statistical Volatility indicator is a versatile tool designed to help traders gauge market volatility over time. By analyzing historical data through a customizable lookback period, it highlights zones of high and low volatility using intuitive colored gradients. This indicator enables traders to make informed decisions by identifying patterns in price movement or volume fluctuations, helping to optimize entries, exits, and overall trading strategy.
Description:
Volatility plays a critical role in financial markets, influencing price movements and trader behavior. This indicator calculates historical volatility using two approaches:
Ranges: Evaluates the price movement by measuring the high-to-low range of candles relative to their closing price.
Volume: Considers trading activity by analyzing the volume associated with each candle.
By mapping out periods of high and low volatility, the indicator provides traders with actionable insights into time where potential breakouts, reversals, or consolidations are more likely to happen. High volatility zones may indicate strong market movements, while low volatility zones often precede significant price action, giving traders a valuable edge.
Key Features:
Compare time based volatility between assets:
Adaptive display will calculate intraday volatility when under the 1h timeframe, and weekly volatility if on the 1h timeframe or above:
OANDA:GBPJPY On the 5min timeframe:
OANDA:GBPJPY On the 1h timeframe:
Display modes allow the volatility to be viewed as ranges and as bars:
How It Works:
Data Collection: The script analyzes historical candles using the user-defined lookback period and calculation type.
Data Processing: Each candle’s volatility is calculated and stored, enabling comparisons across the selected timeframe.
Visual Representation: Using a gradient color scheme, the indicator overlays the results on your chart, highlighting areas of interest based on historical volatility levels.
How to Use:
Setup:
Add the indicator to your chart.
Adjust the lookback period, gradient colors, and choose your preferred calculation mode (Ranges or Volume).
Interpretation:
Look for red zones to identify high-volatility periods—potential breakout or reversal areas.
Use yellow zones to anticipate consolidation or low-activity phases.
Customization:
Enable "Display ranges" to see box height variations reflecting volatility intensity.
Use the "Use Table" feature to summarize volatility data for quick reference.
Advanced Settings:
Adjust style options such as color gradients and overlapping controls for a cleaner chart view.
Retracement Painpoints - Robinhodl21Description:
Retracement Painpoints is crafted to delve into the psychology of markets, particularly assets that are heavily driven by profit expectations and hype cycles. This tool excels when applied to assets experiencing strong hype phases. By visualizing downturns, you can assess which pullbacks are mere pauses in the hype cycle and which ones might signal the end of a trend or precede more significant declines. This insight allows you to identify critical points where market sentiment shifts, helping you make more informed trading decisions.
Main Features:
Focuses on assets influenced by hype and strong profit expectations. Helps distinguish between normal retracements and potential trend reversals.
Trend Detection Methods: Moving Average (MA): Utilizes a customizable MA period to determine market trends. Delta to All-Time High (ATH): Analyzes the percentage distance from the ATH to define trend direction. No Trend Detection: Allows for neutral analysis without trend bias.
Statistical Drawdown Analysis: Identifies local minima in drawdowns to calculate statistically significant levels. Option to calculate statistics based on trend direction (bullish/bearish). Adjustable variables for fine-tuning statistical levels.
Visualization: Plots drawdown curves with color-coding based on trend direction. Displays calculated statistical levels on the chart to highlight potential pain points.
Usage:
Set Parameters: Trend Detection Method: Choose your preferred method (MA, Delta to ATH, or None). MA Period: Define the period for the moving average (default: 420). Delta to ATH (%): Set the threshold for distance to ATH (default: 30%). Neutral Zone Delta to ATH (%): Define the neutral market zone (default: 60%). Stat Variables 1 & 2: Adjust these to select the desired statistical drawdown levels. Minimum Drawdown Threshold (%): Set the minimum drawdown to consider in analysis (default: 10%).
Interpretation: Drawdown Curve: Monitor percentage declines from local maxima. The color indicates the current trend direction: Green: Uptrend. Red: Downtrend. Gray: Neutral or no trend detection. Statistical Levels: Use the displayed levels as potential support or resistance zones, reflecting key psychological levels in the market.
Strategic Application: Identify crucial areas where the price has historically reversed. Assess whether a downturn is a typical retracement within a hype cycle or a sign of a more significant decline. Combine this tool with other technical analysis methods to enhance your trading strategy. Adjust settings based on market conditions and personal trading preferences.
Notes: The indicator is based on historical data and should not be used as the sole basis for trading decisions. It's recommended to test the indicator across various markets and timeframes. Past performance is not indicative of future results.
Created by Robinhodl
Kalman Trend Strength Index (K-TSI)The Kalman Trend Strength Index (K-TSI) is an innovative technical indicator that combines the Kalman filter with correlation analysis to measure trend strength in financial markets. This sophisticated tool aims to provide traders with a more refined method for trend analysis and market dynamics interpretation.
The use of the Kalman filter is a key feature of the K-TSI. This advanced algorithm is renowned for its ability to extract meaningful signals from noisy data. In financial markets, this translates to smoothing out price action while maintaining responsiveness to genuine market movements. By applying the Kalman filter to price data before performing correlation analysis, the K-TSI potentially offers more stable and reliable trend signals.
The synergy between the Kalman-filtered price data and correlation analysis creates an oscillator that attempts to capture market dynamics more effectively. The correlation component contributes by measuring the strength and consistency of price movements relative to time, while the Kalman filter adds robustness by reducing the impact of market noise. Basing these calculations on Kalman-filtered data may help reduce false signals and provide a clearer picture of underlying market trends.
A notable aspect of the K-TSI is its normalization process. This approach adjusts the indicator's values to a standardized range (-1 to 1), allowing for consistent interpretation across different market conditions and timeframes. This flexibility, combined with the noise-reduction properties of the Kalman filter, positions the K-TSI as a potentially useful tool for various market environments.
In practice, traders might find that the K-TSI offers several potential benefits:
Smoother trend identification, which could aid in detecting the start and end of trends more accurately.
Possibly reduced false signals, particularly in choppy or volatile markets.
Potential for improved trend strength assessment, which might lead to more confident trading decisions.
Consistent performance across different timeframes, due to the adaptive nature of the Kalman filter and the normalization process.
The K-TSI's visual representation as a color-coded histogram further enhances its utility. The changing colors and intensities provide an intuitive way to gauge both the direction and strength of trends, making it easier for traders to quickly assess market conditions.
While the K-TSI builds upon existing concepts in technical analysis, its integration of the Kalman filter with correlation analysis offers traders an interesting tool for market analysis. It represents an attempt to address common challenges in technical analysis, such as noise reduction and trend strength quantification.
As with any technical indicator, the K-TSI should be used as part of a broader trading strategy rather than in isolation. Its effectiveness will depend on how well it aligns with a trader's individual approach and market conditions. For traders looking to explore a more refined trend strength oscillator, the Kalman Trend Strength Index could be a worthwhile addition to their analytical toolkit.
Precision Swing Point V2.0 - [Gozlan]"Precision Swing Point V2.0," is well-structured and aims to highlight specific conditions in the chart while factoring in time zones and user configurations. Here's a quick breakdown and a couple of improvements or fixes to consider:
Key Features:
Multi-Symbol Analysis:
Incorporates three symbols (Symbol 1, Symbol 2, and Symbol 3) and compares their open/close values to derive candle states (green/red).
Highlighting Conditions:
Green: When Symbol 2 is red and Symbol 1 is green.
Red: When Symbol 2 is green and Symbol 1 is red.
Blue: When Symbol 3 is green and Symbol 1 is red.
Custom Time Highlights:
Allows users to specify times for highlighting specific bars.
Timezone Flexibility:
Time calculations adjust based on user-defined UTC offsets.
Edwin K Stochastic Candle ColorsThe Stochastic Candle Colors indicator highlights price action using candle colors based on signals from the stochastic oscillator. Here's how to use it:
1. Indicator Purpose
This indicator overlays on your price chart and changes candle colors based on stochastic oscillator signals:
Green candles: Indicate a bullish signal when the %K line crosses above the %D line in an oversold area (below 20).
Red candles: Indicate a bearish signal when the %K line crosses below the %D line in an overbought area (above 80).
2. How to Use the Inputs
K (periodK): The lookback period for calculating the %K line of the stochastic oscillator. A smaller value makes the indicator more sensitive to price changes.
D (periodD): The period for smoothing the %K line to get the %D line. A larger value creates smoother signals but may result in delays.
Smooth (smoothK): The additional smoothing applied to the %K line before calculating the %D line. This helps reduce noise.
3. How to Interpret the Candle Colors
Green Candle:
Occurs when the %K line crosses above the %D line in the oversold zone (below 20).
Signals a potential bullish reversal.
Red Candle:
Occurs when the %K line crosses below the %D line in the overbought zone (above 80).
Signals a potential bearish reversal.
No Color:
No crossover occurs, or the crossover doesn't happen in overbought/oversold zones.
4. Application in Trading
Entry Points:
Buy when you see a green candle and confirm with other indicators or chart patterns.
Sell when you see a red candle and confirm with additional signals.
Trend Context:
Combine this indicator with trend-following tools like moving averages or support/resistance levels to improve accuracy.
Stop Loss/Take Profit:
Use nearby swing highs/lows for stop-loss placement.
Set profit targets based on risk-reward ratios or key levels.
5. Customization
Adjust the input parameters (K, D, and Smooth) to align the indicator's sensitivity with your trading style:
Short-term traders might prefer lower values for quicker signals.
Long-term traders might opt for higher values for smoother, more reliable signals.
6. Limitations
Signals in isolation might not be reliable. Always use this indicator in conjunction with other tools.
Avoid using during low volatility or sideways markets as stochastic oscillators can produce false signals.
Altcoin Season Index - AdamThe "Altcoin Season Index" is a powerful tool for understanding market dynamics between Bitcoin and altcoins. This indicator helps traders identify whether the market is favoring Bitcoin or if it has shifted to favor altcoins. Understanding this can be crucial for making informed decisions about allocating your investments within the crypto market.
Overview of the Altcoin Season Index
The Altcoin Season Index calculates how well the top 10 altcoins are performing compared to Bitcoin over a given period. It helps traders determine if they are currently in an "Altcoin Season" or a "Bitcoin Season." The indicator gives a score from 0 to 100, representing the percentage of altcoins outperforming Bitcoin over a specific time window. When many altcoins are performing better than Bitcoin, it suggests a possible "Altcoin Season," whereas the opposite may indicate a period of Bitcoin dominance.
Key Features:
1. Top 10 Altcoin Performance Comparison: The indicator evaluates the performance of the top 10 altcoins compared to Bitcoin. It provides a clear view of how well altcoins are doing relative to the market leader, Bitcoin.
2. Customizable Performance Period: The period of analysis is adjustable, allowing users to set a specific timeframe, typically in days, to evaluate the relative performance of altcoins versus Bitcoin.
3. Dynamic Replacement of Altcoins: The indicator includes a feature to replace the last coin in the list, ensuring that the data stays relevant as market conditions change. For example, when a new altcoin enters the top 10 in terms of market cap, the indicator can replace an older coin that is falling out of the top ranks.
4. Threshold Indicators: The indicator uses predefined thresholds to determine and visualize whether it is an "Altcoin Season" or a "Bitcoin Season":
- A value above 75 indicates an Altcoin Season, suggesting that altcoins are outperforming Bitcoin.
- A value below 25 suggests Bitcoin dominance, where Bitcoin is outperforming the majority of altcoins.
How the Indicator Works:
1. Performance Calculation: The indicator calculates the percentage change in price for each of the top 10 altcoins and Bitcoin over a given number of days. The comparison is made by looking at how much each asset's price has changed over the specified period.
2. Altcoin Season Calculation: The indicator counts the number of altcoins that have outperformed Bitcoin during the given period. The result is then expressed as a percentage, known as the Altcoin Season Index. If 8 out of 10 altcoins are outperforming Bitcoin, the index will be 80%, signaling a strong altcoin season.
3. Visual Representation: The indicator is visualized on a separate panel within TradingView, showing the Altcoin Season Index over time. Additionally, thresholds are marked on the chart, and background colors are applied to provide visual cues:
- Red Background: When the Altcoin Season Index is above 75, indicating a strong altcoin season.
- Blue Background: When the Altcoin Season Index is below 25, indicating Bitcoin dominance.
Practical Use:
- Identify Market Cycles: Traders can use this indicator to identify when the market is moving into or out of an altcoin season. This can help traders decide whether to rotate capital into altcoins or Bitcoin.
- Investment Strategy Adjustment: During altcoin seasons, altcoins tend to outperform Bitcoin. Traders might allocate more of their portfolio to promising altcoins. Conversely, during Bitcoin-dominant periods, shifting investments towards Bitcoin could provide more stability.
- Support Technical Analysis: This indicator complements other forms of technical analysis by providing macro-level insights about market direction and which asset classes might be favored.
Example Usage:
Imagine that the Altcoin Season Index is currently at 80%. This means that 8 of the top 10 altcoins have performed better than Bitcoin over the selected period. This strong altcoin performance suggests that the market has entered an "Altcoin Season." A trader observing this might consider reallocating funds towards altcoins to capitalize on the positive momentum.
Alternatively, if the index is at 20%, only 2 out of the top 10 altcoins are outperforming Bitcoin, indicating that Bitcoin is currently the stronger player. In this scenario, traders may choose to prioritize Bitcoin or maintain a more conservative portfolio allocation.
Note:
This indicator includes a feature to replace the bottom-ranked altcoin (typically a coin that falls out of the top 10) with a new altcoin when market conditions change. This ensures that the analysis remains relevant by focusing on the top-performing assets by market capitalization.
Conclusion:
The Altcoin Season Index is a helpful tool for understanding broader trends in the cryptocurrency market and making strategic investment decisions. By monitoring which assets are performing better, traders can adapt their strategies and make more informed choices, particularly during shifts in market sentiment.
Please leave your feedback or contributions if there are any inaccuracies in my indicator. Thank you!
Wick Length Display + Alert conditionsDescription of the Wick Length Display (Advanced) script
Originality and purpose of the script
The Wick Length Display (Advanced) script is an innovative tool for traders who want to gain detailed insights into the length of candle wicks. It stands out for its versatility and user-friendly customization options. It combines precise technical calculations with visual representation to provide important information about market movements and dynamics right on the chart.
Functionality
The script calculates and displays the length of the upper and lower wicks of each candle on the chart. It also provides additional visual cues such as:
• “Bull pressure”: When green candles do not have upper wicks, this indicates strong buying pressure.
• “Bear pressure”: When red candles do not have lower wicks, this indicates strong selling pressure.
• Threshold conditions: Only displays wicks that exceed a certain threshold (optional).
• Display in pips: Allows you to display wick lengths in pips, which is useful for forex traders.
How it works
The script analyzes each candle using the following calculations:
1. Wick length calculation:
◦ Upper wick length = High - (top of the body)
◦ Lower wick length = (bottom of the body) - Low
2. Display conditions:
◦ It distinguishes between bullish and bearish candles.
◦ It checks if the calculated wicks exceed the defined thresholds before displaying them.
3. Dynamic labels:
◦ Labels are placed above or below the respective candles.
◦ Size, color and type of labels are fully customizable.
4. Limitation of labels:
◦ To ensure clarity, a maximum number of labels is defined.
Usage
1. Customization:
◦ Open the script in the Pine Script Editor in TradingView.
◦ Use the input options to customize parameters such as color selection, label size, thresholds and other details according to your requirements.
2. Enable thresholds:
◦ Enable thresholds to show labels only for relevant wicks (default is 6).
◦ Define the minimum wick lengths for bullish (green) and bearish (red) candles.
3. Show in pips:
◦ Enable the “Show wick length in pips” option to show the results in pips (especially suitable for Forex).
4. Edit pressure labels:
◦ Turn the “Bull Pressure” and “Bear Pressure” features on or off depending on your analysis settings.
Concepts behind the calculations
• Technical market analysis: Wick lengths can indicate buying or selling pressure and provide important information on market psychology.
• Thresholds and filtering: The script uses thresholds to avoid visual overload and highlight only essential data.
• Label display: Dynamic labels improve chart readability and give the user instant feedback on market developments.
Usage
This script is great for:
• Intraday trading: Analyzing short-term movements using wick lengths.
• Forex trading: Tracking market momentum using the pip indicator.
• Swing trading: Identifying buying or selling pressure in key markets.
• Visual support: Ideal for traders who prefer a graphical display.
Description of the Wick Length Display (Advanced) script
Originality and purpose of the script
The Wick Length Display (Advanced) script is an innovative tool for traders who want to gain detailed insights into the length of candle wicks. It stands out for its versatility and user-friendly customization options. It combines precise technical calculations with visual representation to provide important information about market movements and dynamics right on the chart.
Functionality
The script calculates and displays the length of the upper and lower wicks of each candle on the chart. It also provides additional visual cues such as:
• “Bull pressure”: When green candles do not have upper wicks, this indicates strong buying pressure.
• “Bear pressure”: When red candles do not have lower wicks, this indicates strong selling pressure.
• Threshold conditions: Only displays wicks that exceed a certain threshold (optional).
• Display in pips: Allows you to display wick lengths in pips, which is useful for forex traders.
How it works
The script analyzes each candle using the following calculations:
1. Wick length calculation:
◦ Upper wick length = High - (top of the body)
◦ Lower wick length = (bottom of the body) - Low
2. Display conditions:
◦ It distinguishes between bullish and bearish candles.
◦ It checks if the calculated wicks exceed the defined thresholds before displaying them.
3. Dynamic labels:
◦ Labels are placed above or below the respective candles.
◦ Size, color and type of labels are fully customizable.
4. Limitation of labels
Alert conditions:
Alerts are triggered when the wick length of a bullish or bearish candle exceeds the defined thresholds.
Alert function:
alert() is used to issue messages with a frequency of once per candle when the conditions are met.
How to set up alerts
Save the script and add it to your chart.
Open the alert settings in TradingView.
Select the script's custom message as a trigger.
Adjust the frequency and notification type (popup, email, etc.).
Now you have a powerful tool with visual analysis and alert function!
New Bar AlertThis is probably the simplest indicator on Tradingview, it generates an alert on every new bar.
Useful for strategies where you only need chart attention at the new bar, see if you have a setup.
Helps not having to stare at the charts, the alert will tell you when it's time to take a look.
Works on all timeframes but in order to keep your sanity, best used on higher timeframes, 5mins and up.
Risk Indicator# Risk Indicator
A dynamic risk analysis tool that helps traders identify optimal entry and exit points using a normalized risk scale from 0 to 1. The indicator combines price action, moving averages, and logarithmic scaling to provide clear visual signals for different risk zones.
### Key Features
• Displays risk levels on a scale of 0-1 with intuitive color gradients (blue → cyan → green → yellow → orange → red)
• Shows predicted price levels for different risk values
• Divides the chart into 5 DCA (Dollar Cost Average) zones
• Includes customizable alerts for rapid risk changes and zone transitions
• Automatically adjusts to market conditions using dynamic ATH/ATL calculations
### Customizable Parameters
• SMA Period: Adjust the smoothing period for the baseline moving average
• Power Factor: Fine-tune the sensitivity of risk calculations
• Initial ATL Value: Set the starting point for ATL calculations
• Label Offset: Adjust the position of price level labels
• Visual Options: Toggle price levels and zone labels
• Alert Settings: Customize alert thresholds and enable/disable notifications
### Risk Zones Explained
The indicator divides the chart into five distinct zones:
- 0.0-0.2: DCA 5x (Deep Blue) - Strongest buy zone
- 0.2-0.4: DCA 4x (Cyan) - Strong buy zone
- 0.4-0.6: DCA 3x (Green) - Neutral zone
- 0.6-0.8: DCA 2x (Yellow/Orange) - Take profit zone
- 0.8-1.0: DCA 1x (Red) - Strong take profit / potential sell zone
### Alerts
Built-in alerts for:
• Rapid increases in risk level
• Rapid decreases in risk level
• Entry into buy zones
• Entry into sell zones
### How to Use
1. Add the indicator to your chart
2. Adjust the SMA period and power factor to match your trading timeframe
3. Monitor the risk level and corresponding price predictions
4. Use the DCA zones to guide your position sizing
5. Set up alerts for your preferred risk thresholds
### Tips
- Lower risk values (blue/cyan) suggest potentially good entry points
- Higher risk values (orange/red) suggest taking profits or reducing position size
- Use in conjunction with other technical analysis tools for best results
- Adjust the power factor to fine-tune sensitivity to price movements
### Notes
- Past performance is not indicative of future results
- This indicator is meant to be used as part of a complete trading strategy
- Always manage your risk and position size according to your trading plan
Version 1.0
Detrended Price Oscillator [NexusSignals]Detrended Price Oscillator (DPO) is a detrended price oscillator, used in technical analysis, strips out price trends in an effort to estimate the length of price cycles from peak to peak or trough to trough.
DPO is not a momentum indicator, instead highlights peaks and troughs in price, which are used to estimate buy and sell points in line with the historical cycle. (cf. to investopedia)
DPO indicator made by NexusSignals components :
a filled area that allow users to see easy the trend of an asset;
a sma moving average on chart (default length is 20)
a 20 sma on oscillator, both ma's are color coded to show uptrend / downtrend
a donchian channel applied to the dpo to show breakouts, breakdowns and resistances/support, reversals
few alerts for price crossing above ma, cross above the 0 dpo line, and for cross above and below the donchian channels top and bottom
How you can use DPO indicator ?
The detrended price oscillator (DPO) can be used for measuring the distance between peaks and troughs in the indicator that may help traders to make future decisions as they can locate the most recent trough and determine when the next one may occur in the meassured distance on oscillator between peaks and troughs.
You can use the indicator to find the potential price reversals, for example when the price of an asset is in a bearish trend and the dpo is bouncing from the donchian channel bottom, that may be a potential swing low for that asset, same thing in a bullish trend when the dpo rejecting at top of donchian channel may be a trend reversal, a pullback or swing high.
When DPO is above the 0 trend is in an uptrend and when dpo is below the zero the asset is possible to move into a downtrend.
Also crosses of DPO above and below the DPO moving average may signalising a trend change.
SMC Market Structure [BlueCaptial]This indicator is tailored for traders using Smart Money Concepts (SMC) and focuses on identifying:
Trend continuation or reversal points.
High-probability trade zones based on demand and supply.
Liquidity sweeps and their implications for potential price moves.
Key Features:
Market Structure Analysis:
1. Highs and Lows (H/L):
Marks significant highs (H) and lows (L) in the price chart.
Option to display equal highs/lows for pullback and minor structure analysis.
Displays sweeping lines for H/L levels to highlight liquidity grabs (stop hunts).
2. Break of Structure (BoS) and Change of Character (ChoCh):
Detects and labels critical moments in market structure shifts:
BoS: Indicates a break of previous highs/lows, showing potential trend continuation.
ChoCh: Marks potential trend reversals.
Visualized with labels and dashed lines.
3. Internal Structure:
Tracks minor internal movements in the market.
Highlights internal highs (puUp) and lows (puDn) with arrows.
Support for IDM Levels:
IDM (Intermediate Demand and Supply Levels):
Identifies and displays the most recent levels of demand (low) and supply (high).
Option to display both historical and live IDM levels.
Provides visual cues with dotted lines and markers.
Liquidity Sweeps and Key Levels:
Marks liquidity sweeps when significant H/L levels are breached but fail to close beyond
them.
Displays "$$$" markers at these points, signifying areas where stop-loss orders might have
been triggered.
Bar Coloring:
Option to color bars based on specific conditions:
Bullish or Bearish SCOB (Strong Candlestick Breakout):
Bullish SCOB: Price breaks above previous highs with strength.
Bearish SCOB: Price breaks below previous lows with strength.
Custom bar coloring based on trends (bullish or bearish).
Configurable Inputs:
H/L Marking Options:
Enable/disable H/L markers, and set their colors.
BoS/ChoCh :
Configure labels, colors, and visibility for BoS and ChoCh markers.
Internal Structure:
Customize colors for minor highs (puUp) and lows (puDn).
Sweeps:
Toggle sweeping line display and configure colors.
IDM Levels:
Display live and historical IDM levels with customizable styles.
Asset MaxGain MinLoss Tracker [CHE]Asset MaxGain MinLoss Tracker – Your Tool to Discover the Best Trading Opportunities
Introduction
Hello dear traders,
Today, I'd like to introduce you to a fantastic tool: the Asset MaxGain MinLoss Tracker . This indicator is designed to help you identify the best trading opportunities in the market by analyzing the maximum gain and adjusted maximum loss potentials of various assets.
Why Use This Indicator?
1. Time-Saving Analysis
Instead of spending hours sifting through different charts, this indicator provides you with key metrics for up to 10 assets at a glance.
2. Compare Multiple Assets Simultaneously
Monitor and compare multiple assets to discover which ones offer the highest profit potential and the lowest risk of loss.
3. Customizable Settings
Adjust the observation period and select the assets you want to analyze according to your trading strategy.
4. Clear Visual Representation
Data is presented in an easy-to-read table directly on your chart, highlighting assets with the highest maximum gain and the lowest adjusted maximum loss.
How to Use It in Everyday Trading
Step 1: Setting Up the Indicator
Select Your Assets: Choose up to 10 assets you wish to track. These can be cryptocurrencies, stocks, forex pairs, etc.
Configure the Trading Period Length: Set the number of bars (candles) over which you want to calculate the maximum gain and adjusted maximum loss. This allows you to tailor the analysis to your preferred time frame, whether it's short-term trading or long-term investing.
Step 2: Interpreting the Results
Maximum Gain (%): This value shows the potential upside of each asset over the selected period. A higher percentage indicates a greater potential for profit if the asset's price moves upward.
Adjusted Maximum Loss (%): This figure represents the potential downside risk, adjusted to give a more accurate reflection of loss potential. A lower percentage means less risk of significant loss.
Category Highlighting: Assets are categorized based on their performance:
High Gain & Low Loss: Assets that have both the highest max gain and the lowest adjusted max loss.
High Gain: Assets with the highest max gain.
Low Loss: Assets with the lowest adjusted max loss.
Step 3: Making Trading Decisions
Identify Opportunities: Focus on assets categorized as High Gain & Low Loss for the most favorable risk-to-reward scenarios.
Risk Management: Use the adjusted maximum loss to assess and mitigate potential risks associated with each asset.
Portfolio Diversification: Allocate your investments across assets with varying levels of gain and loss potentials to diversify your portfolio effectively.
Practical Example
Imagine you're monitoring the following assets:
Asset 1: BTCUSD
Asset 2: ETHUSD
Asset 3: ADAUSD
Asset 4: XRPUSD
After applying the indicator:
BTCUSD shows a high maximum gain but also a high adjusted maximum loss.
ETHUSD has both a high maximum gain and a low adjusted maximum loss, categorizing it as High Gain & Low Loss.
ADAUSD indicates a low maximum gain but the lowest adjusted maximum loss.
XRPUSD reflects moderate values in both categories.
Decision Making:
Primary Focus: ETHUSD may be your top choice due to its high reward and lower risk.
Risk-Averse Option: ADAUSD could be considered if you prioritize minimizing losses.
Balanced Approach: Diversify by investing in both ETHUSD and ADAUSD.
Understanding the Core Functionality
While you don't need to delve deep into the code to use the indicator effectively, understanding its core function can enhance your confidence in the tool.
The Main Function: Calculating Max Gain and Adjusted Max Loss
The heart of the indicator is a function that calculates two critical metrics for each asset:
Maximum Gain (sym_MaxGain):
Purpose: Measures the highest potential profit over the selected period.
How It Works: It finds the lowest price (sym_minlow) within the period and calculates the percentage increase to the current high price. This shows how much you could have gained if you bought at the lowest point.
Adjusted Maximum Loss (sym_AdjustedMaxLoss):
Purpose: Provides an adjusted measure of the potential loss, giving a more realistic risk assessment.
How It Works: It identifies the highest price (sym_maxhigh) within the period and calculates the percentage decrease to the current low price. This value is adjusted to account for the diminishing impact as losses approach 100%.
Simplified Explanation of the Function
Data Retrieval: For each asset (sym), the function retrieves the high and low prices over the specified timeframe.
Calculations:
Find Highest and Lowest Prices: Determines sym_maxhigh and sym_minlow within the tracking period.
Compute Max Gain: Calculates the potential gain from sym_minlow to the current high.
Compute Max Loss: Calculates the potential loss from sym_maxhigh to the current low.
Adjust Max Loss: Adjusts the max loss calculation to prevent distortion as losses near 100%.
Output: Returns both sym_MaxGain and sym_AdjustedMaxLoss for further analysis.
Benefits of Understanding the Function
Transparency: Knowing how these values are calculated can increase your trust in the indicator's outputs.
Customization: If you're familiar with coding, you might tailor the function to suit specific trading strategies.
Enhanced Analysis: Understanding the underlying calculations allows you to interpret the results more effectively, aiding in better decision-making.
Conclusion
The Asset MaxGain MinLoss Tracker is a powerful tool that can significantly enhance your trading efficiency and effectiveness by:
Providing Quick Insights: Save time by getting immediate access to essential performance metrics of multiple assets.
Assisting in Risk Management: Use the adjusted maximum loss to understand and mitigate potential risks.
Supporting Strategic Decisions: Identify assets with the best risk-to-reward ratios to optimize your trading strategy.
Take advantage of this indicator to elevate your trading game and make more informed decisions with confidence.
Thank you for your time, and happy trading!
Disclaimer:
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
This indicator is inspired by the "Max Gain" indicator. A special thanks to Skipper86 for his relentless effort, creativity, and contributions to the TradingView community, which served as a foundation for this work.
Next Moon Phases 2025Next Moon Phases 2025
This custom indicator marks both past and future moon phases with vertical lines on your chart, providing a unique way to incorporate lunar cycles into your trading strategy.
This indicator is best used on the Daily timeframe. The lunar cycle is most effective when viewed in daily bars, providing the clearest correlation between moon phases and market trends.
Key Features:
Past Moon Phases (2016–2024): Marks the key lunar phases—New Moon, First Quarter, Full Moon, and Last Quarter—with vertical lines on the chart. Perfect for backtesting and analyzing the historical relationship between moon phases and market movements.
Future Moon Phases (2025): Unlike most indicators, this tool also projects upcoming moon phases for 2025, allowing you to plan ahead and anticipate potential market reactions based on future lunar events.
Adjustable Visibility: Customize which moon phases are displayed by toggling the visibility of each phase (New Moon, First Quarter, Full Moon, Last Quarter) with a simple control.
Why Moon Phases Matter in Trading:
Many traders believe that the lunar cycle can influence market sentiment and behavior. For example:
New Moon is often associated with new beginnings and potential market reversals.
Full Moon is thought to bring increased volatility and market climaxes.
First Quarter and Last Quarter may indicate periods of consolidation or momentum shifts.
By including both past and future moon phases, this indicator allows you to examine historical data while also planning for upcoming lunar events, giving you a strategic edge for both short-term and long-term trading decisions.
Risk-Reward Labels Minimal with OffsetIndicator Explanation
The indicator “Risk-Reward Labels Minimal with Offset” is designed to assist traders in managing risk and potential rewards. It displays the Stop-Loss (SL) and Take-Profit (TP) levels for both long and short positions based on identified support and resistance levels.
Key Features:
1. Risk-Reward Ratio: Traders can adjust the risk-reward ratio to define the relationship between potential losses and potential gains (e.g., 1:1 or 1:2).
2. Risk Distance: The distance (in pips) is set to determine where to place the SL and TP levels.
3. Labels with Offset: SL and TP labels can be shifted by an offset (bars), allowing for better visualization.
4. Support and Resistance Levels: The indicator dynamically calculates support and resistance. When a support or resistance level is broken, the corresponding labels are deleted.
5. Display in Range Markets: If the market is ranging or lacks a clear trend, both long and short labels are displayed. This allows traders to identify potential entry opportunities in both directions, even when the market is not clearly trending.
6. Deletion Logic: If the price falls below support or rises above resistance, the relevant SL and TP labels are removed. However, in a Range situation, the possibility of seeing both long and short labels remains, increasing flexibility and helping to avoid false signals.