Highlight All Bars Matching Today's Weekday Across ChartThis indicator highlights all bars on the chart that correspond to the same weekday as today. It is designed to help traders identify recurring patterns or behaviors that may appear consistently on specific weekdays.
By visually marking these repeating days, traders can more easily observe potential time-based market tendencies and enhance pattern recognition in their analysis.
Indicators and strategies
Smart Range Breakout - SwiftEdgeDescription:
The "Smart Range Breakout - SwiftEdge" indicator is a custom tool designed for identifying potential breakout opportunities on a 1-minute chart, with a focus on volatile markets like the DAX index. This script introduces a unique approach by combining range consolidation detection with volume confirmation and breakout validation, tailored for short-term trading strategies.
How It Works:
The indicator identifies consolidation periods where the price range (difference between the highest high and lowest low over a user-defined length) is below a multiple of the Average True Range (ATR). This helps detect periods of low volatility, which often precede breakouts.
Once a consolidation is confirmed (minimum number of bars), a green box is drawn on the chart, spanning a fixed length of bars (default 50), representing the potential breakout zone.
Breakouts are signaled only when a candle opens above the upper boundary (box top) or below the lower boundary (box bottom) of the consolidation box, ensuring a clear entry point based on price action at the open.
The script includes a volume filter, requiring volume to exceed a moving average by a specified multiplier, and a confirmation period to validate the breakout over consecutive bars.
To avoid signal clutter, only one breakout signal (up or down) is generated per box, and no further signals are issued until a new consolidation box is formed.
How to Use:
Apply the indicator to a 1-minute chart (optimized for DAX or similar volatile indices).
Adjust the "Consolidation Length" (default 5) to set the lookback period for detecting consolidation.
Modify the "Range Threshold (ATR Multiplier)" (default 2.0) to make the consolidation detection more or less strict based on market volatility.
Use "Minimum Consolidation Bars" (default 2) to set the minimum duration of a consolidation phase.
Tune "Confirmation Bars" (default 1) to require more bars to confirm the breakout.
Set "Volume MA Length" (default 5) and "Volume Multiplier" (default 1.1) to filter breakouts with insufficient volume.
Adjust "Max Box Length" (default 50) to control the duration of the breakout zone on the chart.
Look for green triangles below the chart for bullish breakouts and red triangles above for bearish breakouts, occurring when a candle opens outside the box with confirmed volume.
Originality:
This script stands out by integrating a fixed-length consolidation box with an opening-price breakout condition, combined with volume and multi-bar confirmation. Unlike traditional breakout indicators that rely solely on closing prices or simple price thresholds, this approach prioritizes the opening price and limits signals to one per cycle, reducing noise in volatile markets.
Chart Notes:
The accompanying chart displays the indicator's output with green boxes indicating consolidation zones, yellow dots marking consolidation periods, and green/red triangles for breakout signals. No additional scripts or unrelated drawings are included to ensure clarity.
Normalized Equity/Bond RatioThis indicator calculates a normalized equity-to-bond ratio over a 252-day lookback (~1 trading year) to assess risk-on vs. risk-off sentiment. It addresses the issue of direct ratios (e.g., SPY/TLT) being visually dominated by high nominal stock prices, which can obscure bond price movements.
A rising ratio indicates equities are outperforming bonds, suggesting risk-on conditions, while a declining ratio signals a shift toward bonds, often associated with risk-off behavior. The normalization ensures better visibility and comparability of the trend over time.
A ratio > 1 means the equity (e.g., SPY) is outperforming the bond (e.g., AGG) since the lookback. A ratio < 1 means bonds are outperforming.
Renz-GPT IndicatorThe Renz-GPT Indicator is a powerful, all-in-one trading tool designed to simplify decision-making and improve trade accuracy using a combination of trend, momentum, and volume analysis.
🔍 How It Works
Trend Detection:
Uses two EMAs (Exponential Moving Averages) to identify the current market trend.
A higher timeframe EMA acts as a trend filter to align trades with the larger market trend.
Momentum Confirmation:
RSI (Relative Strength Index) confirms the momentum strength.
Only takes trades when the momentum aligns with the trend.
Volume Confirmation:
Uses On-Balance Volume (OBV) to verify if volume supports the trend direction.
Signal Calculation:
Combines trend, momentum, and volume signals to create a high-probability trade setup.
Filters out weak signals to avoid false trades.
Entry, Stop Loss & Take Profit:
Displays clear LONG and SHORT markers on the chart.
Automatically calculates and displays Stop Loss and Take Profit levels based on ATR (Average True Range).
Alerts:
Sends real-time alerts when a valid buy or sell signal occurs.
Alerts include entry price, stop loss, and take profit levels.
NIFTY VWAP DistanceNIFTY Futures VWAP Distance Indicator
Track price deviation from Volume-Weighted Average Price in real-time
📈 Key Features:
Measures absolute (points) and percentage distance from VWAP
Daily session reset aligned with NSE trading hours
Dual-axis visualization with clear zero reference line
Real-time data table display for instant analysis
Typical price calculation: (H+L+C)/3 formula
Built-in safeguards against division errors
🎯 Ideal For:
Intraday traders monitoring mean reversion opportunities
Algorithmic traders needing VWAP deviation metrics
Swing traders identifying overextended price moves
Market profile analysts studying auction theory
📊 How to Use:
Apply to NIFTY Futures chart (1m-1h timeframes recommended)
Blue line = Points above/below VWAP
Red line = Percentage deviation
Positive values = Price > VWAP (bullish territory)
Negative values = Price < VWAP (bearish territory)
💡 Pro Tips:
Combine with volume profile for confirmation
Watch for >1% deviations for potential reversals
Use divergence patterns for early trend change signals
Works best with raw futures data (not continuous contracts)
🔧 Technical Specs:
Pine Script v5+
No repainting
Low latency calculations
Mobile-friendly display
"Know when price strays too far from fair value"
Key Levels by MoneyTribe21This custom script provides real-time tracking of key market price levels, helping traders identify critical support and resistance zones. It dynamically updates throughout the trading session, making it ideal for intraday trading, breakout strategies, and market structure analysis.
Features:
Real-Time Tracking of Key Price Levels:
ATH (All-Time High): Tracks the highest price ever reached for the asset.
PDH (Previous Day High): Marks the high of the last trading day,
PDL (Previous Day Low): Marks the low of the last trading day, serving as dynamic support.
Resistance Level: Based on the current day’s high, signaling potential price rejection points.
Support Level: Based on the current day’s low, indicating potential price bounces.
Daily Open Price: Tracks the exact market open price at the start of the trading session.
Works Across All Timeframes:
Designed for intraday, swing, and long-term trading.
Automatically adjusts levels for Forex, Stocks, Crypto, and Indices.
Fully Customizable Settings:
Modify line colors, thickness, and styles for better chart readability.
Enable/disable specific levels based on trading preference.
Works on all TradingView-compatible brokers and platforms.
How to Use This Indicator:
Breakout & Reversal Trading:
If price breaks above PDH, it may indicate bullish momentum.
If price breaks below PDL, it may signal a bearish continuation.
ATH levels can act as strong resistance zones—watch for breakouts or rejection.
Dynamic Support & Resistance:
Resistance Level (Current Day High): If price fails to break, it may signal a reversal.
Support Level (Current Day Low): If price bounces off, it may confirm a strong uptrend.
Daily Open for Trend Confirmation:
Above Daily Open: Market sentiment is bullish.
Below Daily Open: Market sentiment is bearish.
Customization Options:
Toggle individual price levels ON/OFF for a clutter-free chart.
Customize colors, line styles, and alerts for better visualization.
Set alerts for breakouts & retests of key levels.
Ideal for Traders Who:
Want high-probability support & resistance zones in real-time.
Trade breakouts, reversals, or trend continuations.
Use market structure analysis for informed decision-making.
Need automatic price tracking instead of drawing levels manually.
Compatible with all TradingView timeframes & assets (Forex, Stocks, Crypto, Indices).
Designed for both beginner and advanced traders.
Add this indicator to your chart and start tracking key levels instantly.
Moving Averages By MoneyTribe21This custom indicator displays three Smoothed Moving Averages (SMAs) designed to help traders identify market trends, potential reversals, and key support/resistance levels. It is ideal for trend-following strategies, momentum trading, and confirming price direction in various timeframes.
Three Smoothed Moving Averages to track short-term, mid-term, and long-term trends:
21-Day SMA: Captures short-term price momentum and trend direction.
50-Day SMA: Represents the mid-term trend, often used as dynamic support/resistance.
200-Day SMA: The long-term trend filter, commonly watched by institutional traders.
Fully Customizable Settings
Adjust period length for each SMA to fit your strategy.
Modify line colors, thickness, and styles for better visibility.
Enable/disable specific SMAs based on preference.
Works Across All Markets
Compatible with Forex, Stocks, Commodities, Crypto, and Indices.
Supports multiple timeframes (1M, 5M, 1H, Daily, Weekly, etc.)
Multi-Timeframe RPM Gauges with Custom Timeframes by DiGetIntroducing the **Multi-Timeframe RPM Gauges with Custom Timeframes + RSI Combos (mod) by DiGet** – a cutting-edge TradingView indicator meticulously crafted to revolutionize your market analysis.
Imagine having a dynamic dashboard right on your chart that consolidates the power of nine essential technical indicators—RSI, CCI, Stochastic, Williams %R, EMA crossover, Bollinger Bands, ATR, MACD, and Ichimoku Cloud—across multiple timeframes. This indicator not only displays each indicator’s score through an intuitive gauge system but also computes a combined metric to provide you with an at-a-glance understanding of market momentum and potential trend shifts.
**Key Features:**
- **Multi-Timeframe Insight:**
Configure up to four custom timeframes (e.g., 1, 5, 15, 60 minutes) to capture both short-term fluctuations and long-term trends, ensuring you never miss critical market moves.
- **Comprehensive Signal Suite:**
Benefit from a harmonious blend of signals. Whether you rely on momentum indicators like RSI and CCI, volatility measures like Bollinger Bands and ATR, or trend confirmations via EMA, MACD, and Ichimoku, every metric is normalized into actionable percentages.
- **Dynamic, Color-Coded Gauge Display:**
A built-in table presents all your data in a clear, color-coded format—green for bullish, red for bearish, and gray for neutral conditions. This visual representation allows you to quickly gauge market sentiment without sifting through complex charts.
- **Customizable Layout:**
Tailor your experience by toggling individual table columns. Whether you want to focus solely on RSI or dive deep into combined metrics like RSI & CCI or RSI & MACD, the choice is yours.
- **Optimized Utility Functions:**
Proprietary functions standardize indicator values into percentage scores, making it simpler than ever to compare different signals and spot opportunities in real time.
- **User-Friendly Interface:**
Designed for both beginners and seasoned traders, the straightforward input settings let you easily adjust technical parameters and timeframes to suit your personal trading strategy.
This indicator is not just a tool—it’s your new trading companion. It equips you with a multi-dimensional view of the market, enabling faster, more informed decision-making. Whether you’re scanning across various assets or drilling down on a single chart, the Multi-Timeframe RPM Gauges empower you to interpret market data with unprecedented clarity.
Add this indicator to your TradingView chart today and experience a smarter, more efficient way to navigate the markets. Join the community of traders who have elevated their analysis—and be ready to receive countless thanks as you transform your trading strategy!
5-Min First Candle Breakout/BreakdownAwesome! Here's a basic Pine Script (v5) for a First 5-minute candle breakout/breakdown strategy with Buy/Sell signals and price labels. This script works by capturing the high and low of the first candle of the session and then showing signals when those levels are broken.
You can customize it further for Entry, Stop Loss, Target, etc., but this gives you the foundation with labels for buys/sells based on breakout/breakdown.
CCT Pi Cycle Top/BottomPi Cycle Top/bottom: The Ultimate Market Cycle Indicator
Introduction
The Pi Cycle Top/bottom Indicator is one of the most reliable tools for identifying Bitcoin market cycle peaks and bottoms. Its effectiveness lies in the strategic combination of moving averages that historically align with major market cycle reversals. Unlike traditional moving average crossovers, this indicator applies an advanced iterative approach to pinpoint price extremes with higher accuracy.
This version, built entirely with Pine Script™ v6, introduces unprecedented precision in detecting both the Pi Cycle Top and Pi Cycle Bottom, eliminating redundant labels, optimizing visual clarity, and ensuring the indicator adapts dynamically to evolving market conditions.
What is the Pi Cycle Theory?
The Pi Cycle Top and Pi Cycle Bottom were originally introduced based on a simple yet profound discovery: key moving average crossovers consistently align with macro market tops and bottoms.
Pi Cycle Top: The crossover of the 111-day Simple Moving Average (SMA) and the 350-day SMA multiplied by 2 has historically signaled market tops with astonishing accuracy.
Pi Cycle Bottom: The intersection of the 150-day Exponential Moving Average (EMA) and the 471-day SMA has repeatedly marked significant market bottoms.
While traditional moving average strategies often suffer from lag and false signals, the Pi Cycle Indicator enhances accuracy by applying a range-based scanning methodology, ensuring that only the most critical reversals are detected.
How This Indicator Works
Unlike basic moving average crossovers, this script introduces a unique iteration process to refine the detection of Pi Cycle points. Here’s how it works:
Detecting Crossovers:
Identifies the Golden Cross (bullish crossover) and Death Cross (bearish crossover) for both the Pi Cycle Top and Pi Cycle Bottom.
Iterating Through the Cycle:
Instead of plotting a simple crossover point, this script scans the range between each Golden and Death Cross to identify the absolute lowest price (Pi Cycle Bottom) and highest price (Pi Cycle Top) within that cycle.
Precision Labeling:
The indicator dynamically adjusts label positioning:
If the price at the crossover is below the fast moving average → the label is placed on the moving average with a downward pointer.
If the price is above the fast moving average → the label is placed below the candle with an upward pointer.
This ensures optimal visibility and prevents misleading signal placement.
Advanced Pine Script v6 Features:
Labels and moving average names are only shown on the last candle, reducing chart noise while maintaining clarity.
Offers full user customization, allowing traders to toggle:
Pi Cycle Top & Bottom visibility
Moving average labels
Crossover labels
Why This Indicator is Superior
This script is not just another moving average crossover tool—it is a market cycle tracker designed for long-term investors and analysts who seek:
✔ High-accuracy macro cycle identification
✔ Elimination of false signals using an iterative range-based scan
✔ Automatic detection of market extremes without manual adjustments
✔ Optimized visuals with smart label positioning
✔ First-of-its-kind implementation using Pine Script™ v6 capabilities
How to Use It?
Bull Market Tops:
When the Pi Cycle Top indicator flashes, consider the potential for a market cycle peak.
Historically, Bitcoin has corrected significantly after these signals.
Bear Market Bottoms:
When the Pi Cycle Bottom appears, it suggests a macro accumulation phase.
These signals have aligned perfectly with historical cycle bottoms.
Final Thoughts
The Pi Cycle Top/bottom Indicator is a must-have tool for traders, investors, and analysts looking to anticipate long-term trend reversals with precision. With its refined methodology, superior label positioning, and cutting-edge Pine Script™ v6 optimizations, this is the most reliable version ever created.
Personal Time Zone: Days of WeekThis is probably the simplest indicator I have ever made.
It just gives you a the days of weeks in your specified time zone and puts the day on the first bar in your time zone.
You can use UTC time format or named time zones like the default.
Just for fun I tried to give it symbols that sort of relate the old gods that the days of week were named after and even colors that one could argue match, but it was all in fun because it was so simple I felt I had to add something.
Enjoy.
RSI with Trend LinesThe RSI with Trend Lines indicator is a tool designed to analyze the behavior of the Relative Strength Index (RSI) combined with dynamic trend lines. This indicator not only provides the standard RSI reading but also identifies pivot points on the RSI and draws bullish and bearish trend lines based on these points. It also includes customizable options for adjusting trend lines, displaying the RSI moving average, and highlighting key levels such as overbought, oversold, and the center line.
This indicator is ideal for finding and identifying clear trends in the RSI and taking advantage of market breakout or consolidation signals. It also includes a table with the POC value, which represents the price level at which the most trading activity has occurred, indicating the highest liquidity and highest trading volume.
Key Features:
1. Basic RSI:
• Calculates the RSI using a configurable period length (default 14).
• Colors the RSI based on its direction (green for rising, red for falling) and its position relative to the center line (50).
2. Key Levels:
• Displays overbought (70 and 80), oversold (20 and 30), and the center line (50) levels for easy visual interpretation.
3. RSI Moving Average:
• Enables and configures an RSI moving average (SMA, EMA, WMA, or ALMA) to smooth out fluctuations and detect clearer trends.
4. Dynamic Trend Lines:
• Identifies pivot points on the RSI and draws bullish and bearish trend lines.
• Trend lines can be extended into the future or limited to the visible range.
• Includes options to display broken lines (trends that are no longer valid) and customize the style (solid or dashed).
5. Pivot Points:
• Displays the high and low pivot points on the chart for a better understanding of trend changes.
6. Advanced Customization:
• Adjust the pivot point period.
• Control the number of pivot points to consider for trend lines.
• Customize the line thickness and style.
How to Use the Indicator:
1. RSI Interpretation:
• Overbought Zone (RSI > 70): Indicates that the asset may be overvalued and could correct downward.
• Oversold Zone (RSI < 30): Suggests that the asset may be undervalued and could rebound.
• Centerline Crossover (50): A cross above 50 indicates bullish strength, while a cross below suggests weakness.
2. Trend Lines:
• Bullish Lines: Drawn when the RSI forms ascending low pivot points. These lines represent dynamic support.
• Bearish Lines: These are drawn when the RSI forms descending high pivot points. These lines represent dynamic resistance.
• Broken Lines: When a trend line becomes invalid (the RSI breaks the line), they are displayed in a dotted style to highlight the breakout.
3. Possible Trading Signals:
• Buy: When the RSI breaks an upward downtrend line.
• Sell: When the RSI breaks a downward uptrend line.
• Trend Confirmation: When the RSI stays within a valid trend line, it suggests that the current trend is strong.
4. A chart with the POC value:
• The point of control is a price level at which the highest trading volume occurs in a given time period. It is a key component of the Volume Profile indicator, which displays volume by price.
• Use of the POC in trading:
• The POC is used to identify areas of high interest and liquidity for trading.
• The POC provides information about the equilibrium point where buyers and sellers are most evenly matched.
• Therefore, it can be considered a zone of interest, meaning it can act as support or resistance.
Recency-Weighted Market Memory w/ Quantile-Based DriftRecency-Weighted Market Memory w/ Quantile-Based Drift
This indicator combines market memory, recency-weighted drift, quantile-based volatility analysis, momentum (RoC) filtering, and historical correlation checks to generate dynamic forecasts of possible future price levels. It calculates bullish and bearish forecast lines at each horizon, reflecting how the price might behave based on historical similarities.
Trading Concepts & Mathematical Foundations Explained
1) Market Memory
Concept:
Markets tend to repeat past behaviors under similar conditions. By identifying historical market states that closely match current conditions, we predict future price movements based on what happened historically.
Calculation Steps:
We select a historical lookback window (for example, 210 bars).
Each historical bar within this window is evaluated to see if its conditions match the current market. Conditions include:
Correlation between price change and bullish/bearish volume changes (over a user-defined correlation lookback period).
Momentum (Rate of Change, RoC) measured over a separate lookback period.
Only bars closely matching current conditions (within user-defined tolerance percentages) are included.
2) Recency-Weighted Drift
Concept:
Recent market movements often influence future direction. We assign more importance to recent bars to capture the current market bias effectively.
Calculation Steps:
Consider recent price changes between opens and closes for a user-defined drift lookback (for example, last 20 bars).
Give higher weight to recent bars (the most recent bar gets the highest weight, and weights decrease progressively for older bars).
Average these weighted changes separately for upward and downward movements, then combine these averages to calculate a final drift percentage relative to the current price.
3) Correlation Filtering
Concept:
Price changes often correlate strongly with bullish or bearish volume activity. By using historical correlation comparisons, we focus only on past market states with similar volume-price dynamics.
Calculation Steps:
Compute current correlations between price changes and bullish/bearish volume over the user-defined correlation lookback.
Evaluate each historical bar to see if its correlation closely matches the current correlation (within a user-specified percentage tolerance).
Only historical bars meeting this correlation criterion are selected.
4) Momentum (RoC) Filtering
Concept:
Two market periods may exhibit similar correlation structures but differ in how fast prices move (momentum). To ensure true similarity, momentum is checked as an additional filter.
Calculation Steps:
Compute the current Rate of Change (RoC) over the specified RoC lookback.
For each candidate historical bar, calculate its historical RoC.
Only include historical bars whose RoC closely matches the current RoC (within the RoC percentage tolerance).
5) Quantile-Based Volatility and Drift Amplification
Concept:
Quantiles (such as the 95th, 50th, and 5th percentiles) help gauge if current prices are near historical extremes or the median. Quantile bands measure volatility expansions and contractions.
Calculation Steps:
Calculate the 95%, 50%, and 5% quantiles of price over the quantile lookback period.
Add and subtract multiples of the standard deviation to these quantiles, creating upper and lower bands.
Measure the bands' widths relative to the current price as volatility indicators.
Determine the active quantile (95%, 50%, or 5%) based on proximity to the current price (within a percentage tolerance).
Compute the rate of change (RoC) of the active quantile to detect directional bias.
Combine volatility and quantile RoC into a scaling factor that amplifies or dampens expected price moves.
6) Expected Value (EV) Computation & Forecast Lines
Concept:
We forecast future prices based on how similarly-conditioned historical periods performed. We average historical moves to estimate the expected future price.
Calculation Steps:
For each forecast horizon (e.g., 1 to 27 bars ahead), collect all historical price moves that passed correlation and RoC filters.
Calculate average historical moves for bullish and bearish cases separately.
Adjust these averages by applying recency-weighted drift and quantile-based scaling.
Translate adjusted percentages into absolute future price forecasts.
Draw bullish and bearish forecast lines accordingly.
Indicator Inputs & Their Roles
Correlation Tolerance (%)
Adjusts how strictly the indicator matches historical correlation. Higher tolerance includes more matches, lower tolerance selects fewer but closer matches.
Price RoC Lookback and Price RoC Tolerance (%)
Controls how momentum (speed of price moves) is matched historically. Increasing tolerance broadens historical matches.
Drift Lookback (bars)
Determines the number of recent bars influencing current drift estimation.
Quantile Lookback Period and Std Dev Multipliers
Defines quantile calculation and the size of the volatility bands.
Quantile Contact Tolerance (%)
Sets how close the current price must be to a quantile for it to be considered "active."
Forecast Horizons
Specifies how many future bars to forecast.
Continuous Forecast Lines
Toggles between drawing continuous lines or separate horizontal segments for each forecast horizon.
Practical Trading Applications
Bullish & Bearish EV Lines
These forecast lines indicate expected price levels based on historical similarity. Green indicates positive expectations; red indicates negative.
Momentum vs. Mean Reversion
Wide quantile bands and high drift suggest momentum, while extremes may signal possible reversals.
Volatility Sensitivity
Forecasts adapt dynamically to market volatility. Broader bands increase forecasted price movements.
Filtering Non-Relevant Historical Data
By using both correlation and RoC filtering, irrelevant past periods are excluded, enhancing forecast reliability.
Multi-Timeframe Suitability
Adaptable parameters make this indicator suitable for different trading styles and timeframes.
Complementary Tool
This indicator provides probabilistic projections rather than direct buy or sell signals. Combine it with other trading signals and analyses for optimal results.
Important Considerations
While historically-informed forecasts are valuable, market behavior can evolve unpredictably. Always manage risks and use supplementary analysis.
Experiment extensively with input settings for your specific market and timeframe to optimize forecasting performance.
Summary
The Recency-Weighted Market Memory w/ Quantile-Based Drift indicator uniquely merges multiple sophisticated concepts, delivering dynamic, historically-informed price forecasts. By combining historical similarity, adaptive drift, momentum filtering, and quantile-driven volatility scaling, traders gain an insightful perspective on future price possibilities.
Feel free to experiment, explore, and enjoy this powerful addition to your trading toolkit!
Cumulative Weighted Change (Session) with 14 MAThis indicator provides the session weighted cumulative change of the Magnificent 7(AAPL META GOOG AMZN MSFT NVDA TSLA), it is weighted according to their market capitalization and size in relation to size of the market. The bar to bar current change is plotted by the fast line that begins its calculations at the start of each daily session, the smoother(slower) line is the 14 period Volume Weighted Moving Average of the cumulative change.
I use this in conjunction with a timeframe continuity indicator in order to weed out invalid signals, I have one that I have recently published. I use this to trade futures and index stock options, since the 7 tickers that this indicator is built off of are the biggest force that moves markets this ends up acting as an alpha indicator if you can find a consistent and reliable way to weed out false signals.
Happy Trading!
-Drgzzz
Grease Trap V1.0The Grease Trap V1.0 indicator is a dynamic, Fibonacci-based strategy that calculates unique moving averages to generate trading signals. Below is an overview of its main components and functionality:
How It Works
Fibonacci Grouped Averages:
Dynamic Fibonacci Sequence:
The indicator uses a custom function that dynamically builds a Fibonacci sequence. The user can set the number of Fibonacci elements for two separate calculations:
One for the Indicator Average (default: 9 elements).
One for the Base Average (default: 14 elements).
Grouped Averaging:
Using these Fibonacci numbers, the script groups historical closing prices into segments. For each group (with a length determined by a Fibonacci number), it computes an average. These individual group averages are then averaged together to produce a single dynamic average.
Plotting and Visual Cues:
Two Lines:
The indicator plots two lines on the chart:
Primary Dynamic Fibonacci Grouped Average
Base Dynamic Fibonacci Grouped Average
Color Coding:
The colors of these lines change based on their relationship to the current high price and to each other. For example, if the primary average is above the high or crosses above the base average, it might be shown in green or yellow, whereas certain conditions trigger red, signaling caution.
Crossover Dots:
When the primary average crosses above the base (a bullish signal), a green dot is plotted. Conversely, when it crosses below (a bearish signal), a red dot is displayed. These dots help visually pinpoint the moments of potential trade entry or exit.
Trading Signals and Orders:
Buy Signal:
Triggered when the primary average crosses above the base average. On a buy signal:
If in a short position, it closes that position.
Then, it enters a long position.
Sell Signal:
Triggered when the primary average crosses below the base average. On a sell signal:
If in a long position, it closes that position.
Then, it enters a short position.
Profit Target Management:
The indicator includes automated profit management:
For long positions, it sets an exit order when the price rises by a user-defined percentage (default: 2%).
For short positions, it sets an exit order when the price falls by a similar percentage.
Alerts:
The script is equipped with alert conditions. Traders receive notifications whenever a buy or sell signal is generated, helping them stay on top of potential trading opportunities.
Customization
User Inputs:
Traders can adjust:
The number of Fibonacci elements for each average calculation.
Profit target percentages for both long and short positions.
Data Length Requirement:
The script ensures it uses at least 200 data points (or the total number of available bars, whichever is greater) for a robust calculation of the averages.
In Summary
The Grease Trap V1.0 indicator combines the mathematical elegance of Fibonacci sequences with dynamic grouped averaging. It offers:
Innovative Moving Averages: Based on Fibonacci groupings of historical price data.
Clear Visual Cues: Through color-coded lines and crossover dots.
Automated Trading Actions: With built-in order management and profit targets.
Alert Notifications: So traders are instantly aware of key market signals.
This makes the Grease Trap V1.0 a comprehensive tool for both signal generation and automated strategy execution, suitable for traders looking to integrate Fibonacci principles into their trading systems.
Heiken Ashi Supertrend ATR-SL StrategyThis indicator combines Heikin Ashi candle pattern analysis with Supertrend to generate high-probability trading signals with built-in risk management. It identifies potential entries and exits based on specific Heikin Ashi candlestick formations while providing automated ATR-based stop loss management.
Trading Logic:
The system generates long signals when a green Heikin Ashi candle forms with no bottom wick (indicating strong bullish momentum). Short signals appear when a red Heikin Ashi candle forms with no top wick (showing strong bearish momentum). The absence of wicks on these candles signals a high-conviction market move in the respective direction.
Exit signals are triggered when:
1. An opposite pattern forms (red candle with no top wick exits longs; green candle with no bottom wick exits shorts)
2. The ATR-based stop loss is hit
3. The break-even stop is activated and then hit
Technical Approach:
- Select Heiken Ashi Canldes on your Trading View chart. Entried are based on HA prices.
- Supertrend and ATR-based stop losses use real price data (not HA values) for trend determination
- ATR-based stop losses automatically adjust to market volatility
- Break-even functionality moves the stop to entry price once price moves a specified ATR multiple in your favor
Risk Management:
- Default starting capital: 1000 units
- Default risk per trade: 10% of equity (customizable in strategy settings)
- Hard Stop Loss: Set ATR multiplier (default: 2.0) for automatic stop placement
- Break Even: Configure ATR threshold (default: 1.0) to activate break-even stops
- Appropriate position sizing relative to equity and stop distance
Customization Options:
- Supertrend Settings:
- Enable/disable Supertrend filtering (trade only in confirmed trend direction)
- Adjust Factor (default: 3.0) to change sensitivity
- Modify ATR Period (default: 10) to adapt to different timeframes
Visual Elements:
- Green triangles for long entries, blue triangles for short entries
- X-marks for exits and stop loss hits
- Color-coded position background (green for long, blue for short)
- Clearly visible stop loss lines (red for hard stop, white for break-even)
- Comprehensive position information label with entry price and stop details
Implementation Notes:
The indicator tracks positions internally and maintains state across bars to properly manage stop levels. All calculations use confirmed bars only, with no repainting or lookahead bias. The system is designed for swing trading on timeframes from 1-hour and above, where Heikin Ashi patterns tend to be more reliable.
This indicator is best suited for traders looking to combine the pattern recognition strengths of Heikin Ashi candles with the trend-following capabilities of Supertrend, all while maintaining disciplined risk management through automated stops.