ST+SQZMOM v.3ST+SQZMOM v.3 Indicator
inspired by Supertrend and SQZMOM of LazyBear
Purpose: This script is designed to help traders identify market trends and potential trading opportunities using two key indicators: Supertrend and Squeeze Momentum Indicator (SQZMOM).
---
Key Features:
1. Supertrend Indicator:
- Trend Detection: Shows whether the market is in an uptrend or downtrend.
- Dynamic Levels: Uses Average True Range (ATR) to set support and resistance levels.
2. Squeeze Momentum Indicator (SQZMOM):
- Volatility Measurement: Identifies periods of low volatility (squeeze) and potential breakout points.
- Bollinger Bands & Keltner Channels: Combines these two tools to assess market conditions.
3. Custom Alerts:
- Trend Change Alerts: Notifies you when the trend changes.
- Squeeze Alerts: Alerts you when the market is entering or exiting a squeeze.
4. Customizable Settings:
- Adjust parameters like ATR length, Bollinger Bands length, and moving average periods to fit your trading style.
---
How It Works:
1. Calculate Trend:
- The script calculates the Supertrend to determine if the market is trending up or down.
2. Identify Squeeze:
- It checks if the market is in a squeeze (low volatility) or has released from a squeeze (high volatility).
3. Set Targets and Stop Loss:
- Based on the trend and squeeze conditions, it calculates entry points, target levels, and stop loss levels for trades.
4. Visual Indicators:
- Plots the Supertrend line, Bollinger Bands, Keltner Channels, and shapes to indicate market conditions (e.g., squeeze on/off, trend changes).
5. Trigger Alerts:
- Sends alerts when specific conditions are met, such as a squeeze release or trend change.
---
Conclusion
The ST+SQZMOM v.3 Indicator is a powerful tool for traders looking to analyze market trends and volatility. By combining the Supertrend and Squeeze Momentum indicators, it provides a comprehensive view of market conditions, helping you make informed trading decisions.
Trendanalyse
[EmreKb] Dynamic Factor SupertrendThe Dynamic Factor Supertrend is an innovative variation of the classic Supertrend indicator, designed to provide traders with more accurate trend signals while reducing the impact of false breakouts. Unlike the traditional Supertrend, which relies on a fixed multiplier (Factor) applied to the Average True Range (ATR), this enhanced version introduces a dynamic adjustment mechanism based on price movements relative to the Supertrend line.
This indicator works by assessing the distance between the price and the Supertrend line. When the price moves significantly beyond the typical ATR × Factor distance, the remaining gap is recalculated using a Dynamic Factor. This additional scaling adjusts the base factor, effectively modifying the Supertrend line to better reflect current market conditions. This process ensures that the trend line adapts dynamically to changes in price behavior, reducing noise and improving signal reliability in volatile markets.
One of the key advantages of the Dynamic Factor Supertrend is its ability to minimize false trend reversals. By incorporating the Dynamic Factor adjustment, the indicator becomes more resilient to minor price fluctuations that could otherwise trigger incorrect signals. This makes it particularly effective in markets where volatility is high, or during periods of choppy price action, where traditional Supertrend indicators often struggle to maintain accuracy.
Traders can use the Dynamic Factor Supertrend to identify clear trend directions, with uptrends signaled when the price is above the trend line and downtrends when it is below. The Dynamic Factor parameter can be fine-tuned to match individual trading styles, offering greater flexibility. A lower value makes the trend line more responsive to price changes, while a higher value provides more stability by reducing the frequency of adjustments.
In summary, the Dynamic Factor Supertrend is an advanced trend-following tool that combines the foundational concepts of the Supertrend with a novel dynamic adjustment mechanism. It offers traders a more reliable way to navigate complex market conditions, making it a valuable addition to any trading strategy. This indicator is particularly well-suited for those seeking to reduce false signals and enhance the accuracy of their trend analysis in all market environments.
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.
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!
Dual Zigzag [Trendoscope®]🎲 Dual Zigzag indicator is built on recursive zigzag algorithm. It is very similar to other zigzag indicators published by us and other authors. However, the key point here is, the indicator draws zigzag on both price and any other plot based indicator on separate layouts.
Before we get into the indicator, here are some brief descriptions of the underlying concepts and key terminologies
🎯 Zigzag
Zigzag indicator breaks down price or any input series into a series of Pivot Highs and Pivot Lows alternating between each other. Zigzags though shows pivot high and lows, should not be used for buying at low and selling at high. The main application of zigzag indicator is for the visualisation of market structure and this can be used as basic building block for any pattern recognition algorithms.
🎯 Recursive Zigzag Algorithm
Recursive zigzag algorithm builds zigzag on multiple levels and each level of zigzag is based on the previous level pivots. The level zero zigzag is built on price. However, for level 1, instead of price level 0 zigzag pivots are used. Similarly for level 2, level 1 zigzag pivots are used as base.
🎲 Components Dual Zigzag Indicator
Here are the components of Dual zigzag indicator
Built in Oscillator - Indicator has built in oscillator options for plotting RSI (Relative Strength Index), MFI (Money Flow Index), cci (Commodity Channel Index) , CMO (Chande Momentum Oscillator), COG (Center of Gravity), and ROC (Rate of Change). Apart from the given built in oscillators, users can also use a custom external output as base. The oscillators are not printed on the price pane. But, printed on a separate indicator overlay.
Zigzag On Oscillator - Recursive zigzag is calculated and printed on the oscillator series. Each pivot high and pivot low also prints a label having the retracement ratios, and price levels at those points. Zigzag on the oscillator is also printed on the indicator overlay pane.
Zigzag on Price - Recursive zigzag calculated based on price and printed on the price pane. This is made possible by using force_overlay option present in the drawing objects. At each zigzag pivot levels, the label having price retracement ratios, and oscillator values are printed.
It is called dual zigzag because, the indicator calculates the zigzag on both price and oscillator series of values and prints them separately on different panes on the chart.
🎲 Indicator Settings
Settings include
Theme display settings to get the right colour combination to match the background.
Zigzag settings to be used for zigzag calculation and display
Oscillator settings to chose the oscillator to be used as base for 2nd zigzag
🎲 Applications
Useful in spotting divergences with both indicator and price having their own zigzag to highlight pivots
Spotting patterns in indicators/oscillators and correlate them with the patterns on price
🎲 Using External Input
If users want to use an external indicator such as OBV instead of the built in oscillators, then can do so by using the custom option.
Here is how this can be done.
Step1. Add both Dual Zigzag and the intended indicator (in this case OBV) on the chart. Notice that both OBV and Dual zigzag appear on different panes.
Step2. Edit the indicator settings of Dual zigzag and set custom indicator by selecting "custom" as oscillator name and then by setting the custom external indicator name and input.
Step 3. You would notice that the zigzag in Dual Zigzag indictor pane is already showing the zigzag pivots based on the OBV indicator and the price pivots display obv values at the pivot points. We can leave this as is.
Step 4. As an additional step, you can also merge the OBV pane and the Dual zigzag indicator pane into one by going into OBV settings and moving the indicator to above pane. Merge the scales so that there is no two scales on the same pane and the entire scale appear on the right.
At the end, you should see two panes - one with price and other with OBV and both having their zigzag plotted.
Trendlines with Breaks Strategy [AlexGoldHunter]Strategy Overview
This strategy, named "Trendlines with Breaks Strategy ", is designed to identify and trade trendline breakouts. It uses pivot highs and lows to detect significant levels and calculates slopes to plot trendlines. The strategy places buy and sell orders based on these trendlines and triggers alerts for potential breakouts.
Inputs and Parameters
Swing Detection Lookback (length): Defines the number of bars to look back for identifying pivot highs and lows.
Slope Multiplier (mult): Adjusts the steepness of the trendlines.
Slope Calculation Method (calcMethod): Determines how the slope is calculated (Atr, Stdev, or Linreg).
Backpainting (backpaint): Toggles the display of elements in the past, providing real-time information when disabled.
Style Settings
Up Trendline Color (upCss): Color for upward trendlines (default: teal).
Down Trendline Color (dnCss): Color for downward trendlines (default: red).
Show Extended Lines (showExt): Option to show extended trendlines.
Calculations
Pivot High (ph) and Pivot Low (pl): Identifies significant highs and lows based on the lookback period.
Slope Calculation: Determines the slope of trendlines using the selected calculation method.
Trendline Calculation: Updates the positions of the upper and lower trendlines based on the pivot points and slopes.
Plotting
Upper and Lower Trendlines: Plots the calculated trendlines on the chart.
Breakout Labels: Adds labels "alex_buy_now" for upward trendline breaks and "alex_sell_now" for downward trendline breaks.
Strategy Conditions
Buy Condition:
Triggers a buy order when the price breaks above the downward trendline.
Sell Condition:
Triggers a sell order when the price breaks below the upward trendline.
Alerts
Upward Breakout Alert: Notifies when the price breaks above the downward trendline.
Downward Breakout Alert: Notifies when the price breaks below the upward trendline.
Example Code Explanation
//@version=5
strategy("Trendlines with Breaks Strategy ", overlay=true)
// Input parameters
length = input.int(14, title="Swing Detection Lookback")
mult = input.float(1.0, title="Slope", minval=0, step=0.1)
calcMethod = input.string('Atr', title="Slope Calculation Method", options= )
backpaint = input(true, tooltip='Backpainting offset displayed elements in the past. Disable backpainting to see real-time information returned by the indicator.')
// Style settings
upCss = input.color(color.teal, title="Up Trendline Color", group="Style")
dnCss = input.color(color.red, title="Down Trendline Color", group="Style")
showExt = input(true, title="Show Extended Lines")
// Calculations
var upper = 0.0
var lower = 0.0
var slope_ph = 0.0
var slope_pl = 0.0
var offset = backpaint ? length : 0
n = bar_index
src = close
ph = ta.pivothigh(length, length)
pl = ta.pivotlow(length, length)
// Slope Calculation Method
slope = switch calcMethod
'Atr' => ta.atr(length) / length * mult
'Stdev' => ta.stdev(src, length) / length * mult
'Linreg' => math.abs(ta.sma(src * n, length) - ta.sma(src, length) * ta.sma(n, length)) / ta.variance(n, length) / 2 * mult
// Get slopes and calculate trendlines
slope_ph := ph ? slope : slope_ph
slope_pl := pl ? slope : slope_pl
upper := ph ? ph : upper - slope_ph
lower := pl ? pl : lower + slope_pl
var upos = 0
var dnos = 0
upos := ph ? 0 : close > upper - slope_ph * length ? 1 : upos
dnos := pl ? 0 : close < lower + slope_pl * length ? 1 : dnos
// Extended Lines
var uptl = line.new(na, na, na, na, color=upCss, style=line.style_dashed, extend=extend.right)
var dntl = line.new(na, na, na, na, color=dnCss, style=line.style_dashed, extend=extend.right)
if ph and showExt
uptl.set_xy1(n - offset, backpaint ? ph : upper - slope_ph * length)
uptl.set_xy2(n - offset + 1, backpaint ? ph - slope : upper - slope_ph * (length + 1))
if pl and showExt
dntl.set_xy1(n - offset, backpaint ? pl : lower + slope_pl * length)
dntl.set_xy2(n - offset + 1, backpaint ? pl + slope : lower + slope_pl * (length + 1))
// Plots
plot(backpaint ? upper : upper - slope_ph * length, title="Upper", color=ph ? na : upCss, offset=-offset)
plot(backpaint ? lower : lower + slope_pl * length, title="Lower", color=pl ? na : dnCss, offset=-offset)
// Breakouts
plotshape(upos > upos ? low : na, title="Upper Break",
style=shape.labelup, location=location.absolute, color=upCss, text="alex_buy_now", textcolor=color.white, size=size.tiny)
plotshape(dnos > dnos ? high : na, title="Lower Break",
style=shape.labeldown, location=location.absolute, color=dnCss, text="alex_sell_now", textcolor=color.white, size=size.tiny)
// Strategy: Buy and Sell conditions
if (upos > upos )
strategy.entry("Buy", strategy.long)
if (dnos > dnos )
strategy.entry("Sell", strategy.short)
// Alerts
alertcondition(upos > upos , title="Upward Breakout", message="Price broke the down-trendline upward")
alertcondition(dnos > dnos , title="Downward Breakout", message="Price broke the up-trendline downward")
-------------------------------------------
This script effectively integrates the trendline detection, breakout identification, and automated trading into a single strategy, making it a powerful tool for technical traders on TradingView. If you have any questions or need further clarification, feel free to ask!
Follow @Alexgoldhunter for more strategic ideas and minds
VORTEX VWAP RSIThe Vortex VWAP RSI is a dynamic momentum oscillator that combines the power of Volume Weighted Average Price (VWAP), Relative Strength Index (RSI), and Hull Moving Average (HMA) to create a unique trading tool. This indicator is designed to help traders identify potential trend reversals and momentum shifts with improved accuracy and reduced noise.
Key Features
• Utilizes VWAP as the source for RSI calculations, providing volume-weighted momentum insights
• Incorporates HMA smoothing for a more responsive and less lagging signal
• Customizable overbought and oversold levels for versatile market analysis
• Clear visual representation of momentum shifts
How It Works
The Vortex VWAP RSI calculates the RSI using VWAP as its price input, then applies HMA smoothing to create a fluid, responsive line. This combination aims to capture market momentum while filtering out minor fluctuations.
Trading Signals
• Bullish signals may occur when the indicator crosses above the oversold level
• Bearish signals might be generated when the indicator drops below the overbought level
• Divergences between the indicator and price can suggest potential trend reversals
Customization Options
Traders can fine-tune the indicator by adjusting:
• RSI VWAP Length
• HMA Smoothing Length
• Overbought and Oversold Levels
• Visual settings (colors, line width)
Inside Bar Breakout/Fakeout with AI Scenarios [Yosiet]Inside Bar Breakout/Fakeout Indicator with Scenarios
The Indicator is a powerful tool for traders looking to identify potential breakout and fakeout opportunities based on inside bar patterns. This indicator combines multiple technical analysis concepts to provide a comprehensive view of market behavior, helping traders make more informed decisions.
Key Features
Inside bar detection with filtering
Breakout and fakeout identification
Three distinct scenario detections
Customizable moving average calculations
Flexible visualization options
Alert conditions for various events
How It Works
The indicator identifies inside bars and filters them based on a maximum number of consecutive inside bars. It then detects breakouts and fakeouts using user-defined parameters. The script also calculates moving averages to determine trend direction.
Three specific scenarios are detected:
Strong breakout followed by a strong reversal
Weak breakout with multiple doji/weak candles
Strong breakout without reversal
These scenarios are visually represented on the chart, allowing traders to quickly identify potential trading opportunities.
How to Use
Apply the indicator to your chart
Adjust the input parameters to suit your trading style
Look for inside bar patterns and subsequent breakouts/fakeouts
Pay attention to the three scenario markers for additional context
Use the alert conditions to stay informed of potential opportunities
Trendonomics EmaThese are 3 EMAs combined Together.
These are Powerful Fibonacci EMAs which provide support resistance in uptrend & downtrend.
In Strong Uptrend Market will hold above 13 & 34 EMA and vice verse for Downtrend.
Price trading above All EMAs and Short term EMAs trading above medium & long term EMA will produce strong Uptrend.
Price trading below All EMA and Short term EMAs trading below medium & long term EMA will produce strong Downtrend.
To understand how the Exponential Moving Averages work in detail you can contact the author.
We use them along with Momentum Indicator to get strong Trend signals.
We can ride large trends using this Moving Average strategy along with Momentum Indicator which we will publish soon.
Triple EMA's is power system that can help riding long trends.
Enhanced SMC Buy/Sell Signals (15min) by Haristhis is based on smc and price action and works wonderfully well in 15 min timeframe with a success rate over 75%
SMC Buy/Sell Signals with FVG and Orderblocks by Haristhis script will give you perfect buy and sell signals
Dynamic Customizable 50% LineThis indicator is for finding the 50% level of the selected range.
Why would you need this? Because price likes to react from the 50% of the daily range.
With this indicator you can select the timeframe of choice and it will calculate the 50% level of it. You also can select the colour you want and change line thickness
Updates will come in the future. Good luck trading
Greetings
APKO
Heikin Ashi Signals with Positions -Suraj// Signal Conditions
newBuySignal = not inBuy and not inShort and haClose > haClose
newSellSignal = not inShort and inBuy and haHigh < haHigh and haLow > haLow // Inside Candle
newShortSignal = not inShort and not inBuy and haOpen == haHigh
newCoverSignal = inShort and haClose > haHigh
Trend Following and Swing Strategy (<30% DD) for CashFlowStrategy Explanation
Multi-Level Take Profit
TP1 triggers partial profit (50% of position) at +15%.
TP2 closes remaining 50% at +30%.
This locks in some gains early (helpful for consistent cashflow) but still leaves room to capture bigger trends.
Stop-Loss & RSI Exit
A 15% stop-loss is configured; adjust to match volatility.
If RSI < 50 or price dips below the 200 EMA, strategy closes the entire long.
Drawdown Control (<30%)
We track peak equity. If the strategy drawdown goes beyond 30%, it closes all open trades (strategy.close_all).
Entry Filters
Only enters if:
Volume above 1M (liquidity),
ADX > 25 (stock is trending),
RSI > 60 (bullish momentum),
ATR > 2 (enough daily range),
Price > 200 EMA (overall uptrend).
SWING TRADE 3.0 WPB Trive I FThe indicator is used specifically for trading single stocks (CFD) with a swing trading strategy
Trend Strength IndicatorThe Trend Strength Indicator is a versatile tool designed to measure the strength of market trends using Exponential Moving Averages (EMAs).
It evaluates price distances from EMAs of different periods (10, 20, 50, and 200) to determine trend strength across various timeframes.
The indicator assigns a rating from 1 to 10, with green indicating a positive trend (price above EMA) and red indicating a negative trend (price below EMA).
The ratings are displayed in a table, providing a clear visual representation of trend strength for very short-term, short-term, mid-term, and long-term trends. This helps traders make informed decisions based on trend analysis.
NX LaddersThese NX Ladders are just EMAs of two time periods, but they showcase the trend of the stock faithfully and help reduce FOMO(fear of missing out) or STS(sell too soon). The ladders should be used cooperatively with another indicator called NX Indicator to maximally reveal its power.
Sal's Enhanced Trading StrategyThe provided Pine Script code defines an "Enhanced Trading Strategy" that integrates multiple technical analysis tools to assist in making informed trading decisions. Here's a breakdown of its components:
1. Inputs:
Fast EMA Period: Defines the period for the fast Exponential Moving Average (EMA).
Slow EMA Period: Defines the period for the slow EMA.
RSI Length: Sets the length for calculating the Relative Strength Index (RSI).
Volume Spike Multiplier: Determines the multiplier for identifying significant volume spikes.
Support/Resistance Lookback Period: Specifies the number of bars to look back when identifying support and resistance levels.
2. Calculations:
Fast and Slow EMAs: Calculates the fast and slow EMAs using the specified periods.
RSI: Computes the RSI based on the defined length.
Volume Spike Detection: Identifies volume spikes by comparing the current volume to the 10-period simple moving average of volume, multiplied by the volume spike multiplier.
Support and Resistance Levels: Determines the support level as the lowest low and the resistance level as the highest high over the specified lookback period.
3. Plotting:
EMAs: Plots the fast EMA in blue and the slow EMA in orange on the chart.
Support and Resistance Levels: Plots the support level in green and the resistance level in red with a linewidth of 2.
Volume Spikes: Highlights the background in a semi-transparent green when a volume spike is detected.
4. Price Action Patterns:
Bullish Engulfing Pattern: Identifies a bullish engulfing pattern where the current candle's close is higher than the previous candle's open, and the current candle's open is lower than the previous candle's close. It plots a small green triangle below the bar when this pattern is detected.
Bearish Engulfing Pattern: Identifies a bearish engulfing pattern where the current candle's close is lower than the previous candle's open, and the current candle's open is higher than the previous candle's close. It plots a small red triangle above the bar when this pattern is detected.
Usage: This script overlays the chart with the following elements:
Fast and Slow EMAs: Assist in identifying the trend direction.
Support and Resistance Levels: Help in recognizing potential price reversal zones.
Volume Spikes: Indicate periods of increased trading activity, which may precede significant price movements.
Bullish and Bearish Engulfing Patterns: Signal potential reversal points in the market.
By combining these indicators, traders can gain a more comprehensive view of market conditions, aiding in making more informed trading decisions.
Volume-MACD-RSI Integrated StrategyDescription:
This script integrates three well-known technical analysis tools—Volume, MACD, and RSI—into a single signal meant to help traders identify potential turning points under strong market conditions.
Concept Overview:
Volume Filter: We compare the current bar’s volume to a 20-period volume average and require it to exceed a specified multiplier. This ensures that signals occur only during periods of heightened market participation. The logic is that moves on low volume are less reliable, so we wait for increased activity to confirm potential trend changes.
MACD Momentum Shift:
We incorporate MACD crossovers to determine when momentum is changing direction. MACD is a popular momentum indicator that identifies shifts in trend by comparing short-term and long-term EMAs. A bullish crossover (MACD line crossing above the signal line) may suggest upward momentum is building, while a bearish crossunder can indicate momentum turning downward.
RSI Market Condition Check:
RSI helps us identify overbought or oversold conditions. By requiring that RSI be oversold on buy signals and overbought on sell signals, we attempt to pinpoint entries where price could be at an extreme. The idea is to position entries or exits at junctures where price may be due for a reversal.
How the Script Works Together:
Volume Confirmation: No signals fire unless there’s strong volume. This reduces false positives.
MACD Momentum Check: Once volume confirms market interest, MACD crossover events serve as a trigger to initiate consideration of a trade signal.
RSI Condition: Finally, RSI determines whether the market is at an extreme. This final layer helps ensure we only act on signals that have both momentum shift and a price at an extreme level, potentially increasing the reliability of signals.
Intended Use:
This script can help highlight potential reversal points or trend shifts during active market periods.
Traders can use these signals as a starting point for deeper analysis. For instance, a “BUY” arrow may prompt a trader to investigate the market context, confirm with other methods, or look for patterns that further support a long entry.
The script is best used on markets with reliable volume data, such as stocks or futures, and can be experimented with across different timeframes. Adjusting the RSI thresholds, MACD parameters, and volume multiplier can help tailor it to specific instruments or trading styles.
Chart Setup:
When adding this script to your chart, it should be the only indicator present, so you can clearly see the red “BUY” arrows and green “SELL” arrows at the candle closes where signals occur.
The chart should be kept clean and uncluttered for clarity. No other indicators are necessary since the logic is already integrated into this single script.
Ichimoku Hilt Crypto - MbFredysEl script que hemos creado se basa en el indicador Ichimoku y el ATR para la volatilidad, lo que lo hace adecuado para una variedad de temporalidades
Trend-Filtered Scalping StrategyTrend-Filtered Scalping Strategy with multiple filters, including EMAs, VWAP, RSI, ADX, volume multipliers, and ATR-based stops/targets. Use with 3m and 5m charts.