MACD Buy/Sell Labels + Barcolor👉 MACD Buy/Sell Labels + Barcolor
This advanced indicator combines the functionality of the MACD (Moving Average Convergence Divergence) with intuitive and customizable visual features, making it ideal for traders looking for an efficient tool to confirm buy and sell signals across any market.
It is based on the logical interpretation of a modified oscillator to improve its performance and simplify its usage. The indicator integrates seamlessly into the chart, offering an intuitive and easy-to-understand experience.
📍 Labels (Buy/Sell):
The signals are generated automatically by crossovers between the Fast EMA and Slow EMA of the Gaussian MACD. It comes with a default configuration designed to favor clean crossovers while avoiding false signals.
🧪 Barcolor:
The color of the candles dynamically changes according to the range of the Gaussian MACD histogram. This allows for a clear visualization of the MACD's status without needing to display the full oscillator. This feature integrates with the labels, as explained in the "Interpretation" section, to significantly increase their probability of success. Both the ranges and colors are fully customizable through the settings panel.
⚙️ Settings:
All aspects of the indicator can be customized:
1-MACD: Like a standard MACD, you can adjust the EMA lengths and the signal smoothing to adapt it to your trading style and the markets you trade.
2-Barcolor: The predefined values highlight extreme levels for proper interpretation, as explained in the "Interpretation" section. However, intermediate levels are also included in case you want to implement them in your strategy. You can adjust these values based on what you consider "overbought" or "oversold." This flexibility allows adaptation to various assets, as oscillator behavior varies across different instruments.
3-Buy/Sell Filter:
The filter settings allow you to further refine the signals. The default values of -70 (Buy Filter) and 80 (Sell Filter) work best for me, but you can adjust them as you see fit. Keep in mind:
-Higher distance from zero: More filtered signals (fewer, but higher quality).
-Closer to zero: Less filtered signals (more frequent, but with increased risk of false signals).
🤔 Interpretation:
As mentioned earlier, this follows the classic interpretation of a MACD oscillator: overbought/oversold levels combined with crossovers. However, the barcolor variable is what makes this indicator truly unique.
With barcolor, you can detect potential divergences and confirm them using the labels. When the oscillator reaches an extreme zone, barcolor provides a visual alert. Once the oscillator exits this zone, the candles revert to their normal color. This signals that the oscillator is dropping. If the price continues rising, this divergence can indicate an anomaly in the market. Waiting for confirmation from the label increases the probability of successful trades while detecting unusual market deviations without even looking at the oscillator.
Purpose:
This indicator is designed to help traders simplify the interpretation of the MACD. It can be used on any timeframe, but it was primarily tested using technical analysis concepts and basic liquidity principles. Its effectiveness improves significantly if you understand broader market dynamics.
Disclaimer:
This is purely an analytical tool and should NOT be considered as trading signals. Perform your own research and make decisions based solely on your responsibility. Thank you!
Точки разворота и уровни
Strategy Impulse Pivot EU - [AstroHub]The strategy is built on analyzing market impulses and their intensity. Its main goal is to help traders identify critical market moments when significant changes occur, signaling either a trend continuation or reversal.
Core Methodology
Impulse Movement
Measured by the difference between the current price and the previous bar’s price.
The indicator filters out minor fluctuations, focusing on meaningful changes.
Color Interpretation
Candles are color-coded based on the strength and direction of the impulse, providing a quick graphical understanding:
Green candles: Indicate moderate price growth, potentially signaling the end of the current trend.
Red candles: Reflect moderate price decline, possibly indicating a trend reversal.
Orange candles: Highlight strong price movements in either direction, signaling a potential trend continuation or reversal.
When a Signal Appears
Impulse Threshold : The price must change by at least a specified number of pips (e.g., 30 pips). This filters out weak movements.
Movement Intensity : Impulse is calculated and compared against threshold values to determine the signal’s strength.
Time Filter : Signals are generated 10 seconds before the hourly bar closes (at 59 minutes and 50 seconds). This ensures traders can prepare to act promptly.
Interpreting the Signals
Green Candle
Moderate price growth: A possible moment to take profit on long positions or open short positions.
Red Candle
Moderate price decline: A potential signal to open long positions or close short positions.
Orange Candle
Strong impulse movement:
If the price rises: A likely continuation of an upward trend.
If the price falls: A probable intensification of the downward trend.
I recommend using it on currency pairs with a 1-hour and 4-hour chart. EUR/USD, AUD/USD
Indicator Features
Impulse Analysis : The indicator highlights only significant price changes, ignoring market "noise."
Color Interpretation : Every movement is color-coded, simplifying the visualization of market dynamics.
Time Filter : Signals appear at critical moments — right before the hour closes. This enhances reliability and gives traders time to react.
Opening Levels : The indicator automatically marks opening levels for significant signals on the chart, helping traders visualize entry and exit zones.
Closed Code : The unique logic is protected, preventing unauthorized copying
Conclusion
This indicator is a powerful tool for analyzing impulse movements and their impact on the market. Its logic is straightforward, and its visualization makes signals easy to interpret. Suitable for both beginners and experienced traders, it offers clear entry and exit points with minimal false signal
BKLevelsThis displays levels from a text input, levels from certain times on the previous day, and high/low/close from previous day. The levels are drawn for the date in the first line of the text input. Newlines are required between each level
Example text input:
2024-12-17
SPY,606,5,1,Lower Hvol Range,FIRM
SPY,611,1,1,Last 20K CBlock,FIRM
SPY,600,2,1,Last 20K PBlock,FIRM
SPX,6085,1,1,HvolC,FIRM
SPX,6080,2,1,HvolP,FIRM
SPX,6095,3,1,Upper PDVR,FIRM
SPX,6060,3,1,Lower PDVR,FIRM
For each line, the format is ,,,,,
For color, there are 9 possible user- configurable colors- so you can input numbers 1 through 9
For line style, the possible inputs are:
"FIRM" -> solid line
"SHORT_DASH" -> dotted line
"MEDIUM_DASH" -> dashed line
"LONG_DASH" -> dashed line
Fibonacci Time-Price Zones🟩 Fibonacci Time-Price Zones is a chart visualization tool that combines Fibonacci ratios with time-based and price-based geometry to analyze market behavior. Unlike typical Fibonacci indicators that focus solely on horizontal price levels, this indicator incorporates time into the analysis, providing a more dynamic perspective on price action.
The indicator offers multiple ways to visualize Fibonacci relationships. Drawing segmented circles creates a unique perspective on price action by incorporating time into the analysis. These segmented circles, similar to TradingView's built-in Fibonacci Circles, are derived from Fibonacci time and price levels, allowing traders to identify potential turning points based on the dynamic interaction between price and time.
As another distinct visualization method, the indicator incorporates orthogonal patterns, created by the intersection of horizontal and vertical Fibonacci levels. These intersections form L-shaped connections on the chart, derived from key Fibonacci price and time intervals, highlighting potential areas of support or resistance at specific points in time.
In addition to these geometric approaches, another option is sloped lines, which project Fibonacci levels that account for both time and price along the trendline. These projections derive their angles from the interplay between Fibonacci price levels and Fibonacci time intervals, creating dynamic zones on the chart. The slope of these lines reflects the direction and angle of the trend, providing a visual representation of price alignment with market direction, while maintaining the time-price relationship unique to this indicator
The indicator also includes horizontal Fibonacci levels similar to traditional retracement and extension tools. However, unlike standard tools, traders can display retracement levels, extension levels, or both simultaneously from a single instance of the indicator. These horizontal levels maintain consistency with the chosen visualization method, automatically scaling and adapting whether used with circles, orthogonal patterns, or slope-based analysis.
By combining these distinct methods—circles, orthogonal patterns, sloped projections, and horizontal levels—the indicator provides a comprehensive approach to Fibonacci analysis based on both time and price relationships. Each visualization method offers a unique perspective on market structure while maintaining the core principle of time-price interaction.
⭕ THEORY AND CONCEPT ⭕
While traditional Fibonacci tools excel at identifying potential support and resistance levels through price-based ratios (0.236, 0.382, 0.618), they do not incorporate the dimension of time in market analysis. Extensions and retracements effectively measure price relationships within trends, yet markets move through both price and time dimensions simultaneously.
Fibonacci circles represent an evolution in technical analysis by incorporating time intervals alongside price levels. Based on the mathematical principle that markets often move in circular patterns proportional to Fibonacci ratios, these circles project potential support and resistance zones as partial circles radiating from significant price points. However, traditional circle-based tools can create visual complexity that obscures key market relationships. The integration of time into Fibonacci analysis reveals how price movements often respect both temporal and price-based ratios, suggesting a deeper geometric structure to market behavior.
The Fibonacci Time-Price Zones indicator advances these concepts by providing multiple geometric approaches to visualize time-price relationships. Each shape option—circles, orthogonal patterns, slopes, and horizontal levels—represents a different mathematical perspective on how Fibonacci ratios manifest across both dimensions. This multi-faceted approach allows traders to observe how price responds to Fibonacci-based zones that account for both time and price movements, potentially revealing market structure that purely price-based tools might miss.
Shape Options
The indicator employs four distinct geometric approaches to analyze Fibonacci relationships across time and price dimensions:
Circular : Represents the cyclical nature of market movements through partial circles, where each radius is scaled by Fibonacci ratios incorporating both time and price components. This geometry suggests market movements may follow proportional circular paths from significant pivot points, reflecting the harmonic relationship between time and price.
Orthogonal : Constructs L-shaped patterns that separate the time and price components of Fibonacci relationships. The horizontal component represents price levels, while the vertical component measures time intervals, allowing analysis of how these dimensions interact independently at key market points.
Sloped : Projects Fibonacci levels along the prevailing trend, incorporating both time and price in the angle of projection. This approach suggests that support and resistance levels may maintain their relationship to price while adjusting to the temporal flow of the market.
Horizontal : Provides traditional static Fibonacci levels that serve as a reference point for comparing price-only analysis with the dynamic time-price relationships shown in the other three shapes. This baseline approach allows traders to evaluate how the incorporation of time dimension enhances or modifies traditional Fibonacci analysis.
By combining these geometric approaches, the Fibonacci Time-Price Zones indicator creates a comprehensive analytical framework that bridges traditional and advanced Fibonacci analysis. The horizontal levels serve as familiar reference points, while the dynamic elements—circular, orthogonal, and sloped projections—reveal how price action responds to temporal relationships. This multi-dimensional approach enables traders to study market structure through various geometric lenses, providing deeper insights into time-price symmetry within technical analysis. Whether applied to retracements, extensions, or trend analysis, the indicator offers a structured methodology for understanding how markets move through both price and time dimensions.
🛠️ CONFIGURATION AND SETTINGS 🛠️
The Fibonacci Time-Price Zones indicator offers a range of configurable settings to tailor its functionality and visual representation to your specific analysis needs. These options allow you to customize zone visibility, structures, horizontal lines, and other features.
Important Note: The indicator's calculations are anchored to user-defined start and end points on the chart. When switching between charts with significantly different price scales (e.g., from Bitcoin at $100,000 to Silver at $30), adjustment of these anchor points is required to ensure correct positioning of the Fibonacci elements.
Fibonacci Levels
The indicator allows users to customize Fibonacci levels for both retracement and extension analysis. Each level can be individually configured with the following options:
Visibility : Toggle the visibility of each level to focus on specific areas of interest.
Level Value : Set the Fibonacci ratio for the level, such as 0.618 or 1.000, to align with your analysis needs.
Color : Customize the color of each level for better visual clarity.
Line Thickness : Adjust the line thickness to emphasize critical levels or maintain a cleaner chart.
Setup
Zone Type : Select which Fibonacci zones to display:
- Retracement : Shows potential pull back levels within the trend
- Extension : Projects levels beyond the trend for potential continuation targets
- Both : Displays both retracement and extension zones simultaneously
Shape : Choose from four visualization methods:
- Circular : Time-price based semicircles centered on point B
- Orthogonal : L-shaped patterns combining time and price levels
- Sloped : Trend-aligned projections of Fibonacci levels
- Horizontal : Traditional horizontal Fibonacci levels
Visual Settings
Fill % : Adjusts the fill intensity of zones:
0% : No fill between levels
100% : Maximum fill between levels
Lines :
Trendline : The base A-B trend with customizable color
Extension : B-C projection line
Retracement : B-D pullback line
Labels :
Points : Show/hide A, B, C, D markers
Levels : Show/hide Fibonacci percentages
Time-Price Points
Set the time and price for the points that define the Fibonacci zones and horizontal levels. These points are defined upon loading the chart. These points can be configured directly in the settings or adjusted interactively on the live chart.
A and B Points : These user-defined time and price points determine the basis for calculating the semicircles and Fibonacci levels. While the settings panel displays their exact values for fine-tuning, the easiest way to modify these points is by dragging them directly on the chart for quick adjustments.
Interactive Adjustments : Any changes made to the points on the chart will automatically synchronize with the settings panel, ensuring consistency and precision.
🖼️ CHART EXAMPLES 🖼️
Fibonacci Time-Price Zones using the 'Circular' Shape option. Note the price interaction at the 0.786 level, which acts as a support zone. Additional points of interest include resistance near the 0.618 level and consolidation around the 0.5 level, highlighting the utility of both horizontal and semicircular Fibonacci projections in identifying key price areas.
Fibonacci Time-Price Zones using the 'Sloped' Shape option. The chart displays price retracing along the sloped Fibonacci levels, with blue arrows highlighting potential support zones at 0.618 and 0.786, and a red arrow indicating potential resistance at the 1.0 level. This visual representation aligns with the prevailing downtrend, suggesting potential selling pressure at the 1.0 Fibonacci level.
Fibonacci Time-Price Zones using the 'Orthogonal' Shape option. The chart demonstrates price action interacting with vertical zones created by the orthogonal lines at the 0.618, 0.786, and 1.0 Fibonacci levels. Blue arrows highlight potential support areas, while red arrows indicate potential resistance areas, revealing how the orthogonal lines can identify distinct points of price interaction.
Fibonacci Time-Price Zones using the 'Circular' Shape option. The chart displays price action in relation to segmented circles emanating from the starting point (point A). The circles represent different Fibonacci ratios (0.382, 0.5, 0.618, 0.786) and their intersections with the price axis create potential zones of support and resistance. This approach offers a visually distinct way to analyze potential turning points based on both price and time.
Fibonacci Time-Price Zones using the 'Sloped' Shape option. The sloped Fibonacci levels (0.786, 0.618, 0.5) create zones of potential support and resistance, with price finding clear interaction within these areas. The ellipses highlight this price action, particularly the support between 0.786 and 0.618, which aligns closely with the trend.
Fibonacci Time-Price Zones using the 'Circular' Shape option. The price action appears to be ‘hugging’ the 0.5 Fibonacci level, suggesting potential resistance. This demonstrates how the circular zones can identify potential turning points and areas of consolidation which might not be seen with linear analysis.
Fibonacci Time-Price Zones using the 'Sloped' Shape option with Point D marker enabled. The chart demonstrates clear price action closely following along the sloped Retracement line until the orthogonal intersection at the 0.618 levels where the trend is broken and price dips throughout the 0.618 to 0.786 horizontal zone. Price jumps back to the retracement slope at the start of the 0.786 horizontal zone and continues to the 1.0 horizontal zone. The aqua-colored retracement line is enabled to further emphasize this retracement slope .
Geometric validation using TradingView's built-in Fibonacci Circle tool (overlaid). The alignment at the 0.5 and 1.0 levels demonstrates the indicator's consistent approximation of Fibonacci Circles.
Comparison of Fibonacci Time-Price Zones (Shape: Horizontal) with TradingView's Built-in Retracement and Extension Tools (overlaid): This example demonstrates how the Horizontal structure aligns with TradingView’s retracement and extension levels, allowing users to integrate multiple tools seamlessly. The Fibonacci circle connects retracement and extension zones, highlighting the potential relationship between past retracements and future extensions.
📐 GEOMETRIC FOUNDATIONS 📐
This indicator integrates circular and straight representations of Fibonacci levels, specifically the Circular , Orthogonal , Sloped , and Horizontal shape options. The geometric principles behind these shapes differ significantly, requiring distinct scaling methods for accurate representation. The Circular shape employs logarithmic scaling with radial expansion, where the distance from a central point determines the level's position, creating partial circles that align with TradingView's built-in Fibonacci Circle tool. The other three shapes utilize geometric progression scaling for linear extension from a starting point, resulting in straight lines that align with TradingView's built-in Fibonacci retracement and extension tools. Due to these distinct geometric foundations and scaling methods, perfectly aligning both the partial circles and straight lines simultaneously is mathematically constrained, though any differences are typically visually imperceptible.
The Circular shape's partial circles are calculated and scaled to align with TradingView's built-in Fibonacci Circles. These circles are plotted from the second swing point onward. This approach ensures consistent and accurate visualization across all market types, including those with gaps or closed sessions, which unlike 24/7 markets, do not have a direct one-to-one correspondence between bar indices and time. To maintain accurate geometric proportions across varying chart scales, the indicator calculates an aspect ratio by normalizing the proportional difference between vertical (price) and horizontal (time) distances of the swing points. This normalization factor ensures geometric shapes maintain their mathematical properties regardless of price scale magnitude or time period span, while maintaining the correct proportions of the geometric constructions at any chart zoom level.
The indicator automatically applies the appropriate scaling factor based on the selected shape option, optimizing either circular proportions and proper radius calculations for each Fibonacci level, or straight-line relationships between Fibonacci levels. These distinct scaling approaches maintain mathematical integrity while preserving the essential characteristics of each geometric representation, ensuring optimal visualization accuracy whether using circular or linear shapes.
⚠️ DISCLAIMER ⚠️
The Fibonacci Time-Price Zones indicator is a visual analysis tool designed to illustrate Fibonacci relationships through geometric constructions incorporating both curved and straight lines, providing a structured framework for identifying potential areas of price interaction. It is not intended as a predictive or standalone trading signal indicator.
The indicator calculates levels and projections using user-defined anchor points and Fibonacci ratios. While it aims to align with TradingView’s Fibonacci extension, retracement, and circle tools by employing mathematical and geometric formulas, no guarantee is made that its calculations are identical to TradingView's proprietary methods.
Like all technical and visual indicators, these visual representations may visually align with key price zones in hindsight, reflecting observed price dynamics. However, these visualizations are not standalone signals for trading decisions and should be interpreted as part of a broader analytical approach.
This indicator is intended for educational and analytical purposes, complementing other tools and methods of market analysis. Users are encouraged to integrate it into a comprehensive trading strategy, customizing its settings to suit their specific needs and market conditions.
🧠 BEYOND THE CODE 🧠
The Fibonacci Time-Price Zones indicator is designed to encourage both education and community engagement. By integrating time-sensitive geometry with Fibonacci-based frameworks, it bridges traditional grid-based analysis with dynamic time-price relationships. The inclusion of semicircles, horizontal levels, orthogonal structures, and sloped trends provides users with versatile tools to explore the interaction between price movements and temporal intervals while maintaining clarity and adaptability.
As an open-source tool, the indicator invites exploration, experimentation, and customization. Whether used as a standalone resource or alongside other technical strategies, it serves as a practical and educational framework for understanding market structure and Fibonacci relationships in greater depth.
Your feedback and contributions are essential to refining and enhancing the Fibonacci Time-Price Zones indicator. We look forward to the creative applications, adaptations, and insights this tool inspires within the trading community.
Bitcoin All-Time High (ATH) Alert with Cooldown₿ Bitcoin All-Time High (ATH) Alert with Cooldown 🚀👩🚀
🔍 What it does:
This indicator tracks new all-time highs (ATHs) and alerts you when Bitcoin (or any asset) reaches a fresh ATH, while avoiding alert spam with a customizable cooldown period.
✨ Key Features
✅ Alerts for New ATHs: Never miss when Bitcoin makes history!
✅ Cooldown Period: Prevents multiple alerts within a short timeframe (customizable in settings).
✅ ATH Line on Chart: A clear, visual line marking the all-time high price.
✅ Manual Reset Option: Reset the ATH for testing or specific chart conditions.
⚙️ How to Use
Add the Indicator: Apply it to your chart like any other indicator. Ideally on a small time frame, the cooldown is 20 bars by default (adjustable) which gives 20 minutes on the 1 min chart.
Customize Settings:
- Cooldown Period (bars): Set the number of bars to wait before triggering another alert (e.g., 20 bars).
- Show All-Time High Line: Toggle to display or hide the ATH line visually.
- Reset All-Time High: Use this to manually reset the ATH to the current bar's high.
Create an Alert:
Open the "Alerts" menu.
Select the condition: "New All-Time High" .
Choose a trigger type:
Once Per Bar: For immediate alerts when a new ATH occurs.
Once Per Bar Close: To confirm the ATH at the end of each bar.
🛠️ Who is it for?
Traders and HODLers who want to stay on top of price action.
Anyone looking for clean and efficient ATH tracking with no redundant alerts
🚀 Never miss a new ATH again. Stay ahead of the market!
Swing High/Low Pivots Strategy [LV]The Swing High/Low Pivots Strategy was developed as a counter-momentum trading tool.
The strategy is suitable for any market and the default values used in the input settings menu are set for Bitcoin (best on 15min). These values, expressed in minimum ticks (or pips if symbol is Forex) make this tool perfectly adaptable to every symbol and/or timeframe.
Check tooltips in the settings menu for more details about every user input.
STRTEGY ENTRY & EXIT MECHANISMS:
Trades Entry based on the detection of swing highs and lows for short and long entries respectively, validated by:
- Limit orders placed after each new pivot level confirmation
- Moving averages trend filter (if enabled)
- No active trade currently open
Trades Exit when the price reaches take-profit or stop-loss level as defined in the settings menu. A double entry/second take-profit level can be enabled for partial exits, with dynamic stop-loss adjustment for the remaining position.
Enhanced Trade Precision:
By limiting entries to confirmed swing high (HH, LH) or swing low (HL, LL) pivot points, the strategy ensures that trades occur at levels of significant price reversals. This precision reduces the likelihood of entering trades in the midst of a trend or during uncertain price action.
Risk Management Optimization:
The strategy incorporates clearly defined stop-loss (SL) and take-profit (TP) levels derived from the pivot points. This structured approach minimizes potential losses while locking in profits, which is critical for consistent performance in volatile markets.
Trend Filtering for Better Entry:
The use of a configurable moving average filter adds a layer of trend validation. This prevents entering trades against the dominant market trend, increasing the probability of success for each trade.
Avoidance of Noise:
The lookback period (length parameter) confirms pivots only after a set number of bars, effectively filtering out market noise and ensuring that entries are based on reliable, well-defined price movements.
Adaptability Across Markets:
The strategy is versatile and can be applied across different markets (Forex, stocks, crypto) due to its dynamic use of ticks and pips converters. It adapts seamlessly to varying price scales and asset types.
Dual Quantity Entries:
The original and optionnal double-entry mechanism allows traders to capture both short-term and extended profits by scaling out of positions. This adaptive approach caters to varying risk appetites and market conditions.
Clear Visualization:
The plotted pivot points, entry limits, SL, and TP levels provide visual clarity, making it easy for traders to track the strategy's behavior and make informed decisions.
Automated Execution with Alerts:
Integrated alerts for both entries and exits ensure timely actions without the need for constant market monitoring, enhancing efficiency. Configurable alert messages are suitable for API use.
Any feedback, comments, or suggestions for improvement are always welcome.
Hope you enjoy!
Earnings Gap UpsBased on research conducted by John Pocorobba and Jason Thompson, the Earnings Gap Ups Indicator is designed to identify three types of earnings gaps, key levels, and the "alpha window"—a period when stocks often outperform following a gap. These gaps are frequently observed in high-performing stocks.
What is an Earnings Gap?
An earnings gap occurs when a stock's price makes a significant jump, after the company reports earnings signifying the street (institutions) were caught off guard.
The three different types of gaps are as follows: [/b
PEG (Power Earnings Gap)
Price gain of 10% or more
Volume is greater than 200% above the 50-day average
EPS surprise of at least 20%
Monster Gap
Price gain of 20% or more
Volume is greater than 300% above the 50-day average
No fundamental requirement
Monster Peg
Price Gain of 20% or more
Volume is greater than 300% above the 50-day average
EPS surprise of at least 20%
Key Levels and the Alpha Window
In addition to spotting these gaps, the indicator marks key levels on the chart and extends them through the alpha window, which represents the time period when the stock tends to outperform after the gap.
Key levels include:
High volume close: The closing price on a day with unusually high trading volume
High volume close minus 5%: A potential support level below the high volume close
Gap day high: The highest price reached on the gap day
Gap day low: The lowest price reached on the gap day
By understanding and tracking these gaps and levels, traders can map out a playbook for trading earnings gaps.
Pivot MeterThe "Pivot Meter" is a indicator designed to plot pivot levels (support and resistance) directly on the chart. It offers two types of pivot calculations STANDARD and FIBONACCI, allowing traders to choose their preferred method. Here's an overview of its features and functionalities:
________________________________________
Key Features
1. Pivot Types:
o STANDARD: Traditional calculation based on the previous period's high, low, and close.
o FIBONACCI: Uses Fibonacci ratios to calculate support and resistance levels.
2. Dynamic Time Frame Adjustment:
o The indicator adjusts its calculations based on the chart's timeframe, aligning pivot calculations with appropriate periods.
3. Pivot Levels:
o Resistance Levels (R1 to R5): Five resistance levels calculated based on the selected pivot type.
o Support Levels (S1 to S5): Five support levels corresponding to the pivot type.
o Central Pivot (P): The base pivot level for reference.
4. Visualization:
o All pivot levels are plotted as coloured horizontal bands on the chart for easy identification.
o Colours range from warm tones (red for higher resistance levels) to cool tones (blue for lower support levels).
o Thickness and styling make these levels visually prominent.
5. Real-Time Price Line:
o A dynamically updating line marks the current price, with customizable colour and width for visibility.
6. Labels for Levels:
o Labels are placed next to each pivot level for identification (e.g., R1, S1, Pivot).
o Labels dynamically adjust their position with the chart’s bar progression.
________________________________________
Purpose
This indicator helps traders identify potential reversal points, support and resistance levels, and critical price zones. It is especially useful for:
• Day Traders: Quickly assess key levels for short-term trades.
• Swing Traders: Spot significant support/resistance zones over longer periods.
• Trend Followers: Use pivot levels to confirm breakouts or bounces.
________________________________________
Customization Options
• Pivot Type Selection: Choose between STANDARD and FIBONACCI.
• Price Line Colour: Customize the colour of the current price line for better integration with your chart setup.
________________________________________
Technical Details
• Security Function: Data from higher timeframes is accessed using request.security, ensuring accurate and multi-timeframe pivot calculations.
• Dynamic Labelling: Labels update their positions with every new bar to remain synchronized with the latest data.
________________________________________
Usage
Traders can add this indicator to their TradingView charts to monitor critical levels and strategize entries, exits, and stop-loss placements based on the proximity to these pivots. The dual pivot calculation methods make it versatile for diverse trading styles.
IPO Lifecycle Sell Strategy [JARUTIR]IPO Lifecycle Sell Strategy with Dynamic Buy Date and Multiple Sell Rules
This custom TradingView script is designed for traders looking to capitalize on dynamic strategies for IPOs and growth stocks, by implementing several sell rules based on price action and technical indicators. It provides a set of sell rules that are applied dynamically depending on the stock's lifecycle and price action, allowing users to lock in profits and minimize drawdowns based on key technical thresholds.
The four sell strategies incorporated into this script are inspired by the book "The Lifecycle Trade", a resource that focuses on capturing profits while managing risk in different phases of a stock's lifecycle, from IPO to high-growth stages.
Key Features:
Buy Price and Buy Date: You can either manually input your buy price and date or let the script automatically detect the buy date based on the specified buy price.
Multiple Sell Strategies: Choose from 4 predefined sell strategies:
Ascender Rule : Captures strong momentum from IPO stocks by selling portions at specific price levels or technical conditions.
Midterm Rule : Focuses on holding for longer periods, with defensive sell signals triggered when the stock deviates significantly from peak price or key moving averages.
40 Week Rule : Designed for long-term holds, this rule triggers a sell when the stock closes below the 40-week moving average.
Everest Rule : Aggressive strategy for selling into strength based on parabolic moves or gap downs, ideal for high momentum stocks.
Interactive Features:
Horizontal Green Line showing the buy price level from the buy date.
Visual Sell Signals appear only after the buy date to ensure that your analysis is relevant to the stock lifecycle.
Customizable settings, allowing you to choose your preferred sell rule strategy and automate buy date detection.
This script is perfect for traders using a strategic, systematic approach to IPOs and high-growth stocks, whether you're looking for quick exits during momentum phases or holding for longer-term growth.
Usage:
Input your Buy Price and Buy Date, or allow the script to automate the buy date detection.
Select a Sell Rule strategy based on your risk profile and trading style.
View visual signals for selling when specific conditions are met.
Frequently Asked Questions (FAQs):
Q1: How do I input my Buy Price and Buy Date?
The script allows you to either manually input the Buy Price and Buy Date or use the automated detection. If you choose automated detection, the script will automatically assign the buy date when the price crosses above your set Buy Price.
Q2: What is the purpose of the "Sell Rules"?
The script offers four sell strategies to help manage different types of stocks in varying phases of their lifecycle:
Ascender Rule: Targets IPO stocks showing positive momentum.
Midterm Rule: A defensive strategy for stocks in a steady uptrend.
40 Week Rule: Long-term hold strategy designed to ride stocks through extended growth.
Everest Rule: Aggressive strategy to capture profits during parabolic price moves.
Q3: What is the significance of the Green Line at Buy Price?
The Green Line represents your entry point (Buy Price) on the chart. It will appear from the buy date onwards, helping you track the performance of your stock relative to your entry.
Q4: Can I customize the Sell Strategy?
Yes! You can choose from the available Sell Rules (Ascender Rule, Midterm Rule, 40 Week Rule, Everest Rule) via an input option in the script. Each strategy has its own unique triggers based on price action, moving averages, and time-based conditions.
Q5: Does this script work for stocks and crypto?
Yes, this script is designed for both stocks and cryptocurrencies. It works on any asset where price data and timeframes are available.
Q6: How do the Weekly Moving Averages (WSMA) work in this strategy?
The script uses weekly moving averages (WSMA) to track longer-term trends. These are essential for some of the sell rules, such as the Midterm Rule and 40 Week Rule, which rely on the stock's movement relative to the 40-week moving average.
Q7: Will the script plot a Sell Signal immediately after the Buy Date?
No, sell signals will only be plotted after the Buy Date. This ensures that the sell strategy is relevant to your actual holding period and avoids premature triggers.
Q8: How do I interpret the Sell Signal?
The script will plot a Red Sell Signal above the bar when the sell conditions are met, based on the selected strategy. This indicates that it may be a good time to exit the position according to your chosen rule.
Q9: Can I use this strategy on different timeframes?
Yes, you can apply the script to any timeframe. However, some sell strategies, like the Midterm Rule and 40 Week Rule, are designed to work best with weekly data, so it's recommended to use these strategies with longer timeframes.
Q10: Does this script have any alerts?
Yes! The script supports alert conditions that will notify you when the sell conditions are met according to your selected rule. You can set up alerts to stay informed without needing to watch the chart constantly.
Q11: What if I want to disable some of the sell rules?
You can select your preferred sell rule using the "Select Sell Rule" dropdown. If you don’t want to use a particular rule, simply choose a different strategy or leave it inactive.
------------------------------
Disclaimer:
This strategy is intended for educational purposes only. It should not be considered financial advice. Always perform your own research and consult with a professional before making any trading decisions. Trading involves significant risk, and you should never trade with money you cannot afford to lose.
MCP Stop Strategy [JARUTIR]The MCP Stop Strategy is a trading tool designed to help traders lock in profits and manage risks. It is based on the concept of setting a MCP (Mental Capacity Preservation) Stop explained in the book "The Lifecycle Trade". I call it Maximum Controllable Profit Stop which helps protect profits once a stock or asset reaches a new peak. The MCP Stop is dynamically calculated based on the Buy Price and the All Time High Price (Peak Price), and is adjusted using a customizable percentage (MCP%) to retain a portion of the gains from the peak price during a drawdown.
Key Features :
MCP Stop Calculation: The script calculates the MCP Stop as:
MCP Stop = Buy Price + (Peak Price - Buy Price) x MCP%
This helps you protect a portion of your gains (defined by MCP%) as the price moves in your favor.
Flexible Buy Date Option:
You can either manually input a Buy Date or let the script automatically detect the Buy Date when the price first meets or exceeds the user-defined Buy Price.
After the Buy Date, the MCP Stop, Buy Price, and Peak Price are plotted on the chart for easy visualization.
Customizable Parameters:
Buy Price: The price at which the asset was bought.
MCP Percentage: The percentage of profit from the peak that you want to retain in case of a drawdown.
Lookback Length: The number of bars to consider when calculating the Peak Price (All Time High).
How to Use the Script :
Set the Buy Price: Enter the price at which you bought the asset.
Set the MCP%: Enter the percentage of profits you want to protect from the peak. For example, if you want to retain 10% of the gain from the peak, set this to 10.
Choose the Buy Date Method:
Automated Buy Date: The script will automatically detect the first bar where the price meets or exceeds the Buy Price.
Manual Buy Date: If you prefer to specify a particular Buy Date, input the desired date and time.
View the MCP Stop and Peak Price: After the Buy Date (either manually or automatically detected), the MCP Stop, Buy Price, and Peak Price will be plotted on the chart.
Monitor the MCP Stop Trigger: The script will alert you when the price falls below the MCP Stop, indicating a potential exit point to protect profits.
Frequently Asked Questions (FAQs):
1. What is the MCP Stop?
The MCP Stop is a dynamic stop-loss level that adjusts based on your Buy Price and the All Time High Price (Peak Price). It protects a portion of your gains from the peak, which is defined by the MCP%. For example, if you set the MCP% to 10%, the script will retain 10% of the gains from the peak and use this as a stop-loss.
2. How does the Buy Date work?
The Buy Date is the date when you entered the position:
If you choose Automated Buy Date, the script will automatically set the Buy Date to the first bar when the price meets or exceeds the Buy Price.
If you choose Manual Buy Date, you can specify a particular date and time when you want the strategy to start calculating and plotting the MCP Stop and Peak Price.
3. What happens if the price falls below the MCP Stop?
If the price drops below the MCP Stop, the script will mark this as a potential exit point, helping you protect profits. A visual alert (MCP STOP) will be shown on the chart when the price reaches or falls below the MCP Stop.
4. Can I adjust the Lookback Length for Peak Price?
Yes, you can customize the Lookback Length (the number of bars the script considers when calculating the Peak Price) by entering a value in the input field. By default, it is set to 1000 bars, which represents a few months of historical data, but you can increase or decrease this based on your trading strategy.
5. Why would I want to use the automated Buy Date?
The Automated Buy Date is useful for traders who want the script to automatically track the Buy Date when the price first reaches or exceeds the Buy Price. This is helpful when you're unsure of the exact entry date but know the price at which you bought the asset. It simplifies the process by eliminating the need for manual input.
6. Can I use this strategy for long and short positions?
The current version of this script is designed for long positions, where you buy an asset and want to protect your profits as the price increases. If you're interested in applying it to short positions, you would need to adjust the logic accordingly (e.g., tracking the lowest price instead of the peak price).
7. Can I modify the script to fit my trading strategy?
Yes, this script is highly customizable. You can adjust parameters such as Buy Price, MCP%, and Lookback Length to suit your specific trading style. You can also tweak the visual appearance of the plotted lines and alerts.
Disclaimer:
This strategy is intended for educational purposes only. It should not be considered financial advice. Always perform your own research and consult with a professional before making any trading decisions. Trading involves significant risk, and you should never trade with money you cannot afford to lose.
Market Open Levels v3This indicator "Market Open Levels v3" allows a chart user to automatically display up to 20 previous price levels at the open price of up to 8 different markets simultaneously on one indicator.
The user can specify custom labels for each market's price level, as well as adjust the GMT Offset to allow for market open times in a different timezone than the chart's displayed time.
Displays price level at specified market open times. For instance, if a user specifies a market opens at 08:00, then a price level (horizontal line) will be drawn at the most recent 08:00 candle's open price (if GMT Offset is set to 0).
See tooltips for more information on specific inputs.
Support and Resistance LinesDraw the last 5 support and resistance lines. It works on the current timeframe. You can adjust the sensibility by changing the diff variable.
Adaptive MAAdaptive Moving Average (AMA)
Overview
The Adaptive Moving Average (AMA) script is designed to calculate and plot a moving average that adapts dynamically based on market conditions. This script uses pivot-based periods for its calculation, allowing it to adjust its behavior in response to market volatility and trends. It supports both Simple Moving Average (SMA) and Exponential Moving Average (EMA).
Features
Dynamic Period Calculation: Leverages the DynamicPeriodPublic library to compute periods based on pivot points, providing an adaptive length for the moving average.
Customizable Parameters: Users can choose predefined "Fast" and "Slow" settings or manually configure the parameters for greater control.
Supports SMA and EMA: Flexibility to choose between SMA and EMA for the moving average calculation.
Inputs
Source ( src ): Data source for the moving average (e.g., close price).
Default: close
Length Type ( length_type ): Determines the type of period calculation.
Options: Fast, Slow, Manual
MA Type ( ma_type ): Specifies the type of moving average to calculate.
Options: SMA, EMA
Manual Parameters (used when length_type is set to Manual):
Left Bars ( left_bars ): Number of left-hand bars for pivot detection.
Right Bars ( right_bars ): Number of right-hand bars for pivot detection.
Number of Pivots ( num_pivots ): Minimum number of pivots for dynamic period calculation.
Length Multiplier ( length_mult ): Multiplier applied to the calculated period.
Use Cases
Trend Analysis: Identify market trends with an average that adapts to changing conditions.
Volatility-Based Strategies: Adjust strategies dynamically in response to market volatility.
Custom Configurations: Fine-tune pivot parameters for specific markets or assets using the "Manual" mode.
Example Usage
Select the desired length type (Fast, Slow, or Manual).
If Manual is selected, configure the pivot detection parameters and length multiplier.
Choose the moving average type (SMA or EMA).
Observe the adaptive moving average plotted on the chart.
Quantify [Entry Model] | FractalystWhat’s the indicator’s purpose and functionality?
Quantify is a machine learning entry model designed to help traders identify high-probability setups to refine their strategies.
➙ Simply pick your bias, select your entry timeframes, and let Quantify handle the rest for you.
Can the indicator be applied to any market approach/trading strategy?
Absolutely, all trading strategies share one fundamental element: Directional Bias
Once you’ve determined the market bias using your own personal approach, whether it’s through technical analysis or fundamental analysis, select the trend direction in the Quantify user inputs.
The algorithm will then adjust its calculations to provide optimal entry levels aligned with your chosen bias. This involves analyzing historical patterns to identify setups with the highest potential expected values, ensuring your setups are aligned with the selected direction.
Can the indicator be used for different timeframes or trading styles?
Yes, regardless of the timeframe you’d like to take your entries, the indicator adapts to your trading style.
Whether you’re a swing trader, scalper, or even a position trader, the algorithm dynamically evaluates market conditions across your chosen timeframe.
How can this indicator help me to refine my trading strategy?
1. Focus on Positive Expected Value
• The indicator evaluates every setup to ensure it has a positive expected value, helping you focus only on trades that statistically favor long-term profitability.
2. Adapt to Market Conditions
• By analyzing real-time market behavior and historical patterns, the algorithm adjusts its calculations to match current conditions, keeping your strategy relevant and adaptable.
3. Eliminate Emotional Bias
• With clear probabilities, expected values, and data-driven insights, the indicator removes guesswork and helps you avoid emotional decisions that can damage your edge.
4. Optimize Entry Levels
• The indicator identifies optimal entry levels based on your selected bias and timeframes, improving robustness in your trades.
5. Enhance Risk Management
• Using tools like the Kelly Criterion, the indicator suggests optimal position sizes and risk levels, ensuring that your strategy maintains consistency and discipline.
6. Avoid Overtrading
• By highlighting only high-potential setups, the indicator keeps you focused on quality over quantity, helping you refine your strategy and avoid unnecessary losses.
How can I get started to use the indicator for my entries?
1. Set Your Market Bias
• Determine whether the market trend is Bullish or Bearish using your own approach.
• Select the corresponding bias in the indicator’s user inputs to align it with your analysis.
2. Choose Your Entry Timeframes
• Specify the timeframes you want to focus on for trade entries.
• The indicator will dynamically analyze these timeframes to provide optimal setups.
3. Let the Algorithm Analyze
• Quantify evaluates historical data and real-time price action to calculate probabilities and expected values.
• It highlights setups with the highest potential based on your selected bias and timeframes.
4. Refine Your Entries
• Use the insights provided—entry levels, probabilities, and risk calculations—to align your trades with a math-driven edge.
• Avoid overtrading by focusing only on setups with positive expected value.
5. Adapt to Market Conditions
• The indicator continuously adapts to real-time market behavior, ensuring its recommendations stay relevant and precise as conditions change.
How does the indicator calculate the current range?
The indicator calculates the current range by analyzing swing points from the very first bar on your charts to the latest available bar it identifies external liquidity levels, also known as BSLQ (buy-side liquidity levels) and SSLQ (sell-side liquidity levels).
What's the purpose of these levels? What are the underlying calculations?
1. Understanding Swing highs and Swing Lows
Swing High: A Swing High is formed when there is a high with 2 lower highs to the left and right.
Swing Low: A Swing Low is formed when there is a low with 2 higher lows to the left and right.
2. Understanding the purpose and the underlying calculations behind Buyside, Sellside and Pivot levels.
3. Identifying Discount and Premium Zones.
4. Importance of Risk-Reward in Premium and Discount Ranges
How does the script calculate probabilities?
The script calculates the probability of each liquidity level individually. Here's the breakdown:
1. Upon the formation of a new range, the script waits for the price to reach and tap into pivot level level. Status: "■" - Inactive
2. Once pivot level is tapped into, the pivot status becomes activated and it waits for either liquidity side to be hit. Status: "▶" - Active
3. If the buyside liquidity is hit, the script adds to the count of successful buyside liquidity occurrences. Similarly, if the sellside is tapped, it records successful sellside liquidity occurrences.
4. Finally, the number of successful occurrences for each side is divided by the overall count individually to calculate the range probabilities.
Note: The calculations are performed independently for each directional range. A range is considered bearish if the previous breakout was through a sellside liquidity. Conversely, a range is considered bullish if the most recent breakout was through a buyside liquidity.
What does the multi-timeframe functionality offer?
You can incorporate up to 4 higher timeframe probabilities directly into the table.
This feature allows you to analyze the probabilities of buyside and sellside liquidity across multiple timeframes, without the need to manually switch between them.
By viewing these higher timeframe probabilities in one place, traders can spot larger market trends and refine their entries and exits with a better understanding of the overall market context.
What are the multi-timeframe underlying calculations?
The script uses the same calculations (mentioned above) and uses security function to request the data such as price levels, bar time, probabilities and booleans from the user-input timeframe.
How does the Indicator Identifies Positive Expected Values?
Quantify instantly calculates whether a trade setup has the potential to generate positive expected value (EV).
To determine a positive EV setup, the indicator uses the formula:
EV = ( P(Win) × R(Win) ) − ( P(Loss) × R(Loss))
where:
- P(Win) is the probability of a winning trade.
- R(Win) is the reward or return for a winning trade, determined by the current risk-to-reward ratio (RR).
- P(Loss) is the probability of a losing trade.
- R(Loss) is the loss incurred per losing trade, typically assumed to be -1.
By calculating these values based on historical data and the current trading setup, the indicator helps you understand whether your trade has a positive expected value.
How can I know that the setup I'm going to trade with has a positive EV?
If the indicator detects that the adjusted pivot and buy/sell side probabilities have generated positive expected value (EV) in historical data, the risk-to-reward (RR) label within the range box will be colored blue and red .
If the setup does not produce positive EV, the RR label will appear gray.
This indicates that even the risk-to-reward ratio is greater than 1:1, the setup is not likely to yield a positive EV because, according to historical data, the number of losses outweighs the number of wins relative to the RR gain per winning trade.
What is the confidence level in the indicator, and how is it determined?
The confidence level in the indicator reflects the reliability of the probabilities calculated based on historical data. It is determined by the sample size of the probabilities used in the calculations. A larger sample size generally increases the confidence level, indicating that the probabilities are more reliable and consistent with past performance.
How does the confidence level affect the risk-to-reward (RR) label?
The confidence level (★) is visually represented alongside the probability label. A higher confidence level indicates that the probabilities used to determine the RR label are based on a larger and more reliable sample size.
How can traders use the confidence level to make better trading decisions?
Traders can use the confidence level to gauge the reliability of the probabilities and expected value (EV) calculations provided by the indicator. A confidence level above 95% is considered statistically significant and indicates that the historical data supporting the probabilities is robust. This high confidence level suggests that the probabilities are reliable and that the indicator’s recommendations are more likely to be accurate.
In data science and statistics, a confidence level above 95% generally means that there is less than a 5% chance that the observed results are due to random variation. This threshold is widely accepted in research and industry as a marker of statistical significance. Studies such as those published in the Journal of Statistical Software and the American Statistical Association support this threshold, emphasizing that a confidence level above 95% provides a strong assurance of data reliability and validity.
Conversely, a confidence level below 95% indicates that the sample size may be insufficient and that the data might be less reliable. In such cases, traders should approach the indicator’s recommendations with caution and consider additional factors or further analysis before making trading decisions.
How does the sample size affect the confidence level, and how does it relate to my TradingView plan?
The sample size for calculating the confidence level is directly influenced by the amount of historical data available on your charts. A larger sample size typically leads to more reliable probabilities and higher confidence levels.
Here’s how the TradingView plans affect your data access:
Essential Plan
The Essential Plan provides basic data access with a limited amount of historical data. This can lead to smaller sample sizes and lower confidence levels, which may weaken the robustness of your probability calculations. Suitable for casual traders who do not require extensive historical analysis.
Plus Plan
The Plus Plan offers more historical data than the Essential Plan, allowing for larger sample sizes and more accurate confidence levels. This enhancement improves the reliability of indicator calculations. This plan is ideal for more active traders looking to refine their strategies with better data.
Premium Plan
The Premium Plan grants access to extensive historical data, enabling the largest sample sizes and the highest confidence levels. This plan provides the most reliable data for accurate calculations, with up to 20,000 historical bars available for analysis. It is designed for serious traders who need comprehensive data for in-depth market analysis.
PRO+ Plans
The PRO+ Plans offer the most extensive historical data, allowing for the largest sample sizes and the highest confidence levels. These plans are tailored for professional traders who require advanced features and significant historical data to support their trading strategies effectively.
For many traders, the Premium Plan offers a good balance of affordability and sufficient sample size for accurate confidence levels.
What is the HTF probability table and how does it work?
The HTF (Higher Time Frame) probability table is a feature that allows you to view buy and sellside probabilities and their status from timeframes higher than your current chart timeframe.
Here’s how it works:
Data Request: The table requests and retrieves data from user-defined higher timeframes (HTFs) that you select.
Probability Display: It displays the buy and sellside probabilities for each of these HTFs, providing insights into the likelihood of price movements based on higher timeframe data.
Detailed Tooltips: The table includes detailed tooltips for each timeframe, offering additional context and explanations to help you understand the data better.
What do the different colors in the HTF probability table indicate?
The colors in the HTF probability table provide visual cues about the expected value (EV) of trading setups based on higher timeframe probabilities:
Blue: Suggests that entering a long position from the HTF user-defined pivot point, targeting buyside liquidity, is likely to result in a positive expected value (EV) based on historical data and sample size.
Red: Indicates that entering a short position from the HTF user-defined pivot point, targeting sellside liquidity, is likely to result in a positive expected value (EV) based on historical data and sample size.
Gray: Shows that neither long nor short trades from the HTF user-defined pivot point are expected to generate positive EV, suggesting that trading these setups may not be favorable.
What machine learning techniques are used in Quantify?
Quantify offers two main machine learning approaches:
1. Adaptive Learning (Fixed Sample Size): The algorithm learns from the entire dataset without resampling, maintaining a stable model that adapts to the latest market conditions.
2. Bootstrap Resampling: This method creates multiple subsets of the historical data, allowing the model to train on varying sample sizes. This technique enhances the robustness of predictions by ensuring that the model is not overfitting to a single dataset.
How does machine learning affect the expected value calculations in Quantify?
Machine learning plays a key role in improving the accuracy of expected value (EV) calculations. By analyzing historical price action, liquidity hits, and market bias patterns, the model continuously adjusts its understanding of risk and reward, allowing the expected value to reflect the most likely market movements. This results in more precise EV predictions, helping traders focus on setups that maximize profitability.
What is the Kelly Criterion, and how does it work in Quantify?
The Kelly Criterion is a mathematical formula used to determine the optimal position size for each trade, maximizing long-term growth while minimizing the risk of large drawdowns. It calculates the percentage of your portfolio to risk on a trade based on the probability of winning and the expected payoff.
Quantify integrates this with user-defined inputs to dynamically calculate the most effective position size in percentage, aligning with the trader’s risk tolerance and desired exposure.
How does Quantify use the Kelly Criterion in practice?
Quantify uses the Kelly Criterion to optimize position sizing based on the following factors:
1. Confidence Level: The model assesses the confidence level in the trade setup based on historical data and sample size. A higher confidence level increases the suggested position size because the trade has a higher probability of success.
2. Max Allowed Drawdown (User-Defined): Traders can set their preferred maximum allowed drawdown, which dictates how much loss is acceptable before reducing position size or stopping trading. Quantify uses this input to ensure that risk exposure aligns with the trader’s risk tolerance.
3. Probabilities: Quantify calculates the probabilities of success for each trade setup. The higher the probability of a successful trade (based on historical price action and liquidity levels), the larger the position size suggested by the Kelly Criterion.
What is a trailing stoploss, and how does it work in Quantify?
A trailing stoploss is a dynamic risk management tool that moves with the price as the market trend continues in the trader’s favor. Unlike a fixed take profit, which stays at a set level, the trailing stoploss automatically adjusts itself as the market moves, locking in profits as the price advances.
In Quantify, the trailing stoploss is enhanced by incorporating market structure liquidity levels (explain above). This ensures that the stoploss adjusts intelligently based on key price levels, allowing the trader to stay in the trade as long as the trend remains intact, while also protecting profits if the market reverses.
Why would a trader prefer a trailing stoploss based on liquidity levels instead of a fixed take-profit level?
Traders who use trailing stoplosses based on liquidity levels prefer this method because:
1. Market-Driven Flexibility: The stoploss follows the market structure rather than being static at a pre-defined level. This means the stoploss is less likely to be hit by small market fluctuations or false reversals. The stoploss remains adaptive, moving as the market moves.
2. Riding the Trend: Traders can capture more profit during a sustained trend because the trailing stop will adjust only when the trend starts to reverse significantly, based on key liquidity levels. This allows them to hold positions longer without prematurely locking in profits.
3. Avoiding Premature Exits: Fixed stoploss levels may exit a trade too early in volatile markets, while liquidity-based trailing stoploss levels respect the natural flow of price action, preventing the trader from exiting too soon during pullbacks or minor retracements.
🎲 Becoming the House: Gaining an Edge Over the Market
In American roulette, the casino has a 5.26% edge due to the presence of the 0 and 00 pockets. On even-money bets, players face a 47.37% chance of winning, while true 50/50 odds would require a 50% chance. This edge—the gap between the payout odds and the true probabilities—ensures that, statistically, the casino will always win over time, even if individual players win occasionally.
From a Trader’s Perspective
In trading, your edge comes from identifying and executing setups with a positive expected value (EV). For example:
• If you identify a setup with a 55.48% chance of winning and a 1:1 risk-to-reward (RR) ratio, your trade has a statistical advantage over a neutral (50/50) probability.
This edge works in your favor when applied consistently across a series of trades, just as the casino’s edge ensures profitability across thousands of spins.
🎰 Applying the Concept to Trading
Like casinos leverage their mathematical edge in games of chance, you can achieve long-term success in trading by focusing on setups with positive EV and managing your trades systematically. Here’s how:
1. Probability Advantage: Prioritize trades where the probability of success (win rate) exceeds the breakeven rate for your chosen risk-to-reward ratio.
• Example: With a 1:1 RR, you need a win rate above 50% to achieve positive EV.
2. Risk-to-Reward Ratio (RR): Even with a win rate below 50%, you can gain an edge by increasing your RR (e.g., a 40% win rate with a 2:1 RR still has positive EV).
3. Consistency and Discipline: Just as casinos profit by sticking to their mathematical advantage over thousands of spins, traders must rely on their edge across many trades, avoiding emotional decisions or overleveraging.
By targeting favorable probabilities and managing trades effectively, you “become the house” in your trading. This approach allows you to leverage statistical advantages to enhance your overall performance and achieve sustainable profitability.
What Makes the Quantify Indicator Original?
1. Data-Driven Edge
Unlike traditional indicators that rely on static formulas, Quantify leverages probability-based analysis and machine learning. It calculates expected value (EV) and confidence levels to help traders identify setups with a true statistical edge.
2. Integration of Market Structure
Quantify uses market structure liquidity levels to dynamically adapt. It identifies key zones like swing highs/lows and liquidity traps, enabling users to align entries and exits with where the market is most likely to react. This bridges the gap between price action analysis and quantitative trading.
3. Sophisticated Risk Management
The Kelly Criterion implementation is unique. Quantify allows traders to input their maximum allowed drawdown, dynamically adjusting risk exposure to maintain optimal position sizing. This ensures risk is scientifically controlled while maximizing potential growth.
4. Multi-Timeframe and Liquidity-Based Trailing Stops
The indicator doesn’t just suggest fixed profit-taking levels. It offers market structure-based trailing stop-loss functionality, letting traders ride trends as long as liquidity and probabilities favor the position, which is rare in most tools.
5. Customizable Bias and Adaptive Learning
• Directional Bias: Traders can set a bullish or bearish bias, and the indicator recalculates probabilities to align with the trader’s market outlook.
• Adaptive Learning: The machine learning model adapts to changes in data (via resampling or bootstrap methods), ensuring that predictions stay relevant in evolving markets.
6. Positive EV Focus
The focus on positive EV setups differentiates it from reactive indicators. It shifts trading from chasing signals to acting on setups that statistically favor profitability, akin to how professional quant funds operate.
7. User Empowerment
Through features like customizable timeframes, real-time probability updates, and visualization tools, Quantify empowers users to make data-informed decisions.
Terms and Conditions | Disclaimer
Our charting tools are provided for informational and educational purposes only and should not be construed as financial, investment, or trading advice. They are not intended to forecast market movements or offer specific recommendations. Users should understand that past performance does not guarantee future results and should not base financial decisions solely on historical data.
Built-in components, features, and functionalities of our charting tools are the intellectual property of @Fractalyst use, reproduction, or distribution of these proprietary elements is prohibited.
By continuing to use our charting tools, the user acknowledges and accepts the Terms and Conditions outlined in this legal disclaimer and agrees to respect our intellectual property rights and comply with all applicable laws and regulations.
High/Mid/Low of the Previous Month, Week and Day + MAIntroducing the Ultimate Price Action Indicator
Take your trading to the next level with this feature-packed indicators. Designed to provide key price insights, this tool offers:
- Monthly, Weekly, and Daily Levels : Displays the High, Midpoint, and Low of the previous month, week, and day.
- Logarithmic Price Lines : Option to plot price levels logarithmically for enhanced accuracy.
- Customizable Labels : Display labels on price lines for better clarity. (This feature is optional.)
- Dual Moving Averages : Add two customizable Moving Averages (Simple, Exponential, or Weighted) directly on the price chart. (This feature is optional.)
This code combines features from the Moving Average Exponential and Daily Weekly Monthly Highs & Lows (sbtnc) indicators, with custom modifications to implement unique personal ideas.
Perfect for traders who want to combine precision with simplicity. Whether you're analyzing historical levels or integrating moving averages into your strategy, this indicator provides everything you need for informed decision-making.
To prevent change chart scale, right click on Price Scale and enable "Scale price chart only"
Key LevelsKey Levels Indicator
In the world of trading, manually identifying and plotting key levels for every close can be a tedious and error-prone task. This indicator stands out by automatically detecting and plotting only those levels where a significant shift in market sentiment has occurred. Unlike traditional indicators that plot lines for every open or close, this tool focuses on levels where liquidity has changed hands, indicating a potential shift in momentum.
How It Works:
- The indicator identifies Higher Timeframe (HTF) reversals, plotting levels only when a bearish candle is followed by a bullish one, or vice versa.
- Weekly levels are represented by dashed lines, while monthly levels are solid, providing clear visual differentiation.
- Levels are drawn at the open price of the reversal candle, starting precisely at the beginning of the new HTF bar.
Why It's Different:
- Focuses on genuine shifts in market sentiment rather than arbitrary price points.
- Automatically manages the number of visible levels to prevent chart clutter.
- Ideal for range traders and mean reversion strategies, offering insights into potential support and resistance zones where market participants have shown a change in behavior.
Usage Note:
While this indicator provides valuable insights, it should not be used in isolation. Always consider the broader market context and combine it with other analysis techniques for optimal results.
Settings:
- Toggle weekly/monthly levels
- Adjust the number of visible levels (1-20)
- Customize level colors
Fibonacci Confluence Toolkit [LuxAlgo]The Fibonacci Confluence Toolkit is a technical analysis tool designed to help traders identify potential price reversal zones by combining key market signals and patterns. It highlights areas of interest where significant price action or reactions are anticipated, automatically applies Fibonacci retracement levels to outline potential pullback zones, and detects engulfing candle patterns.
Its unique strength lies in its reliance solely on price patterns, eliminating the need for user-defined inputs, ensuring a robust and objective analysis of market dynamics.
🔶 USAGE
The script begins by detecting CHoCH (Change of Character) points—key indicators of shifts in market direction. This script integrates the principles of pure price action as applied in Pure-Price-Action-Structures , where further details on the detection process can be found.
The detected CHoCH points serve as the foundation for defining an Area of Interest (AOI), a zone where significant price action or reactions are anticipated.
As new swing highs or lows emerge within the AOI, the tool automatically applies Fibonacci retracement levels to outline potential retracement zones. This setup enables traders to identify areas where price pullbacks may occur, offering actionable insights into potential entries or reversals.
Additionally, the toolkit highlights engulfing candle patterns within these zones, further refining entry points and enhancing confluence for better-informed trading decisions based on real-time trend dynamics and price behavior.
🔶 SETTINGS
🔹 Market Patterns
Bullish Structures: Enable or disable all bullish components of the indicator.
Bearish Structures: Enable or disable all bearish components of the indicator.
Highlight Area of Interest: Toggle the option to highlight the Areas of Interest (enabled or disabled).
CHoCH Line: Choose the line style for the CHoCH (Solid, Dashed, or Dotted).
Width: Adjust the width of the CHoCH line.
🔹 Retracement Levels
Choose which Fibonacci retracement levels to display (e.g., 0, 0.236, 0.382, etc.).
🔹 Swing Levels & Engulfing Patterns
Swing Levels: Select how swing levels are marked (symbols like ◉, △▽, or H/L).
Engulfing Candle Patterns: Choose which engulfing candle patterns to detect (All, Structure-Based, or Disabled).
🔶 RELATED SCRIPTS
Pure-Price-Action-Structures.
Psychological Levels- Rounding Numbers Psychological Levels Indicator
Overview:
The Psychological Levels Indicator automatically identifies and plots significant price levels based on psychological thresholds, which are key areas where market participants often focus their attention. These levels act as potential support or resistance zones due to human behavioral tendencies to round off numbers. This indicator dynamically adjusts the levels based on the stock's price range and ensures seamless visibility across the chart.
Key Features:
Dynamic Step Sizes:
The indicator adjusts the levels dynamically based on the stock price:
For prices below 500: Levels are spaced at 10.
For prices between 500 and 3000: Levels are spaced at 50, 100, and 1000.
For prices between 3000 and 10,000: Levels are spaced at 100 and 1000.
For prices above 10,000: Levels are spaced at 500 and 1000.
Extended Visibility:
The plotted levels are extended across the entire chart for improved visualization, ensuring traders can easily monitor these critical zones over time.
Customization Options:
Line Color: Choose the color for the levels to suit your charting style.
Line Style: Select from solid, dashed, or dotted lines.
Line Width: Adjust the thickness of the lines for better clarity.
Clean and Efficient Design:
The indicator only plots levels relevant to the visible chart range, avoiding unnecessary clutter and ensuring a clean workspace.
How It Works:
It calculates the relevant step sizes based on the price:
Smaller step sizes for lower-priced stocks.
Larger step sizes for higher-priced stocks.
Primary, secondary, and (if applicable) tertiary levels are plotted dynamically:
Primary Levels: The most granular levels based on the stock price.
Secondary Levels: Higher-order levels for broader significance.
Tertiary Levels: Additional levels for lower-priced stocks to enhance detail.
These levels are plotted across the chart, allowing traders to visualize key psychological areas effortlessly.
Use Cases:
Day Trading: Identify potential intraday support and resistance levels.
Swing Trading: Recognize key price zones where trends may pause or reverse.
Long-Term Investing: Gain insights into significant price zones for entry or exit strategies.
Resistance & SupportThis indicator combines multiple analytical methods to calculate potential support and resistance levels for the upcoming trading day, leveraging historical price data. The calculations are based on three key areas:
Pivot Points: These are calculated using the previous day's high, low, and close values to provide central price levels, along with first and second-level support and resistance (S1, S2, R1, R2). These levels are commonly used in technical analysis and can serve as reference points for market entries and exits.
3-Day Price Average (3DBP): This value provides a short-term trend signal by averaging the high, low, and close prices over the past three days. The indicator helps identify whether the market has been trading at higher or lower levels recently, which can signal bullish or bearish trends.
Trend Detection: The script also includes a short-term and long-term trend analysis:
Short-Term Trend: The prior day’s 3DBP is compared to the previous day’s 3DBP to gauge the market's short-term direction.
Long-Term Trend: The prior close is compared to the open from 50 days ago, offering an indication of the overall market trend.
These components work together to provide actionable insights on potential entry points. For example:
In a bullish market, support levels may act as potential entry points for long trades when the price retraces.
In a bearish market, resistance levels may act as potential entry points for short trades upon price rejection.
The Trend Table at the top right of the chart displays the short-term and long-term trend information for quick reference. It shows whether the trends are bullish or bearish based on the calculations above.
While originally optimized for the EUR/USD currency pair, this indicator can be applied to other forex pairs. However, results may vary depending on the instrument, and further testing is recommended for non-EUR/USD pairs.
Usage Notes:
Pivot points can often act as both support and resistance. While they provide useful reference levels, in volatile markets, these levels may not always hold. Tight stop-losses are recommended if trading near these levels.
The 3DBP offers insight into past market behavior, and although it’s not guaranteed to act as support or resistance, it can help identify zones of interest in the short term.
This indicator is designed to provide a structured approach to price action analysis, incorporating widely-recognized methods like pivot points and trend detection, while adding unique elements like the 3DBP to enhance its utility.
Price Delivery Bias @MaxMaserati Price Delivery Bias (PDB) Indicator @ MaxMaserati
The Price Delivery Bias (PDB) indicator is a powerful tool designed to identify and track market structure shifts through price action analysis. It helps traders identify potential trend changes and continuation patterns by monitoring price delivery sequences.
Key Features:
- Automatically detects and labels Change of Delivery Long (CDL) and Change of Delivery Short (CDS) points
- Tracks subsequent Delivery sequences (LD1, LD2, LD3... for longs; SD1, SD2, SD3... for shorts)
- Dynamic support and resistance lines for active buyers and sellers
- Real-time bias status display with delivery count
- Customizable colors and display options
How It Works:
The indicator analyzes price action using fractal patterns to identify significant structural points where the market bias changes or continues. When price breaks above a key level, it marks a CDL (Change of Delivery Long), followed by subsequent long deliveries (LD1, LD2, etc.). Similarly, breaks below key levels are marked as CDS (Change of Delivery Short), followed by short deliveries (SD1, SD2, etc.).
Use Cases:
- Trend Direction: Identify potential trend changes through CDL and CDS signals
- Trend Strength: Monitor delivery sequences (LD/SD count) to gauge trend strength
- Support/Resistance: Track active buyer and seller levels
- Trade Management: Use delivery sequences for managing entries, stops, and targets
Customization Options:
- Adjust the look back period for structure detection
- Customize colors for long and short bias signals
- Toggle label visibility for CDL/CDS and delivery sequences
- Modify text size for better visibility
- Show/hide buyer and seller lines
- Customize table position and appearance
Settings Guide:
1. Length: Determines the look back period for structure detection (default: 5)
2. CDL/CDS Colors: Set colors for bullish and bearish signals
3. Label Controls: Toggle visibility of CDL/CDS and delivery labels
4. Text Size: Choose between Tiny, Small, and Normal for label text
5. Buyer/Seller Lines: Toggle and customize dashed lines showing active levels
6. Bias Table: Configure position and visibility of the status table
#### Pro Tips:
- Use the delivery count to gauge trend strength - higher counts often indicate stronger trends
- Watch for bias changes (CDL/CDS) after extended delivery sequences
- Combine with volume and momentum indicators for confirmation
- Use buyer/seller lines as dynamic support/resistance levels
- Monitor label sequences for potential exhaustion points
#### Notes:
- The indicator works best on higher timeframes (1H and above)
- Signals are more reliable in trending markets
- Multiple delivery sequences often indicate strong trend continuations
- Consider using with other indicators for confirmation
This indicator is ideal for both trend traders and swing traders who want to understand market structure and bias through price action analysis. It provides clear visual cues for potential trend changes and continuation patterns while offering extensive customization options to suit different trading styles.
Multi Ticker Price TableTable showing the current price of up to 7 tickers
- Tickers are user choice
- Table background is customizable
- User has the choice to turn the Daily % column off
[blackcat] L1 Institutional Golden Bottom Indicator█ OVERVIEW
The script " L1 Institutional Golden Bottom Indicator" is an indicator designed to identify potential institutional buying interest or a "golden bottom" in the market. It calculates a series of values based on price movements and plots them on a chart to help traders make informed decisions.
█ LOGICAL FRAMEWORK
The script is structured into several main sections:
1 — Function Definitions: Custom functions xsa and calculate_institutional_golden_bottom are defined.
2 — Input Parameters: The user can set a threshold value for institutional interest.
3 — Calculations: The script calculates various indicators and conditions, including the institutional buy signal.
4 — Plotting: The results of the calculations are plotted on the chart.
5 — Labeling: When a golden bottom is detected, a label is placed on the chart.
The flow of data starts with the input parameters, proceeds through the calculation functions, and finally results in plotted outputs and labels.
█ CUSTOM FUNCTIONS
1 — xsa(src, len, wei)
• Purpose: To calculate a weighted moving average.
• Parameters:
– src: Source data (e.g., price).
– len: Length of the moving average.
– wei: Weighting factor.
• Return Value: The calculated weighted moving average.
2 — calculate_institutional_golden_bottom(close, high, low, threshold)
• Purpose: To determine the institutional golden bottom indicator.
• Parameters:
– close: Closing price.
– high: Highest price.
– low: Lowest price.
– threshold: User-defined threshold for institutional interest. By tuning the threshold value the user can properly identify the institutional golden bottom of the instrument. So, I can say this parameter is used to tune the "sensitivity" of this indicator.
• Return Value: An array containing the institutional indicator, golden bottom signal, and additional values (a1, b1, c1, d1).
█ KEY POINTS AND TECHNIQUES
• Weighted Moving Average (WMA): The xsa function implements a weighted moving average, which is useful for smoothing price data.
• Crossover Detection: The script uses a crossover condition to detect when the institutional indicator crosses above the threshold, indicating a potential buying opportunity.
• Conditional Logic: The script includes conditional statements to control the output of certain values only when specific conditions are met.
• Plotting and Labeling: The script uses plot and label.new functions to visualize the indicator and highlight significant events on the chart.
█ EXTENDED KNOWLEDGE AND APPLICATIONS
• Modifications: The script could be enhanced by adding more customizable parameters, such as different lengths for the moving averages or additional conditions for the golden bottom signal.
• Extensions: Similar techniques could be applied to other types of indicators, such as momentum oscillators or trend-following systems to identify market turning points.
• Related Concepts: Understanding weighted moving averages, crossover signals, and conditional plotting in Pine Script would be beneficial for enhancing this script and applying similar logic to other trading strategies.
MA Multi-Timeframe [ChartPrime]The MA Multi-Timeframe indicator is designed to provide multi-timeframe moving averages (MAs) for better trend analysis across different periods. This tool allows traders to monitor up to four different MAs on a single chart, each coming from a selectable timeframe and type (SMA, EMA, SMMA, WMA, VWMA). The indicator helps traders gauge both short-term and long-term price trends, allowing for a clearer understanding of market dynamics.
⯁ KEY FEATURES AND HOW TO USE
⯌ Multi-Timeframe Moving Averages :
The indicator allows traders to select up to four MAs, each from different timeframes. These timeframes can be set in the input settings (e.g., Daily, Weekly, Monthly), and each moving average can be displayed with its corresponding timeframe label directly on the chart.
Example of different timeframes for MAs:
⯌ Moving Average Types :
Users can choose from several types of moving averages, including SMA, EMA, SMMA, WMA, and VWMA, making the indicator adaptable to different strategies and market conditions. This flexibility allows traders to tailor the MAs to their preference.
Example of different types of MAs:
⯌ Dashboard Display :
The indicator includes a built-in dashboard that shows each MA, its timeframe, and whether the price is currently above or below that MA. This dashboard provides a quick overview of the trend across different timeframes, allowing traders to determine whether the overall trend is up or down.
Example of trend overview via the dashboard:
⯌ Polyline Representation :
Each MA is plotted using polylines to avoid plot functions and create a curves across up to 4000 bars back, ensuring that historical data is visualized clearly for a deeper analysis of how the price interacts with these levels over time.
if barstate.islast
for i = 0 to 4000
cp.push(chart.point.from_index(bar_index , ma ))
polyline.delete(polyline.new(cp, curved = false, line_color = color, line_style = style) )
Example of polylines for moving averages:
⯌ Customization Options :
Traders can customize the length of the MAs for all timeframes using a single input. The color, style (solid, dashed, dotted) of each moving average are also customizable, giving users full control over the visual appearance of the indicator on their chart.
Example of custom MA styles:
⯁ USER INPUTS
MA Type : Select the type of moving average for each timeframe (SMA, EMA, SMMA, WMA, VWMA).
Timeframe : Choose the timeframe for each moving average (e.g., Daily, Weekly, Monthly).
MA Length : Set the length for the moving averages, which will be applied to all four MAs.
Line Style : Customize the style of each MA line (solid, dashed, or dotted).
Colors : Set the color for each MA for better visual distinction.
⯁ CONCLUSION
The MA Multi-Timeframe indicator is a versatile and powerful tool for traders looking to monitor price trends across multiple timeframes with different types of moving averages. The dashboard simplifies trend identification, while the customizable options make it easy to adapt to individual trading strategies. Whether you're analyzing short-term price movements or long-term trends, this indicator offers a comprehensive solution for tracking market direction.