[blackcat] L2 MTF Heikin-Ashi SR LevelsOVERVIEW
The L2 MTF Heikin-Ashi SR Levels indicator is a sophisticated tool designed to help traders identify critical support and resistance levels across multiple timeframes. This script employs Heikin-Ashi candles, which provide a smoothed representation of price action, making it easier to spot trends and reversals. By integrating multi-timeframe analysis, this indicator offers a comprehensive view of market dynamics, enabling traders to make more informed decisions 📊✅.
This indicator not only calculates essential support and resistance levels but also visually represents them on the chart with gradient colors based on Relative Strength Index (RSI) values. Additionally, it features customizable alerts and labels to enhance user experience and ensure timely execution of trades.
FEATURES
Advanced Trend Identification:
Uses Heikin-Ashi candles for smoother price action analysis.
Helps filter out noise and focus on significant trends.
Ideal for both short-term and long-term trading strategies.
Multi-Timeframe Analysis:
Allows users to select different resolutions for deeper insights.
Ensures compatibility with various trading styles and preferences.
Comprehensive Support and Resistance Calculation:
Computes four distinct levels: Support Level 1, Support Level 2, Resistance Level 1, and Resistance Level 2.
Each level serves as a reference point for potential price reversals or continuations.
Gradient Color Visualization:
Employs a spectrum of colors derived from RSI values to represent support and resistance lines.
Enhances readability and helps traders quickly assess market sentiment 🎨.
Dynamic Labels and Alerts:
Automatically generates buy ('Buy') and sell ('Sell') labels when price crosses key levels.
Provides real-time alerts for crossing events, ensuring traders never miss important signals 🔔.
Customizable Parameters:
Offers adjustable Length and Resolution inputs for tailored performance.
Allows traders to fine-tune the indicator according to their unique needs and strategies.
HOW TO USE
Adding the Indicator:
Open your TradingView chart and navigate to the indicators list.
Search for ' L2 MTF Heikin-Ashi SR Levels' and add it to your chart.
Configuring Settings:
Adjust the Length parameter to determine the period over which calculations are made.
A shorter length increases sensitivity, while a longer length smoothens the output.
Choose a specific Resolution to analyze different timeframes simultaneously.
For example, set it to 'D' for daily charts or 'W' for weekly charts.
Interpreting the Chart:
Observe the plotted support and resistance lines on the chart.
Look for price interactions with these levels to identify potential entry and exit points.
Pay attention to the gradient colors, which reflect underlying market momentum.
Setting Up Alerts:
Configure alerts based on the generated signals to receive instant notifications.
Customize alert messages and conditions to suit your trading plan.
Utilizing Labels:
Use the automatically placed buy and sell labels as quick references for decision-making.
Combine these labels with other technical analyses for confirmation.
Backtesting and Optimization:
Thoroughly test the indicator on historical data to evaluate its performance.
Optimize settings and refine your strategy based on backtest results.
Live Trading:
Apply the indicator to live charts and monitor real-time price movements.
Execute trades based on the generated signals and adjust positions accordingly.
Combining with Other Tools:
Integrate this indicator with other technical tools and fundamental analyses for a holistic approach.
Consider using moving averages, oscillators, or volume indicators alongside L2 MTF Heikin-Ashi SR Levels.
LIMITATIONS
Market Volatility:
In highly volatile or ranging markets, the indicator might produce false signals due to erratic price movements 🌪️.
Traders should exercise caution during such periods and consider additional confirmations.
Timeframe Dependency:
The effectiveness of the indicator can vary significantly depending on the chosen timeframe and asset.
Always validate the indicator's performance across different contexts before relying solely on it.
Over-reliance Risk:
While powerful, no single indicator guarantees success in all market conditions.
Combining this tool with other analytical methods enhances reliability and reduces risk.
NOTES
Data Requirements:
Ensure your chart has enough historical data to perform accurate calculations.
Insufficient data may lead to inaccurate or incomplete results.
Demo Testing:
Before deploying the indicator in live trading, conduct extensive testing on demo accounts.
Familiarize yourself with how the indicator behaves under various market scenarios.
Parameter Tuning:
Experiment with different Length and Resolution settings to find what works best for your trading style.
Regularly review and update parameters as market conditions evolve.
Continuous Learning:
Stay updated with the latest developments in technical analysis and trading strategies.
Adapt your use of the indicator based on new insights and experiences.
THANKS
Additionally, gratitude goes to the broader TradingView community for fostering collaboration and knowledge-sharing among traders worldwide. Together, we strive to elevate our understanding and application of financial markets 🌍💡.
Cerca negli script per "backtesting"
[blackcat] L3 Trend BoxOVERVIEW
The L3 Trend Box indicator is a sophisticated technical analysis tool designed to assist traders in identifying trends and pinpointing potential entry and exit points within the market. By leveraging multiple moving averages and price level analyses, this indicator provides a detailed view of market dynamics. It plots several key lines and labels directly onto the chart, offering clear visual signals for both bullish and bearish scenarios. Its adaptability through customizable parameters makes it suitable for various trading strategies and market conditions 📊✅.
FEATURES
Comprehensive Parameter Customization: Tailor the indicator to match specific trading preferences:
High Length: Defines the period over which the highest prices are considered.
Low Length: Specifies the period for evaluating the lowest prices.
Upper Box Length: Smoothes out the upper boundary of the trend box using a specified period.
Lower Box Length: Smoothes out the lower boundary of the trend box similarly.
Trend Line Length: Determines the period for calculating the overall trend line.
Fast EMA Length: Sets the period for the fast-moving exponential moving average (EMA), crucial for capturing short-term movements.
MA15 EMA Length: Configures the period for the medium-term moving average (MA15 EMA) to provide a balanced perspective.
Short Spirit Length: Influences how quickly the indicator responds to recent price changes.
Golden EMA Length: Fine-tunes the long-term EMA for stability and reliability.
Buy Price Length: Establishes the lookback period for determining optimal buy prices.
Var1 Length & Var2 Length: Adjusts periods for variance calculations, enhancing the accuracy of trend detection.
Detailed Chart Plots:
Upper Box Top: A fuchsia-colored line representing the smoothed highest prices, marking resistance levels.
Lower Box Bottom: A green-colored line showing the smoothed lowest prices, highlighting support zones.
MA15 Up/Down: Dynamic red and green lines illustrating the directionality of the 15-period EMA, helping gauge momentum shifts.
Conditional Plots: Multiple lines based on intricate price actions and computed values, such as closing below the lower box while also closing at or above/below the opening price, ensuring nuanced insights into market behavior.
Buy/Sell Labels: Clearly marked 'Buy' and 'Sell' labels positioned strategically on the chart, facilitating quick decision-making without missing critical signals 🎯.
Alert System: Automatically generates alerts based on predefined buy and sell conditions, enabling timely responses to market changes 🛎️.
HOW TO USE
Adding the Indicator: Start by adding the L3 Trend Box to your TradingView chart via the indicators menu.
Parameter Configuration: Adjust each parameter according to your trading style and market volatility. For instance, increasing the High Length can make the indicator less sensitive to minor fluctuations but more responsive to significant trends.
Monitoring Signals: Keep an eye on the plotted lines and labels. Pay special attention to the crossover events between the fast EMA and the lower box bottom, as these often signify strong buy signals.
Setting Alerts: Configure alerts based on the buy/sell conditions provided by the indicator. This ensures you never miss an opportunity due to inattention.
Combining Strategies: While powerful on its own, combining this indicator with others like RSI or Bollinger Bands can enhance its predictive power and reduce false positives.
LIMITATIONS
Market Volatility: In extremely volatile or sideways-trending markets, the indicator might produce false signals. Always verify with additional confirmations.
Asset-Specific Performance: Different assets and timeframes will yield varying results; thorough backtesting across diverse instruments is recommended.
Over-Reliance Risk: Avoid relying solely on this indicator. Integrate it into a broader analytical framework that includes fundamental analysis and other technical indicators.
NOTES
Data Sufficiency: Ensure ample historical data is available for precise computations. Lack of data can skew results and lead to inaccurate signals.
Demo Testing: Before deploying the indicator in real trades, rigorously test it on demo accounts under varied market conditions to understand its strengths and weaknesses.
Customization Flexibility: Feel free to tweak the parameters continuously until they align perfectly with your unique trading approach and risk tolerance.
[blackcat] L3 Trendmaster XOVERVIEW
The L3 Trendmaster X is an advanced trend-following indicator meticulously crafted to assist traders in identifying and capitalizing on market trends. This sophisticated tool integrates multiple technical factors, including Average True Range (ATR), volume dynamics, and price spreads, to deliver precise buy and sell signals. By plotting dynamic trend bands directly onto the chart, it offers a comprehensive visualization of potential trend directions, enabling traders to make informed decisions swiftly and confidently 📊↗️.
FEATURES
Customizable Input Parameters: Tailor the indicator to match your specific trading needs with adjustable settings:
Trendmaster X Multiplier: Controls the sensitivity of the ATR-based levels.
Trendmaster X Period: Defines the period over which the ATR is calculated.
Window Length: Specifies the length of the moving window for standard deviation calculations.
Volume Averaging Length: Determines how many periods are considered for averaging volume.
Volatility Factor: Adjusts the impact of volatility on the trend bands.
Core Technical Metrics:
Dynamic Range: Measures the range between high and low prices within each bar.
Candle Body Size: Evaluates the difference between open and close prices.
Volume Average: Assesses the cumulative On-Balance Volume relative to the dynamic range.
Price Spread: Computes the standard deviation of the price ranges over a specified window.
Volatility Factor: Incorporates volatility into the calculation of trend bands.
Advanced Trend Bands Calculation:
Upper Level: Represents potential resistance levels derived from the ATR multiplier.
Lower Level: Indicates possible support levels using the same ATR multiplier.
High Band and Low Band: Dynamically adjust to reflect current trend directions, offering a clear view of market sentiment.
Visual Representation:
Plots distinct green and red trend lines representing bullish and bearish trends respectively.
Fills the area between these trend lines and the middle line for enhanced visibility.
Displays clear buy ('B') and sell ('S') labels on the chart for immediate recognition of trading opportunities 🏷️.
Alert System:
Generates real-time alerts when buy or sell conditions are triggered, ensuring timely action.
Allows customization of alert messages and frequencies to align with individual trading strategies 🔔.
HOW TO USE
Adding the Indicator:
Open your TradingView platform and navigate to the "Indicators" section.
Search for " L3 Trendmaster X" and add it to your chart.
Adjusting Settings:
Fine-tune the input parameters according to your preferences and trading style.
For example, increase the Trendmaster X Multiplier for higher sensitivity during volatile markets.
Decrease the Window Length for shorter-term trend analysis.
Monitoring Trends:
Observe the plotted trend bands and labels on the chart.
Look for buy ('B') labels at potential support levels and sell ('S') labels at resistance levels.
Setting Up Alerts:
Configure alerts based on the generated buy and sell signals.
Choose notification methods (e.g., email, SMS) and set alert frequencies to stay updated without constant monitoring 📲.
Combining with Other Tools:
Integrate the Trendmaster X with other technical indicators like Moving Averages or RSI for confirmation.
Utilize fundamental analysis alongside the indicator for a holistic approach to trading.
Backtesting and Optimization:
Conduct thorough backtests on historical data to evaluate performance.
Optimize parameters based on backtest results to enhance accuracy and reliability.
Real-Time Application:
Apply the optimized settings to live charts and monitor real-time signals.
Execute trades based on confirmed signals while considering risk management principles.
LIMITATIONS
Market Conditions: The indicator might produce false signals in highly volatile or sideways-trending markets due to increased noise and lack of clear direction 🌪️.
Complementary Analysis: Traders should use this indicator in conjunction with other analytical tools to validate signals and reduce the likelihood of false positives.
Asset-Specific Performance: Effectiveness can vary across different assets and timeframes; therefore, testing on diverse instruments is recommended.
NOTES
Data Requirements: Ensure adequate historical data availability for accurate calculations and reliable signal generation.
Demo Testing: Thoroughly test the indicator on demo accounts before deploying it in live trading environments to understand its behavior under various market scenarios.
Parameter Customization: Regularly review and adjust parameters based on evolving market conditions and personal trading objectives.
[Kpt-Ahab] Moving Average Alarm OutputVarious Moving Average with Signal Outputs
Compatible with various backtesting-systems or risk management-systems for generating alarms and trading signals.
Also compatible with the djmad Multibit ecosystem, allowing for signal filtering or combining indicators.
Standard signal output Long/Short +1/-1
Filter, for suppressing signals
Various color variations.
[blackcat] L3 Dark Horse OscillatorOVERVIEW
The L3 Dark Horse Oscillator is a sophisticated technical indicator meticulously crafted to offer traders deep insights into market momentum. By leveraging advanced calculations involving Relative Strength Value (RSV) and proprietary oscillatory techniques, this script provides clear and actionable signals for identifying potential buying and selling opportunities. Its distinctive feature—a vibrant gradient color scheme—enhances readability and makes it easier to visualize trends and reversals on the chart 📈↗️.
FEATURES
Advanced Calculation Methods: Utilizes complex algorithms to compute the Relative Strength Value (RSV) over specific periods, providing a nuanced view of price movements.
Default Period: 27 bars for initial RSV calculation.
Additional Period: 36 bars for extended RSV analysis.
Dual-Oscillator Components:
Component A: Derived using multiple layers of Simple Moving Averages (SMAs) applied to the RSV, offering a smoothed representation of short-term momentum.
Component B: Employs a unique averaging method tailored to capture medium-term trends effectively.
Dynamic Gradient Color Scheme: Enhances visualization through a spectrum of colors that change dynamically based on the calculated values, making trend identification intuitive and engaging 🌈.
Customizable Horizontal Reference Lines: Key levels are marked at 0, 10, 50, and 90 to serve as benchmarks for assessing the oscillator's readings, helping traders make informed decisions quickly.
Comprehensive Visual Representation: Combines the strengths of both components into a single, gradient-colored candlestick plot, providing a holistic view of market sentiment and momentum shifts 📊.
HOW TO USE
Adding the Indicator: Start by adding the L3 Dark Horse Oscillator to your TradingView chart via the indicators menu. This will overlay the necessary plots directly onto your price chart.
Interpreting the Components: Familiarize yourself with the two primary components represented by yellow and fuchsia lines. These lines indicate the underlying momentum derived from the RSV calculations.
Monitoring Momentum Shifts: Pay close attention to the gradient-colored candlesticks, which reflect the combined strength of both components. Notice how these candles transition through various shades, signaling changes in market dynamics.
Utilizing Reference Levels: Leverage the horizontal lines at 0, 10, 50, and 90 as critical thresholds. For instance, values above 50 might suggest bullish conditions, while those below could hint at bearish tendencies.
Combining with Other Tools: To enhance reliability, integrate this indicator with complementary technical analyses such as moving averages, volume profiles, or other oscillators like RSI or MACD.
LIMITATIONS
Market Volatility: In extremely volatile or sideways-trending markets, the indicator might produce false signals due to erratic price movements. Always cross-reference with broader market contexts.
Testing Required: Before deploying the indicator in real-time trading, conduct thorough backtesting across diverse assets and timeframes to understand its performance characteristics fully.
Asset-Specific Performance: The efficacy of the L3 Dark Horse Oscillator can differ significantly across various financial instruments and market conditions. Tailor your strategies accordingly.
NOTES
Historical Data: Ensure ample historical data availability to facilitate precise calculations and avoid inaccuracies stemming from insufficient data points.
Parameter Adjustments: Experiment with adjusting the default periods (27 and 36 bars) if you find them unsuitable for your specific trading style or market conditions.
Visual Customization: Modify the appearance settings, including line styles and gradient colors, to better suit personal preferences without compromising functionality.
Risk Management: While the indicator offers valuable insights, always adhere to robust risk management practices to safeguard against unexpected market fluctuations.
EXAMPLE STRATEGIES
Trend Following: Use the oscillator to confirm existing trends. When Component A crosses above Component B, consider entering long positions; conversely, look for short entries during downward crossovers.
Mean Reversion: Identify extreme readings near the upper (90) or lower (10) bands where prices might revert to mean levels, presenting potential reversal opportunities.
Divergence Analysis: Compare the oscillator's behavior with price action to spot divergences, which often precede trend reversals. Bullish divergence occurs when prices make lower lows but the oscillator shows higher lows, suggesting upward momentum.
[blackcat] L3 Magic-9 MACD SetupOVERVIEW
The L3 Magic-9 MACD Setup indicator is meticulously crafted to assist traders in identifying precise buy and sell signals through an enhanced Moving Average Convergence Divergence (MACD) methodology. This advanced tool integrates the Magic-9 Sequential technique to refine signal accuracy by filtering out market noise. By providing clear visual cues via labeled charts and real-time alerts, it empowers users to make informed trading decisions swiftly and confidently 📈✅.
FEATURES
Customizable MACD Parameters:
Fast Length: Adjustable parameter to control the sensitivity of the fast moving average.
Slow Length: Configurable setting for the slow moving average to balance responsiveness and stability.
Signal Length: Modifiable value to determine the smoothing factor applied to the MACD line.
Dynamic Plot Visuals:
MACD Line: Representing the difference between short-term and long-term EMAs.
Signal Line: A smoothed version of the MACD line used to generate crossover signals.
Histogram: Illustrating the distance between the MACD and Signal lines, highlighting momentum changes.
All elements feature adjustable colors and styles for personalized visualization preferences 🎨.
Advanced Filtering Mechanism:
Utilizes the Magic-9 Sequential method to analyze consecutive price movements, enhancing signal reliability.
Counts sequential occurrences above or below initial values to detect trends more accurately 🔍.
Sequential Labels:
Displays numerical labels (e.g., '5', '6', etc.) at key points where sequential conditions are met, offering insights into trend strength.
Highlights significant reversals with special labels like '9' and '13' for critical decision-making moments 🏷️.
Buy/Sell Signals:
Generates clear 'B' (buy) and 'S' (sell) labels based on predefined conditions derived from sequential analysis.
Provides actionable trade suggestions directly on the chart for easy interpretation.
Alert System:
Supports customizable alerts to notify users instantly when buy/sell conditions are triggered.
Ensures timely responses to market movements without constant monitoring 🔔.
HOW TO USE
Add Indicator to Chart:
Access the TradingView platform and navigate to the indicators section.
Select ' L3 Magic-9 MACD Setup' from the list and add it to your desired chart.
Configure Settings:
Open the settings panel to adjust MACD parameters such as Fast Length, Slow Length, and Signal Length according to your trading strategy.
Modify plot colors and styles to suit your visual preferences for better readability.
Analyze Chart Labels:
Monitor the chart for sequentially numbered labels indicating trend strength and potential reversal points.
Pay close attention to special labels like '9' and '13' for crucial trading signals.
Combine with Other Tools:
Use additional technical indicators or fundamental analysis to confirm signals generated by the L3 Magic-9 MACD Setup.
Enhance decision-making accuracy by cross-verifying multiple data sources.
LIMITATIONS
Market Conditions Sensitivity:
The indicator may produce fewer reliable signals during periods of low volatility or range-bound markets.
Traders should be cautious of false positives in highly choppy environments 🌪️.
Dependency on Historical Data:
Accurate performance requires sufficient historical price data; insufficient data may lead to inaccurate calculations.
Regular updates and backtesting are essential to maintain effectiveness over time.
Single Indicator Risk:
Relying solely on MACD-based signals can miss broader market context; combining with other analytical tools is recommended.
Always validate signals through multiple lenses to mitigate risks associated with single-indicator strategies.
NOTES
Data Sufficiency:
Ensure your chart has enough historical data loaded to support robust MACD computations.
Periodically review and update data inputs to reflect current market dynamics.
Testing and Validation:
Conduct thorough testing on demo accounts before deploying the indicator in live trading scenarios.
Backtest across various market cycles to assess its resilience under different conditions.
Parameter Optimization:
Experiment with different parameter settings tailored to specific asset classes or trading styles.
Fine-tune the lookback period and other configurable options to align with personal trading objectives.
Dskyz (DAFE) AI Adaptive Regime - Beginners VersionDskyz (DAFE) AI Adaptive Regime - Pro: Revolutionizing Trading for All
Introduction
In the fast-paced world of financial markets, traders need tools that can keep up with ever-changing conditions while remaining accessible. The Dskyz (DAFE) AI Adaptive Regime - Pro is a groundbreaking TradingView strategy that delivers advanced, AI-driven trading capabilities to everyday traders. Available on TradingView (TradingView Scripts), this Pine Script strategy combines sophisticated market analysis with user-friendly features, making it a standout choice for both novice and experienced traders.
Core Functionality
The strategy is built to adapt to different market regimes—trending, ranging, volatile, or quiet—using a robust set of technical indicators, including:
Moving Averages (MA): Fast and slow EMAs to detect trend direction.
Average True Range (ATR): For dynamic stop-loss and volatility assessment.
Relative Strength Index (RSI) and MACD: Multi-timeframe confirmation of momentum and trend.
Average Directional Index (ADX): To identify trending markets.
Bollinger Bands: For assessing volatility and range conditions.
Candlestick Patterns: Recognizes patterns like bullish engulfing, hammer, and double bottoms, confirmed by volume spikes.
It generates buy and sell signals based on a scoring system that weighs these indicators, ensuring trades align with the current market environment. The strategy also includes dynamic risk management with ATR-based stops and trailing stops, as well as performance tracking to optimize future trades.
What Sets It Apart
The Dskyz (DAFE) AI Adaptive Regime - Pro distinguishes itself from other TradingView strategies through several unique features, which we compare to common alternatives below:
| Feature | Dskyz (DAFE) | Typical TradingView Strategies|
|---------|-------------|------------------------------------------------------------|
| Regime Detection | Automatically identifies and adapts to **four** market regimes | Often static or limited to trend/range detection |
| Multi‑Timeframe Analysis | Uses higher‑timeframe RSI/MACD for confirmation | Rarely incorporates multi‑timeframe data |
| Pattern Recognition | Detects candlestick patterns **with volume confirmation** | Limited or no pattern recognition |
| Dynamic Risk Management | ATR‑based stops and trailing stops | Often uses fixed stops or basic risk rules |
| Performance Tracking | Adjusts thresholds based on past performance | Typically static parameters |
| Beginner‑Friendly Presets | Aggressive, Conservative, Optimized profiles | Requires manual parameter tuning |
| Visual Cues | Color‑coded backgrounds for regimes | Basic or no visual aids |
The Dskyz strategy’s ability to integrate regime detection, multi-timeframe analysis, and user-friendly presets makes it uniquely versatile and accessible, addressing the needs of everyday traders who want professional-grade tools without the complexity.
-Key Features and Benefits
[Why It’s Ideal for Everyday Traders
⚡The Dskyz (DAFE) AI Adaptive Regime - Pro democratizes advanced trading by offering professional-grade tools in an accessible package. Unlike many TradingView strategies that require deep technical knowledge or fail in changing market conditions, this strategy simplifies complex analysis while maintaining robustness. Its presets and visual aids make it easy for beginners to start, while its adaptive features and performance tracking appeal to advanced traders seeking an edge.
🔄Limitations and Considerations
Market Dependency: Performance varies by market and timeframe. Backtesting is essential to ensure compatibility with your trading style.
Learning Curve: While presets simplify use, understanding regimes and indicators enhances effectiveness.
No Guaranteed Profits: Like all strategies, success depends on market conditions and proper execution. The Reddit discussion highlights skepticism about TradingView strategies’ universal success (Reddit Discussion).
Instrument Specificity: Optimized for futures (e.g., ES, NQ) due to fixed tick values. Test on other instruments like stocks or forex to verify compatibility.
📌Conclusion
The Dskyz (DAFE) AI Adaptive Regime - Pro is a revolutionary TradingView strategy that empowers everyday traders with advanced, AI-driven tools. Its ability to adapt to market regimes, confirm signals across timeframes, and manage risk dynamically. sets it apart from typical strategies. By offering beginner-friendly presets and visual cues, it makes sophisticated trading accessible without sacrificing power. Whether you’re a novice looking to trade smarter or a pro seeking a competitive edge, this strategy is your ticket to mastering the markets. Add it to your chart, backtest it, and join the elite traders leveraging AI to dominate. Trade like a boss today! 🚀
Use it with discipline. Use it with clarity. Trade smarter.
**I will continue to release incredible strategies and indicators until I turn this into a brand or until someone offers me a contract.
-Dskyz
Step-Based Trailing Stop-Loss IndicatorThis indicator is built for momentum traders who want to maximize winning trades and minimize losses through a smart, step-based trailing stop-loss system. Instead of using a fixed Take Profit, this tool dynamically protects profits once the trade reaches a favorable RR (Risk-to-Reward) level.
How It Works:
Manual Entry Input
You enter your Entry Price and select Buy/Sell in the settings.
This flexibility allows backtesting or live trade tracking.
Initial Setup
Default SL: 50 ticks(Tested on us30,but works on any pair you just need to adjust SL)
TP for reference: 4R — can be used for benchmarking, but we don't limit profits with a hard TP.
Trailing Logic
Once price reaches 3R in profit:
The SL begins trailing.
It starts at 2R, keeping a 1R cushion behind the max profit.
For every 0.5R gain, SL also moves up by 0.5R:
Example: At 3.5R → SL is at 2.5R
At 5.0R → SL is at 4.0R
This trailing continues until the SL is hit or the trend exhausts.
Chart Features
🟧 Entry Line
🔴 Initial SL
🟢 Reference TP (4R, optional)
🟣 Dynamic Trailing SL
🏷️ Labels for Entry & SL levels
AI Volume StrategyAI Volume Strategy detects significant volume spikes and combines them with trend direction and candlestick color to generate buy and sell signals. The strategy uses an Exponential Moving Average (EMA) of volume to identify abnormal volume spikes that may indicate strong market activity. Additionally, it uses a 50-period EMA of price to filter the trend and decide on entry direction.
Key Features:
Volume Spike Detection: The strategy detects when the current volume exceeds the EMA of volume by a user-defined multiplier, signaling abnormal increases in market activity.
Trend Direction Filter: The strategy uses a 50-period EMA of price to determine the market trend. Buy signals are generated when the price is above the EMA (uptrend), and sell signals are generated when the price is below the EMA (downtrend).
Candle Color Filter: The strategy generates a buy signal only when the current candle is bullish (green) and a sell signal only when the current candle is bearish (red).
Exit after X Bars: The strategy automatically closes the position after a specified number of bars (default is 5 bars), but the exit condition can be adjusted based on user preference, timeframe, and backtesting results. The default exit is after 5 bars, but users can set it to 1 bar or any other number depending on their preferences and strategy.
Signals:
Buy Signal: Generated when a volume spike occurs, the trend is upward, and the current candle is bullish.
Sell Signal: Generated when a volume spike occurs, the trend is downward, and the current candle is bearish.
Alerts:
Buy Alert: Alerts the user when a buy signal is triggered.
Sell Alert: Alerts the user when a sell signal is triggered.
Visualization:
Buy Signal: A green label appears below the bar when the buy conditions are met.
Sell Signal: A red label appears above the bar when the sell conditions are met.
Volume EMA: Optionally, the Volume EMA line can be plotted on the chart to visualize volume trends.
This strategy helps traders identify potential entry points based on increased volume activity while considering trend direction and candlestick patterns. With the ability to adjust the exit condition, users can fine-tune the strategy to their specific needs and backtest results.
Moving Average Shift WaveTrend StrategyMoving Average Shift WaveTrend Strategy
🧭 Overview
The Moving Average Shift WaveTrend Strategy is a trend-following and momentum-based trading system designed to be overlayed on TradingView charts. It executes trades based on the confluence of multiple technical conditions—volatility, session timing, trend direction, and oscillator momentum—to deliver logical and systematic trade entries and exits.
🎯 Strategy Objectives
Enter trades aligned with the prevailing long-term trend
Exit trades on confirmed momentum reversals
Avoid false signals using session timing and volatility filters
Apply structured risk management with automatic TP, SL, and trailing stops
⚙️ Key Features
Selectable MA types: SMA, EMA, SMMA (RMA), WMA, VWMA
Dual-filter logic using a custom oscillator and moving averages
Session and volatility filters to eliminate low-quality setups
Trailing stop, configurable Take Profit / Stop Loss logic
“In-wave flag” prevents overtrading within the same trend wave
Visual clarity with color-shifting candles and entry/exit markers
📈 Trading Rules
✅ Long Entry Conditions:
Price is above the selected MA
Oscillator is positive and rising
200-period EMA indicates an uptrend
ATR exceeds its median value (sufficient volatility)
Entry occurs between 09:00–17:00 (exchange time)
Not currently in an active wave
🔻 Short Entry Conditions:
Price is below the selected MA
Oscillator is negative and falling
200-period EMA indicates a downtrend
All other long-entry conditions are inverted
❌ Exit Conditions:
Take Profit or Stop Loss is hit
Opposing signals from oscillator and MA
Trailing stop is triggered
🛡️ Risk Management Parameters
Pair: ETH/USD
Timeframe: 4H
Starting Capital: $3,000
Commission: 0.02%
Slippage: 2 pips
Risk per Trade: 2% of account equity (adjustable)
Total Trades: 224
Backtest Period: May 24, 2016 — April 7, 2025
Note: Risk parameters are fully customizable to suit your trading style and broker conditions.
🔧 Trading Parameters & Filters
Time Filter: Trades allowed only between 09:00–17:00 (exchange time)
Volatility Filter: ATR must be above its median value
Trend Filter: Long-term 200-period EMA
📊 Technical Settings
Moving Average
Type: SMA
Length: 40
Source: hl2
Oscillator
Length: 15
Threshold: 0.5
Risk Management
Take Profit: 1.5%
Stop Loss: 1.0%
Trailing Stop: 1.0%
👁️ Visual Support
MA and oscillator color changes indicate directional bias
Clear chart markers show entry and exit points
Trailing stops and risk controls are transparently managed
🚀 Strategy Improvements & Uniqueness
In-wave flag avoids repeated entries within the same trend phase
Filtering based on time, volatility, and trend ensures higher-quality trades
Dynamic high/low tracking allows precise trailing stop placement
Fully rule-based execution reduces emotional decision-making
💡 Inspirations & Attribution
This strategy is inspired by the excellent concept from:
ChartPrime – “Moving Average Shift”
It expands on the original idea with advanced trade filters and trailing logic.
Source reference:
📌 Summary
The Moving Average Shift WaveTrend Strategy offers a rule-based, reliable approach to trend trading. By combining trend and momentum filters with robust risk controls, it provides a consistent framework suitable for various market conditions and trading styles.
⚠️ Disclaimer
This script is for educational purposes only. Trading involves risk. Always use proper backtesting and risk evaluation before applying in live markets.
BONK/USD (1H) - $4k DCA + Dual Trailing + Date FilterThis strategy trades BONK/USD on the 1-hour chart, employing a Dollar-Cost Averaging (DCA) approach for long entries.
It initiates a Base Order when a faster Exponential Moving Average (EMA) crosses above a slower one (signaling a potential uptrend, default 9/21 EMA). If the price declines after entry, it can automatically place up to two additional Safety Orders at predetermined lower levels, calculated using either Average True Range (ATR) volatility or fixed percentage drops.
Exits are triggered by a trend reversal (EMA crossunder) or a dual trailing stop-loss mechanism, which includes both a standard trail and a tighter profit-locking trail activated after reaching a certain profit target.
The strategy includes user-configurable inputs for all key parameters (EMAs, order sizes, trailing stops, SO spacing) and an optional date filter to limit backtesting or execution to a specific period. It also generates alerts formatted for potential automation with platforms like 3Commas.
DCA StrategyThis strategy makes it easy for you to backtest and automate the DCA strategy based on 2 triggers:
Day of the week
Every X candles
This way you can set up your DCA strategy the way you like and automate on any exchange or even a DEX, which offers an API.
The strategy is auto selling on the last candle, otherwise you won't see any performance numbers because all positions will still be open (non conclusive).
Settings
Start Date & End Date
Use those dates to help you with your backtest period. It also helps when automating, to start at a specific time to mimic what you have already done on your own portfolio and thus be in sync in TV as well.
Capital to invest per trade
Set how capital to use per DCA buy signal. Hover over the tooltip to understand, which currency is used.
Close All on last candle
When backtesting, you must close open positions, otherwise the Strategy Tester won't show you any numbers. This is why the strategy automatically closes all positions on the last candle for your convenience (ON per default).
BUT, when automating, you cannot have this checked because it would sell all of your asset on every candle open. So turn this OFF when automating.
Use Day of Week Mode
This checkbox switches between the "Day of Week" mode or the "Every X Candles" mode.
Day of Week
Opens a long position at the start of the weekday you have set it to.
Hover over the tooltip to understand, which number to use for the day of the week you need.
Every X Candles
Opens a long position after every x candles. Always at the start of every such candle.
On the daily chart, this number represents "1 day", on the 1h chart, it's "1 hour" and so on.
Properties
Initial Capital
DCA has a special quirk and that is that it invests more and more and more funds the longer it runs. But TradingView takes the Initial Capital number to calculate Net Profit, thus the Initial Capital number has to grow with every additional dollar (money) that is being invested over time, otherwise the Net Profit number will be wrong.
Sadly PineScript does not allow to set the Initial Capital number dynamically. So you have to set it manually.
To that end, this strategy shows a Label on the last candle, which shows the Invested Capital. You must take that number and put it into the Initial Capital input and click Ok .
If you don't do this, your Net Profit Number will be totally wrong!
The label must show green .
If it shows red it means you need to change the Initial Capital number before looking at the performance numbers.
After every timeframe or settings change, you must adapt the Initial Capital, otherwise you will get wrong numbers.
Dkoderweb repainting issue fix strategyHarmonic Pattern Recognition Trading Strategy
This TradingView strategy called "Dkoderweb repainting issue fix strategy" is designed to identify and trade harmonic price patterns with optimized entry and exit points using Fibonacci levels. The strategy implements various popular harmonic patterns including Bat, Butterfly, Gartley, Crab, Shark, ABCD, and their anti-patterns.
Key Features
Pattern Recognition: Identifies 17+ harmonic price patterns including standard and anti-patterns
Fibonacci-Based Entries and Exits: Uses customizable Fibonacci levels for precision entries, take profits, and stop losses
Alternative Timeframe Analysis: Option to use higher timeframes for pattern identification
Heiken Ashi Support: Optional use of Heiken Ashi candles instead of regular candlesticks
Visual Indicators:
Pattern visualization with ZigZag indicator
Buy/sell signal markers
Color-coded background to highlight active trade zones
Customizable Fibonacci level display
How It Works
The strategy uses a ZigZag-based pattern identification system to detect pivot points
When a valid harmonic pattern forms, the strategy calculates the optimal entry window using the specified Fibonacci level (default 0.382)
Entries trigger when price returns to the entry window after pattern completion
Take profit and stop loss levels are automatically set based on customizable Fibonacci ratios
Visual alerts notify you of entries and exits
The strategy tracks active trades and displays them with background color highlights
Customizable Settings
Trade size
Entry window Fibonacci level (default 0.382)
Take profit Fibonacci level (default 0.618)
Stop loss Fibonacci level (default -0.618)
Alert messages for entries and exits
Display options for specific Fibonacci levels
Alternative timeframe selection
This strategy is designed to fix repainting issues that are common in harmonic pattern strategies, ensuring more reliable signals and backtesting results.
Dkoderweb repainting issue fix indicator# Harmonic Pattern Trading Indicator for TradingView
This indicator, called "Dkoderweb repainting issue fix indicator," is designed to identify and trade harmonic chart patterns in financial markets. It uses Fibonacci relationships between price points to detect various patterns like Bat, Butterfly, Gartley, Crab, Shark, and others.
## Key Features:
- **Pattern Recognition**: Automatically identifies over a dozen harmonic patterns including standard and anti-patterns
- **Customizable Settings**: Options to use Heikin Ashi candles and alternate timeframes
- **Fibonacci Levels**: Configurable display of key Fibonacci retracement levels
- **Entry and Exit Signals**: Clear buy/sell signals with visual triangles above/below bars
- **Trade Management**: Automatic take-profit and stop-loss levels based on Fibonacci relationships
- **Visual Aids**: Color-coded backgrounds to highlight active trade zones
- **Alert System**: Customizable alert messages for trade entries and exits
## How It Works:
The indicator uses a zigzag function to identify significant price pivots, then analyzes the relationships between these pivots to detect specific harmonic patterns. When a valid pattern forms and price reaches the entry zone (defined by a Fibonacci level), the indicator generates a trade signal.
Each pattern has specific Fibonacci ratio requirements between its points, and the indicator continuously scans for these relationships. Trade management is handled automatically with predefined take-profit and stop-loss levels.
This version specifically addresses repainting issues that are common in pattern-detection indicators, making it more reliable for both backtesting and live trading.
Sessions with Mausa session high/low tracker that draws flat, horizontal lines for Asia, London, and New York trading sessions. It updates those levels in real time during each session, locks them in once the session ends, and keeps them on the chart for context.
At a glance, you always know:
Where each session’s highs and lows were set
Which session produced them (ASIA, LDN, NY labels float cleanly above the highs)
When price is approaching or reacting to prior session levels
🔹 Use Cases:
• Key Levels – See where Asia, London, or NY set boundaries, and watch how price respects or rejects them
• Breakout Zones – Monitor when price breaks above/below session highs/lows
• Session Structure – Know instantly if a move happened during London or NY without squinting at the clock
• Backtesting – Keep historic session levels on the chart for reference — nothing gets deleted
• Confluence – Align these levels with support/resistance, fibs, or liquidity zones
Simple, visual, no distractions — just session structure at a glance.
Daily Bollinger Band StrategyOverview of the Daily Bollinger Band Strategy
1. Strategy Overview and Features
This strategy is a tool for backtesting a trading method that uses Bollinger Bands. It is *not* a tool for automated trading.
1-1. Main Display Items
The main chart displays the Bollinger Bands and the 200-day moving average.
It also shows the entry and exit points along with the position size (in units of 100 shares).
1-2. Summary of Trading Rules
For long (buy) strategies, the trade enters when the price crosses above the +1σ line of the Bollinger Bands, aiming to ride an upward trend. The position is exited when the price crosses below the middle band.
For short (sell) strategies, the trade enters when the price crosses below the -1σ line of the Bollinger Bands, aiming to ride a downward trend. The position is exited when the price crosses above the middle band.
1-3. Strategic Enhancements
The strategy uses the slope of the 200-day moving average to determine the trend direction and enter trades accordingly. This improves the win rate and payoff ratio.
Additionally, to reduce the probability of ruin, the risk per trade is limited to 1.0% of capital, and position sizing is adjusted using ATR (a volatility indicator).
2. Trading Rules
2-1. Chart Type
Only daily charts are used.
2-2. Indicators Used
(1) Bollinger Bands** (used for entry and exit signals)
- Period: Fixed at 80 days
- Upper and lower bands: Fixed at ±1σ
(2) Moving Average** (used to determine trend direction)
- Period: Fixed at 200 days
- Trend direction is judged based on whether the difference from the previous day is positive (upward) or negative (downward)
2-3. Buy Rules
Setup:
- Price crosses above the +1σ line from below
- Both the middle band and 200-day moving average are upward sloping
Entry:
- Buy at the next day’s market open using a market order
Exit:
- If the price crosses below the middle band, sell at the next day’s open using a market order
2-4. Sell Rules
Setup:
- Price crosses below the -1σ line from above
- Both the middle band and 200-day moving average are downward sloping
Entry:
- Sell at the next day’s market open using a market order
Exit:
- If the price crosses above the middle band, buy back at the next day’s open using a market order
2-5. Risk Management Rules
- Risk per trade: 1.0% of total capital (acceptable loss = capital × 1.0%)
- Position size: Acceptable loss ÷ 2ATR (rounded down to the nearest unit of 100 shares)
2-6. Other Notes
- No brokerage fees
- No pyramiding
- No partial exits
- No reverse positions (no “stop-and-reverse” trades)
3. Strategy Parameters
The following settings can be specified:
3-1. Period Settings
- Start date: Set the start date for the backtest period
- Stop date: Set the end date for the backtest period
3-2. Display of Trend and Signals
- Show trend: When checked, the background color of the bars is light red for an uptrend and light blue for a downtrend
- Show signal: When checked, entry and exit signals are displayed (note: signals are executed at the next day’s open, so there is a one-day lag in the display)
3-3. Capital Management Settings
- Funds: Capital available for trading (in JPY)
- Risk rate: Specify what percentage of the capital to risk per trade
Settings in the “Properties” tab are not used in this strategy.
4. Backtest Results (Example)
Here are the backtest results conducted by the author:
- Target Stocks: All components of the Nikkei 225
- Test Period: January 4, 2000 – December 30, 2024
- Data Points: 12,886
- Win Rate: 33.45%
- Net Profit: ¥82,132,380
- Payoff Ratio: 2.450
- Expected Value: ¥6,373.8
- Risk Rate: 1.0%
- Probability of Ruin: 0.00%
---
デイリー・ボリンジャーバンド・ストラテジーの概要
1. ストラテジーの概要と特徴
このストラテジーは、ボリンジャーバンドを使ったトレード手法のバックテストを行うツールです。自動売買を行うツールではありません。
1-1. 主な表示項目
メインチャートにボリンジャーバンドと 200日移動平均線を表示します。
また、エントリーと手仕舞いのタイミングと数量(100株単位)も表示されます。
1-2. トレードルールの概要
買い戦略の場合、ボリンジャーバンドの +1σ 超えでエントリーして上昇トレンドに乗り、ミドルバンドを割ったら決済します。
売り戦略の場合、ボリンジャーバンドの -1σ 割りでエントリーして下降トレンドに乗り、ミドルバンドを上抜けたら決済します。
1-3. ストラテジーの工夫点
200日移動平均線の傾きを見てトレンド方向にエントリーをしています。こうして勝率とペイオフレシオの成績を向上しています。
また、破産確率を抑えるために、リスク資金比率を 1.0% にして、ATR(ボラティリティ指標) を使って注文数を調整しています。
2. 売買ルール
2-1. 使用するチャート
日足チャートに限定します
2-2. 使用する指標
(1) ボリンジャーバンド(仕掛けと手仕舞いのシグナルに使用)
期間は80日に固定
上下バンドは ±1σ に固定
(2) 移動平均線(トレンドの方向を見るために使用)
期間は200日に固定
移動平均の値の前日との差がプラスのとき上向き、マイナスのとき下向きと判断
2-3. 買いのルール
セットアップ:ボリンジャーバンドの +1σ を価格が下から上に交差 かつ ミドルバンドと 200日移動平均線が上向き
仕掛け:翌日の寄り付きに成行で買う
手仕舞い:ボリンジャーバンドのミドルバンドを価格が上から下に交差したら、翌日の寄り付きに成行で売る
2-4. 売りのルール
セットアップ:ボリンジャーバンドの -1σ を価格が上から下に交差 かつ ミドルバンドと 200日移動平均線が下向き
仕掛け:翌日の寄り付きに成行で売る
手仕舞い:ボリンジャーバンドのミドルバンドを価格が下から上に交差したら、翌日の寄り付きに成行で買い戻す
2-5. 資金管理のルール
リスク資金比率:資産の 1.0%(許容損失 = 資産 × 1.0%)
注文数:許容損失 ÷ 2ATR(単元株数未満は切り捨て)
2-6. その他
仲介手数料:なし
ピラミッディング:なし
分割決済:なし
ドテン:しない
3. ストラテジーのパラメーター
次の項目が指定できます。
3-1. 期間の設定
Staer date : バックテストの検証期間の開始日を指定します
Stop date : バックテストの検証期間の終了日を指定します
3-2. トレンドとシグナルの表示
Show trend : チェックを入れると、バーの背景色が、トレンドが上昇のときは薄い赤で、下落のときは薄い青で表示されます
Show signal : チェックを入れると、エントリーと手仕舞いのシグナルを表示します(シグナルの出た翌日の寄り付きに売買をするので表示に1日のずれがあります)
3-3. 資金管理用の設定
Funds : トレード用の資金(円)
Risk rate : 許容損失を資金の何%にするかで指定します
「プロパティタブ」で設定する値は、このストラテジーでは有効ではありません。
4. バックテストの結果(例)
作者がバックテストを実施した結果をお知らせします。
対象銘柄:日経225構成銘柄すべて
対象期間:2000年1月4日~2024年12月30日
データ件数:12,886
勝率:33.45%
純利益:82,132,380
ペイオフレシオ:2.450
期待値:6,373.8
リスク資金比率:1.0%
破産確率:0.00%
Fibonacci Counter-Trend TradingOverview:
The Fibonacci Counter-Trend Trading strategy is designed to capitalize on price reversals by utilizing Fibonacci levels calculated from the standard deviation of price movements. This strategy opens a sell order when the closing price crosses above a specified upper Fibonacci level and a buy order when the closing price crosses below a specified lower Fibonacci level. By leveraging the principles of Fibonacci retracement and volatility, this strategy aims to identify potential reversal points in the market.
How It Works:
Fibonacci Levels Calculation:
The strategy calculates upper and lower Fibonacci levels based on the standard deviation of the price over a specified moving average length. These levels are derived from the Fibonacci sequence, which is widely used in technical analysis to identify potential support and resistance levels.
The upper levels are calculated by adding specific Fibonacci ratios (0.236, 0.382, 0.5, 0.618, 0.764, and 1.0) multiplied by the standard deviation to the basis (the volume-weighted moving average).
The lower levels are calculated by subtracting the same Fibonacci ratios multiplied by the standard deviation from the basis.
Trade Entry Rules:
Sell Order: A sell order is triggered when the closing price crosses above the selected upper Fibonacci level. This indicates a potential reversal point where the price may start to decline.
Buy Order: A buy order is initiated when the closing price crosses below the selected lower Fibonacci level. This suggests a potential reversal point where the price may begin to rise.
Trade Management:
The strategy includes stop-losses based on the Fibonacci levels to protect against adverse price movements.
How to Use:
Users can customize the moving average length and the multiplier for the standard deviation to suit their trading preferences and market conditions.
The strategy can be applied to various financial instruments, including stocks, forex, and cryptocurrencies, making it versatile for different trading environments.
Pros:
The Fibonacci Counter-Trend Trading strategy combines the mathematical principles of the Fibonacci sequence with the statistical measure of standard deviation, providing a unique approach to identifying potential market reversals.
This strategy is particularly useful in volatile markets where price swings can lead to significant trading opportunities.
The use of Fibonacci levels can help traders identify key support and resistance areas, enhancing decision-making.
Cons:
The strategy may generate false signals in choppy or sideways markets, leading to potential losses if the price does not reverse as anticipated.
Relying solely on Fibonacci levels without considering other technical indicators or market conditions may result in missed opportunities or increased risk.
The effectiveness of the strategy can vary depending on the chosen parameters (e.g., moving average length and standard deviation multiplier), requiring users to spend time optimizing these settings for different market conditions.
As with any counter-trend strategy, there is a risk of significant drawdowns during strong trending markets, where the price continues to move in one direction without reversing.
By understanding the mechanics of the Fibonacci Counter-Trend Trading strategy, along with its pros and cons, traders can effectively implement it in their trading routines and potentially enhance their trading performance.
Follow Line Strategy Version 2.5 (React HTF)Follow Line Strategy v2.5 (React HTF) - TradingView Script Usage
This strategy utilizes a "Follow Line" concept based on Bollinger Bands and ATR to identify potential trading opportunities. It includes advanced features like optional working hours filtering, higher timeframe (HTF) trend confirmation, and improved trend-following entry/exit logic. Version 2.5 introduces reactivity to HTF trend changes for more adaptive trading.
Key Features:
Follow Line: The core of the strategy. It dynamically adjusts based on price breakouts beyond Bollinger Bands, using either the low/high or ATR-adjusted levels.
Bollinger Bands: Uses a standard Bollinger Bands setup to identify overbought/oversold conditions.
ATR Filter: Optionally uses the Average True Range (ATR) to adjust the Follow Line offset, providing a more dynamic and volatility-adjusted entry point.
Optional Trading Session Filter: Allows you to restrict trading to specific hours of the day.
Higher Timeframe (HTF) Confirmation: A significant feature that allows you to confirm trade signals with the trend on a higher timeframe. This can help to filter out false signals and improve the overall win rate.
HTF Selection Method: Choose between Auto and Manual HTF selection:
Auto: The script automatically determines the appropriate HTF based on the current chart timeframe (e.g., 1min -> 15min, 5min -> 4h, 1h -> 1D, Daily -> Monthly).
Manual: Allows you to select a specific HTF using the Manual Higher Timeframe input.
Trend-Following Entries/Exits: The strategy aims to enter trades in the direction of the established trend, using the Follow Line to define the trend.
Reactive HTF Trend Changes: v2.5 exits positions not only based on the trade timeframe (TTF) trend changing, but also when the higher timeframe trend reverses against the position. This makes the strategy more responsive to larger market movements.
Alerts: Provides buy and sell alerts for convenient trading signal notifications.
Visualizations: Plots the Follow Line for both the trade timeframe and the higher timeframe (optional), making it easy to understand the strategy's logic.
How to Use:
Add to Chart: Add the "Follow Line Strategy Version 2.5 (React HTF)" script to your TradingView chart.
Configure Settings: Customize the strategy's settings to match your trading style and preferences. Here's a breakdown of the key settings:
Indicator Settings:
ATR Period: The period used to calculate the ATR. A smaller period is more sensitive to recent price changes.
Bollinger Bands Period: The period used for the Bollinger Bands calculation. A longer period results in smoother bands.
Bollinger Bands Deviation: The number of standard deviations from the moving average that the Bollinger Bands are plotted. Higher deviations create wider bands.
Use ATR for Follow Line Offset?: Enable to use ATR to calculate the Follow Line offset. Disable to use the simple high/low.
Show Trade Signals on Chart?: Enable to show BUY/SELL labels on the chart.
Time Filter:
Use Trading Session Filter?: Enable to restrict trading to specific hours of the day.
Trading Session: The trading session to use (e.g., 0930-1600 for regular US stock market hours). Use 0000-2400 for all hours.
Higher Timeframe Confirmation:
Enable HTF Confirmation?: Enable to use the HTF trend to filter trade signals. If enabled, only trades in the direction of the HTF trend will be taken.
HTF Selection Method: Choose between "Auto" and "Manual" HTF selection.
Manual Higher Timeframe: If "Manual" is selected, choose the specific HTF (e.g., 240 for 4 hours, D for daily).
Show HTF Follow Line?: Enable to plot the HTF Follow Line on the chart.
Understanding the Signals:
Buy Signal: The price breaks above the upper Bollinger Band, and the HTF (if enabled) confirms the uptrend.
Sell Signal: The price breaks below the lower Bollinger Band, and the HTF (if enabled) confirms the downtrend.
Exit Long: The trade timeframe trend changes to downtrend or the higher timeframe trend changes to downtrend.
Exit Short: The trade timeframe trend changes to uptrend or the higher timeframe trend changes to uptrend.
Alerts:
The script includes alert conditions for buy and sell signals. To set up alerts, click the "Alerts" button in TradingView and select the desired alert condition from the script. The alert message provides the ticker and interval.
Backtesting and Optimization:
Use TradingView's Strategy Tester to backtest the strategy on different assets and timeframes.
Experiment with different settings to optimize the strategy for your specific trading style and risk tolerance. Pay close attention to the ATR Period, Bollinger Bands settings, and the HTF confirmation options.
Tips and Considerations:
HTF Confirmation: The HTF confirmation can significantly improve the strategy's performance by filtering out false signals. However, it can also reduce the number of trades.
Risk Management: Always use proper risk management techniques, such as stop-loss orders and position sizing, when trading any strategy.
Market Conditions: The strategy may perform differently in different market conditions. It's important to backtest and optimize the strategy for the specific markets you are trading.
Customization: Feel free to modify the script to suit your specific needs. For example, you could add additional filters or entry/exit conditions.
Pyramiding: The pyramiding = 0 setting prevents multiple entries in the same direction, ensuring the strategy doesn't compound losses. You can adjust this value if you prefer to pyramid into winning positions, but be cautious.
Lookahead: The lookahead = barmerge.lookahead_off setting ensures that the HTF data is calculated based on the current bar's closed data, preventing potential future peeking bias.
Trend Determination: The logic for determining the HTF trend and reacting to changes is critical. Carefully review the f_calculateHTFData function and the conditions for exiting positions to ensure you understand how the strategy responds to different market scenarios.
Disclaimer:
This script is for informational and educational purposes only. It is not financial advice, and you should not trade based solely on the signals generated by this script. Always do your own research and consult with a qualified financial advisor before making any trading decisions. The author is not responsible for any losses incurred as a result of using this script.
Ultimate MA & PSAR [TARUN]Overview
This indicator combines a customizable Moving Average (MA) and Parabolic SAR (PSAR) to generate precise long and short trade signals. A dashboard displays real-time trade conditions, including signal direction, entry price, stop loss, and PnL tracking.
Key Features
✅ Customizable MA Type & Period – Choose between SMA or EMA with adjustable length.
✅ Adaptive PSAR Settings – Modify start, increment, and max step values to fine-tune stop levels.
✅ Trade Signal Logic – Identifies potential buy (long) and sell (short) opportunities based on:
Price action relative to MA
MA trend direction (rising or falling)
PSAR confirmation
✅ Dynamic Stop Loss Calculation – Uses lowest low/highest high over a specified period for stop loss placement.
✅ Trade State & Reversal Handling – Manages active trades, pending signals, and stop loss exits dynamically.
✅ PnL & Dashboard Table – Displays real-time signal status, entry price, stop loss, and profit/loss (PnL) in an easy-to-read format.
How It Works
1.Buy (Long) Condition:
MA is rising
Price is above the MA
PSAR is below price
2.Sell (Short) Condition:
MA is falling
Price is below the MA
PSAR is above price
3.Stop Loss Handling:
For long trades → stop loss is set at the lowest low of the last X candles
For short trades → stop loss is set at the highest high of the last X candles
4.Trade Execution & PnL Calculation:
If a valid long/short setup is detected, a pending signal is placed.
On the next bullish (for long) or bearish (for short) candle, the trade is confirmed.
Real-time PnL updates help track trade performance.
Customization Options
🔹 Moving Average: SMA or EMA, adjustable period
🔹 PSAR Settings: Start, Increment, Maximum step values
🔹 Stop Loss Lookback: Choose how many candles to consider for stop loss placement
🔹 Dashboard Positioning: Select preferred display location (top/bottom, left/right)
🔹 Trade Signal Selection: Enable/Disable Long and Short signals individually
How to Use
Add the indicator to your chart.
Customize the MA & PSAR settings according to your trading strategy.
Follow the dashboard signals for trade setups.
Use stop loss levels to manage risk effectively.
Disclaimer
⚠️ This indicator is for educational purposes only and does not constitute financial advice. Always perform proper risk management and backtesting before using it in live trading.
Scalping 15min: EMA + MACD + RSI + ATR-based SL/TP📈 Strategy: 15-Minute Scalping — EMA + MACD + RSI + ATR-based SL/TP
This scalping strategy is designed for 15-minute charts and combines trend-following and momentum confirmation with dynamic stop loss and take profit levels based on volatility.
🔧 Indicators Used:
EMA 50 — identifies the main trend
MACD Histogram — confirms momentum direction
RSI (14) — filters overbought/oversold conditions
ATR (14) — dynamically sets SL and TP based on market volatility
📊 Entry Conditions:
Long Entry:
Price is above EMA 50
MACD histogram is positive
RSI is above 50 but below 70
Short Entry:
Price is below EMA 50
MACD histogram is negative
RSI is below 50 but above 30
🛑 Risk Management:
Stop Loss: 1×ATR (user-configurable)
Take Profit: 2×ATR (user-configurable)
These values can be adjusted in the script inputs depending on your risk/reward preference or market conditions.
⚠️ Notes:
Strategy is optimized for scalping fast-moving pairs (e.g. crypto, forex).
Works best in trending markets.
Use backtesting and forward testing before live trading.
Trailing Monster StrategyTrailing Monster Strategy
This is an experimental trend-following strategy that incorporates a custom adaptive moving average (PKAMA), RSI-based momentum filtering, and dynamic trailing stop-loss logic. It is designed for educational and research purposes only, and may require further optimization or risk management considerations prior to live deployment.
Strategy Logic
The strategy attempts to participate in sustained price trends by combining:
- A Power Kaufman Adaptive Moving Average (PKAMA) for dynamic trend detection,
- RSI and Simple Moving Average (SMA) filters for market condition confirmation,
- A delayed trailing stop-loss to manage exits once a trade is in profit.
Entry Conditions
Long Entry:
- RSI exceeds the overbought threshold (default: 70),
- Price is trading above the 200-period SMA,
- PKAMA slope is positive (indicating upward momentum),
- A minimum number of bars have passed since the last entry.
Short Entry:
- RSI falls below the oversold threshold (default: 30),
- Price is trading below the 200-period SMA,
- PKAMA slope is negative (indicating downward momentum),
-A minimum number of bars have passed since the last entry.
Exit Conditions
- A trailing stop-loss is applied once the position has been open for a user-defined number of bars.
- The trailing distance is calculated as a fixed percentage of the average entry price.
Technical Notes
This script implements a custom version of the Power Kaufman Adaptive Moving Average (PKAMA), conceptually inspired by alexgrover’s public implementation on TradingView .
Unlike traditional moving averages, PKAMA dynamically adjusts its responsiveness based on recent market volatility, allowing it to better capture trend changes in fast-moving assets like altcoins.
Disclaimer
This strategy is provided for educational purposes only.
It is not financial advice, and no guarantee of profitability is implied.
Always conduct thorough backtesting and forward testing before using any strategy in a live environment.
Adjust inputs based on your individual risk tolerance, asset class, and trading style.
Feedback is encouraged. You are welcome to fork and modify this script to suit your own preferences and market approach.
Market Open Highlights (9:30 AM ET)This indicator zeroes in on the 9:30 AM Eastern Time market opens for NAS100 and US30, highlighting all market opens with a bold yet subtle yellow background. Tailored for precision backtesting, it uses TradingView’s timezone capabilities to pinpoint the exact 9:30 AM candle, skipping weekends to focus solely on U.S. equity market opens.
What It Does:
The script tracks the bar indices of all market opens at 9:30 AM ET, applying a semi-transparent yellow highlight to those candles. It’s a clean, efficient way to mark key session starts for analyzing price action or testing strategies.
How to Use It:
1. Apply the script to a chart of NAS100 (e.g., FX:NAS100) or US30 (e.g., FX:US30) in TradingView on any timeframe.
2. Set your chart timezone to "America/New_York" (Settings > Timezone/Sessions).
3. Scroll back through trading days to see the yellow highlights on the 9:30 AM candles.
4. While it functions across all timeframes, it’s optimized for 5-minute and 1-minute charts, where the 9:30 AM candle aligns precisely with the U.S. market open for detailed analysis.
5. Use it to study price behavior or refine strategies around this critical daily event.
Adaptive Fibonacci Pullback System -FibonacciFluxAdaptive Fibonacci Pullback System (AFPS) - FibonacciFlux
This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0). Original concepts by FibonacciFlux.
Abstract
The Adaptive Fibonacci Pullback System (AFPS) presents a sophisticated, institutional-grade algorithmic strategy engineered for high-probability trend pullback entries. Developed by FibonacciFlux, AFPS uniquely integrates a proprietary Multi-Fibonacci Supertrend engine (0.618, 1.618, 2.618 ratios) for harmonic volatility assessment, an Adaptive Moving Average (AMA) Channel providing dynamic market context, and a synergistic Multi-Timeframe (MTF) filter suite (RSI, MACD, Volume). This strategy transcends simple indicator combinations through its strict, multi-stage confluence validation logic. Historical simulations suggest that specific MTF filter configurations can yield exceptional performance metrics, potentially achieving Profit Factors exceeding 2.6 , indicative of institutional-level potential, while maintaining controlled risk under realistic trading parameters (managed equity risk, commission, slippage).
4 hourly MTF filtering
1. Introduction: Elevating Pullback Trading with Adaptive Confluence
Traditional pullback strategies often struggle with noise, false signals, and adapting to changing market dynamics. AFPS addresses these challenges by introducing a novel framework grounded in Fibonacci principles and adaptive logic. Instead of relying on static levels or single confirmations, AFPS seeks high-probability pullback entries within established trends by validating signals through a rigorous confluence of:
Harmonic Volatility Context: Understanding the trend's stability and potential turning points using the unique Multi-Fibonacci Supertrend.
Adaptive Market Structure: Assessing the prevailing trend regime via the AMA Channel.
Multi-Dimensional Confirmation: Filtering signals with lower-timeframe Momentum (RSI), Trend Alignment (MACD), and Market Conviction (Volume) using the MTF suite.
The objective is to achieve superior signal quality and adaptability, moving beyond conventional pullback methodologies.
2. Core Methodology: Synergistic Integration
AFPS's effectiveness stems from the engineered synergy between its core components:
2.1. Multi-Fibonacci Supertrend Engine: Utilizes specific Fibonacci ratios (0.618, 1.618, 2.618) applied to ATR, creating a multi-layered volatility envelope potentially resonant with market harmonics. The averaged and EMA-smoothed result (`smoothed_supertrend`) provides a robust, dynamic trend baseline and context filter.
// Key Components: Multi-Fibonacci Supertrend & Smoothing
average_supertrend = (supertrend1 + supertrend2 + supertrend3) / 3
smoothed_supertrend = ta.ema(average_supertrend, st_smooth_length)
2.2. Adaptive Moving Average (AMA) Channel: Provides dynamic market context. The `ama_midline` serves as a key filter in the entry logic, confirming the broader trend bias relative to adaptive price action. Extended Fibonacci levels derived from the channel width offer potential dynamic S/R zones.
// Key Component: AMA Midline
ama_midline = (ama_high_band + ama_low_band) / 2
2.3. Multi-Timeframe (MTF) Filter Suite: An optional but powerful validation layer (RSI, MACD, Volume) assessed on a lower timeframe. Acts as a **validation cascade** – signals must pass all enabled filters simultaneously.
2.4. High-Confluence Entry Logic: The core innovation. A pullback entry requires a specific sequence and validation:
Price interaction with `average_supertrend` and recovery above/below `smoothed_supertrend`.
Price confirmation relative to the `ama_midline`.
Simultaneous validation by all enabled MTF filters.
// Simplified Long Entry Logic Example (incorporates key elements)
long_entry_condition = enable_long_positions and
(low < average_supertrend and close > smoothed_supertrend) and // Pullback & Recovery
(close > ama_midline and close > ama_midline) and // AMA Confirmation
(rsi_filter_long_ok and macd_filter_long_ok and volume_filter_ok) // MTF Validation
This strict, multi-stage confluence significantly elevates signal quality compared to simpler pullback approaches.
1hourly filtering
3. Realistic Implementation and Performance Potential
AFPS is designed for practical application, incorporating realistic defaults and highlighting performance potential with crucial context:
3.1. Realistic Default Strategy Settings:
The script includes responsible default parameters:
strategy('Adaptive Fibonacci Pullback System - FibonacciFlux', shorttitle = "AFPS", ...,
initial_capital = 10000, // Accessible capital
default_qty_type = strategy.percent_of_equity, // Equity-based risk
default_qty_value = 4, // Default 4% equity risk per initial trade
commission_type = strategy.commission.percent,
commission_value = 0.03, // Realistic commission
slippage = 2, // Realistic slippage
pyramiding = 2 // Limited pyramiding allowed
)
Note: The default 4% risk (`default_qty_value = 4`) requires careful user assessment and adjustment based on individual risk tolerance.
3.2. Historical Performance Insights & Institutional Potential:
Backtesting provides insights into historical behavior under specific conditions (always specify Asset/Timeframe/Dates when sharing results):
Default Performance Example: With defaults, historical tests might show characteristics like Overall PF ~1.38, Max DD ~1.16%, with potential Long/Short performance variance (e.g., Long PF 1.6+, Short PF < 1).
Optimized MTF Filter Performance: Crucially, historical simulations demonstrate that meticulous configuration of the MTF filters (particularly RSI and potentially others depending on market) can significantly enhance performance. Under specific, optimized MTF filter settings combined with appropriate risk management (e.g., 7.5% risk), historical tests have indicated the potential to achieve **Profit Factors exceeding 2.6**, alongside controlled drawdowns (e.g., ~1.32%). This level of performance, if consistently achievable (which requires ongoing adaptation), aligns with metrics often sought in institutional trading environments.
Disclaimer Reminder: These results are strictly historical simulations. Past performance does not guarantee future results. Achieving high performance requires careful parameter tuning, adaptation to changing markets, and robust risk management.
3.3. Emphasizing Risk Management:
Effective use of AFPS mandates active risk management. Utilize the built-in Stop Loss, Take Profit, and Trailing Stop features. The `pyramiding = 2` setting requires particularly diligent oversight. Do not rely solely on default settings.
4. Conclusion: Advancing Trend Pullback Strategies
The Adaptive Fibonacci Pullback System (AFPS) offers a sophisticated, theoretically grounded, and highly adaptable framework for identifying and executing high-probability trend pullback trades. Its unique blend of Fibonacci resonance, adaptive context, and multi-dimensional MTF filtering represents a significant advancement over conventional methods. While requiring thoughtful implementation and risk management, AFPS provides discerning traders with a powerful tool potentially capable of achieving institutional-level performance characteristics under optimized conditions.
Acknowledgments
Developed by FibonacciFlux. Inspired by principles of Fibonacci analysis, adaptive averaging, and multi-timeframe confirmation techniques explored within the trading community.
Disclaimer
Trading involves substantial risk. AFPS is an analytical tool, not a guarantee of profit. Past performance is not indicative of future results. Market conditions change. Users are solely responsible for their decisions and risk management. Thorough testing is essential. Deploy at your own considered risk.