RSI STRATEGY WITH TRENDLINE & BUY SELL SIGNALSCore Concepts:
* Relative Strength Index (RSI):
* The RSI is a momentum oscillator that measures the speed and change of price movements.
* It oscillates between 0 and 100.
* Typically, RSI values above 70 are considered overbought, and values below 30 are considered oversold.
* We use the RSI to identify potential reversals and overbought/oversold conditions.
* Trendlines:
* Trendlines are lines drawn on a chart to connect a series of price highs (downtrend) or lows (uptrend).
* They help identify the prevailing trend's direction and potential support/resistance levels.
* Trendlines are used to confirm the signals generated by the RSI.
RSI Strategy with Trendline Confirmation:
This strategy aims to combine the momentum insights of the RSI with the trend confirmation provided by trendlines.
Buy Signal:
* RSI Oversold: The RSI dips below a specified oversold level (e.g., 30).
* Uptrend Confirmation:
* An uptrend line is drawn connecting a series of rising lows.
* The price breaks above the uptrend line, or the price bounces from the uptrend line.
* RSI Crossover: The RSI crosses back above the oversold level, indicating a potential upward momentum shift.
* Buy Entry: Enter a long position when all three conditions are met.
Sell Signal:
* RSI Overbought: The RSI rises above a specified overbought level (e.g., 70).
* Downtrend Confirmation:
* A downtrend line is drawn connecting a series of falling highs.
* The price breaks below the downtrend line, or the price bounces from the downtrend line.
* RSI Crossover: The RSI crosses back below the overbought level, indicating a potential downward momentum shift.
* Sell Entry: Enter a short position when all three conditions are met.
TradingView Indicator
Phân tích Xu hướng
Auto TrendLines [TradingFinder] Support Resistance Signal Alerts🔵 Introduction
The trendline is one of the most essential tools in technical analysis, widely used in financial markets such as Forex, cryptocurrency, and stocks. A trendline is a straight line that connects swing highs or swing lows and visually indicates the market’s trend direction.
Traders use trendlines to identify price structure, the strength of buyers and sellers, dynamic support and resistance zones, and optimal entry and exit points.
In technical analysis, trendlines are typically classified into three categories: uptrend lines (drawn by connecting higher lows), downtrend lines (formed by connecting lower highs), and sideways trends (moving horizontally). A valid trendline usually requires at least three confirmed touchpoints to be considered reliable for trading decisions.
Trendlines can serve as the foundation for a variety of trading strategies, such as the trendline bounce strategy, valid breakout setups, and confluence-based analysis with other tools like candlestick patterns, divergences, moving averages, and Fibonacci levels.
Additionally, trendlines are categorized into internal and external, and further into major and minor levels, each serving unique roles in market structure analysis.
🔵 How to Use
Trendlines are a key component in technical analysis, used to identify market direction, define dynamic support and resistance zones, highlight strategic entry and exit points, and manage risk. For a trendline to be reliable, it must be drawn based on structural principles—not by simply connecting two arbitrary points.
🟣 Selecting Pivot Types Based on Trend Direction
The first step is to determine the market trend: uptrend, downtrend, or sideways.
Then, choose pivot points that match the trend type :
In an uptrend, trendlines are drawn by connecting low pivots, especially higher lows.
In a downtrend, trendlines are formed by connecting high pivots, specifically lower highs.
It is crucial to connect pivots of the same type and structure to ensure the trendline is valid and analytically sound.
🟣 Pivot Classification
This indicator automatically classifies pivot points into two categories :
Major Pivots :
MLL : Major Lower Low
MHL : Major Higher Low
MHH : Major Higher High
MLH : Major Lower High
These define the primary structure of the market and are typically used in broader structural analysis.
Minor Pivots :
mLL: minor Lower Low
mHL: minor Higher Low
mHH: minor Higher High
mLH: minor Lower High
These are used for drawing more precise trendlines within corrective waves or internal price movements.
Example : In a downtrend, drawing a trendline from an MHH to an mHH creates structural inconsistency and introduces noise. Instead, connect points like MHL to MHL or mLH to mLH for a valid trendline.
🟣 Drawing High-Precision Trendlines
To ensure a reliable trendline :
Use pivots of the same classification (Major with Major or Minor with Minor).
Ensure at least three valid contact points (three touches = structural confirmation).
Draw through candles with the least deviation (choose wicks or bodies based on confluence).
Preferably draw from right to left for better alignment with current market behavior.
Use parallel lines to turn a single trendline into a trendline zone, if needed.
🟣 Using Trendlines for Trade Entries
Bounce Entry: When price approaches the trendline and shows signs of reversal (e.g., a reversal candle, divergence, or support/resistance), enter in the direction of the trend with a logical stop-loss.
Breakout Entry: When price breaks through the trendline with strong momentum and a confirmation (such as a retest or break of structure), consider trading in the direction of the breakout.
🟣 Trendline-Based Risk Management
For bounce entries, the stop-loss is placed below the trendline or the last pivot low (in an uptrend).
For breakout entries, the stop-loss is set behind the breakout candle or the last structural level.
A broken trendline can also act as an exit signal from a trade.
🟣 Combining Trendlines with Other Tools (Confluence)
Trendlines gain much more strength when used alongside other analytical tools :
Horizontal support and resistance levels
Moving averages (such as EMA 50 or EMA 200)
Fibonacci retracement zones
Candlestick patterns (e.g., Engulfing, Pin Bar)
RSI or MACD divergences
Market structure breaks (BoS / ChoCH)
🔵 Settings
Pivot Period : This defines how sensitive the pivot detection is. A higher number means the algorithm will identify more significant pivot points, resulting in longer-term trendlines.
Alerts
Alert :
Enable or disable the entire alert system
Set a custom alert name
Choose how often alerts trigger (every time, once per bar, or on bar close)
Select the time zone for alert timestamps (e.g., UTC)
Each trendline type supports two alert types :
Break Alert : Triggered when price breaks the trendline
React Alert : Triggered when price reacts or bounces off the trendline
These alerts can be independently enabled or disabled for all trendline categories (Major/Minor, Internal/External, Up/Down).
Display :
For each of the eight trendline types, you can control :
Whether to show or hide the line
Whether to delete the previous line when a new one is drawn
Color, line style (solid, dashed, dotted), extension direction (e.g., right only), and width
Major lines are typically thicker and more opaque, while minor lines appear thinner and more transparent.
All settings are designed to give the user full control over the appearance, behavior, and alert system of the indicator, without requiring manual drawing or adjustments.
🔵 Conclusion
A trendline is more than just a line on the chart—it is a structural, strategic, and flexible tool in technical analysis that can serve as the foundation for understanding price behavior and making trading decisions. Whether in trending markets or during corrections, trendlines help traders identify market direction, key zones, and high-potential entry and exit points with precision.
The accuracy and effectiveness of a trendline depend on using structurally valid pivot points and adhering to proper market logic, rather than relying on guesswork or personal bias.
This indicator is built to solve that exact problem. It automatically detects and draws multiple types of trendlines based on actual price structure, separating them into Major/Minor and Internal/External categories, and respecting professional analytical principles such as pivot type, trend direction, and structural location.
ICT FVG & Swing Detector Basic by Trader RiazICT FVG & Swing Detector Basic by Trader Riaz
Unlock Precision Trading with the Ultimate Fair Value Gap (FVG) and Swing Detection Tool!
Developed by Trader Riaz , the ICT FVG and Swing Detector Basic is a powerful Pine Script indicator designed to help traders identify key market structures with ease. Whether you're a day trader, swing trader, or scalper, this indicator provides actionable insights by detecting Bullish and Bearish Fair Value Gaps (FVGs) and Swing Highs/Lows on any timeframe. Perfect for trading forex, stocks, crypto, and more on TradingView!
Key Features:
1: Bullish and Bearish FVG Detection
- Automatically identifies Bullish FVGs (highlighted in green) and Bearish FVGs (highlighted in red) to spot potential reversal or continuation zones.
- Displays FVGs as shaded boxes with a dashed midline at 70% opacity, making it easy to see the midpoint of the gap for precise entries and exits.
- Labels are placed inside the FVG boxes at the extreme right for clear visibility.
2: Customizable FVG Display
- Control the number of Bullish and Bearish FVGs displayed on the chart with user-defined inputs (fvg_bull_count and fvg_bear_count).
- Toggle the visibility of Bullish and Bearish FVGs with simple checkboxes (show_bull_fvg and show_bear_fvg) to declutter your chart.
3: Swing High and Swing Low Detection
- Detects Swing Highs (blue lines) and Swing Lows (red lines) to identify key market turning points.
- Labels are positioned at the extreme right edge of the lines for better readability and alignment.
- Customize the number of Swing Highs and Lows displayed (swing_high_count and swing_low_count) to focus on the most recent market structures.
4: Fully Customizable Display
- Toggle visibility for Swing Highs and Lows (show_swing_high and show_swing_low) to suit your trading style.
- Adjust the colors of Swing High and Low lines (swing_high_color and swing_low_color) to match your chart preferences.
5: Clean and Efficient Design
- Built with Pine Script v6 for optimal performance on TradingView.
- Automatically removes older FVGs and Swing points when the user-defined count is exceeded, keeping your chart clean and focused.
- Labels are strategically placed to avoid clutter while providing clear information.
Why Use This Indicator?
Precision Trading: Identify high-probability setups with FVGs and Swing points, commonly used in Smart Money Concepts (SMC) and Institutional Trading strategies.
User-Friendly: Easy-to-use inputs allow traders of all levels to customize the indicator to their needs.
Versatile: Works on any market (Forex, Stocks, Crypto, Commodities) and timeframe (1M, 5M, 1H, 4H, Daily, etc.).
Developed by Trader Riaz: Backed by the expertise of Trader Riaz, a seasoned trader dedicated to creating tools that empower the TradingView community.
How to Use:
- Add the Custom FVG and Swing Detector to your chart on TradingView.
- Adjust the input settings to control the number of FVGs and Swing points displayed.
- Toggle visibility for Bullish/Bearish FVGs and Swing Highs/Lows as needed.
- Use the identified FVGs and Swing points to plan your trades, set stop-losses, and target key levels.
Ideal For:
- Traders using Smart Money Concepts (SMC), Price Action, or Market Structure strategies.
- Those looking to identify liquidity grabs, imbalances, and trend reversals.
- Beginners and advanced traders seeking a reliable tool to enhance their technical analysis.
Happy trading!
Supply & Demand Zones
_____________________________________________________________________
Supply and Demand Zones
This indicator displays valid Supply and Demand zones on any chart and timeframe, using dynamically updating visuals. Users can see the moment that zones become validated, used, and then invalidated during live sessions. It is sleek, lightweight, and offers a feature-rich settings panel that allows customization of how each element appears and functions. Zones can enhance the probability of successful trades by locating areas that are most likely to contain resting orders of Supply or Demand, which are needed for price reversals.
Disclaimer
____________________
Like all indicators, this can be a valuable tool when incorporated into a comprehensive, risk-based trading system.
Supply and Demand is not the same thing as Support and Resistance.
Trading based on price hitting a zone without understanding which zones are of higher quality and which are of lower quality (only discernible with a trained human eye) will yield poor results.
Supply and Demand works well as a system and even better when added to an existing one. However, like all effective trading techniques, it requires diligent study, practice, and repetition to become proficient. This is an indicator for use with Supply and Demand concepts, not a replacement for learning them.
Features
____________________
Once a valid candle sequence is confirmed, a box will appear that displays the zone over the precise zone range. At 50% zone penetration, a zone becomes used , and at 100% it becomes invalidated . Each of these zone classifications changes the behavior of the zone on the chart immediately. The settings panel offers custom colors for Supply , Demand , Used , and Invalidated zone types.
Borders : The subtle border colors can be changed or hidden.
Boxes or Bases : Advanced users can opt to hide zone boxes and instead display small, subtle tags over base candle groups. This allows for more customizable selection over what is displayed and how.
Max Zones and Hide Invalidated :
There are limitations on how many objects TradingView allows at once. Because of this, once zones go from used to invalidated , they are hidden (deleted) by default. This allows the zones index to be allocated to display more valid , usable zones instead. If a user prefers to keep invalidated zones visible, they can be enabled; however, this will result in showing more recent zones for fewer historical zones.
All zones share one pool, so if you allow fifty max zones, forty-five might be supply while five might be demand on a big sell-off trend. You will always see the most recent zones, regardless of type or status.
It’s up to you how much clutter you want on your screen and how much improved load time you want - but once loaded, zone creation and function are always instantaneous.
Load Time
____________________
Load time refers to the time it takes from when you switch tickers or timeframes before the zones are displayed initially. There is zero lag in the dynamic function and minimal load time, regardless of settings. However, if you are a fine-tuner or multi-screener, the number of Max Zones displayed is the only major variable affecting load time.
I run everything at Max when I develop. When I trade, I run mine at 25 max zones because I change timeframes often and want a very quick display of zones when I do. I have invalidated hidden, and simply enable it if I want to check an old zone. This gives me more zones than I need and reduces the load time to right where I like it.
Thresholds
____________________
It is recommended to leave these as the default.
Base Body Threshold : Determines the maximum ratio of a candle’s body to wick before invalidation. Default (50% or 0.5). A higher number loosens thresholds, resulting in more zones being displayed.
Unrequire 2nd FT if LO is Strong & Strength Multiplier :
The standard logic sequence requires two Follow-Through candles. Under some strong price movement, Leg-Out candles can make an explosive directional move from a base, making a convincing argument for supply and demand perfectly at work, if not for a single Follow-Through candle instead of two.
By enabling this feature, you can tell the script to ignore second Follow-Through candles, if and only if, the Leg-Out candle's range is (Strength) X the base range. exceeds the range of the Base by a factor of X (Strength). ie: At 5x, this would require a Leg-Out range to be 500% the range of the Base.
If enabled and the Leg-Out is not strong enough, the default logic kicks in, and a second follow-through candle will validate the zone as per usual. This loosens thresholds overall and should result in more zones.
Recommended Usage
____________________
Form a thesis using your primary trend trading system (eg: Elliott Wave, Structure Reversal, TheStrat, et al) to identify locations of a pullback for a long or short entry.
Identify a pullback area using your system, then use this indicator to find a high-quality zone on your chosen timeframe.
Once located, draw your own channel over the indicator's zone box. Start on 1m, check for zones, 2m, 3m, and so on. When you see a zone you like, recreate it; thus, when finished, you can see every timeframe’s highest-quality zones that you created, regardless of what timeframe you switch to. Tip: Be selective
To make the process faster, save a channel design in settings for “Demand” and one for “Supply”, then you can quickly get through this process in less than a minute with practice.
Optional: Use additional methods (eg: Fibonacci retracements, Elliott Wave Theory, Anchored VWAPs) to find congruent confirmation.
Version 1.0
____________________
No known bugs remain from the closed beta.
In Development
____________________
Powerful combination zones occur when standard zone sequences are extended with additional levels of demand or supply by adding more conditionals to the state machine logic. Got this mostly working in a dev version and it adds minimal extra resources. Set aside to polish a clean standard 1.0 for release first, but now displaying these extended zones is my top priority for next version.
MTF support is essentially working in a dev copy, but adds resources. Not sure if it is in the spirit of price action being the primary focus of a chart for serious traders, rather than indicators. If there is demand for it, I'll consider it.
Additional Threshold Settings
Thanks!
____________________
Thank you for your interest in my work. This was a personal passion project of mine, and I was delighted it turned out better than I hoped, so I decided to share it. If you have any comments, bugs, or suggestions, please leave them here, or you can find me on Twitter or Discord.
@ ContrarianIRL
Open-source developer for over 25 years
Croak Indicator Trend Filtered🐸 Croak Indicator – Trend-Filtered Market Structure Visualizer
🔍 Overview
The Croak Indicator is a visual market structure tool designed to highlight potential reversal zones by identifying key swing highs and lows. It uses price action and trend context to help traders understand possible turning points in the market.
This version introduces a trend filter using Exponential Moving Averages (EMA), so:
🐸 Frogs (bottom signals) only appear in uptrends
🦊 Foxes (top signals) only appear in downtrends
This helps reduce noise and keeps the indicator aligned with the prevailing trend.
🧠 How It Works
Detects significant swing points based on local highs/lows over a lookback period (Pattern Length).
Adds a trend filter using EMA 21 and EMA 50 to improve signal quality.
A structure score (Frog Jump Score) optionally appears in the corner to show how symmetrical the recent market swings have been.
The script uses bar-based historical analysis and repaints past signals as more candles form.
⚠️ Important Note on Repainting
This is a repainting indicator, meaning it uses future price action to confirm swing points. Signals may change or disappear as new bars form. It is not intended for real-time signal execution, but rather as a visual aid for understanding market structure in hindsight.
⚙️ Key Features
✅ Plots intuitive frog and fox icons for bullish/bearish swing points.
✅ Includes a trend filter using EMA crossover logic.
✅ Optional scoring table for structure geometry confidence.
✅ Useful for swing traders, market structure learners, and chart artists.
⚠️ Disclaimer
This script is provided for educational and informational purposes only. It does not constitute financial advice. Always do your own analysis and apply risk management when trading.
ICT Order Blocks v2 (Debug) ICT Breaker Blocks v2 (Break Refined) Indicator Explanation
This document provides a comprehensive overview of the ICT Breaker Blocks v2 (Break Refined) indicator, which is designed to identify and visualize Breaker Blocks in trading. A Breaker Block represents a prior Order Block that has failed to hold price, indicating potential institutional support or resistance levels. The indicator highlights these flipped zones, allowing traders to anticipate future price reactions based on previous market behavior.
Purpose
The primary purpose of the ICT Breaker Blocks v2 indicator is to identify Breaker Blocks, which are crucial for understanding market dynamics. When price decisively breaks through an Order Block, it can change its role from support to resistance or vice versa. This indicator helps traders visualize these changes, providing insights into potential areas for price reactions.
How it Works
The indicator operates through a series of steps on each bar:
1. Identify Potential Order Blocks (OBs)
The indicator continuously searches for the most recent potential Order Blocks based on basic price action:
Potential Bullish OB: The last down-closing candle before an upward move that breaks its high.
Potential Bearish OB: The last up-closing candle before a downward move that breaks its low.
It retains the price range (high/low) and location of the most recent potential OB of each type.
2. Detect the "Break" of a Potential OB
A Breaker is confirmed when the price fails to respect a potential OB and moves decisively through it. The indicator checks:
If the current price closes above the high of the stored potential Bearish OB.
If the current price closes below the low of the stored potential Bullish OB.
3. Apply Displacement Filter (Optional)
To enhance the accuracy of break detection, traders can enable the "Require Displacement on Break?" filter in the settings. This filter adds a condition that the candle causing the break must have a larger body size than the preceding candle, indicating stronger momentum.
4. Store the Active Breaker Block
When a valid break occurs (and passes the displacement filter if active):
A Bullish Breaker (+BB) is confirmed if a potential Bearish OB is broken to the upside, storing the high/low price range of that original Bearish OB.
A Bearish Breaker (-BB) is confirmed if a potential Bullish OB is broken to the downside, storing the high/low price range of that original Bullish OB.
The indicator tracks only the most recent valid, unmitigated Breaker Block of each type, replacing the previous one when a new one forms.
5. Mitigation (Invalidation)
The indicator checks if the currently displayed Breaker zone has been invalidated by subsequent price action. The mitigation rules are as follows:
A Bullish Breaker is considered mitigated and removed if the price later closes below its low.
A Bearish Breaker is considered mitigated and removed if the price later closes above its high.
Visualization
For the currently active, unmitigated Breaker Block of each type (if enabled in settings):
A box is drawn representing the price zone (high/low) of the original Order Block that was broken.
The box starts from the bar where the break was confirmed.
If "Extend Breaker Boxes?" is enabled, the box extends to the right edge of the chart until the Breaker is mitigated.
A small label ("+BB" or "-BB") is added to the box, with colors and border styles configurable in the settings.
This indicator automates the identification of significant "flipped" zones, allowing traders to incorporate Breaker Blocks into their ICT analysis effectively. It is essential to evaluate the indicator's effectiveness on your chosen market and timeframe and consider using the displacement filter to refine the signals.
DSS Indicator📌 DSS Indicator – Double Smoothed Stochastic
📌 Name: DSS Indicator – Double Smoothed Stochastic
📌 Author:
📌 Platform: TradingView (Pine Script v5)
📌 Category: Oscillators, Momentum, Smart Money
📌 Description
The DSS (Double Smoothed Stochastic) Indicator is an advanced version of the classic Stochastic Oscillator, applying double smoothing to filter out market noise and generate more precise buy and sell signals.
✅ Key Features:
🔹 Double smoothed stochastic for improved accuracy
🔹 Buy and sell signals displayed as dots (green = buy, red = sell)
🔹 Option to display signals on the price chart and in a separate indicator panel
🔹 Adjustable smoothing period settings
🔹 Ideal for Smart Money and Swing Trading strategies
📌 How to Use?
🔹 Buy Signal (green dot) → When DSS exits the oversold area (<20)
🔹 Sell Signal (red dot) → When DSS exits the overbought area (>80)
🔹 Users can enable/disable signals on the price chart and/or in the indicator panel
💡 Tip: The DSS Indicator works best when combined with other technical analysis tools such as Fibonacci, EMA, MACD, and Smart Money Concepts (SMC).
📌 User Settings
🔸 Period 1 (default 21) – first smoothing
🔸 Period 2 (default 18) – second smoothing
🔸 Show signals on price chart (ON/OFF)
🔸 Show signals in indicator panel (ON/OFF)
👉 Add the DSS Indicator to your TradingView and test it with your strategy! 🚀
ZigZag█ Overview
This Pine Script™ library provides a comprehensive implementation of the ZigZag indicator using advanced object-oriented programming techniques. It serves as a developer resource rather than a standalone indicator, enabling Pine Script™ programmers to incorporate sophisticated ZigZag calculations into their own scripts.
Pine Script™ libraries contain reusable code that can be imported into indicators, strategies, and other libraries. For more information, consult the Libraries section of the Pine Script™ User Manual.
█ About the Original
This library is based on TradingView's official ZigZag implementation .
The original code provides a solid foundation with user-defined types and methods for calculating ZigZag pivot points.
█ What is ZigZag?
The ZigZag indicator filters out minor price movements to highlight significant market trends.
It works by:
1. Identifying significant pivot points (local highs and lows)
2. Connecting these points with straight lines
3. Ignoring smaller price movements that fall below a specified threshold
Traders typically use ZigZag for:
- Trend confirmation
- Identifying support and resistance levels
- Pattern recognition (such as Elliott Waves)
- Filtering out market noise
The algorithm identifies pivot points by analyzing price action over a specified number of bars, then only changes direction when price movement exceeds a user-defined percentage threshold.
█ My Enhancements
This modified version extends the original library with several key improvements:
1. Support and Resistance Visualization
- Adds horizontal lines at pivot points
- Customizable line length (offset from pivot)
- Adjustable line width and color
- Option to extend lines to the right edge of the chart
2. Support and Resistance Zones
- Creates semi-transparent zone areas around pivot points
- Customizable width for better visibility of important price levels
- Separate colors for support (lows) and resistance (highs)
- Visual representation of price areas rather than just single lines
3. Zig Zag Lines
- Separate colors for upward and downward ZigZag movements
- Visually distinguishes between bullish and bearish price swings
- Customizable colors for text
- Width customization
4. Enhanced Settings Structure
- Added new fields to the Settings type to support the additional features
- Extended Pivot type with supportResistance and supportResistanceZone fields
- Comprehensive configuration options for visual elements
These enhancements make the ZigZag more useful for technical analysis by clearly highlighting support/resistance levels and zones, and providing clearer visual cues about market direction.
█ Technical Implementation
This library leverages Pine Script™'s user-defined types (UDTs) to create a robust object-oriented architecture:
- Settings : Stores configuration parameters for calculation and display
- Pivot : Represents pivot points with their visual elements and properties
- ZigZag : Manages the overall state and behavior of the indicator
The implementation follows best practices from the Pine Script™ User Manual's Style Guide and uses advanced language features like methods and object references. These UDTs represent Pine Script™'s most advanced feature set, enabling sophisticated data structures and improved code organization.
For newcomers to Pine Script™, it's recommended to understand the language fundamentals before working with the UDT implementation in this library.
█ Usage Example
//@version=6
indicator("ZigZag Example", overlay = true, shorttitle = 'ZZA', max_bars_back = 5000, max_lines_count = 500, max_labels_count = 500, max_boxes_count = 500)
import andre_007/ZigZag/1 as ZIG
var group_1 = "ZigZag Settings"
//@variable Draw Zig Zag on the chart.
bool showZigZag = input.bool(true, "Show Zig-Zag Lines", group = group_1, tooltip = "If checked, the Zig Zag will be drawn on the chart.", inline = "1")
// @variable The deviation percentage from the last local high or low required to form a new Zig Zag point.
float deviationInput = input.float(5.0, "Deviation (%)", minval = 0.00001, maxval = 100.0,
tooltip = "The minimum percentage deviation from a previous pivot point required to change the Zig Zag's direction.", group = group_1, inline = "2")
// @variable The number of bars required for pivot detection.
int depthInput = input.int(10, "Depth", minval = 1, tooltip = "The number of bars required for pivot point detection.", group = group_1, inline = "3")
// @variable registerPivot (series bool) Optional. If `true`, the function compares a detected pivot
// point's coordinates to the latest `Pivot` object's `end` chart point, then
// updates the latest `Pivot` instance or adds a new instance to the `ZigZag`
// object's `pivots` array. If `false`, it does not modify the `ZigZag` object's
// data. The default is `true`.
bool allowZigZagOnOneBarInput = input.bool(true, "Allow Zig Zag on One Bar", tooltip = "If checked, the Zig Zag calculation can register a pivot high and pivot low on the same bar.",
group = group_1, inline = "allowZigZagOnOneBar")
var group_2 = "Display Settings"
// @variable The color of the Zig Zag's lines (up).
color lineColorUpInput = input.color(color.green, "Line Colors for Up/Down", group = group_2, inline = "4")
// @variable The color of the Zig Zag's lines (down).
color lineColorDownInput = input.color(color.red, "", group = group_2, inline = "4",
tooltip = "The color of the Zig Zag's lines")
// @variable The width of the Zig Zag's lines.
int lineWidthInput = input.int(1, "Line Width", minval = 1, tooltip = "The width of the Zig Zag's lines.", group = group_2, inline = "w")
// @variable If `true`, the Zig Zag will also display a line connecting the last known pivot to the current `close`.
bool extendInput = input.bool(true, "Extend to Last Bar", tooltip = "If checked, the last pivot will be connected to the current close.",
group = group_1, inline = "5")
// @variable If `true`, the pivot labels will display their price values.
bool showPriceInput = input.bool(true, "Display Reversal Price",
tooltip = "If checked, the pivot labels will display their price values.", group = group_2, inline = "6")
// @variable If `true`, each pivot label will display the volume accumulated since the previous pivot.
bool showVolInput = input.bool(true, "Display Cumulative Volume",
tooltip = "If checked, the pivot labels will display the volume accumulated since the previous pivot.", group = group_2, inline = "7")
// @variable If `true`, each pivot label will display the change in price from the previous pivot.
bool showChgInput = input.bool(true, "Display Reversal Price Change",
tooltip = "If checked, the pivot labels will display the change in price from the previous pivot.", group = group_2, inline = "8")
// @variable Controls whether the labels show price changes as raw values or percentages when `showChgInput` is `true`.
string priceDiffInput = input.string("Absolute", "", options = ,
tooltip = "Controls whether the labels show price changes as raw values or percentages when 'Display Reversal Price Change' is checked.",
group = group_2, inline = "8")
// @variable If `true`, the Zig Zag will display support and resistance lines.
bool showSupportResistanceInput = input.bool(true, "Show Support/Resistance Lines",
tooltip = "If checked, the Zig Zag will display support and resistance lines.", group = group_2, inline = "9")
// @variable The number of bars to extend the support and resistance lines from the last pivot point.
int supportResistanceOffsetInput = input.int(50, "Support/Resistance Offset", minval = 0,
tooltip = "The number of bars to extend the support and resistance lines from the last pivot point.", group = group_2, inline = "10")
// @variable The width of the support and resistance lines.
int supportResistanceWidthInput = input.int(1, "Support/Resistance Width", minval = 1,
tooltip = "The width of the support and resistance lines.", group = group_2, inline = "11")
// @variable The color of the support lines.
color supportColorInput = input.color(color.red, "Support/Resistance Color", group = group_2, inline = "12")
// @variable The color of the resistance lines.
color resistanceColorInput = input.color(color.green, "", group = group_2, inline = "12",
tooltip = "The color of the support/resistance lines.")
// @variable If `true`, the support and resistance lines will be drawn as zones.
bool showSupportResistanceZoneInput = input.bool(true, "Show Support/Resistance Zones",
tooltip = "If checked, the support and resistance lines will be drawn as zones.", group = group_2, inline = "12-1")
// @variable The color of the support zones.
color supportZoneColorInput = input.color(color.new(color.red, 70), "Support Zone Color", group = group_2, inline = "12-2")
// @variable The color of the resistance zones.
color resistanceZoneColorInput = input.color(color.new(color.green, 70), "", group = group_2, inline = "12-2",
tooltip = "The color of the support/resistance zones.")
// @variable The width of the support and resistance zones.
int supportResistanceZoneWidthInput = input.int(10, "Support/Resistance Zone Width", minval = 1,
tooltip = "The width of the support and resistance zones.", group = group_2, inline = "12-3")
// @variable If `true`, the support and resistance lines will extend to the right of the chart.
bool supportResistanceExtendInput = input.bool(false, "Extend to Right",
tooltip = "If checked, the lines will extend to the right of the chart.", group = group_2, inline = "13")
// @variable References a `Settings` instance that defines the `ZigZag` object's calculation and display properties.
var ZIG.Settings settings =
ZIG.Settings.new(
devThreshold = deviationInput,
depth = depthInput,
lineColorUp = lineColorUpInput,
lineColorDown = lineColorDownInput,
textUpColor = lineColorUpInput,
textDownColor = lineColorDownInput,
lineWidth = lineWidthInput,
extendLast = extendInput,
displayReversalPrice = showPriceInput,
displayCumulativeVolume = showVolInput,
displayReversalPriceChange = showChgInput,
differencePriceMode = priceDiffInput,
draw = showZigZag,
allowZigZagOnOneBar = allowZigZagOnOneBarInput,
drawSupportResistance = showSupportResistanceInput,
supportResistanceOffset = supportResistanceOffsetInput,
supportResistanceWidth = supportResistanceWidthInput,
supportColor = supportColorInput,
resistanceColor = resistanceColorInput,
supportResistanceExtend = supportResistanceExtendInput,
supportResistanceZoneWidth = supportResistanceZoneWidthInput,
drawSupportResistanceZone = showSupportResistanceZoneInput,
supportZoneColor = supportZoneColorInput,
resistanceZoneColor = resistanceZoneColorInput
)
// @variable References a `ZigZag` object created using the `settings`.
var ZIG.ZigZag zigZag = ZIG.newInstance(settings)
// Update the `zigZag` on every bar.
zigZag.update()
//#endregion
The example code demonstrates how to create a ZigZag indicator with customizable settings. It:
1. Creates a Settings object with user-defined parameters
2. Instantiates a ZigZag object using these settings
3. Updates the ZigZag on each bar to detect new pivot points
4. Automatically draws lines and labels when pivots are detected
This approach provides maximum flexibility while maintaining readability and ease of use.
Money printer machine update - By Farshid Ehsani]Ready to take your trend-following strategy to the next level?
Say hello to Zero Lag Trend Signals, a precision-engineered Pine Script™ indicator designed to eliminate lag and provide rapid trend insights across multiple timeframes. 💡 This tool blends zero-lag EMA (ZLEMA) logic with volatility bands, trend-shift markers, and dynamic alerts. The result? Timely signals with minimal noise for clearer decision-making, whether you're trading intraday or on longer horizons
How It Works 🧠
The script calculates the zero-lag EMA (ZLEMA) by compensating for data lag, giving traders more responsive moving averages. It checks for volatility shifts using the Average True Range (ATR), multiplied to create upper and lower deviation bands. If the price crosses above or below these bands, it marks the start of new trends. Additionally, the indicator aggregates trend data from up to five configurable timeframes and displays them in a neat summary table. This helps you confirm trends across different intervals—ideal for multi-timeframe analysis. The visual signals include upward and downward arrows on the chart, denoting potential entries or exits when trends align across timeframes. Traders can use these cues to make well-timed trades and avoid lag-related pitfalls.
Trend V2 (2025 Colorized) /w filterSame trend candle logic from before, but with a linear regression slope filter. The idea is going long when both are green and short when both are red. Simple and seems to be pretty effective.
Adaptive Trend NavigatorThe Adaptive Trend Navigator is a dynamic, visually striking indicator tailored for medium-term trend analysis on daily charts. With a volatility-adjusted EMA base and adaptive smoothing, it shifts seamlessly with market conditions—reacting swiftly in strong trends and smoothing noise in consolidation. Its standout feature is a bold, neon-glowing trend line that lights up your chart with vibrant precision. Key highlights include:
- **Adaptive Base**: Blends 50 and 100-period EMAs using ATR for a balance of speed and stability.
- **Dynamic Smoothing**: Adjusts from 10 to 30 periods via ADX (or toggle to fixed), delivering a sleek, EMA-like curve.
- **Trend Detection**: Locks in direction with EMA slopes, ADX strength (threshold 20), and a 5-bar persistence filter for reliable signals.
- **Neon Visuals**: A thicker, brighter trend line—blazing green for uptrends, fiery red for downtrends, and glowing orange in transition—paired with teal/fuchsia Bollinger clouds and color-coded candles.
- **Signals**: Green buy arrows for entries, red sell and divergence arrows for tops, all with matching alerts.
Ideal for swing traders and investors targeting 1-3 month moves in assets like BTC/USDT, this indicator fuses adaptive functionality with a luminous, eye-catching design that’s as bold as it is effective.
Fractal BoxesBased on the Nephew Sam Range Boxes indicator, this super charged version adds additional session options and a more customized experience.
OG Trend MeterDescription:
The OG Trend Meter gives you a visual snapshot of multiple timeframe trends in one glance. Built for speed and clarity, it helps confirm direction across key intraday timeframes: 1m, 5m, 15m, and 30m.
How it works:
Each timeframe analyzes EMA alignment, price action, and momentum.
Displays clear green/red indicators for bullish/bearish trends on each timeframe.
Great for aligning trades with higher timeframe bias.
Best for:
Traders who want multi-timeframe confirmation before pulling the trigger.
Reducing fakeouts by staying with the dominant trend.
Scalping with the 1m chart while respecting 5m–30m direction.
Pair With: OG Supertrend or EMA Stack for high-probability confluence.
Porcentaje sobre/debajo SMAsIdentify strong bullish reversals when:
1) Price spends <30% of time below SMA200 (extreme oversold),
2) Confirmed by RSI<20.
Lance Breitstein AI-Trend Momentum SwiftEdgeThis indicator is inspired by Lance Breitstein's trend-following strategy, emphasizing trading in the direction of momentum while avoiding counter-trend setups. It uses hidden Exponential Moving Average (EMA) and Volume Weighted Average Price (VWAP) to determine trend direction on the current timeframe. Signals are generated based on price breakouts and momentum, aligned with multi-timeframe analysis (1H, 4H, Daily) to enhance trade confirmation.
Key Features:
Visualizes trading signals as vertical "laser beams" (green for long, fuchsia for short) when conditions align.
Displays "Long OK" or "Short OK" labels below signals when the current trend matches at least one higher timeframe.
Includes a futuristic dashboard showing trend direction across 1H, 4H, and Daily timeframes.
Designed for simplicity and clarity, reflecting Breitstein's focus on immediate momentum within a defined trend.
How to Use:
Apply the indicator to your chart (works on any timeframe, though lower timeframes like 1M or 5M align with day trading).
Look for green laser beams with "Long OK" labels to consider long entries, indicating price is above EMA and VWAP, with momentum and higher timeframe support.
Look for fuchsia laser beams with "Short OK" labels for short entries, indicating price is below EMA and VWAP, with momentum and higher timeframe support.
Use the dashboard to assess trend alignment across 1H, 4H, and Daily (▲ for up, ▼ for down, — for neutral).
Avoid trading when no signals appear, as this suggests consolidation or lack of momentum.
Notes:
Customize input parameters (EMA period, momentum period, etc.) to suit your trading style.
This indicator does not guarantee profits and should be used with proper risk management and market analysis.
Inspired by Lance Breitstein's philosophy: "Trade with the trend, let winners run, and cut losers quickly."
ICT & RTM Price Action IndicatorICT & RTM Price Action Indicator
Unlock the power of precision trading with this cutting-edge indicator blending ICT (Inner Circle Trader) concepts and RTM (Reversal Trend Momentum) strategies. Designed for traders who demand clarity in chaotic markets, this tool pinpoints high-probability buy and sell signals with surgical accuracy.
What It Offers:
Smart Supply & Demand Zones: Instantly spot key levels where the market is likely to reverse or consolidate, derived from a 50-period high/low analysis.
Filtered Reversal Signals: Say goodbye to fakeouts! Signals are confirmed with volume spikes (1.5x average) and a follow-through candle, ensuring you trade only the strongest moves.
Trend-Aware Logic: Built on a customizable SMA (default 14), it aligns reversals with momentum for trades that stick.
One-Signal Discipline: No clutter—only the first valid signal appears until an opposing setup triggers, keeping your chart clean and your focus sharp.
Combined Power: A unique "TRADE" signal merges ICT zones with RTM reversals for setups with double the conviction.
Why You’ll Love It:
Whether you’re scalping intraday or hunting swing trades, this indicator adapts to your style. It’s not just another tool—it’s your edge in decoding price action like a pro. Test it, tweak it, and watch your trading transform.
MACD Crossover + SAR + VOLUME💎 MACD Crossover + SAR + Volume | Professional Multi-Filter Signal Suite
This script is a highly customizable and professional trading tool designed for traders seeking precise and filtered buy/sell signals.
The system intelligently combines: ✔️ MACD crossovers (MACD line vs Signal line)
✔️ Parabolic SAR reversals
✔️ Optional volume strength filters
✔️ Smart candle confirmations
✔️ Dynamic signal delay mechanism
✔️ 🆕 RSI Level Filter (optional):
Restrict bullish/bearish signals only when RSI conditions are met:
Only bullish signals when RSI ≤ Lower Limit (default: 60)
Only bearish signals when RSI ≥ Upper Limit (default: 60)
Fully configurable RSI period and thresholds
✅ Features:
Multi-layer signal validation
Adaptive signal triggering via SAR or MACD crossover
Avoids signal spamming with built-in delay
Clean plotting of BUY / SELL signals directly on the chart
Fully customizable confirmations
Built-in alerts for automation or manual trading
📌 Usage Recommendation:
This tool is pre-configured for scalping and swing trading.
However, for longer-term or conservative investors, you can simply enable the RSI Level Filter checkbox to restrict signals based on RSI trend zone. This adds an extra layer of trend filtering suitable for more cautious entries.
VVIDA & VPDAanalysing trend with deep entry or Sonic R entry to get the best position for a trade with trends confirmed by the VVIDA color.
Red VVIDA line is BEARISH, should only SHORT.
Green VVIDA line is BULLISH, should only LONG.
Stoploss, above VVIDA line for SHORT. Below VVIDA for long.
Still working for Target lines.
Average Price Bar (APB) with Dynamic EMATrading Made Simple: APB + Dynamic EMA with Stochastic (8,3,3) Strategy
Introduction
The "Trading Made Simple" strategy, originally developed by BigE on ForexFactory in 2011, is a powerful yet straightforward approach to trading that combines price action, moving averages, and momentum indicators to identify high-probability setups. This enhanced version integrates:
Average Price Bar (APB) – A smoothed candlestick representation that filters market noise.
Dynamic EMA (5-period, HLC3-based) – Acts as a trend filter, changing color based on its position relative to price.
Stochastic (8,3,3) – A fast momentum oscillator to confirm overbought/oversold conditions.
Core Trading Rules (BigE's Original Concept)
Trend Direction: The EMA defines the trend (bullish if price is above, bearish if below).
Stochastic Confirmation:
Long Trades: Look for Stochastic crossing up from oversold (<20) while price is above the EMA.
Short Trades: Look for Stochastic crossing down from overbought (>80) while price is below the EMA.
APB as Entry Confirmation:
A bullish APB close above the EMA strengthens long signals.
A bearish APB close below the EMA strengthens short signals.
Why This Combination Works
APB + EMA provides a clean trend bias, reducing false signals.
Stochastic (8,3,3) adds momentum confirmation, ensuring entries are timed well.
The background color shift (green/red) makes trend reversals visually intuitive.
This system is ideal for swing traders and day traders looking for a rule-based, discretionary approach that removes emotional decision-making while keeping trading simple and effective.
FiveFactorEdgeUses ATR14, TSI, RSI, Fast Stochastic and Slow Stochastic information to determine potential high and low price, trend strength and direction. The information ia easy to read, self-descriptive and color coded for quick reference. Since it incorporates 5 different elements it could be used by itself but as with any indicator it's highly recommended to use it with other tried and true indicators.
Custom TABI Model with Layers(Top and Bottom Indicator) TABI RSI Heatmap with FOMO Layers is an original visualization model inspired by the teachings of James from InvestAnswers, who first introduced the concept of color-layered RSI as a way to spot market conditions and behavioral dynamics.
This script builds on that idea and adds several advanced layers:
A 10-color RSI zone system ranging from cool blues (oversold) to extreme reds (euphoria).
A smoothed RSI line with custom color transitions based on user-defined levels.
Blow-off top detection logic to catch euphoric spikes in RSI.
A real-time FOMO awareness table that tracks how recently the last top occurred.
It’s designed to help traders better visualize sentiment pressure in a clean, color-coded layout. Whether you're swing trading or investing long-term, this tool helps you avoid emotional decisions driven by herd mentality.
🔍 How to Use:
Add the indicator to your chart.
Adjust RSI color thresholds to suit your asset’s volatility.
Watch the top-right table for alerts on potential FOMO periods after euphoric moves.
💬 Feedback is welcome — this tool was created for community use and refinement.
📌 This script is open-source. All code and logic is provided for educational purposes.
My scriptDeveloped a quantitative trading strategy leveraging Rate of Change (ROC) and RSI for momentum-based entries.
Implements adaptive ROC thresholds to filter noise and enhance signal accuracy.
Dynamically adjusts position entries using a hybrid mean-reversion and trend-following approach.
Integrates Cobra Metrics for performance visualization, enabling real-time strategy evaluation.
Optimized for efficient execution and minimal computational overhead in TradingView.
Let me know if you want to highlight specific improvements or add more detail!
Adaptive ROC-Based Trading Strategy
Developed a quantitative trading strategy leveraging Rate of Change (ROC) and RSI for momentum-based entries.
Implements adaptive ROC thresholds to filter noise and enhance signal accuracy.
Dynamically adjusts position entries using a hybrid mean-reversion and trend-following approach.
Integrates Cobra Metrics for performance visualization, enabling real-time strategy evaluation.
Optimized for efficient execution and minimal computational overhead in TradingView.
Let me know if you want to highlight specific improvements or add more detail!
OG ST+RSI ComboDescription:
The OG Supertrend + RSI Sniper Combo (Elite Edition) is a precision-based trend and momentum trading system. It fuses a modified Supertrend indicator with RSI-based sniper signals to catch clean entries in trending environments.
How it works:
Supertrend detects trend shifts based on price volatility.
RSI Sniper zones detect high-probability overbought/oversold reversals.
Entry signals appear only when Supertrend direction aligns with RSI zone confirmation, reducing false signals.
Best for:
Traders seeking high-conviction trend entries and exits.
5m, 15m, and 1H scalping or swing trade setups.
Works great on SPY, QQQ, BTC, and Forex pairs.
Use with: Clean chart setups. Avoid overlapping with other trend scripts unless necessary.