ICT IPDA Lookback / Cast-forwardThis script automatically displays 20/40/60 daily range highs and lows.
Known as IPDA ranges, a term popularised by Inner Circle Trader (ICT). IPDA = Interbank Price Delivery Algorithm.
You can also add 80 day lines (my own addition) . IPDA labels are shown for Daily highs, and an equivalent line is drawn at IPDA Daily lows - but without the label to keep your chart as clean as possible. You can use this on hourly timeframes as well.
ICT is "flexible" on IPDA data ranges in his mentorship regarding whether you should use the first day of each month, or go recalculate day by day, and that's why this script lets you do both + also has an option to set a hard specified date - useful for more advanced purposes.
You can also Cast-forward the displayed 20/40/60 (+80) IPDA ranges with this tool.
You can use IPDA ranges to forecast Highs and Lows that price will be attracted to on a Daily timeframe and where price is in its P/D range, being in a discount or premium. You can also use this knowledge to help guide lower timeframe scalps.
Longer term traders can reference the 40 and 60 Day Look Back lines for an indication of current market conditions.
تحليل الاتجاه
Volatility Layered Supertrend [NLR]We’ve all used Supertrend, but do you know where to actually enter a trade? Volatility Layered Supertrend (VLS) is here to solve that! This advanced trend-following indicator builds on the classic Supertrend by not only identifying trends and their strength but also guiding you to the best trade entry points. VLS divides the main long-term trend into “Strong” and “Weak” Zones, with a clear “Trade Entry Zone” to help you time your trades with precision. With layered trends, dynamic profit targets, and volatility-adaptive bands, VLS delivers actionable signals for any market.
Why I Created VLS Over a Plain Supertrend
I built VLS to address the gaps in traditional Supertrend usage and make trade entries clearer:
Single-Line Supertrend Issues: The default Supertrend sets stop-loss levels that are too wide, making it impractical for most traders to use effectively.
Unclear Entry Points: Standard Supertrend doesn’t tell you where to enter a trade, often leaving you guessing or entering too early or late.
Multi-Line Supertrend Enhancement: Many traders use short, medium, and long Supertrends, which is helpful but can lack focus. In VLS, I include Short, Medium, and Long trends (using multipliers 1 to 3), and add multipliers 4 and 5 to track extra long-term trends—helping to avoid fakeouts that sometimes occur with multiplier 3.
My Solution: I focused on the main long-term Supertrend and split it into “Weak Zone” and “Strength Zone” to show the trend’s reliability. I also defined a “Trade Entry Zone” (starting from the Mid Point, with the first layer’s background hidden for clarity) to guide you on where to enter trades. The zones include Short, Medium, and Long Trend layers for precise entries, exits, and stop-losses.
Practical Trading: This approach provides realistic stop-loss levels, clear entry points, and a “Profit Target” line that aligns with your risk tolerance, while filtering out false signals with longer-term trends.
Key Features
Layered Trend Zones: Short, Medium, Long, and Extra Long Trend layers (up to multipliers 4 and 5) for timing entries and exits.
Strong & Weak Zones: See when the trend is reliable (Strength Zone) or needs caution (Weak Zone).
Trade Entry Zone: A dedicated zone starting from the Mid Point (first layer’s background hidden) to show the best entry points.
Dynamic Profit Targets: A “Profit Target” line that adjusts with the trend for clear goals.
Volatility-Adaptive: Uses ATR to adapt to market conditions, ensuring reliable signals.
Color-Coded: Green for uptrends, red for downtrends—simple and clear.
How It Works
VLS enhances the main long-term Supertrend by dividing it into two zones:
Weak Zone: Indicates a less reliable trend—use tighter stop-losses or wait for the price to reach the Trade Entry Zone.
Strength Zone: Signals a strong trend—ideal for entries with wider stop-losses for bigger moves.
The “Trade Entry Zone” starts at the Mid Point (last layer’s background hidden for clarity), showing you the best area to enter trades. Each zone includes Short, Medium, Long, and Extra Long Trend sublevels (up to multipliers 4 and 5) for precise trade timing and to filter out fakeouts. The “Profit Target” updates dynamically based on trend direction and volatility, giving you a clear goal.
How to Use
Spot the Trend: Green bands = buy, red bands = sell.
Check Strength: Price in Strength Zone? Trend’s reliable—trade confidently. In Weak Zone? Use tighter stops or wait.
Enter Trades: Use the “Trade Entry Zone” (from the Mid Point upward) for the best entry points.
Use Sublevels: Short, Medium, Long, and Extra Long layers in each zone help fine-tune entries and exits.
Set Targets: Follow the Profit Target line for goals—it updates automatically.
Combine Tools: Pair with RSI, MACD, or support/resistance for added confirmation.
Settings
ATR Length: Adjust the ATR period (default 10) to change sensitivity.
Up/Down Colors: Customize colors—green for up, red for down, by default.
Multi-Signal Trading Indicator (MSTI)Multi-Signal Trading Indicator (MSTI)
Overview
The Multi-Signal Trading Indicator (MSTI) is a comprehensive technical analysis tool that combines eight powerful indicators into a single, unified system. Designed to identify high-probability trading opportunities, MSTI generates precise buy and sell signals by analyzing multiple market factors simultaneously. The indicator excels at detecting potential reversals and trend continuations while filtering out market noise.
Key Features
8 Core Technical Components
MACD: Identifies momentum changes and potential trend reversals
RSI: Detects overbought and oversold conditions
Bollinger Bands: Analyzes price volatility and extreme conditions
Stochastic Oscillator: Identifies potential turning points in price
Moving Averages: Confirms trend direction using dual SMAs
Volume Analysis: Validates price movements with volume confirmation
Fibonacci Levels: Identifies key support/resistance areas
Divergence Detection: Spots divergences between price and momentum
Advanced Predictive Capabilities
Volume Surge Detection: Identifies significant volume increases that often precede major price movements
Enhanced Divergence Analysis: Detects both regular and hidden divergences for early reversal signals
Support/Resistance Tests: Identifies successful tests of key support/resistance zones
Momentum Change Detection: Spots early shifts in price momentum using Rate of Change
Order Flow Analysis: Tracks buying/selling pressure through On-Balance Volume
Signal Quality Management
Adjustable Signal Thresholds: Customize the number of conditions required for signal generation
Multiple Quality Levels: Choose between Normal, High, and Maximum quality settings
Strength Measurement: Displays signal strength as a percentage for better decision-making
Repeat Signal Prevention: Eliminates duplicate signals to reduce noise
Visual Features
Clear Chart Markers: Buy/sell signals displayed directly on price chart
Comprehensive Info Panel: Shows status of all components and overall signal information
Customizable Colors: Adjust visual elements to match your chart theme
Practical Applications
For Day Traders
Identify short-term reversal points with high accuracy
Validate entries with multiple confirmations
Filter out false signals during choppy market conditions
For Swing Traders
Spot early trend changes before they become obvious
Enter positions with higher confidence and precision
Hold positions through noise by following true trend signals
For Position Traders
Identify major trend reversals with multiple confirmations
Filter out minor retracements from significant trend changes
Time entries and exits with greater precision
Customization Options
MSTI is highly customizable with over 30 adjustable parameters allowing you to:
Fine-tune each technical component
Adjust signal quality and filtering
Enable/disable specific components
Customize visual appearance
Usage Tips
Start with the Normal quality setting to understand signal frequency
Progress to High or Maximum settings for fewer but higher quality signals
Adjust minimum conditions based on market volatility
Enable trend filter in trending markets for better signal accuracy
Enable volatility filter to avoid signals during low-volatility periods
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.
Time x Sales)Time x Sales Indicator (Enhanced Features)
This indicator displays a real-time Time and Sales (T&S) table with 10 columns: Timestamp, Price, Size (with arrows), Filled At (red for Ask, blue for Bid), Bid Size, Bid, Ask, Ask Size, Trades, and Average. It features dynamic color intensity, volume trend in the header, customizable themes (Basic, Dark Mode, Light Mode, Minimalist, Vibrant), highlighting for large trades, alternating row colors, thousands separators, and adjustable price decimals for enhanced trading analysis.
How to Use the Time x Sales Indicator
View the Table: The Time and Sales table appears on your chart (default: top-right) with 10 columns, each showing specific trade data:
Timestamp: Displays the time of each trade (e.g., "HH:MM:SS MM/DD"). Use this to track when trades occur.
Price: Shows the price at which the trade executed. Compare prices to see price movement trends.
Size: Indicates the trade volume (number of contracts/shares) with an arrow (↑ for price increase, ↓ for decrease, — for no change). Higher sizes suggest stronger market activity.
Filled At: Marks if the trade was at the "Bid" (blue, buyer-initiated) or "Ask" (red, seller-initiated). This helps identify buying or selling pressure.
Bid Size: Simulated size of buy orders at the bid price. Larger numbers indicate stronger buying interest.
Bid: Simulated bid price (slightly below the current price). It represents the highest price buyers are willing to pay.
Ask: Simulated ask price (slightly above the current price). It shows the lowest price sellers are offering.
Ask Size: Simulated size of sell orders at the ask price. Larger numbers suggest more selling interest.
Trades: Counts the number of trades in the update period. A higher count indicates more frequent trading activity.
Average: Shows the average trade size in the update period. Use this to gauge typical trade volume.
Customize Settings:
Adjust table position, number of rows, and sort order (Newest First/Last) in the indicator settings.
Set price decimal places and enable/disable thousands separators.
Choose a color theme (e.g., Dark Mode) and toggle buy/sell colors or dynamic intensity.
Highlight trades by setting size or price thresholds.
Monitor Trades: Watch the table update in real-time, with volume trends in the header (↑ for increasing, ↓ for decreasing, — for stable) and color-coded Filled At (red for Ask, blue for Bid).
Adjust Responsiveness: If updates are slow, reduce the "Update Cooldown (ms)" value in the settings (e.g., to 0 or 50) for faster refreshes.
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
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.
DAYE Session Levels QUARTERLY THEORY– M15, H1, H4📊 Indicator: Previous Session Max/Min Close Levels
🔍 Overview
This indicator displays the highest and lowest closing prices from the previous session across three key timeframes (H1, H4, M15). It is inspired by the Daye Quarterly Theory, which divides time into cyclical quartiles. These levels act as potential support/resistance zones where price often reacts.
🧠 Theoretical Foundations
Daye Quarterly Theory – Time-Based Market Structure
Monthly cycle : divided into 4 weeks, with the True Open on the second Monday (Q2).
Weekly cycle : divided into 4 days (Mon–Thu), with the True Open on Tuesday (Q2).
Daily cycle : divided into 4 sessions of 6 hours each, based on New York time:
-Q1: Asia (6 PM – 12 AM NY)
-Q2: London (12 AM – 6 AM NY) → True Daily Open
-Q3: New York (6 AM – 12 PM NY)
-Q4: PM Session (12 PM – 6 PM NY)
The indicator uses this time-based logic to calculate significant levels based on strong closes in previous sessions.
⚙️ Indicator Functions
✅ 1. Historical Levels (default mode)
Displays persistent horizontal lines at the high/low close of the previous session:
- H1: last 25 candles (1 day)
-H4: last 31 candles (1 week)
-M15: last 25 candles (6-hour session)
These levels are always visible and are drawn as thin black lines, helping traders recognize historically significant price zones.
🆕 2. Current Session Levels (optional)
When enabled, this mode shows the same previous-session high/low close only during the current session.
The levels:
-start exactly at the candle where the max/min close was registered in the previous session;
-extend up to the end of the current session;
-are automatically reset at the beginning of each new session.
These dynamic levels help monitor how price behaves around recent key zones in real time.
🧰 Custom Settings
The indicator includes two toggles:
-Show Historical Levels – enables/disables persistent previous-session levels.
-Show Current Session Levels – enables/disables live levels that appear only during the current session.
You can use either one or both simultaneously.
🧠 Ideal Use Cases
This tool is perfect for traders who:
-work with intraday or swing trading strategies;
-rely on support/resistance, market structure, or liquidity zones;
-want to identify where reversals, continuations, or breakouts are most likely;
-follow time-based cycles for confluence in execution.
📌 Final Thoughts
A simple yet powerful indicator that blends temporal cycles with price behavior, allowing traders to stay aligned with meaningful levels as markets evolve. Designed to provide clarity, structure, and precision for both discretionary and systematic trading.
RSI Trendlines [RG]Overview
RSI Trendlines combines the power of automatic trendline detection with the popular Relative Strength Index (RSI) indicator. This tool identifies and plots dynamic support and resistance trendlines directly on the RSI chart, helping you spot potential trend changes and divergences in momentum before they appear in price.
Key Features
Automatically detects and draws trendlines on the RSI indicator
Identifies significant pivot points in RSI momentum
Customizable appearance with adjustable colors and line widths
Built-in alerts for trendline breaks
How It Works
The indicator calculates the standard RSI using your preferred settings
It identifies pivot highs and lows in the RSI using the specified lookback period
Valid trendlines are drawn connecting consecutive pivots
Lines extend until they experience a confirmed break
Customization Options
RSI Parameters: Adjust length and source to your preference
Trendline Settings: Control pivot detection sensitivity and maximum lines
Visual Options: Customize colors, line widths, and optional midline display
Ideal For
Identifying established trends in momentum
Spotting potential RSI divergences early
Timing entries and exits based on momentum shifts
Confirming trend changes with objective trendline breaks
This indicator aims to help traders move beyond static overbought/oversold levels by revealing the dynamic structure of momentum trends and highlighting potential reversals and continuations.
Please don't use this as a buy and sell indicator. Use it to get an idea on the market trend and as an extra confirmation for your trades. Happy Trading :)
Livelli Sessioni Multi-Timeframe (NY Time)📌 This script automatically draws the highest and lowest closing prices from the previous session, based on the active timeframe:
On M15, it calculates the highest and lowest closes of each 6-hour session block (00–06, 06–12, 12–18, 18–00 — New York time).
On H1, it uses the highest and lowest closes of the entire previous day (NY time).
On H4, it uses the highest and lowest closes of the previous week (NY time).
🔁 Levels are only shown during the current session and automatically reset when the session changes.
🧭 All calculations are based on the New York time zone (EST/EDT).
🎯 Designed for traders who focus on clean and reliable reference levels based on price closes rather than wicks — ideal for intraday and swing trading.
📉 Display style: thin black lines, with optional touch markers.
Compatible with Forex, indices, crypto, and more.
🛠️ Created by @bordimichele00
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!
Skybull - TimeRay AnalyzerSkybull - TimeLine Analyzer
Unlock multi-timeframe mastery with TimeLine Analyzer, a premium indicator that projects High, Low, and Close levels from a higher timeframe as customizable horizontal rays—enhanced with a dynamic offset and real-time price proximity alerts. Designed for traders who demand precision, this tool bridges short-term action with long-term context, helping you spot key levels and act when it matters most.
What Makes It Unique?
TimeLine Analyzer isn’t just another level-plotter—it’s a dual-purpose powerhouse. The Dynamic Offset lets you rewind higher timeframe data (e.g., fetch the 4h High from 3 bars ago), revealing historical zones that shape today’s price. Paired with Price Proximity Alerts, it flags when the current price nears these levels within a custom percentage—think instant support/resistance signals. No free script combines this flexibility and live feedback.
How It Works
Using Pine Script, TimeLine fetches High, Low, and Close from your chosen higher timeframe, offset by a user-defined number of bars. These are drawn as rays with adjustable colors, widths, and extensions (None, Right, Both). The proximity alert calculates the percentage distance between the current price and each level, popping up labels when price gets close (e.g., within 0.5%). A sleek label shows your settings, keeping it mobile-friendly and clutter-free.
Features
Higher Timeframe Rays: Plots High, Low, and Close from any timeframe (1m to 1mo).
Dynamic Offset: Shift levels back 1–100 bars in the higher timeframe for historical insight.
Price Alerts: Flags when price is within 0.1–5% of a level, with live labels.
Customizable: Set ray colors, widths (1–10), and extensions to match your style.
Mobile-Ready: A compact label displays timeframe and offset.
Usage Examples
Breakout Prep: On a 15m chart, set a 1d timeframe with a 2-bar offset to see yesterday’s Close—get alerted when price nears it for a breakout.
Reversal Zones: Use a 4h timeframe with “Both” extension and a 0.5% alert threshold to catch reversals at historical Lows.
Scalping Edge: Bold rays (width 3) and a 1h offset on a 5m chart highlight key levels, with alerts for fast entries.
Settings
Higher Timeframe: Pick your timeframe (e.g., 4h, 1d).
Bars Back: Offset data 1–100 bars (default: 1).
Price Proximity Alert (%): Set 0.1–5% for alert sensitivity (default: 0.5).
Line Colors: Customize High, Low, and Close rays.
Line Width: Adjust thickness (1–10, default: 1).
Line Extension: None, Right, or Both.
Why It’s Worth It
TimeLine Analyzer delivers what free tools can’t: historical depth plus real-time precision. The offset uncovers hidden levels, while alerts turn static lines into live signals—perfect for scalpers, swing traders, and strategists. As an invite-only tool, it’s built for serious traders who want an edge without the noise.
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.
Gap Fill DetectorThe Gap Fill Detector is a visual tool designed to highlight potential price imbalances caused by sudden, sharp movements following periods of low volatility or indecision. These events can often result in "gaps" or "voids" in price action that may later attract a return move — commonly referred to as a gap fill.
This indicator helps traders visually identify these unique conditions and monitor whether price revisits the origin of the move. It does so by marking the location of the price gap and providing a clean, color-coded interface to track price interaction with that level over time.
🔧 Key Features
🔸 Highlight Zones
When the script detects a potential gap-forming move, the background of the triggering candle is highlighted. These areas represent potential moments of price imbalance or sudden breakout behavior.
🔸 Gap Fill Line
A horizontal line is drawn from the close of the candle before the spike (representing the likely gap origin). This line acts as a reference for tracking whether price returns to "fill" the gap. The line is persistent but will automatically hide once price intersects it, or if another gap signal occurs.
🔸 Intelligent Auto-Hide Logic
Once the gap line has been touched by price or interrupted by a new spike event, it is removed from view. This keeps the chart clean and avoids clutter from outdated signals.
🔸 Dynamic Fill Shading
The area between the current price and the gap line is filled with a color-coded visual cue:
🟩 Green Fill: When price is above the gap line — a possible bullish continuation.
🟪 Purple Fill: When price is below the gap line — a potential retracement or bearish correction. Fill transparency is customizable to blend with your chart style.
🔸 Stability Zones (Optional)
Users can optionally enable shaded background zones to mark extended periods of price stagnation. These zones may help identify moments where the market is "winding up" before releasing energy in the form of a fast move.
⚙️ Customization Options
Base highlight color & transparency
Enable/disable stability zone highlighting
Adjustable gap fill area transparency
✅ Use Cases
This tool is ideal for:
Intraday traders seeking gap fills or mean reversion setups
Swing traders identifying sudden breakouts for future re-entry
Visual traders who want a clean, automated way to spot and manage price dislocations
Combined SMA Cross & RSI Multi-Timeframe Indicator K2Combined SMA Cross & RSI Multi-Timeframe Indicator
This Pine Script v6 indicator combines two popular technical analysis tools—Simple Moving Average (SMA) crossover and Relative Strength Index (RSI) crossover—across multiple timeframes to generate bullish and bearish trading signals. It overlays SMA lines on the chart, displays signals with shapes, and provides a table summarizing SMA crossover states across 11 timeframes.
Features:
SMA Crossover:
Compares a short SMA (default: 20 periods) with a long SMA (default: 50 periods).
Bullish signal: Short SMA crosses above Long SMA.
Bearish signal: Short SMA crosses below Long SMA.
Plotted as green (short) and red (long) lines on the chart.
RSI Crossover:
Calculates RSI (default: 14 periods) and its SMA (default: 14 periods).
Bullish signal: RSI crosses above its SMA.
Bearish signal: RSI crosses below its SMA.
Multi-Timeframe Analysis:
Evaluates SMA and RSI conditions across 11 timeframes: 1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W.
User can toggle which timeframes to include via input settings.
Combined Logic:
Generates a signal only when both SMA and RSI conditions (if enabled) are met across all selected timeframes.
Bullish: All selected timeframes show bullish SMA and RSI crossovers.
Bearish: All selected timeframes show bearish SMA and RSI crossovers.
Logic toggles allow enabling/disabling SMA or RSI components.
Visuals:
Triangles: Green triangle below bar for bullish signals, red triangle above bar for bearish signals.
Arrows: Green upward arrow for "Long" signals, red downward arrow for "Short" signals, ensuring no overlap with previous signals.
Table: Displays SMA crossover states for all 11 timeframes at the bottom center of the chart (green for bullish, red for bearish).
Alerts:
Triggers alerts for combined bullish ("SMA Cross and RSI timeframes are bullish!") and bearish ("SMA Cross and RSI timeframes are bearish!") signals.
Inputs:
SMA Settings: Short SMA length (20), Long SMA length (50).
RSI Settings: RSI length (14), RSI SMA length (14).
Logic Toggles: Enable/disable SMA Cross and RSI logic.
Timeframe Toggles: Enable/disable each of the 11 timeframes.
Usage:
Add the indicator to your chart and adjust inputs as needed.
Use the signals for trend confirmation or entry/exit points, combining multi-timeframe SMA and RSI analysis.
Monitor the table to assess alignment across timeframes.
Notes:
Designed for TradingView with Pine Script v6.
Signals are confirmed on closed bars (barstate.isconfirmed) to avoid repainting.
Ideal for traders seeking a multi-timeframe confirmation tool.
Этот индикатор Pine Script v6 объединяет два популярных инструмента технического анализа — кроссовер Simple Moving Average (SMA) и кроссовер Relative Strength Index (RSI) — на нескольких таймфреймах для генерации бычьих и медвежьих торговых сигналов. Он накладывает линии SMA на график, отображает сигналы с помощью фигур и предоставляет таблицу, обобщающую состояния пересечения SMA на 11 таймфреймах.
Функции:
Кроссовер SMA :
Сравнивает короткую SMA (по умолчанию: 20 периодов) с длинной SMA (по умолчанию: 50 периодов).
Бычий сигнал: короткая SMA пересекает длинную SMA сверху вниз.
Медвежий сигнал: короткая SMA пересекает длинную SMA снизу вверх.
На графике это обозначено зеленой (короткой) и красной (длинной) линиями.
Кроссовер RSI :
Рассчитывает RSI (по умолчанию: 14 периодов) и его SMA (по умолчанию: 14 периодов).
Бычий сигнал: RSI пересекает SMA выше.
Медвежий сигнал: RSI пересекает SMA ниже.
Анализ нескольких таймфреймов :
Оценивает состояния SMA и RSI на 11 таймфреймах: 1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W.
Пользователь может переключать включаемые временные интервалы с помощью настроек ввода.
Комбинированная логика :
Генерирует сигнал только тогда, когда выполняются оба условия SMA и RSI (если они включены) на всех выбранных таймфреймах.
Бычий: все выбранные таймфреймы показывают бычьи пересечения SMA и RSI.
Медвежий: все выбранные таймфреймы показывают медвежьи пересечения SMA и RSI.
Логические переключатели позволяют включать/отключать компоненты SMA или RSI.
Визуальные эффекты :
Треугольники : зеленый треугольник под полосой — бычьи сигналы, красный треугольник над полосой — медвежьи сигналы.
Стрелки : зеленая стрелка вверх для «длинных» сигналов, красная стрелка вниз для «коротких» сигналов, что гарантирует отсутствие наложения с предыдущими сигналами.
Таблица : отображает состояния пересечения SMA для всех 11 таймфреймов в нижней центральной части графика (зеленый для бычьего тренда, красный для медвежьего).
Оповещения :
Запускает оповещения для комбинированных бычьих («Таймфреймы SMA Cross и RSI являются бычьими!») и медвежьих («Таймфреймы SMA Cross и RSI являются медвежьими!») сигналов.
Входные данные:
Настройки SMA : короткая длина SMA (20), длинная длина SMA (50).
Настройки RSI : длина RSI (14), длина RSI SMA (14).
Переключатели логики : включение/выключение логики SMA Cross и RSI.
Переключение таймфреймов : включение/отключение каждого из 11 таймфреймов.
Использование:
Добавьте индикатор на свой график и при необходимости скорректируйте входные данные.
Используйте сигналы для подтверждения тренда или точек входа/выхода, комбинируя многовременной анализ SMA и RSI.
Следите за таблицей, чтобы оценить согласованность по всем временным интервалам.
Примечания:
Разработано для TradingView с использованием Pine Script v6.
Сигналы подтверждаются на закрытых барах ( barstate.isconfirmed ), чтобы избежать перерисовки.
Идеально подходит для трейдеров, которым нужен инструмент подтверждения с несколькими таймфреймами.
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.
NBSG Mox-ZThe Mox-Z provides a visual representation of momentum and trend strength, enhanced with statistical bands to identify significant levels based on prior momentum.
What It Does
The indicator calculates the Mox-Z value as (EMA12(close) - EMA26(close)) - EMA9(EMA12(close) - EMA26(close))) * 3 using the higher timeframe's closing prices. This value is plotted as a histogram, with colors indicating its position relative to zero and Z-score bands:
Bright Green: Above +0.7 SD (strong bullish momentum).
Bright Red: Below -0.7 SD (strong bearish momentum).
Dark Green: Above zero but below +0.7 SD (moderate bullish momentum).
Dark Red: Below zero but above -0.7 SD (moderate bearish momentum).
Z-score bands are computed over a 200-period lookback on the higher timeframe, using a 0.7 multiplier on the standard deviation, offering a statistical context for the histogram's values.
How to Use It
Use the histogram to gauge momentum shifts on the selected higher timeframe (e.g., weekly momentum on a daily chart).
Bright colors (green/red) suggest potential overextension or strong trend continuation, useful for timing entries or exits.
Dark colors indicate moderate momentum, often signaling consolidation or early trend development.
The ±0.7 SD bands (gray lines) highlight statistically significant levels, aiding in identifying extremes relative to the past 200 periods of the chosen timeframe.
Originality and Purpose
Unlike standard MACD histograms, this script replicates the Mox-Z Indicator's unique scaling (*3 multiplier) and applies it strictly to higher timeframe data, avoiding current timeframe bias. The addition of Z-score bands provides a statistical edge, making it distinct from typical momentum indicators while maintaining simplicity for practical trading.
Settings
Higher Timeframe: Default is "1W" (weekly), but adjust to any timeframe higher than your chart (e.g., "1D" for daily, "1M" for monthly).
This indicator is ideal for traders seeking a higher timeframe momentum perspective with clear visual cues, without relying on complex multi-indicator setups.
RSI Multi-Timeframe K2Indicator Name: RSI Multi-Timeframe Cross Indicator
Overview:
"RSI Multi-Timeframe Cross Indicator" is a versatile Pine Script (v5) tool developed for TradingView, designed for traders using multi-time frame analysis. It monitors the Relative Strength Index (RSI) cross its Simple Moving Average (SMA) on multiple time frames (1-minute, 5-minute, 15-minute, 30-minute, 1-hour, 4-hour and daily) to identify bullish and bearish conditions. The indicator overlays the signals on the chart and provides a customizable table to visualize the time frame conditions.
Key Features:
RSI Crossover Detection:
Monitors when the RSI crosses above (bullish trend) or below (bearish trend) its SMA on each selected time frame.
Uses constant state tracking to maintain a bullish/bearish state until an opposite crossover occurs.
Configurable Parameters:
RSI Length: Configurable period for calculating RSI (default: 14).
MA Length: Configurable period for SMA applied to RSI (default: 20).
Time Frame Controls:
Logical Switches: Independent switches ( use1m , use5m , etc.) to include/exclude each time frame in the signal logic.
Visualization Switches: Separate switches ( show1m , show5m , etc.) to show/hide each time frame in the table without affecting the logic.
Visuals:
Triangles: Green ascending triangles below the bars indicate bullish signals, red descending triangles above the bars indicate bearish signals.
Labels : Long (green) or Short (red) labels on the last confirmed bar when all enabled timeframes match.
Dynamic Table : A centered table at the bottom of the chart displaying the status of each timeframe with colored boxes (green for bullish, red for bearish). The table size is adjustable based on the visible timeframes.
Alerts :
Trigger alerts when all enabled timeframes are bullish ("All RSI timeframes are bullish (green)!") or bearish ("All RSI timeframes are bearish (red)!").
Input Parameters:
RSI Settings :
RSI Length : Integer (min: 1, default: 14) — Period for RSI calculation.
MA Length : Integer (min: 1, default: 20) — Period for SMA RSI.
Timeframe Logic Settings:
Use 1M in Logic, Use 5M in Logic, etc.: Boolean (default: true) - Enable/Disable each timeframe in signal calculation.
Timeframe Visualization Settings:
Show 1M in Table, Show 5M in Table, etc.: Boolean (default: true) - Show/Hide each timeframe in the table display.
Logic:
Bullish Condition: RSI crosses above SMA on a given timeframe, setting a bullish condition until a bearish crossover occurs.
Bearish Condition: RSI crosses below SMA on a given timeframe, setting a bearish condition until a bullish crossover occurs.
Combination signal: A Long or Short signal is generated only when all enabled timeframes (use the * switches) line up in the same direction (bullish or bearish).
Visualization: The table displays the status of each timeframe, but only shows the fields for the timeframes with the Show* switch enabled.
Visual output:
Chart signals:
A green ascending triangle and a Long label when all enabled timeframes are bullish.
A red downward-pointing triangle and a Short label when all enabled timeframes are bearish.
Table:
Located in the lower center of the chart.
The bars dynamically adjust to the number of visible timeframes (1 to 7).
Each cell displays the time frame name (e.g. "1M", "5M") with a background color indicating its status (green for bullish, red for bearish).
Use:
Trend Confirmation: Used to confirm trends across multiple time frames based on RSI behavior.
Configure: Customize RSI and MA lengths to suit your trading strategy, and turn time frames on/off for both logic and visualization to focus on the relevant periods.
Alerts: Set up alerts to be notified when all selected time frames match, useful for automated trading systems or manual monitoring.
Notes:
The indicator does not display RSI or SMA lines directly on the chart, focusing instead on crossover events and signals.
If all visualization toggles are disabled, the table disappears, but signals and alerts continue to function based on the logic toggles.
Compatible with any chart timeframe, data from later timeframes is retrieved using request.security() .
Auto Trendlines [RG]Auto Trendlines
Overview
Auto Trendlines automatically identifies, draws, and manages dynamic support and resistance trendlines based on pivot points. It continuously monitors price action to validate and update trendlines.
Key Features
Automatically identifies support (green) and resistance (red) trendlines
Validates trendlines against historical price action
Configurable lookback period and maximum active lines
Clean visualization with customizable line widths
How It Works
The indicator detects pivot highs and lows using your specified lookback period
It connects consecutive pivots to create potential trendlines
Lines are extended to the right until a confirmed price break
Older lines are automatically removed when the maximum is reached
Customization Options
Lookback Period: Controls the sensitivity of pivot detection
Maximum Active Lines: Limits the number of trendlines displayed
Line Width: Separate width controls for support and resistance lines
Ideal For
Identifying dynamic support and resistance levels.
Spotting potential reversal zones.
This indicator will help you identify trendlines, which you can then sophisticate and redraw more accurately. Please use this indicator only to identify trendline scenarios. Keep in mind that this is not a buy and sell indicator. Trendline breaks and bounces are not always respected, as prices can turn around at any moment. Happy Trading :)
Stoch RSI Multi-Timeframe Cross Indicator
Stoch RSI Multi-Timeframe Cross Indicator
Overview
This Pine Script v6 indicator is designed to monitor Stochastic RSI crossovers across multiple timeframes (1-minute, 5-minute, 15-minute, 30-minute, 1-hour, 4-hour, and daily) and provide visual and alert-based signals for trading decisions. It overlays on the chart, displaying:
A table showing the bullish (green) or bearish (red) state of each timeframe.
Triangles and labels ("Long" or "Short") to indicate entry points when all enabled timeframes align in a bullish or bearish direction.
Alerts for when all enabled timeframes turn bullish or bearish.
The indicator tracks crossovers between the Stochastic RSI %K and %D lines, persisting the state (bullish or bearish) until the next crossover occurs, mimicking the behavior of the original RSI-based script but adapted for Stochastic RSI.
Inputs
RSI Length (rsiLength): Length of the RSI calculation (default: 14).
Stochastic Length (stochLength): Lookback period for the Stochastic RSI calculation (default: 14).
Smooth K (smoothK): Smoothing period for the %K line (default: 3).
Smooth D (smoothD): Smoothing period for the %D line (default: 3).
Use in Logic (use1m, use5m, etc.): Boolean toggles to include or exclude each timeframe (1M, 5M, 15M, 30M, 1H, 4H, 1D) in the entry signal logic (default: all true).
Timeframes
The indicator monitors the following timeframes, defined as strings compatible with Pine Script v6:
1-minute ("1")
5-minute ("5")
15-minute ("15")
30-minute ("30")
1-hour ("60")
4-hour ("240")
Daily ("D")
Core Logic
Stochastic RSI Calculation:
For each timeframe, the indicator:
Computes RSI using ta.rsi(close, rsiLength).
Applies the stochastic formula to RSI with ta.stoch(rsi, rsi, rsi, stochLength) to get the raw Stochastic RSI.
Smooths the result with ta.sma() to calculate %K (using smoothK) and %D (using smoothD).
This is done within a stochRsiState function, which is called via request.security() to ensure calculations align with each timeframe’s data.
Crossover Detection:
Detects crossovers using ta.crossover(k, d) (bullish) and ta.crossunder(k, d) (bearish).
Maintains a persistent state (var bool isBullish) for each timeframe, updated only when a crossover occurs:
true (bullish) when %K crosses above %D.
false (bearish) when %K crosses below %D.
Multi-Timeframe States:
Each timeframe’s %K, %D, and isBullish state is fetched independently using request.security(), ensuring accurate crossover detection regardless of the chart’s timeframe.
Visual Outputs
Table:
A static table in the bottom-left corner displays the state of each timeframe:
Columns: "1M", "5M", "15M", "30M", "1H", "4H", "1D".
Background color: Green (color.green) for bullish, Red (color.red) for bearish.
Updates on the last confirmed bar (barstate.islast).
Triangles:
Green upward triangle below the bar when all enabled timeframes are bullish (allBullish).
Red downward triangle above the bar when all enabled timeframes are bearish (allBearish).
Labels:
"Long" label (green) below the bar when allBullish is true.
"Short" label (red) below the bar when allBearish is true.
Displayed only on the last confirmed historical bar (barstate.islastconfirmedhistory).
Alerts
All Timeframes Bullish: Triggers when all enabled timeframes are bullish, with the message: "All Stoch RSI timeframes are bullish (green)!"
All Timeframes Bearish: Triggers when all enabled timeframes are bearish, with the message: "All Stoch RSI timeframes are bearish (red)!"
Conditions for Signals
Bullish Condition (allBullish):
True when all enabled timeframes (use1m ? isBullish1m : true, etc.) are bullish, and at least one timeframe is enabled.
Bearish Condition (allBearish):
True when all enabled timeframes are bearish, and at least one timeframe is enabled.
Disabled timeframes are treated as neutral (always true) in the logic, ensuring they don’t block signals.
Usage
Add the indicator to your TradingView chart.
Adjust input parameters (e.g., rsiLength, stochLength, smoothK, smoothD) to match your trading strategy.
Enable/disable timeframes via the input settings to focus on specific ones.
Watch the table for individual timeframe states and the chart for entry signals ("Long"/"Short") when all enabled timeframes align.
Set up alerts to be notified of full alignment.
Notes
The indicator is designed to persist the crossover state until the next crossover, similar to the original RSI-based script, ensuring stability across chart timeframe switches.
It uses request.security() to fetch data, making it robust for multi-timeframe analysis, though performance may depend on the chart’s data availability.
Stoch RSI Multi-Timeframe Cross Индикатор
Обзор
Этот индикатор Pine Script v6 предназначен для мониторинга пересечений Stochastic RSI на нескольких таймфреймах (1-минутный, 5-минутный, 15-минутный, 30-минутный, 1-часовой, 4-часовой и дневной) и предоставления визуальных и основанных на оповещениях сигналов для принятия торговых решений. Он накладывается на график, отображая:
Таблица, показывающая бычье (зеленый) или медвежье (красный) состояние каждого таймфрейма.
Треугольники и метки («Длинный» или «Короткий») для обозначения точек входа, когда все включенные таймфреймы совпадают в бычьем или медвежьем направлении.
Оповещения о том, когда все включенные таймфреймы становятся бычьими или медвежьими.
Индикатор отслеживает пересечения линий %K и %D стохастического RSI , сохраняя состояние (бычье или медвежье) до тех пор, пока не произойдет следующее пересечение, имитируя поведение исходного скрипта на основе RSI, но адаптированного для стохастического RSI.
Входы
Длина RSI ( rsiLength ): длина расчета RSI (по умолчанию: 14).
Длина стохастика ( stochLength ): период ретроспективного анализа для расчета стохастического RSI (по умолчанию: 14).
Сглаживание K ( smoothK ): период сглаживания для линии %K (по умолчанию: 3).
Smooth D ( smoothD ): период сглаживания для линии %D (по умолчанию: 3).
Использовать в логике ( use1m , use5m и т. д.): логические переключатели для включения или исключения каждого таймфрейма (1M, 5M, 15M, 30M, 1H, 4H, 1D) в логику входного сигнала (по умолчанию: все true).
Временные рамки
Индикатор отслеживает следующие таймфреймы, определенные как строки, совместимые с Pine Script v6:
1 минута ( "1" )
5-минутный ( "5" )
15-минутный ( "15" )
30-минутный ( "30" )
1 час ( "60" )
4-часовой ( "240" )
Ежедневно ( "Д" )
Основная логика
Расчет стохастического RSI :
Для каждого таймфрейма индикатор:
Вычисляет RSI с помощью ta.rsi(close, rsiLength) .
Применяет стохастическую формулу к RSI с ta.stoch(rsi, rsi, rsi, stochLength) для получения необработанного стохастического RSI.
Сглаживает результат с помощью ta.sma() для вычисления %K (используя smoothK ) и %D (используя smoothD ).
Это делается в функции stochRsiState , которая вызывается через request.security(), чтобы гарантировать соответствие расчетов данным каждого таймфрейма.
Обнаружение кроссовера :
Обнаруживает пересечения с помощью ta.crossover(k, d) (бычий) и ta.crossunder(k, d) (медвежий).
Поддерживает постоянное состояние ( var bool isBullish ) для каждого таймфрейма, обновляется только при возникновении пересечения:
истина (бычий тренд), когда %K пересекает %D снизу вверх .
ложно (медвежье), когда %K пересекает %D снизу .
Состояния с несколькими таймфреймами :
Состояние %K , %D и isBullish каждого таймфрейма извлекается независимо с помощью request.security() , что обеспечивает точное обнаружение пересечений независимо от таймфрейма графика.
Визуальные результаты
Стол :
Статическая таблица в нижнем левом углу отображает состояние каждого таймфрейма:
Столбцы: «1M», «5M», «15M», «30M», «1H», «4H», «1D».
Цвет фона: зеленый ( color.green ) для бычьего тренда, красный ( color.red ) для медвежьего тренда.
Обновления по последнему подтвержденному бару ( barstate.islast ).
Треугольники :
Зеленый восходящий треугольник под полосой, когда все включенные таймфреймы являются бычьими ( allBullish ).
Красный нисходящий треугольник над баром, когда все включенные таймфреймы медвежьи ( allBearish ).
Метки :
Метка «Длинная» (зеленая) под полосой, когда allBullish имеет значение true.
Метка «Короткая» (красная) под полосой, когда allBearish имеет значение true.
Отображается только на последнем подтвержденном историческом баре ( barstate.islastconfirmedhistory ).
Оповещения
Все таймфреймы бычьи : срабатывает, когда все включенные таймфреймы бычьи, с сообщением: «Все таймфреймы Stoch RSI бычьи (зеленые)!»
Все таймфреймы медвежьи : срабатывает, когда все включенные таймфреймы медвежьи, с сообщением: «Все таймфреймы Stoch RSI медвежьи (красные)!»
Условия для сигналов
Бычье состояние ( всеБычье ) :
Истинно, когда все включенные таймфреймы ( use1m ? isBullish1m : true и т. д.) являются бычьими и включен хотя бы один таймфрейм.
Медвежьи условия ( всемедвежьи ) :
Истинно, когда все включенные таймфреймы являются медвежьими и включен хотя бы один таймфрейм.
Отключенные таймфреймы рассматриваются в логике как нейтральные (всегда истинные ), что гарантирует, что они не блокируют сигналы.
Использование
Добавьте индикатор на свой график TradingView.
Отрегулируйте входные параметры (например, rsiLength , stochLength , smoothK , smoothD ) в соответствии с вашей торговой стратегией.
Включите/отключите таймфреймы с помощью настроек ввода, чтобы сосредоточиться на определенных из них.
Следите за таблицей для определения состояний отдельных таймфреймов и графиком для определения сигналов на вход («Длинный»/«Короткий»), когда все включенные таймфреймы совпадают.
Настройте оповещения, чтобы получать уведомления о полном выравнивании.
Примечания
Индикатор разработан таким образом, чтобы сохранять состояние пересечения до следующего пересечения, аналогично оригинальному скрипту на основе RSI, обеспечивая стабильность при переключении таймфреймов графика.
Для извлечения данных используется request.security() , что делает его надежным для многовременного анализа, хотя производительность может зависеть от доступности данных графика.
SMA Multi-Timeframe Trend Indicator (Enhanced)Here is the description of the "SMA Multi-Timeframe Trend Indicator (Enhanced)" in English, based on the latest version of the code:
Description of the Indicator: SMA Multi-Timeframe Trend Indicator (Enhanced)
Purpose:
The indicator is designed to identify trends based on the price crossing a Simple Moving Average (SMA) on the current timeframe, with additional confirmation of the trend direction across multiple timeframes. It assists traders in finding entry points (Long or Short), displaying signals only at the moment of the first crossing of the candle body through the SMA, avoiding repeated signals until the next opposite crossing.
Indicator Type: Overlay — displayed on top of the price chart.
Key Features:
Entry Signals:
Long (green triangle and "Long" label): Appears when the candle body fully crosses the SMA upward (the candle's low low becomes higher than the SMA) and it is the first crossing after a previous bearish signal or from the chart's start.
Short (red triangle and "Short" label): Appears when the candle body fully crosses the SMA downward (the candle's high high becomes lower than the SMA) and it is the first crossing after a previous bullish signal or from the chart's start.
Signals are shown only once until the next opposite crossing, preventing redundant notifications.
Multi-Timeframe Confirmation:
The indicator analyzes the trend state across 9 timeframes: 1M, 5M, 15M, 30M, 1H, 4H, 8H, 1D, 1W.
For each timeframe, it checks the price position relative to the SMA:
Bullish state (low > SMA) — green color.
Bearish state (high < SMA) — red color.
An entry signal is generated only if all enabled timeframes confirm the trend direction (all bullish for Long, all bearish for Short).
Visualization:
SMA Line: Displayed on the current timeframe chart (green color, RGB: 9, 247, 108, linewidth 1).
Triangles: Green below the candle for Long, red above the candle for Short.
Labels: "Long" (green) or "Short" (red) appear on the last confirmed candle below the chart.
Table: Positioned at the bottom center of the chart, containing 9 cells (one for each timeframe), showing the current state (green or red background).
Customizability:
SMA Length: Users can set the SMA period (default is 20).
Timeframe Selection: Each of the 9 timeframes can be enabled or disabled in the logic settings (default: only 1H enabled).
Alerts:
Two types of notifications are generated:
"Bullish Cross": When the price crosses above the SMA on all enabled timeframes.
"Bearish Cross": When the price crosses below the SMA on all enabled timeframes.
How the Indicator Works:
SMA Calculation:
A Simple Moving Average (SMA) is calculated on the current timeframe with the specified period.
The trend state is determined on each of the 9 timeframes based on the price's position relative to the SMA.
Signal Conditions:
For Long: The low of the current candle (low) crosses the SMA upward (ta.crossover(low, smaCurrent)), and all enabled timeframes show a bullish state.
For Short: The high of the current candle (high) crosses the SMA downward (ta.crossunder(high, smaCurrent)), and all enabled timeframes show a bearish state.
A signal triggers only if the previous signal was in the opposite direction or absent, controlled by the lastSignalWasBullish variable.
Display:
When conditions are met, a triangle and label of the corresponding direction appear on the chart.
The table updates on each candle, reflecting the current state of all timeframes.
Usage:
Timeframe: Suitable for any timeframe, but tested on 1H with all other timeframes disabled.
Default Settings:
smaLength = 20
Only 1H enabled (use1h = true), others disabled (false).
Recommendations:
For more frequent signals, reduce smaLength (e.g., to 10).
To filter noise, enable additional timeframes (e.g., 4H, 1D).
Use alerts for automatic entry point notifications.
Example of Operation:
Scenario on 1H:
The price on the previous bar was below the SMA (high < smaCurrent), and on the current bar, low > smaCurrent. If 1H is the only enabled timeframe, a green triangle and "Long" label appear immediately.
Then the price drops, and high < smaCurrent after crossing downward — a red triangle and "Short" label appear.
Signals do not repeat until the price crosses the SMA in the opposite direction.
Limitations:
If all timeframes are disabled, the indicator will not generate signals (at least one timeframe must be enabled).
On highly volatile markets or with a large smaLength, crossings may be infrequent.
The table always displays the state of all 9 timeframes, even if they are not used in the logic.
Описание индикатора: SMA Multi-Timeframe Trend Indicator (Enhanced)
Назначение:
Индикатор предназначен для определения трендов на основе пересечения цены с простой скользящей средней (SMA) на текущем таймфрейме с дополнительным подтверждением состояния тренда на нескольких таймфреймах. Он помогает трейдерам находить точки входа в позицию (Long или Short), отображая сигналы только в момент первого пересечения тела свечи через SMA, избегая повторных сигналов до следующего противоположного пересечения.
Тип индикатора: Наложение (Overlay) — отображается поверх графика цены.
Основные особенности:
Сигналы входа:
Long (зелёный треугольник и метка "Long"): Появляется, когда тело свечи полностью пересекает SMA вверх (минимум свечи low становится выше SMA) и это первое пересечение после предыдущего медвежьего сигнала или с начала графика.
Short (красный треугольник и метка "Short"): Появляется, когда тело свечи полностью пересекает SMA вниз (максимум свечи high становится ниже SMA) и это первое пересечение после предыдущего бычьего сигнала или с начала графика.
Сигналы отображаются только один раз до следующего противоположного пересечения, что предотвращает избыточные уведомления.
Мультитаймфреймовое подтверждение:
Индикатор анализирует состояние тренда на 9 таймфреймах: 1M, 5M, 15M, 30M, 1H, 4H, 8H, 1D, 1W.
Для каждого таймфрейма проверяется положение цены относительно SMA:
Бычье состояние (low > SMA) — зелёный цвет.
Медвежье состояние (high < SMA) — красный цвет.
Сигнал на вход появляется только если все включённые таймфреймы подтверждают направление тренда (все бычьи для Long, все медвежьи для Short).
Визуализация:
Линия SMA: Отображается на графике текущего таймфрейма (зелёный цвет, RGB: 9, 247, 108, толщина 1).
Треугольники: Зелёные под свечой для Long, красные над свечой для Short.
Метки: "Long" (зелёная) или "Short" (красная) появляются на последней подтверждённой свече внизу графика.
Таблица: Расположена по центру внизу графика, содержит 9 ячеек (по одной для каждого таймфрейма), показывающих текущее состояние (зелёный или красный фон).
Настраиваемость:
Длина SMA: Пользователь может задать период скользящей средней (по умолчанию 20).
Выбор таймфреймов: Каждый из 9 таймфреймов можно включить или выключить в настройках логики (по умолчанию включён только 1H).
Алерты:
Генерируются два типа уведомлений:
"Bullish Cross": Когда цена пересекает SMA вверх на всех включённых таймфреймах.
"Bearish Cross": Когда цена пересекает SMA вниз на всех включённых таймфреймах.
Как работает индикатор:
Расчёт SMA:
На текущем таймфрейме рассчитывается простая скользящая средняя (SMA) с заданным периодом.
На каждом из 9 таймфреймов определяется состояние тренда на основе положения цены относительно SMA.
Условия сигнала:
Для Long: Минимум текущей свечи (low) пересекает SMA вверх (ta.crossover(low, smaCurrent)), и все включённые таймфреймы показывают бычье состояние.
Для Short: Максимум текущей свечи (high) пересекает SMA вниз (ta.crossunder(high, smaCurrent)), и все включённые таймфреймы показывают медвежье состояние.
Сигнал срабатывает только если предыдущий сигнал был противоположным или отсутствовал, что контролируется переменной lastSignalWasBullish.
Отображение:
При выполнении условий на графике появляются треугольник и метка соответствующего направления.
Таблица обновляется на каждой свече, показывая текущее состояние всех таймфреймов.
Использование:
Таймфрейм: Подходит для любого таймфрейма, но протестирован на 1H с отключёнными остальными таймфреймами.
Настройки по умолчанию:
smaLength = 20
Только 1H включён (use1h = true), остальные выключены (false).
Рекомендации:
Для более частых сигналов уменьшите smaLength (например, до 10).
Для фильтрации шума включите дополнительные таймфреймы (например, 4H, 1D).
Используйте алерты для автоматического уведомления о точках входа.
Пример работы:
Сценарий на 1H:
Цена на предыдущем баре была ниже SMA (high < smaCurrent), а на текущем баре low > smaCurrent. Если 1H — единственный включённый таймфрейм, сразу появляется зелёный треугольник и метка "Long".
Затем цена падает, и high < smaCurrent после пересечения вниз — появляется красный треугольник и метка "Short".
Сигналы не повторяются, пока цена не пересечёт SMA в противоположном направлении.
Ограничения:
Если все таймфреймы отключены, индикатор не будет генерировать сигналы (требуется хотя бы один включённый таймфрейм).
На очень волатильных рынках или при большом значении smaLength пересечения могут быть редкими.
Таблица всегда показывает состояние всех 9 таймфреймов, даже если они не используются в логике.
MACD Multi-Timeframe K2Indicator Description: MACD Multi-Timeframe K2
Important! it works best when all timeframes except 1M and 1W on the daily chart are included.
Review
"MACD Multi-Timeframe K2" is a Pine Script v5 indicator designed to monitor convergence crossings and divergences of moving averages (MACDs) on multiple timeframes simultaneously. It provides visual signals on the chart and a dynamic table to help traders identify when the MACD conditions match on selected timeframes, indicating potential bullish or bearish opportunities. This superimposed indicator is ideal for traders who use multi-time frame analysis to confirm trends or reversals.
How it works
MACD calculation : For each timeframe, the indicator calculates the MACD using three components:
Fast EMA : short-term exponential moving average (default length: 12).
Slow EMA : long-term exponential moving average (default length: 26).
Signal line : 9-period EMA of the MACD line (fast EMA - slow EMA).
Crossover detection :
A bullish signal occurs when the MACD line crosses the signal line from bottom to top.
A bearish signal occurs when the MACD line crosses the signal line from bottom to top.
The logic of working with multiple timeframes: the indicator checks the MACD intersections on 11 timeframes (1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W) and gives a signal only when all the included timeframes line up in the same direction (all bullish or all bearish).
Visualization :
Triangles : green triangles under the bars are bullish signals, red triangles above the bars are bearish signals.
Labels: The labels "Long" (green) or "Short" (red) appear on the last confirmed bar when the conditions match.
Table : The dynamic table in the lower central part of the chart shows the MACD status (green for bullish trend, red for bearish) for each included timeframe.
Entrances
MACD Settings :
The length of the fast moving average : the length of the fast EMA (default: 12).
The length of the slow EMA: the length of the slow EMA (default: 26).
The length of the signal : the length of the signal line EMA (default: 9).
Timeframe logic settings : switching timeframes involved in the logic of the signal:
Use 1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W (all default values are true).
Timeframe visualization settings : switching timeframes displayed in the table:
Show 1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W (all default values are true).
Functions
Configurable time frames: Enable or disable specific time frames for independent signal generation and visualization.
Dynamic Table: Adjusts the number of columns based on visible timeframes, displaying only selected columns with real-time color updates (green = bullish, red = bearish).
Alerts : Built-in alert conditions when all included timeframes become bullish ("All Timeframes Bullish") or bearish ("All Timeframes Bearish").
Overlay design: Signals are displayed directly on the price chart, making it easier to integrate with other indicators or price action analysis.
Using
Configure :
Add the indicator to your TradingView chart.
Adjust the length of the MACD (fast, slow, signal) in the settings according to your trading strategy.
Enable/disable timeframes in the "Timeframe Logic Settings" section to determine which of them trigger the signals.
Enable/disable timeframes in the Timeframe Visualization Settings section to customize the table display.
Interpretation of signals :
Bullish (long) : The green triangle below the band and the "Long" label indicate that the MACD line has crossed the signal line from top to bottom on all included timeframes. Consider this as a potential buy signal.
Bearish (short) : The red triangle above the band and the "short" label indicate that the MACD line has crossed the signal line from below on all included timeframes. Consider this as a potential sell signal.
Table : Keep an eye on the table to see the MACD status across all time intervals. Green cells suggest bullish momentum, red cells suggest bearish momentum.
Testing :
Use lower timeframes (e.g., 5M, 15M) for more frequent signals, or higher timeframes (e.g., 1D, 1W) for stronger trend confirmation.
Experiment with the MACD settings (for example, 5, 13, 3) for faster or slower signal generation.
Notes
Performance : When all 11 timeframes are enabled, the indicator makes several calls to request.security(), which may cause a slight delay on very low timeframes of the chart (for example, 1M). For optimal performance, test at 5M or higher or disable unused timeframes.
Signal frequency : MACD crossings tend to occur less frequently than some other indicators (such as the RSI). Adjust the MACD length or timeframe selection to balance sensitivity and reliability.
Setup: If desired, the script can be expanded with additional functions, such as stop loss/take profit fields (as in previous versions of Stoch RSI).
Examples of scenarios
Bullish setup : on the 15-month chart, all included timeframes (for example, 1M, 5M, 15M, 1H) are displayed in the table in green, a green triangle appears under the bar, and the "Long" label confirms the signal.
Bearish setup: on the 1H chart, all included timeframes (for example, 1H, 4H, 1D) turn red, a red triangle appears above the band, and the "Short" label signals a potential downtrend.
Описание индикатора: MACD Multi-Timeframe K2
Важно! работает лучше всего когда включены все таймфреймы кроме 1M и 1W на дневном графике.
Обзор
"MACD Multi-Timeframe K2" - это индикатор Pine Script v5, разработанный для мониторинга пересечений конвергенции и расхождения скользящих средних (MACD) на нескольких таймфреймах одновременно. Он обеспечивает визуальные сигналы на графике и динамическую таблицу, чтобы помочь трейдерам определить, когда условия MACD совпадают на выбранных таймфреймах, указывая на потенциальные бычьи или медвежьи возможности. Этот наложенный индикатор идеально подходит для трейдеров, которые используют многотаймфреймовый анализ для подтверждения трендов или разворотов.
Как это работает
Расчет MACD : для каждого таймфрейма индикатор рассчитывает MACD, используя три компонента:
Быстрая EMA : краткосрочная экспоненциальная скользящая средняя (длина по умолчанию: 12).
Медленная EMA : долгосрочная экспоненциальная скользящая средняя (длина по умолчанию: 26).
Сигнальная линия : 9-периодная EMA линии MACD (быстрая EMA - медленная EMA).
Обнаружение кроссовера :
Бычий сигнал возникает, когда линия MACD пересекает сигнальную линию снизу вверх.
Медвежий сигнал возникает, когда линия MACD пересекает сигнальную линию снизу вверх.
Логика работы с несколькими таймфреймами : индикатор проверяет пересечения MACD на 11 таймфреймах (1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W) и подает сигнал только тогда, когда все включенные таймфреймы выстраиваются в одном направлении (все бычьи или все медвежьи).
Визуализация :
Треугольники : зеленые треугольники под столбиками — бычьи сигналы, красные треугольники над столбиками — медвежьи сигналы.
Метки : метки «Длинный» (зеленый) или «Короткий» (красный) появляются на последнем подтвержденном баре, когда условия совпадают.
Таблица : динамическая таблица в нижней центральной части графика показывает состояние MACD (зеленый — для бычьего тренда, красный — для медвежьего) для каждого включенного таймфрейма.
Входы
Настройки MACD :
Длина быстрой скользящей средней : длина быстрой EMA (по умолчанию: 12).
Длина медленной EMA: длина медленной EMA (по умолчанию: 26).
Длина сигнала : длина сигнальной линии EMA (по умолчанию: 9).
Настройки логики таймфрейма : переключение таймфреймов, участвующих в логике сигнала:
Используйте 1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W (все значения по умолчанию: true).
Настройки визуализации таймфрейма : переключение таймфреймов, отображаемых в таблице:
Показать 1M, 5M, 15M, 30M, 1H, 2H, 4H, 8H, 12H, 1D, 1W (все значения по умолчанию: true).
Функции
Настраиваемые временные рамки : включение или отключение определенных временных рамок для независимой генерации и визуализации сигнала.
Динамическая таблица : регулирует количество столбцов на основе видимых таймфреймов, отображая только выбранные столбцы с обновлением цвета в реальном времени (зеленый = бычий, красный = медвежий).
Оповещения : встроенные условия оповещения, когда все включенные таймфреймы становятся бычьими («All Timeframes Bullish») или медвежьими («All Timeframes Bearish»).
Дизайн наложения : сигналы отображаются непосредственно на ценовом графике, что упрощает интеграцию с другими индикаторами или анализом ценового действия.
Использование
Настраивать :
Добавьте индикатор на свой график TradingView.
Отрегулируйте длину MACD (быстрая, медленная, сигнальная) в настройках в соответствии с вашей торговой стратегией.
Включите/отключите таймфреймы в разделе «Настройки логики таймфрейма», чтобы определить, какие из них запускают сигналы.
Включите/отключите таймфреймы в разделе «Настройки визуализации таймфреймов», чтобы настроить отображение таблицы.
Интерпретация сигналов :
Бычий (длинный) : зеленый треугольник под полосой и метка «Длинный» указывают на то, что линия MACD пересекла сигнальную линию сверху вниз на всех включенных таймфреймах. Рассматривайте это как потенциальный сигнал на покупку.
Медвежий (короткий) : Красный треугольник над полосой и метка «короткий» указывают на то, что линия MACD пересекла сигнальную линию снизу на всех включенных таймфреймах. Рассматривайте это как потенциальный сигнал на продажу.
Таблица : Следите за таблицей, чтобы увидеть состояние MACD по всем временным интервалам. Зеленые ячейки предполагают бычий импульс, красные ячейки предполагают медвежий импульс.
Тестирование :
Используйте более низкие таймфреймы (например, 5M, 15M) для более частых сигналов или более высокие таймфреймы (например, 1D, 1W) для более сильного подтверждения тренда.
Поэкспериментируйте с настройками MACD (например, 5, 13, 3) для более быстрой или медленной генерации сигнала.
Примечания
Производительность : при включении всех 11 таймфреймов индикатор делает несколько вызовов request.security() , что может вызвать небольшую задержку на очень низких таймфреймах графика (например, 1M). Для оптимальной производительности тестируйте на 5M или выше или отключите неиспользуемые таймфреймы.
Частота сигнала : пересечения MACD, как правило, происходят реже, чем некоторые другие индикаторы (например, RSI). Отрегулируйте длину MACD или выбор таймфрейма, чтобы сбалансировать чувствительность и надежность.
Настройка : При желании скрипт можно расширить дополнительными функциями, такими как поля стоп-лосса/тейк-профита (как в предыдущих версиях Stoch RSI).
Примеры сценариев
Бычья установка : на 15-месячном графике все включенные таймфреймы (например, 1M, 5M, 15M, 1H) отображаются в таблице зеленым цветом, под полосой появляется зеленый треугольник, а метка «Длинная» подтверждает сигнал.
Медвежья установка : на графике 1H все включенные таймфреймы (например, 1H, 4H, 1D) становятся красными, над полосой появляется красный треугольник, а метка «Short» сигнализирует о потенциальном нисходящем тренде.
Apex Trend SniperApex Trend Sniper - Advanced Trend Trading Strategy (Pine Script v5)
🚀 Overview
The Apex Trend Sniper is an advanced, fully automated trend-following strategy designed for crypto, forex, and stock markets. It combines momentum analysis, trend confirmation, volume validation, and adaptive risk management to capture high-probability trades. Unlike many strategies, this system is 100% non-repainting, ensuring reliable backtesting and real-time execution.
🔹 How This Strategy Works (Indicator Mashup)
The Apex Trend Sniper leverages multiple indicators to create a robust multi-layered confirmation system:
1️⃣ Trend Identification with RMI & McGinley Dynamic
📌 What It Does: Identifies the dominant trend and prevents trading against market conditions.
✔ McGinley Dynamic Baseline:
A highly adaptive moving average that dynamically reacts to price changes.
Price above the baseline = bullish trend.
Price below the baseline = bearish trend.
✔ Relative Momentum Index (RMI):
A refined Relative Strength Index (RSI) that filters out weak trends.
Above 50 = bullish confirmation.
Below 50 = bearish confirmation.
2️⃣ Trend Strength Confirmation with Vortex Indicator
📌 What It Does: Confirms that a detected trend is strong and valid.
✔ Vortex Indicator (VI):
Measures directional movement and trend strength.
A bullish trend is confirmed when VI+ > VI-.
A bearish trend is confirmed when VI- > VI+.
3️⃣ Volume Spike Detection for Trade Validation
📌 What It Does: Ensures that trades are placed only during strong market participation.
✔ Volume Confirmation:
A trade signal is only valid if volume spikes above the moving average.
Helps avoid false breakouts and weak trends.
4️⃣ Entry & Exit Strategy with Multi-Level Take Profits
📌 What It Does: Enters trades only when all conditions align and manages risk effectively.
✔ Entry Conditions (All must be met):
Price is above/below McGinley Dynamic.
RMI confirms trend direction.
Vortex indicator confirms trend strength.
Volume spike is detected.
✔ Exit Conditions:
Take Profit 1 (TP1): Secures 50% of the position at the first price target.
Take Profit 2 (TP2): Closes the remaining position at the second price target.
Exit Before Reversal: If an opposite trend signal appears, the position is closed early.
Trend Weakness Exit: If momentum weakens, the trade is exited automatically.
📌 Strategy Customization
🔧 Fully customizable to fit any trading style:
✔ McGinley Dynamic Length – Adjust baseline sensitivity.
✔ RMI & Vortex Settings – Fine-tune momentum filters.
✔ Volume Thresholds – Modify spike detection for better accuracy.
✔ Take Profit Levels – Set TP1 & TP2 based on market volatility.
📢 How to Use Apex Trend Sniper
1️⃣ Apply the strategy to any TradingView chart.
2️⃣ Customize the settings to fit your trading approach.
3️⃣ Use the backtest report to evaluate performance.
4️⃣ Monitor the dashboard to track real-time trade execution.
📌 Recommended Timeframes & Markets
✔ Best Markets:
✅ Crypto (BTC, ETH, SOL, etc.)
✅ Forex (EUR/USD, GBP/USD, JPY/USD, etc.)
✅ Stocks & Indices (S&P500, NASDAQ, etc.)
✔ Optimal Timeframes:
✅ Swing Trading: 1H – 4H – 1D
✅ Intraday & Scalping: 5M – 15M – 30M
📌 Backtest Settings for Realistic Performance
✔ Initial Capital: $1000 (or more for scaling).
✔ Commission: 0.05% (to simulate exchange fees).
✔ Slippage: 1-2 (to account for execution delay).
✔ Date Range: Test across different market conditions.
📢 TradingView Disclaimer
📌 This script is for educational purposes only and does not constitute financial advice. Trading carries significant risk, and past performance does not guarantee future results. Always test strategies thoroughly before applying them in a live market. Users are responsible for their own trading decisions.
🚀 Why Choose Apex Trend Sniper?
✅ Non-Repainting – No misleading signals.
✅ Multi-Layer Confirmation – Reduces false trades.
✅ Volume & Trend Strength Validation – Ensures high-probability entries.
✅ Adaptive Risk Management – Secures profits while maximizing trends.
✅ Versatile Across Markets & Timeframes – Works for crypto, forex, and stocks.
📢 Start Trading Smarter with Apex Trend Sniper! 🚀
🔗 Try it now on TradingView and optimize your trend-following strategy. 🔥
BB Session RangesBB Session Ranges Indicator
Overview
The Bender Bot Session Ranges indicator is a powerful tool for traders who want to visualize and analyze important market sessions throughout the trading day. This indicator identifies and tracks price ranges during specific time periods, helping you spot potential trading opportunities based on session breakouts, retests, and range comparisons.
Key Features
• Multiple Session Tracking: Monitor up to 6 different time-based ranges simultaneously (pre-configured for NY AM Open, NY PM Open, Lunch, Premarket, Midnight Open, and a custom session).
• Range Visualization: Clearly displays high and low boundaries for each session with customizable colors and line styles.
• Historical Comparison: Tracks and displays the average size of ranges over time, helping you identify when current ranges are larger or smaller than typical.
• Flexible Time Settings: Easily configure exact session times based on your trading schedule and preferred markets.
• Range Extension Options: Extend range boundaries by bars, days, or weeks to track the longer-term influence of session ranges.
• Sidecar Information Display: Optional labels show range details, including size, percentage of average, and dollar value.
How It Works
The indicator identifies specific time-based sessions (for example, the first 5 minutes of the NY market open) and tracks the high and low prices established during these periods. Once a session is complete, the range boundaries are plotted on your chart and can be extended for further analysis. The indicator calculates the current range size and compares it to historical averages, giving you context for the day’s market behavior.
Sidecar Functionality
The sidecar feature is a key aspect of this indicator that helps keep your charts clean and organized. Instead of cluttering your price action with labels and annotations directly on the ranges, the sidecar system:
• Creates a dedicated information panel offset from the price action.
• Connects to ranges with discreet connecting lines.
• Displays key statistics like range size, dollar value, and percentage of average.
• Can be positioned at custom distances from the main chart (measured in bars).
• Allows you to see important data without interfering with your price analysis.
• Can be completely disabled when you prefer minimal chart elements.
• Helps maintain visual clarity even when tracking multiple sessions simultaneously.
This design philosophy puts trader experience first by separating information display from price action analysis, giving you the best of both worlds: clean charts and detailed information.
Setup Guide
1. Choose Your Sessions: Enable or disable each of the six available ranges by setting the Max Ranges to Plot parameter (use 0 to disable a range).
2. Configure Session Times: Set exact times for each range using standard 24-hour format (for example, 0930-0935 for 9:30-9:35 AM).
3. Customize Display: Select colors, line widths, and information display options for each range.
4. Set Extension Parameters: Choose how far to extend range lines (by a number of bars, days, or weeks, or select Always for continuous extension).
5. Configure Sidecar Labels: Set the offset for the information displays (use 0 to disable sidecar labels entirely).
Trading Applications
• Identify potential support and resistance levels based on session highs and lows.
• Compare current session ranges to historical averages to gauge volatility.
• Look for breakouts from established session ranges.
• Use range extensions to anticipate potential price targets.
• Monitor multiple session ranges to identify pattern correlations.
Advanced Usage
The indicator includes fields that help you assess range size relative to past performance, including dollar value calculations. This can be particularly useful for position sizing and risk management when trading breakouts from these ranges.
Future Development
We’re actively working on expanding this indicator to include robust strategy and alert functionality. This will allow traders to:
• Backtest trading strategies based on session range breakouts and retests.
• Customize entry, exit, and risk management parameters.
• Receive real-time alerts when price interacts with significant range levels.
• Set conditional alerts based on range size compared to historical averages.
• Automate trading decisions based on your specific session-based criteria.
If these strategy and alert features would be valuable for your trading, please let us know in the comments. Your feedback directly influences our development priorities and helps us create tools that best serve the trading community.
Notes
• All times are based on the America/New_York timezone.
• The indicator dynamically adjusts to different timeframes, providing consistent results whether you’re viewing 1-minute or daily charts.
• Range calculations are based on the highs and lows established during the defined sessions.