MTF ATR BandsA simple but effective MTF ATR bands indicator.
The script calculate and display ATR bands low and high of the current timeframe using high, low inputs and an RMA moving average, adding to it ATR of the period multiplied with the user multiplier, default is set to 1.5.
Than is calculated a smoothed average of the range and the color of it based on its slope, same color is used to fill the atr bands.
Than the higher timeframe bands are calculated and displayed on the chart.
How can be used ?
The higher timeframe average and bands can give you long term direction of the trend and the current timeframes moving average and filling short term trend, for example using the 15 min chart with a 4h HTF bands, or an 1h with a daily, or a daily with an weekly or weekly with bi-monthly atr bands.
Also can be used as a stop loss indicator.
Hope you will like it, any question send me a PM.
Bands and Channels
OrangeCandle 4EMA 55 + Fib Bands + SignalsThe script is a TradingView indicator that combines three popular technical analysis tools: Exponential Moving Averages (EMAs), Fibonacci bands, and buy/sell signals based on these indicators. Here’s a breakdown of its features:
1. EMA Settings and Calculation:
The script calculates and plots several Exponential Moving Averages (EMAs) on the chart with different lengths:
Short-term EMAs: EMA 9, EMA 13, EMA 21, and EMA 55 (used for tracking short-term price trends).
Long-term EMAs: EMA 100 and EMA 200 (used to analyze longer-term trends).
These EMAs are plotted with different colors to visually distinguish between the short-term and long-term trends.
2. Fibonacci Bands:
The script calculates Fibonacci Bands based on the Average True Range (ATR) and a Simple Moving Average (SMA).
Fibonacci factors (1.618, 2.618, 4.236, 6.854, and 11.090) are used to determine the upper and lower bounds of five Fibonacci bands.
Upper Fibonacci Bands (e.g., fib1u, fib2u) represent resistance levels.
Lower Fibonacci Bands (e.g., fib1l, fib2l) represent support levels.
These bands are plotted with different colors for each level, helping traders identify potential price reversal zones.
3. Buy and Sell Signals:
Long Condition: A buy signal occurs when the price crosses above the EMA 55 (long-term trend indicator) and is above the lower Fibonacci band (support zone).
Short Condition: A sell signal occurs when the price crosses below the EMA 55 and is below the upper Fibonacci band (resistance zone).
These conditions trigger visual signals on the chart (green arrow for long, red arrow for short).
4. Alerts:
The script includes alert conditions to notify the trader when a long or short signal is triggered based on the crossover of price and EMA 55 near the Fibonacci support or resistance levels.
Long Entry Alert: Triggers when the price crosses above the EMA 55 and is near a Fibonacci support level.
Short Entry Alert: Triggers when the price crosses below the EMA 55 and is near a Fibonacci resistance level.
5. Visualization:
EMAs are plotted with distinct colors:
EMA 9 is aqua,
EMA 13 is purple,
EMA 21 is orange,
EMA 55 is blue (with thicker line width for emphasis),
EMA 100 is gray,
EMA 200 is black.
Fibonacci bands are plotted with different colors for each level:
Fib Band 1 (upper and lower) in white,
Fib Band 2 in green (upper) and red (lower),
Fib Band 3 in green (upper) and red (lower),
Fib Band 4 in blue (upper) and orange (lower),
Fib Band 5 in purple (upper) and yellow (lower).
Summary:
This script provides a comprehensive strategy for analyzing the market with multiple EMAs for trend detection, Fibonacci bands for support/resistance, and signals based on price action in relation to these indicators. The combination of these tools can assist traders in making more informed decisions by providing potential entry and exit points on the chart.
Ehlers Instantaneous Trendline ATR LevelsOverview
This sophisticated technical analysis tool merges John Ehlers' cutting-edge Instantaneous Trendline methodology with a dynamic ATR-based bands system. The indicator is designed to provide traders with a comprehensive view of market trends while accounting for volatility, making it suitable for both trending and ranging markets. Works on all timeframes and chart types.
Key Features in Detail
1. Ehlers Instantaneous Trendline Implementation
- Advanced algorithm that reduces lag typically associated with moving averages
- Built-in volatility filtering system to minimize false signals
- Adaptive to market conditions through dynamic calculations
- Real-time trend direction identification
2. Multi-layered ATR Band System
- Hierarchical band structure with 18 total bands (9 upper, 9 lower)
- Color-coded visualization system:
Upper bands: Red gradient (darker = further from trendline)
Lower bands: Green gradient (darker = further from trendline)
Central trendline: Yellow for optimal visibility
- Customizable multipliers for each band level
- Independent visibility controls for each band
Configuration Options
Trendline Settings:
- Lower values: More responsive to price changes and faster reacting to break in ATR filter
- Higher values: Smoother trendline with less noise and slower reacting to break in ATR filter
ATR Configuration:
Period: Customizable from 1 to any positive integer
- Longer periods: More stable volatility measurement
- Shorter periods: More reactive to recent volatility changes
Filter Multiplier: Fine-tune volatility filtering
- Higher values: More filtered signals leading to less shift in bands
- Lower values: More sensitive to price movements leading to more band shifts
Practical Applications
1. Trend Analysis
Use the central trendline for primary trend direction
Monitor band crossovers for trend strength confirmation
Track price position relative to bands for trend context
2. Volatility Assessment
Band spacing indicates current market volatility
Width between bands helps identify consolidation vs. expansion phases
Price Extremes
3. Support and Resistance
Each band acts as a dynamic support/resistance level
Multiple timeframe analysis possible adjusting for different timeframe ATR
TWAP & VWAP CombinedThis script integrates Time Weighted Average Price (TWAP) and Volume Weighted Average Price (VWAP) into a single TradingView indicator, allowing traders to analyze both price-weighted and volume-weighted trends simultaneously.
Features:
TWAP Calculation:
Computes the average price over a specified anchor period (e.g., daily).
Resets and recalculates TWAP when the anchor period changes.
Uses the OHLC4 (Open, High, Low, Close average) as the default price source.
VWAP Calculation:
Computes the VWAP based on the selected anchor period (Session, Week, Month, etc.).
Allows the option to hide VWAP when the timeframe is 1D or higher.
Uses HLC3 (High, Low, Close average) as the default source.
Dynamically resets VWAP at the start of a new period.
Customization Options:
Users can modify the source price for TWAP and VWAP calculations.
Adjustable offsets for both indicators to shift plots forward or backward.
Ability to select different VWAP anchor periods, including earnings, dividends, and splits.
Error Handling:
Displays an error message if volume data is missing, ensuring VWAP functions correctly.
Mehul - ADX Zero LagThis script combines two popular technical indicators into a single visualization:
1. **Average Directional Index (ADX)**:
- Measures trend strength on a scale from 0-100 (now normalized to 0-1 by dividing by 100)
- Displayed as a red line
- Adjustable smoothing and length parameters
2. **Zero Lag MACD (Modified Moving Average Convergence Divergence)**:
- An enhanced version of the traditional MACD with reduced lag
- Shows the relationship between fast and slow moving averages
- Main components include:
- MACD line (black)
- Signal line (gray)
- Histogram (green for positive, purple for negative)
- EMA of the MACD line (red)
- Optional crossing dots
Key features of the combined indicator:
- **Scale Adjustment**: Both indicators can be scaled independently (adxScale and macdScale parameters)
- **Visibility Toggles**: Each indicator can be shown or hidden
- **Advanced Customization**: Parameters for both indicators can be fine-tuned
- **Algorithm Selection**: Option to choose between the "Glaz" algorithm or the "real" zero lag algorithm
- **Display Options**: Toggles for visualization elements like crossing dots
The most significant technical aspect is that both indicators are displayed in the same pane with compatible scaling, achieved by normalizing the ADX values and applying user-defined scale factors to both indicators.
This combined indicator is designed to give traders a comprehensive view of both trend strength (from ADX) and momentum/direction (from Zero Lag MACD) in a single, easy-to-read visualization.
ReadyFor401ks Just Tell Me When!ReadyFor401ks Just Tell Me When!
LET ME START BY SAYING. NO INDICATOR WILL HELP YOU NAIL THE PERFECT ENTRY/EXIT ON A TRADE. YOU SHOULD ALWAYS EDUCATE YOURSELF AND HAVE A BASIC UNDERSTANDING OF INVESTING, TRADING, CHART ANALYSIS, AND THE RISKS INVOLVED WITH. THAT BEING SAID, WITH THE RIGHT ADJUSTMENTS, IT'S PRETTY D*$N CLOSE TO PERFECTION!
This indicator is designed to help traders identify t rend direction, continuation signals, and potential exits based on a dynamic blend of moving averages, ATR bands, and price action filters. Whether you’re an intraday trader scalping the 5-minute chart or a swing trader analyzing the weekly timeframe for LEAPS , this tool provides a clear, rule-based system to help guide your trading decisions.
⸻
Key Features & Benefits
🔹 Customizable Trend Power (Baseline) Calculation
• Choose from JMA, EMA, HMA, TEMA, DEMA, SMA, VAMA, and WMA for defining your baseline trend direction.
• The baseline helps confirm whether the market is in a bullish or bearish phase.
🔹 ATR-Based Trend Continuation & Volatility Measurement
• ATR bands dynamically adjust to market conditions, helping you spot breakouts and fakeouts.
• The indicator detects when price violates ATR range , which often signals impulse moves.
🔹 Clear Entry & Exit Signals
• Uses a Continuation MA (SSL2) to confirm trends.
• Includes a separate Exit MA (SSL3) that provides crossover signals to indicate when to exit trades or reverse positions .
• Plots trend continuation circles when ATR conditions align with trend signals.
🔹 Keltner Channel Baseline for Market Structure
• A modified Keltner Channel is integrated into the baseline to help filter out choppy conditions .
• If price remains inside the baseline, the market is in consolidation , while breakouts beyond the bands indicate strong trends .
🔹 Adaptive Color Coding for Market Conditions
• Bars change color based on momentum, making trend direction easy to read.
• Green = Bullish Trend, Red = Bearish Trend, Gray = Neutral/Chop.
🔹 Flexible Alerts for Trade Management
• Get real-time alerts when the Exit MA crosses price , helping you l ock in profits or switch directions .
⸻
How to Use This Indicator for Different Trading Styles
🟢 For Intraday Trading (5-Minute Chart Setup)
• Faster MA settings help react quickly to momentum shifts.
• Ideal for scalping breakouts, trend continuation setups, and intraday reversals.
• Watch for ATR violations and price interacting with the baseline/Keltner Channel for entries.
--------------------------------
My Settings for Intraday Trading on 5min Chart
ATR Period: 15
ATR Multi: 1
ATR Smoothing: WMA
Trend Power based off of: JMA
Trend Power Period: 30
Continuation Type: JMA
Continuation Length: 20
Calculate Exit of what MA?: HMA
Calculate Exit off what Period? 30
Source of Exit Calculation: close
JMA Phase *APPLIES TO JMA ONLY: 3
JMA Power *APPLIES TO JMA ONLY: 3
Volatility Lookback Period *APPLIES TO VAMA ONLY 30
Use True Range for Channel? Checked
Base Channel Multiplier: 0.4
ATR Continuation Criteria: 1.1
----------------------------------
🔵 For Swing Trading & LEAPS (Weekly Chart Setup - Default Settings)
• Slower MAs provide a broader view of trend structure.
• Helps capture multi-week trend shifts and confirm entry points for longer-term trades.
• Weekly ATR bands highlight when stocks are entering overextended conditions.
💡 Example:
Let’s say you’re looking at TSLA on a Weekly Chart using the default settings. You notice that price crosses above the continuation MA (SSL2) while remaining above the baseline (trend power MA). The bar turns green, and price breaks above ATR resistance, signaling a strong bullish continuation. This could be a great opportunity to enter a long-term swing trade or LEAPS options position.
On the flip side, if price reverses below the Exit MA (SSL3) and turns red while breaking the lower ATR band, it might signal a good time to exit longs or enter a short trade.
⸻
Final Thoughts
The ReadyFor401ks Just Tell Me When! indicator is an all-in-one trading system that simplifies trend-following, volatility measurement, and trade management. By integrating multiple moving average types, ATR filters, and clear visual cues, it allows traders to stay disciplined and remove emotions from their trading decisions.
✅ Perfect for scalpers, day traders, and swing traders alike!
🔔 Set up alerts for automated trade signals and never miss a key move!
💬 If you find this indicator useful, leave a comment and share how you use it in your trading! 🚀
Intraday Anchored FanSimilar to an Anchored VWAP, this lets you click a bar on an Intraday chart to add an "Anchored Fan" which displays lines at up to 6 levels above and below the chosen Anchor Point. Useful to measure the retracement during swing moves.
You can reposition the fan by either hovering over the anchor or by clicking the name of the study to "activate" it, and then dragging. You can also change the Anchor Point in Settings.
By default the anchor uses the bar Close, but you can change this manually in settings OR you can use the fancy "Auto high/low" mode which is handy if you are mainly dropping the fan on local swing highs and lows.
The default line measures were chosen for ES (Futures) but the study should be usable with nearly anything as long as you adjust the settings to something appropriate for the ticker. If you want to use this on NQ, for example, it would be reasonable to multiple each of these settings by 3.5 or so.
NOTE: If the fan is off the left side of the chart, one way to see the Anchor handle again easily is to switch to a higher timeframe; for example if you are on the 5min maybe use the 15min or hourly to find the handle -- if it is WAY off the left side (for example if you let many days pass without advancing it) it's generally easiest to use Settings to move it back to "now".
Bollinger Bands Multi TFBollinger Bands Multi TF Indicator
Overview
The Bollinger Bands Multi TF Indicator allows traders to overlay two sets of Bollinger Bands from different timeframes onto the same chart. This provides a broader market perspective by helping identify volatility and trend direction across multiple timeframes.
Features
✅ Dual Timeframe Support – Configure Bollinger Bands for two different timeframes (default: 15 min & 5 min).
✅ Customizable Moving Averages – Choose from SMA, EMA, SMMA (RMA), WMA, or VWMA as the basis line for each band.
✅ Dynamic Standard Deviation – Adjust the standard deviation multiplier for each timeframe.
✅ Visual Clarity – Different colors for each Bollinger Band set, with background filling for better visualization.
How to Use
🔹 Use the higher timeframe Bollinger Bands to identify overall trend and key resistance/support levels.
🔹 Use the lower timeframe Bollinger Bands for fine-tuned entry/exit signals within the broader trend.
🔹 A tightening of bands may indicate low volatility, signaling a potential breakout.
🔹 A widening of bands may suggest increased volatility and trend continuation.
Ideal For
📈 Intraday and swing traders looking for multi-timeframe confluence.
📊 Volatility-based traders who use Bollinger Bands for breakouts or reversals.
📍 Any trader wanting a deeper market context beyond a single timeframe.
VWAP (Enhanced)Structured VWAP Enhanced
A dynamic, multi-functional VWAP indicator designed to help traders visualize key support and resistance levels during the trading session. This indicator computes the Volume Weighted Average Price (VWAP) along with two structured bands derived from customizable multipliers based on either standard deviation or percentage. In addition, it offers the following features:
Dual Bands: Displays two bands (Band #1 and Band #2) that adapt to market volatility, each with its own customizable multiplier.
Dynamic Midlines: Plots both the original midlines (the center of each band) and enhanced midlines between the VWAP and each band edge for clearer visual cues.
Fixed Offset Bands: Includes offset lines set at a fixed 0.25% above and below the VWAP and each band level to help highlight near-term price targets.
Custom VWAP Anchoring: Supports various anchoring periods (Session, Week, Month, etc.) and special events (Earnings, Dividends, Splits) to reset VWAP calculations, making it adaptable to different trading styles.
Visual Customization: Easily toggle the display of each component (bands, midlines, enhanced midlines, and offset lines) to suit your analysis needs.
Whether you are an intraday trader or a longer-term market participant, Structured VWAP Enhanced provides a robust framework to identify price imbalances and potential turning points throughout your trading day.
Add this indicator to your chart for a comprehensive view of VWAP dynamics and structured market levels.
Median Volume Weighted DeviationMVWD (Median Volume Weighted Deviation)
The Median Volume-Weighted Deviation is a technical trend following indicator that overlays dynamic bands on the price chart, centered around a Volume Weighted Average Price (VWAP). By incorporating volume-weighted standard deviation and its median, it identifies potential overbought and oversold conditions, generating buy and sell signals based on price interactions with the bands. The fill color between the bands visually reflects the current signal, enhancing market sentiment analysis.
How it Works
VWAP Calculation: Computes the Volume-Weighted Average Price over a specific lookback period (n), emphasizing price levels with higher volume.
Volume Weighted Standard Deviation: Measures price dispersion around the VWAP, weighted by volume, over the same period.
Median Standard Deviation: Applies a median filter over (m) periods to smooth the stand deviation, reducing noise in volatility estimates.
Bands: Constructs upper and lower bands by adding and subtracting a multiplier (k) times the median standard deviation from the VWAP
Signals:
Buy Signal: Triggers when the closing price crosses above the upper band.
Sell Signal: Triggers when the closing price crosses below the lower band.
Inputs
Lookback (n): Number of periods for the VWAP and standard deviation calculations. Default is set to 14.
Median Standard Deviation (m): Periods for the median standard deviation. Default is set to 2.
Standard Deviation Multiplier (k): Multiplier to adjust band width. Default is set to 1.7 with a step of 0.1.
Customization
Increase the Lookback (n) for a smoother VWAP and broader perspective, or decrease the value for higher sensitivity.
Adjust Median Standard Deviation (m) to control the smoothness of the standard deviation filter.
Modify the multiplier (k) to widen or narrow the bands based on the market volatility preferences.
CBA Block Tops/Bottoms w/TableHow It Works
Separate Block Sizes & Pre-Calculations: • Two inputs let you set the TOP block size and the BOTTOM block size independently (default both 5). • The script pre-calculates the highest high over the TOP block and the lowest low over the BOTTOM block using ta.highest and ta.lowest.
Horizontal Line Customization: • Users can toggle each horizontal line on or off (via showTopLine and showBottomLine). • Colors, widths, and line styles (Solid, Dotted, or Dashed) for TOP and BOTTOM lines are customizable with separate inputs. • When a block ends, if the corresponding line is enabled, a horizontal line is drawn using the user‑selected parameters.
Array Storage and Averaging: • The script appends each block’s TOP value to the tops array and each BOTTOM value to the bottoms array, keeping their sizes to a maximum defined by the lookback (default 25). • A helper function, f_avg(), safely computes the average of the array values.
Table Display: • A table is created with three columns: an index column (with fixed labels “Active”, “Prev”, “Prev-2”, “Prev-3”, “Prev-4”, “Avg”), a TOP column, and a BOTTOM column. • The first five rows display the most recent TOP and BOTTOM signals (“Active” being the most recent), and the final row shows the average values.
This code gives you full control over both the TOP and BOTTOM block calculations and the appearance of their horizontal lines, all while presenting the data in an informative table.
Daily Standard Deviation (fadi)The Daily Standard Deviation indicator uses standard deviation to map out daily price movements. Standard deviation measures how much prices stray from their average—small values mean steady trends, large ones mean wild swings. Drawing from up to 20 years of data, it plots key levels using customizable Fibonacci lines tied to that standard deviation, giving traders a snapshot of typical price behavior.
These levels align with a bell curve: about 68% of price moves stay within 1 standard deviation, 95% within roughly 2, and 99.7% within roughly 3. When prices break past the 1 StDev line, they’re outliers—only 32% of moves go that far. Prices often snap back to these lines or the average, though the reversal might not happen the same day.
How Traders Use It
If prices surge past the 1 StDev line, traders might wait for momentum to fade, then trade the pullback to that line or the average, setting a target and stop.
If prices dip below, they might buy, anticipating a bounce—sometimes a day or two later. It’s a tool to spot overstretched prices likely to revert and/or measure the odds of continuation.
Settings
Open Hour: Sets the trading day’s start (default: 18:00 EST).
Show Levels for the Last X Days: Displays levels for the specified number of days.
Based on X Period: Number of days to calculate standard deviation (e.g., 20 years ≈ 5,040 days). Larger periods smooth out daily level changes.
Mirror Levels on the Other Side: Plots symmetric positive and negative levels around the average.
Fibonacci Levels Settings: Defines which levels and line styles to show. With mirroring, negative values aren’t needed.
Overrides: Lets advanced users input custom standard deviations for specific tickers (e.g., NQ1! at 0.01296).
Consolidation Zones [ActiveQuants]The Consolidation Zones indicator is an innovative tool designed to help traders pinpoint periods of low volatility and market balance . By dynamically plotting zones where price action remains confined within an ATR-defined range around a simple moving average (SMA), this indicator highlights periods of consolidation that often precede breakouts or reversals .
█ KEY FEATURES
Dynamic Zone Detection : Automatically identifies consolidation zones when the price remains within a tight range defined by the SMA and ATR over a specified number of bars, signaling balanced market conditions.
Customizable Parameters : Adjust key inputs such as Minimum Zone Length , ATR Length , the number of bars to display, and zone color, enabling you to tailor the indicator to various market conditions and trading styles.
Automated Zone Management : Efficiently plots consolidation zones and cleans up older ones to maintain a clear and focused chart, ensuring you always have an up-to-date view of recent market behavior.
Enhanced Market Analysis : By visualizing areas of price stability, the indicator aids in spotting potential breakout or reversal points, which can be critical for fine-tuning entry and exit strategies.
█ CONCLUSION
The Consolidation Zones indicator is an essential tool for traders who value volatility analysis and precision timing. By marking key periods of price consolidation, it enhances your market analysis, helping you anticipate potential moves and refine your trading strategy.
█ IMPORTANT
⚠ Consolidation signals should be used alongside other technical indicators or analysis techniques such as trend lines, support/resistance levels, or volume to confirm trading decisions.
⚠ Adjust the indicator’s settings based on your preferred timeframe and asset class to achieve the best results.
█ RISK DISCLAIMER
Trading involves significant risk, and you may lose capital. Past performance is not indicative of future results. This tool provides informational signals only and does not constitute financial advice. Use it at your own risk and consult a qualified financial professional before making trading decisions.
Incorporate this indicator into your trading workflow to improve market timing and optimize your entry and exit strategies.
📈 Happy trading! 🚀
[GrandAlgo] Liquidity Pivot Cloud - LPCLiquidity Pivot Cloud (LPC) is a visualization tool that extends all pivot levels to the right, creating a structured liquidity map across the chart. Instead of treating pivot points as static levels, LPC transforms them into a dynamic cloud, highlighting key areas where price has historically reacted.
Key Features:
Extended Pivot Levels – Automatically stretches all pivot highs and lows, forming a continuous liquidity zone.
Clear Structure – Provides an organized view of price action, making it easy to identify reaction zones.
Dynamic Liquidity Map – Helps traders spot potential liquidity sweeps and areas of price absorption.
How to Use:
Identify Liquidity Zones – Areas with multiple overlapping pivots signal strong liquidity pools.
Look for Reactions – Price often consolidates, wicks, or reverses around extended pivot clouds.
Combine with Confluence – Use alongside Fair Value Gaps, Institutional Price Blocks, or Market Structure shifts for higher probability setups.
LPC aligns with smart money concepts by revealing key liquidity areas where stop hunts, liquidity grabs, and institutional activity are likely to occur. It helps traders see where price is likely to be drawn before a major move, making it a valuable tool for those trading liquidity-based strategies.
Auto Fib Retracement with Buy/SellKey Features of the Advanced Script:
Multi-Timeframe (MTF) Analysis:
We added an input for the higher timeframe (higher_tf), where the trend is checked on a higher timeframe to confirm the primary trend direction.
Complex Trend Detection:
The trend is determined not only by the current timeframe but also by the trend on the higher timeframe, giving a more comprehensive and reliable signal.
Dynamic Fibonacci Levels:
Fibonacci lines are plotted dynamically, extending them based on price movement, with the Fibonacci retracement drawn only when a trend is identified.
Background Color & Labels:
A background color is added to give a clear indication of the trend direction. Green for uptrend, red for downtrend. It makes it visually easier to understand the current market structure.
"Buy" or "Sell" labels are shown directly on the chart to mark possible entry points.
Strategy and Backtesting:
The script includes strategy commands (strategy.entry and strategy.exit), which allow for backtesting the strategy in TradingView.
Stop loss and take profit conditions are added (loss=100, profit=200), which can be adjusted according to your preferences.
Next Steps:
Test with different timeframes: Try changing the higher_tf to different timeframes (like "60" or "240") and see how it affects the trend detection.
Adjust Fibonacci settings: Modify how the Fibonacci levels are calculated or add more Fibonacci levels like 38.2%, 61.8%, etc.
Optimize Strategy Parameters: Fine-tune the entry/exit logic by adjusting stop loss, take profit, and other strategy parameters.
This should give you a robust foundation for creating advanced trend detection strategies
[3Commas] Turtle StrategyTurtle Strategy
🔷 What it does: This indicator implements a modernized version of the Turtle Trading Strategy, designed for trend-following and automated trading with webhook integration. It identifies breakout opportunities using Donchian channels, providing entry and exit signals.
Channel 1: Detects short-term breakouts using the highest highs and lowest lows over a set period (default 20).
Channel 2: Acts as a confirmation filter by applying an offset to the same period, reducing false signals.
Exit Channel: Functions as a dynamic stop-loss (wait for candle close), adjusting based on market structure (default 10 periods).
Additionally, traders can enable a fixed Take Profit level, ensuring a systematic approach to profit-taking.
🔷 Who is it for:
Trend Traders: Those looking to capture long-term market moves.
Bot Users: Traders seeking to automate entries and exits with bot integration.
Rule-Based Traders: Operators who prefer a structured, systematic trading approach.
🔷 How does it work: The strategy generates buy and sell signals using a dual-channel confirmation system.
Long Entry: A buy signal is generated when the close price crosses above the previous high of Channel 1 and is confirmed by Channel 2.
Short Entry: A sell signal occurs when the close price falls below the previous low of Channel 1, with confirmation from Channel 2.
Exit Management: The Exit Channel acts as a trailing stop, dynamically adjusting to price movements. To exit the trade, wait for a full bar close.
Optional Take Profit (%): Closes trades at a predefined %.
🔷 Why it’s unique:
Modern Adaptation: Updates the classic Turtle Trading Strategy, with the possibility of using a second channel with an offset to filter the signals.
Dynamic Risk Management: Utilizes a trailing Exit Channel to help protect gains as trades move favorably.
Bot Integration: Automates trade execution through direct JSON signal communication with your DCA Bots.
🔷 Considerations Before Using the Indicator:
Market & Timeframe: Best suited for trending markets; higher timeframes (e.g., H4, D1) are recommended to minimize noise.
Sideways Markets: In choppy conditions, breakouts may lead to false signals—consider using additional filters.
Backtesting & Demo Testing: It is crucial to thoroughly backtest the strategy and run it on a demo account before risking real capital.
Parameter Adjustments: Ensure that commissions, slippage, and position sizes are set accurately to reflect real trading conditions.
🔷 STRATEGY PROPERTIES
Symbol: BINANCE:ETHUSDT (Spot).
Timeframe: 4h.
Test Period: All historical data available.
Initial Capital: 10000 USDT.
Order Size per Trade: 1% of Capital, you can use a higher value e.g. 5%, be cautious that the Max Drawdown does not exceed 10%, as it would indicate a very risky trading approach.
Commission: Binance commission 0.1%, adjust according to the exchange being used, lower numbers will generate unrealistic results. By using low values e.g. 5%, it allows us to adapt over time and check the functioning of the strategy.
Slippage: 5 ticks, for pairs with low liquidity or very large orders, this number should be increased as the order may not be filled at the desired level.
Margin for Long and Short Positions: 100%.
Indicator Settings: Default Configuration.
Period Channel 1: 20.
Period Channel 2: 20.
Period Channel 2 Offset: 20.
Period Exit: 10.
Take Profit %: Disable.
Strategy: Long & Short.
🔷 STRATEGY RESULTS
⚠️Remember, past results do not guarantee future performance.
Net Profit: +516.87 USDT (+5.17%).
Max Drawdown: -100.28 USDT (-0.95%).
Total Closed Trades: 281.
Percent Profitable: 40.21%.
Profit Factor: 1.704.
Average Trade: +1.84 USDT (+1.80%).
Average # Bars in Trades: 29.
🔷 How to Use It:
🔸 Adjust Settings:
Select your asset and timeframe suited for trend trading.
Adjust the periods for Channel 1, Channel 2, and the Exit Channel to align with the asset’s historical behavior. You can visualize these channels by going to the Style tab and enabling them.
For example, if you set Channel 2 to 40 with an offset of 40, signals will take longer to appear but will aim for a more defined trend.
Experiment with different values, a possible exit configuration is using 20 as well. Compare the results and adjust accordingly.
Enable the Take Profit (%) option if needed.
🔸Results Review:
It is important to check the Max Drawdown. This value should ideally not exceed 10% of your capital. Consider adjusting the trade size to ensure this threshold is not surpassed.
Remember to include the correct values for commission and slippage according to the symbol and exchange where you are conducting the tests. Otherwise, the results will not be realistic.
If you are satisfied with the results, you may consider automating your trades. However, it is strongly recommended to use a small amount of capital or a demo account to test proper execution before committing real funds.
🔸Create alerts to trigger the DCA Bot:
Verify Messages: Ensure the message matches the one specified by the DCA Bot.
Multi-Pair Configuration: For multi-pair setups, enable the option to add the symbol in the correct format.
Signal Settings: Enable the option to receive long or short signals (Entry | TP | SL), copy and paste the messages for the DCA Bots configured.
Alert Setup:
When creating an alert, set the condition to the indicator and choose "alert() function call only".
Enter any desired Alert Name.
Open the Notifications tab, enable Webhook URL, and paste the Webhook URL.
For more details, refer to the section: "How to use TradingView Custom Signals".
Finalize Alerts: Click Create, you're done! Alerts will now be sent automatically in the correct format.
🔷 INDICATOR SETTINGS
Period Channel 1: Period of highs and lows to trigger signals
Period Channel 2: Period of highs and lows to filter signals
Offset: Move Channel 2 to the right x bars to try to filter out the favorable signals.
Period Exit: It is the period of the Donchian channel that is used as trailing for the exits.
Strategy: Order Type direction in which trades are executed.
Take Profit %: When activated, the entered value will be used as the Take Profit in percentage from the entry price level.
Use Custom Test Period: When enabled signals only works in the selected time window. If disabled it will use all historical data available on the chart.
Test Start and End: Once the Custom Test Period is enabled, here you select the start and end date that you want to analyze.
Check Messages: Check Messages: Enable this option to review the messages that will be sent to the bot.
Entry | TP | SL: Enable this options to send Buy Entry, Take Profit (TP), and Stop Loss (SL) signals.
Deal Entry and Deal Exit: Copy and paste the message for the deal start signal and close order at Market Price of the DCA Bot. This is the message that will be sent with the alert to the Bot, you must verify that it is the same as the bot so that it can process properly.
DCA Bot Multi-Pair: You must activate it if you want to use the signals in a DCA Bot Multi-pair in the text box you must enter (using the correct format) the symbol in which you are creating the alert, you can check the format of each symbol when you create the bot.
👨🏻💻💭 We hope this tool helps enhance your trading. Your feedback is invaluable, so feel free to share any suggestions for improvements or new features you'd like to see implemented.
__
The information and publications within the 3Commas TradingView account are not meant to be and do not constitute financial, investment, trading, or other types of advice or recommendations supplied or endorsed by 3Commas and any of the parties acting on behalf of 3Commas, including its employees, contractors, ambassadors, etc.
Acceleration Bands HTF
This version gives you the ability to see the indicator from the HIGHER timeframes when you are on the timeframes. Please note that this is not the original formula, but a factored one that I found effective for identifying market trends. Thanks to @capissimo who provided the base open-code.
Acceleration Bands are designed to capture potential price breakouts or reversals in an asset. They are calculated based on a stock's price movements over a specified period, typically using the high, low, and closing prices. The idea is to identify moments when the price is accelerating (hence the name) beyond its normal range, which might indicate the beginning of a new trend.
Calculation
Acceleration Bands consist of three lines:
Upper Band (AB Upper): This is calculated by adding a certain percentage of the simple moving average (SMA) to the highest high over a given period.
Middle Band: This is typically the SMA of the stock's price.
Lower Band (AB Lower): This is calculated by subtracting the same percentage of the SMA from the lowest low over a given period.
Mathematically :
AB Upper = SMA + (Highest High * Percentage)
AB Lower = SMA - (Lowest Low * Percentage)
OR
Upper Band = SMA x (1 + (High - Low) / SMA)
Lower Band = SMA x (1 - (High - Low) / SMA)
Interpretation
The bands are used to identify periods when the price of a security is accelerating or decelerating:
Breakout Above Upper Band: This is usually considered a bullish signal, suggesting that the price is accelerating upwards and a new uptrend may be starting.
Breakdown Below Lower Band: This is usually considered a bearish signal, suggesting that the price is accelerating downwards and a new downtrend may be starting.
Reversal Between Bands: When the price re-enters the region between the bands after breaking out, it can be seen as a potential reversal signal.
Trading Strategy
Entry Signals:
Buy when the price breaks above the upper band.
Sell or short when the price breaks below the lower band.
Exit Signals:
Close a long position when the price falls back into the area between the bands.
Close a short position when the price rises back into the area between the bands.
Advantages
Helps capture early trends.
Can be used across various time frames and assets.
Provides clear entry and exit signals.
Opening Range BoxIndicator Name: Opening Range Box with Extensions
Author: YanivBull
Description:
The Opening Range Box with Extensions is a powerful tool designed to visualize the trading range established during the first 30 minutes of a market session, a critical period for setting the day's trend. This indicator plots a box representing the high and low prices formed within this opening range, with dashed extension lines projecting these levels forward throughout the session.
Its primary purpose is to identify the boundaries of the initial trend at the start of trading. When these boundaries are breached, it serves as a trigger for potential trading opportunities: a breakout above the box high signals a possible long entry, while a breakdown below the box low indicates a potential short entry. The indicator also includes historical boxes for up to 5 previous days (configurable), allowing traders to analyze past opening ranges and their extensions for context and pattern recognition.
Key Features:
Customizable session start time (hour and minute) to adapt to various markets (e.g., NYSE, DAX, etc.).
Displays the current session's opening range box in blue and historical boxes in gray.
Plots dashed extension lines from the high and low of each box, limited to 500 bars or the end of the trading day.
Adjustable number of historical days (1-20, default 5).
Usage:
Set the Session Start Hour and Session Start Minute according to your market's opening time (relative to your chart's timezone, e.g., UTC+2). Watch for price action around the box boundaries—breakouts above the high or below the low can be used as signals for initiating long or short trades, respectively. Combine with other technical analysis tools for confirmation.
This indicator is ideal for day traders looking to capitalize on early session momentum and breakout strategies.
Oracle Fear and GreedCustom Fear and Greed Oscillator with Movement Table
This indicator provides a unique perspective on market sentiment by calculating a custom fear/greed oscillator based on Heikin-Ashi candles. The oscillator is centered at 50, with values above 50 suggesting bullish sentiment ("greed") and below 50 indicating bearish sentiment ("fear"). The calculation incorporates candle body size, range, and a custom "candle strength" measure, providing an innovative approach to understanding market behavior.
Key Features:
Heikin-Ashi Based Oscillator:
Utilizes Heikin-Ashi candles to compute a custom oscillator. The value is centered at 50, with deviations indicating the prevailing market sentiment.
Dynamic Gradient Coloring:
The oscillator line is dynamically colored with a smooth gradient—from blue (representing fear) at lower values to pink (representing greed) at higher values—making it visually intuitive.
Horizontal Levels:
Two additional horizontal lines are drawn at 40.62 ("Bottom") and 60.74 ("Top"), which may serve as potential oversold and overbought boundaries respectively.
Fast Movement Metrics:
Every 5 bars, the indicator calculates the percentage change in the Heikin-Ashi close. This fast movement analysis distinguishes rapid downward moves (fast fear) from rapid upward moves (fast greed), helping to capture sudden market shifts.
Information Table:
A table in the top-right corner displays the most recent fast movement values for both fear and greed, offering quick insights into short-term market dynamics.
Usage Tips:
Adjust the smoothing period to match your preferred trading timeframe.
Use the oscillator alongside other analysis tools for more robust trading decisions.
Ideal for those looking to experiment with new approaches to sentiment analysis and momentum detection.
Disclaimer:
This indicator is intended for educational and experimental purposes. It should not be used as the sole basis for any trading decisions. Always combine with comprehensive market analysis and risk management strategies.
You can add this description when publishing your indicator on TradingView to help other users understand its features and intended use.
Bollinger Bands + EMA 200 + EMA 50This indicator combines three technical analysis tools: the Bollinger Bands (BB), and two Exponential Moving Averages (EMA) with periods of 200 and 50.
Bollinger Bands (BB): This indicator consists of three lines—the middle line being a simple moving average (SMA), and the upper and lower bands representing two standard deviations above and below the SMA. The width of the bands indicates market volatility, with wider bands signifying higher volatility and narrower bands indicating lower volatility.
Exponential Moving Averages (EMA 200 and EMA 50): The EMA is a type of moving average that gives more weight to recent prices, making it more responsive to price changes than the simple moving average. The EMA 200 is considered a long-term trend indicator, often used to identify the overall direction of the market. The EMA 50 is a medium-term trend indicator, helping to spot more immediate market trends. Crossovers between these two EMAs (such as when EMA 50 crosses above EMA 200) are commonly used as buy or sell signals, with the idea that a short-term trend shift is occurring.
By combining these three indicators, this custom Pine Script aims to give a comprehensive view of the market conditions, helping traders to understand both the volatility (via BB), the long-term market trend (via EMA 200), and the medium-term trend (via EMA 50). The interaction between the price and these indicators, along with crossovers, can be used to identify potential entry and exit points.
EMA Cross CounterEMA Cross Counter – Trend & Crossover Analyzer
🔥 Description
The EMA Cross Counter is an advanced indicator designed to detect price crossovers with the EMA 200 and provide insightful trend analysis. It highlights valid signals and displays success statistics directly on the chart.
🎯 Key Features
✅ Crossover Detection: Identifies moments when the price crosses the EMA 200 upward or downward.
✅ Signal Filtering: Valid signals (leading to sustained trends) are shown in blue, while invalid signals are faded.
✅ Performance Analysis: A statistics table shows the number of crossovers and their success rate.
✅ Dynamic EMA Coloring:
🟢 Green when the trend is bullish
🔴 Red when the trend is bearish
⚪ Gray when the market is in a range
✅ Range Detection: If the price remains within a narrow range for 30 candles, the EMA turns gray to indicate trend uncertainty.
✅ Stop-Loss (SL) Display: A dashed red line appears below sell signals and above buy signals (adjustable in pips).
✅ Automatic Alerts: Get notified when a significant crossover occurs.
📈 How to Use It?
1️⃣ Look for blue signals as potential trade entries.
2️⃣ Avoid trading when the EMA is gray (ranging market).
3️⃣ Use success rate statistics to evaluate crossover reliability.
4️⃣ Adjust SL distance in the settings to match your risk management strategy.
🛠 Customization Options
Adjustable EMA period
Configurable range threshold
SL distance customizable in pips
Enable/Disable alerts
💡 Ideal for scalping and swing trading, this indicator offers clear trend insights to enhance your decision-making process!
💬 Try it out and share your feedback! 🚀
Dual Bollinger Bands (20 & 200)Dual Bollinger Bands (20 & 200) - Enhanced Trading Strategy
Overview
The Dual Bollinger Bands (20 & 200) indicator is an enhanced version of the Double Bollinger Bands by Alixnet. This advanced tool integrates two sets of Bollinger Bands with 20-period (short-term) and 200-period (long-term) moving averages, helping traders identify market trends, volatility, and potential trade setups more effectively.
Key Features
✅ Two Bollinger Band Sets – Short-term (20-period) and Long-term (200-period).
✅ Enable/Disable Each BB – Customize visibility for better analysis.
✅ Multiple Standard Deviations – Identify different levels of volatility.
✅ Background Fill for Clarity – Highlights volatility zones.
How to Use This Indicator Effectively
1. Understanding the Two Bollinger Bands
BB1 (20-Period): Measures short-term price movements and volatility.
BB2 (200-Period): Acts as a long-term trend filter to determine the dominant trend.
2. Trade Entries & Exits
Bullish Trade Setup (Long Entry)
🔹 Price Above 200 MA Basis Line (BB2) – Confirms an uptrend.
🔹 Price Pulls Back to the Lower Band of BB1 (20 MA) – Ideal buy opportunity.
🔹 Confirmation: If price bounces off the lower BB1 band and moves back toward the midline or upper band, enter a long position.
🔹 Exit: When price touches or exceeds the upper BB1 band.
Bearish Trade Setup (Short Entry)
🔹 Price Below 200 MA Basis Line (BB2) – Confirms a downtrend.
🔹 Price Pulls Back to the Upper Band of BB1 (20 MA) – Ideal short opportunity.
🔹 Confirmation: If price gets rejected at the upper BB1 band and moves downward, enter a short position.
🔹 Exit: When price reaches or drops below the lower BB1 band.
3. Avoiding Sideways Markets
❌ Avoid trading when price stays between the two bands of BB1 without breaking out.
❌ Flat 200 MA Line (BB2 Basis) indicates a ranging market – best to wait for a breakout.
✅ Wait for Price to Cross the 200 MA Basis Line to confirm trend direction before entering trades.
4. Catching Trending Moves
✅ Strong Trend Confirmation: When price stays above or below the 20-period BB bands and also above/below the 200-period MA.
✅ Trend Continuation: If price consolidates near the upper or lower bands without breaking opposite levels.
✅ Breakout Confirmation: Look for a candle close outside BB1 bands with momentum to confirm strong moves.
Final Thoughts
The Dual Bollinger Bands (20 & 200) indicator is a powerful tool for both short-term traders and long-term investors. By combining the short-term volatility of the 20-period BB with the long-term trend of the 200-period BB, traders can make more informed trading decisions, filter out noise, and capture high-probability trade setups.
Consecutive Close Tracker (CCT)Consecutive Close Tracker (CCT) Indicator
The Consecutive Close Tracker (CCT) is a powerful momentum and breakout detection tool designed to identify consecutive bullish and bearish closes, potential reversals, and breakout points. By tracking consecutive candle closes and plotting key levels, this indicator provides traders with visual cues to recognize trend continuations, reversals, and breakout opportunities effectively.
🔹 Key Features of CCT
1️⃣ Consecutive Move Lines (Green/Red/Yellow Lines)
Tracks three consecutive bullish or bearish closes.
If the fourth candle confirms the trend, a green line (bullish) or red line (bearish) is drawn.
If the fourth candle fails to confirm, a yellow line is drawn, signaling potential indecision.
Helps traders spot trend continuations and exhaustion points.
2️⃣ Reversal Detection Lines (Cyan & Light Red)
Identifies bullish and bearish reversals based on three higher/lower closes followed by a reversal.
A cyan line indicates a bullish reversal, while a light red line signals a bearish reversal.
Useful for traders looking for trend reversals and key turning points.
3️⃣ Breakout Line (Dynamic Resistance/Support Level)
Automatically calculates a breakout level based on the previous timeframe’s open and close.
Can be customized to use different timeframes (e.g., hourly, daily, weekly).
Acts as a dynamic resistance or support level, helping traders determine breakout opportunities.
🔍 How to Use the Indicator?
✅ 1. Spotting Trend Continuations with Consecutive Move Lines
Green Line: Three consecutive bullish closes followed by a fourth higher close.
🚀 Indicates strong buying pressure & potential uptrend continuation.
Red Line: Three consecutive bearish closes followed by a fourth lower close.
📉 Indicates strong selling pressure & potential downtrend continuation.
Yellow Line: Three consecutive closes, but the fourth candle fails to confirm.
⚠️ Signals possible indecision or trend exhaustion.
🔥 Best Strategy:
If a green line appears near support, consider long entries.
If a red line appears near resistance, consider short entries.
If a yellow line appears, wait for further confirmation before entering a trade.
✅ 2. Identifying Trend Reversals with Reversal Lines
Cyan Line: A bearish trend with three consecutive lower closes, followed by a bullish candle → Possible uptrend reversal.
Light Red Line: A bullish trend with three consecutive higher closes, followed by a bearish candle → Possible downtrend reversal.
🔥 Best Strategy:
If a cyan line appears near a major support level, look for long entry opportunities.
If a light red line appears near resistance, prepare for a potential short entry.
Use these lines in combination with candlestick patterns (e.g., bullish engulfing, pin bars) for confirmation.
✅ 3. Using the Breakout Line for Key Entry & Exit Points
The breakout line represents a key dynamic level (midpoint of the previous timeframe’s open & close).
If price breaks above the breakout line, it suggests bullish momentum → Consider long trades.
If price breaks below the breakout line, it suggests bearish momentum → Consider short trades.
🔥 Best Strategy:
Use the breakout line in combination with support & resistance levels.
When price approaches the breakout line, watch for confirmation candles before entering a trade.
The breakout line can also act as a stop-loss or take-profit level.
🎯 How to Utilize CCT Effectively?
✅ For Intraday Traders
Use the consecutive close tracker on a 5M or 15M chart to catch short-term trends.
Watch for reversal lines near major intraday support/resistance for quick scalping opportunities.
Use the breakout line from the hourly chart to identify potential trend shifts.
✅ For Swing Traders
Apply the indicator on 1H, 4H, or daily charts to track medium-term trends.
Look for green/red lines near key Fibonacci retracement or pivot levels.
Use reversal lines to detect early trend reversals before bigger moves occur.
✅ For Breakout Traders
Focus on the breakout line on higher timeframes (e.g., 1H, 4H, Daily) to identify strong momentum shifts.
If price crosses the breakout line with strong volume, enter trades with trend confirmation.
Place stop-loss just below the breakout level for controlled risk management.
🏆 Final Thoughts
The Consecutive Close Tracker (CCT) is a powerful momentum and reversal indicator that helps traders:
✅ Identify strong trend continuations (green/red lines).
✅ Detect early reversal points (cyan/light red lines).
✅ Use a dynamic breakout line for better trade entries & exits.
Whether you’re an intraday trader, swing trader, or breakout trader, this tool can enhance your market insights and improve your trading decisions. 📈🔥
🚀 Try it out, and integrate it with your strategy to maximize its potential! 🚀