Follow Through Day (FTD) + Sweep [TrendX_]The Follow Through Day (FTD) + Sweep indicator is a Trend-following tool mixing William O'Neil's original FTD concept and Liquidity concept. This indicator helps you identify potential subsequent bullish trends with greater precision by combining volume analysis, price action, and liquidity concepts.
💎 FEATURES
Follow Through Day Candle (FTD Candle)
The FTD, pioneered by William O'Neil, serves as a reliable signal for identifying the beginning of new bull markets. It's particularly valuable because it combines multiple market factors - price action, volume, and timing - to confirm genuine market reversals rather than temporary bounces.
The power of the FTD lies in its ability to distinguish between ordinary market fluctuations and significant trend changes. By requiring specific criteria to be met across multiple sessions, it helps filter out false signals and identifies high-probability reversal points where institutional investors are likely beginning to accumulate positions.
Sweep Area
The Sweep area feature enhances the traditional FTD concept by incorporating modern liquidity analysis. This overlay identifies zones where large market participants are likely to trigger stop losses before continuing the trend. These areas often represent optimal entry points for traders looking to join the new uptrend with reduced risk.
🔎 BREAKDOWN
FTD Candle
The FTD formation process occurs in two distinct phases: Setup and Completion.
Setup Phase
Strong Market Decline
The market must first experience a significant downtrend
This selling pressure helps clear out weak hands and creates oversold conditions
The decline creates the potential energy for a powerful reversal
First Recovery Session
Marks the initial sign of buying pressure emerging
Often characterized by a strong reversal candle
Represents the first indication that selling pressure may be exhausting
Recovery Confirmation
The second and third days must maintain prices above the new pivot low
This consolidation period helps confirm the validity of the initial bounce
Shows that sellers are no longer in control of price action
Completion Phase:
Supply Test Session
Low volume indicates diminishing selling pressure
Price remains above the pivot low
Creates the foundation for institutional buyers to begin accumulating
Breakout Day
Price increase exceeds average profit of bullish candles
Volume increases by at least 15% compared to previous session
Shows strong institutional commitment to the new uptrend
Timing Window
Must occur between the 4th and 8th candle after First Recovery Session
This specific timing helps confirm the sustainability of the reversal
Based on O'Neil's research of historical market bottoms
FTD Sweep
The Post-FTD Phase introduces the Sweep concept, which is crucial for understanding how large market participants operate. This feature leverages the liquidity concept because institutional traders often need to trigger stop losses to accumulate larger positions at better prices. This helps:
Create liquidity pools for large position entries
Shake out weak hands before continuing the trend
Test the strength of the new trend by absorbing selling pressure
⚙️ USAGE
Sweep + TP & SL Strategy
Example: BTCUSDT (1D) - Replay back to 9th November 2024
After an FTD candle forms, traders can adopt a systematic approach to enhance their trading strategy. First, they should determine the swing range and convert the post-FTD zone into concrete stop loss and take profit levels, which are based on the price action during the FTD formation. Next, traders should wait for a sweep formation, as this indicates that institutional players are accumulating positions. A quick price rejection from the sweep level should be observed before executing an entry.
The reasoning behind this strategy is rooted in market microstructure. By waiting for the sweep, traders position themselves alongside institutional players who need to build large positions without causing adverse price movement. The sweep creates the liquidity they need, and the subsequent move often represents the true trend continuation.
DISCLAIMER
This indicator is not financial advice, it can only help traders make better decisions. There are many factors and uncertainties that can affect the outcome of any endeavor, and no one can guarantee or predict with certainty what will occur. Therefore, one should always exercise caution and judgment when making decisions based on past performance.
المؤشرات والاستراتيجيات
ChrismtasMerry Christmas and Happy New Year! This magical time of year brings us together with loved ones, fills our hearts with joy, and offers us a chance to reflect on the past year and look forward to the future.
EMA Crossover Strategy with Take Profit and Candle HighlightingStrategy Overview:
This strategy is based on the Exponential Moving Averages (EMA), specifically the EMA 20 and EMA 50. It takes advantage of EMA crossovers to identify potential trend reversals and uses multiple take-profit levels and a stop-loss for risk management.
Key Components:
EMA Crossover Signals:
Buy Signal (Uptrend): A buy signal is generated when the EMA 20 crosses above the EMA 50, signaling the start of a potential uptrend.
Sell Signal (Downtrend): A sell signal is generated when the EMA 20 crosses below the EMA 50, signaling the start of a potential downtrend.
Take Profit Levels:
Once a buy or sell signal is triggered, the strategy calculates multiple take-profit levels based on the range of the previous candle. The user can define multipliers for each take-profit level.
Take Profit 1 (TP1): 50% of the previous candle's range above or below the entry price.
Take Profit 2 (TP2): 100% of the previous candle's range above or below the entry price.
Take Profit 3 (TP3): 150% of the previous candle's range above or below the entry price.
Take Profit 4 (TP4): 200% of the previous candle's range above or below the entry price.
These levels are adjusted dynamically based on the previous candle's high and low, so they adapt to changing market conditions.
Stop Loss:
A stop-loss is set to manage risk. The default stop-loss is 3% from the entry price, but this can be adjusted in the settings. The stop-loss is triggered if the price moves against the position by this amount.
Trend Direction Highlighting:
The strategy highlights the bars (candles) with colors:
Green bars indicate an uptrend (when EMA 20 crosses above EMA 50).
Red bars indicate a downtrend (when EMA 20 crosses below EMA 50).
These visual cues help users easily identify the market direction.
Strategy Entries and Exits:
Entries: The strategy enters a long (buy) position when the EMA 20 crosses above the EMA 50 and a short (sell) position when the EMA 20 crosses below the EMA 50.
Exits: The strategy exits the positions at any of the defined take-profit levels or the stop-loss. Multiple exit levels provide opportunities to take profit progressively as the price moves in the favorable direction.
Entry and Exit Conditions in Detail:
Buy Entry Condition (Uptrend):
A buy position is opened when EMA 20 crosses above EMA 50, signaling the start of an uptrend.
The strategy calculates take-profit levels above the entry price based on the previous bar's range (high-low) and the multipliers for TP1, TP2, TP3, and TP4.
Sell Entry Condition (Downtrend):
A sell position is opened when EMA 20 crosses below EMA 50, signaling the start of a downtrend.
The strategy calculates take-profit levels below the entry price, similarly based on the previous bar's range.
Exit Conditions:
Take Profit: The strategy attempts to exit the position at one of the take-profit levels (TP1, TP2, TP3, or TP4). If the price reaches any of these levels, the position is closed.
Stop Loss: The strategy also has a stop-loss set at a default value (3% below the entry for long trades, and 3% above for short trades). The stop-loss helps to protect the position from significant losses.
Backtesting and Performance Metrics:
The strategy can be backtested using TradingView's Strategy Tester. The results will show how the strategy would have performed historically, including key metrics like:
Net Profit
Max Drawdown
Win Rate
Profit Factor
Average Trade Duration
These performance metrics can help users assess the strategy's effectiveness over historical periods and optimize the input parameters (e.g., multipliers, stop-loss level).
Customization:
The strategy allows for the adjustment of several key input values via the settings panel:
Take Profit Multipliers: Users can customize the multipliers for each take-profit level (TP1, TP2, TP3, TP4).
Stop Loss Percentage: The user can also adjust the stop-loss percentage to a custom value.
EMA Periods: The default periods for the EMA 50 and EMA 20 are fixed, but they can be adjusted for different market conditions.
Pros of the Strategy:
EMA Crossover Strategy: A classic and well-known strategy used by traders to identify the start of new trends.
Multiple Take Profit Levels: By taking profits progressively at different levels, the strategy locks in gains as the price moves in favor of the position.
Clear Trend Identification: The use of green and red bars makes it visually easier to follow the market's direction.
Risk Management: The stop-loss and take-profit features help to manage risk and optimize profit-taking.
Cons of the Strategy:
Lagging Indicators: The strategy relies on EMAs, which are lagging indicators. This means that the strategy might enter trades after the trend has already started, leading to missed opportunities or less-than-ideal entry prices.
No Confirmation Indicators: The strategy purely depends on the crossover of two EMAs and does not use other confirming indicators (e.g., RSI, MACD), which might lead to false signals in volatile markets.
How to Use in Real-Time Trading:
Use for Backtesting: Initially, use this strategy in backtest mode to understand how it would have performed historically with your preferred settings.
Paper Trading: Once comfortable, you can use paper trading to test the strategy in real-time market conditions without risking real money.
Live Trading: After testing and optimizing the strategy, you can consider using it for live trading with proper risk management in place (e.g., starting with a small position size and adjusting parameters as needed).
Summary:
This strategy is designed to identify trend reversals using EMA crossovers, with customizable take-profit levels and a stop-loss to manage risk. It's well-suited for traders looking for a systematic way to enter and exit trades based on clear market signals, while also providing flexibility to adjust for different risk profiles and trading styles.
Adaptive Trend Flow Strategy with Filters for SPXThe Adaptive Trend Flow Strategy with Filters for SPX is a complete trading algorithm designed to identify traits and offer actionable alerts for the SPX index. This Pine Script approach leverages superior technical signs and user-described parameters to evolve to marketplace conditions and optimize performance.
Key Features and Functionality
Dynamic Trend Detection: Utilizes a dual EMA-based totally adaptive method for fashion calculation.
The script smooths volatility the usage of an EMA filter and adjusts sensitivity through the sensitivity enter. This allows for real-time adaptability to market fluctuations.
Trend Filters for Precision:
SMA Filter: A Simple Moving Average (SMA) guarantees that trades are achieved best while the rate aligns with the shifting average trend, minimizing false indicators.
MACD Filter: The Moving Average Convergence Divergence (MACD) adds some other layer of confirmation with the aid of requiring alignment among the MACD line and its sign line.
Signal Generation:
Long Signals: Triggered when the fashion transitions from bearish to bullish, with all filters confirming the pass.
Short Signals: Triggered while the trend shifts from bullish to bearish, imparting opportunities for final positions.
User Customization:
Adjustable parameters for EMAs, smoothing duration, and sensitivity make certain the strategy can adapt to numerous buying and selling patterns.
Enable or disable filters (SMA or MACD) based totally on particular market conditions or consumer possibilities.
Leverage and Position Sizing: Incorporates a leverage aspect for dynamic position sizing.
Automatically calculates the exchange length based on account fairness and the leverage element, making sure hazard control is in area.
Visual Enhancements: Plots adaptive fashion ranges (foundation, top, decrease) for actual-time insights into marketplace conditions.
Color-coded bars and heritage to visually represent bullish or bearish developments.
Custom labels indicating crossover and crossunder occasions for clean sign visualization.
Alerts and Automation: Configurable alerts for each lengthy and quick indicators, well matched with automated buying and selling structures like plugpine.Com.
JSON-based alert messages consist of account credentials, motion type, and calculated position length for seamless integration.
Backtesting and Realistic Assumptions: Includes practical slippage, commissions, and preliminary capital settings for backtesting accuracy.
Leverages excessive-frequency trade sampling to make certain strong strategy assessment.
How It Works
Trend Calculation: The method derives a principal trend basis with the aid of combining fast and gradual EMAs. It then uses marketplace volatility to calculate adaptive upper and decrease obstacles, creating a dynamic channel.
Filter Integration: SMA and MACD filters work in tandem with the fashion calculation to ensure that handiest excessive-probability signals are accomplished.
Signal Execution: Signals are generated whilst the charge breaches those dynamic tiers and aligns with the fashion and filters, ensuring sturdy change access situations.
How to Use
Setup: Apply the approach to SPX or other well suited indices.
Adjust person inputs, together with ATR length, EMA smoothing, and sensitivity, to align together with your buying and selling possibilities.
Enable or disable the SMA and MACD filters to test unique setups.
Alerts: Configure signals for computerized notifications or direct buying and selling execution through third-celebration systems.
Use the supplied JSON payload to integrate with broking APIs or automation tools.
Optimization:
Experiment with leverage, filter out settings, and sensitivity to find most effective configurations to your hazard tolerance and marketplace situations.
Considerations and Best Practices
Risk Management: Always backtest the method with realistic parameters, together with conservative leverage and commissions.
Market Suitability: While designed for SPX, this method can adapt to other gadgets by means of adjusting key parameters.
Limitations: The method is trend-following and can underperform in enormously risky or ranging markets. Regularly evaluate and modify parameters primarily based on recent market conduct.
If you have any questions please let me know - I'm here to help!
Strategie Bollinger Bands buy & sellMiddle Band (Basis): Calculated using a Simple Moving Average (SMA) over a user-defined period.
Upper Band: The middle band plus the standard deviation of the price multiplied by a user-defined multiplier.
Lower Band: The middle band minus the standard deviation of the price multiplied by the same multiplier.
User Inputs:
Length: The number of periods used for the SMA and standard deviation (default: 20).
Deviation: The multiplier for the standard deviation to calculate the upper and lower bands (default: 2.0).
Buy and Sell Signals:
Buy Signal: Generated when the price crosses above the lower band, indicating a potential oversold condition.
Sell Signal: Generated when the price crosses below the upper band, indicating a potential overbought condition.
Visual Markers:
Buy Signals: Displayed below the price bars as green labels with the text "BUY."
Sell Signals: Displayed above the price bars as red labels with the text "SELL."
The Bollinger Bands (upper, middle, and lower) are plotted directly on the price chart for easy visualization.
How to Use the Script:
Customize Parameters:
Modify the length and deviation inputs to adapt to different market conditions or timeframes.
Interpret Signals:
A BUY signal indicates a possible reversal or upward movement from the lower band.
A SELL signal suggests a potential price decline from the upper band.
Combine with Other Indicators:
While effective in certain conditions, this strategy performs better when combined with other technical tools, such as RSI or MACD, to confirm trends and avoid false signals.
Limitations:
This script assumes that price will revert to the mean, which may not hold during strong trends or highly volatile conditions.
It is not a standalone trading system and should be backtested and optimized before applying to real trading.
OBV TSI IndicatorThe OBV TSI Indicator combines two powerful technical analysis tools: the On-Balance Volume (OBV) and the True Strength Index (TSI). This hybrid approach provides insights into both volume dynamics and momentum, helping traders identify potential trend reversals, breakouts, or continuations with greater accuracy.
The OBV TSI Indicator tracks cumulative volume shifts via OBV and integrates the TSI for momentum analysis. It offers customizable moving average options for further smoothing. Visual trendlines, pivot points, and signal markers enhance clarity.
The OBV tracks volume flow by summing volumes based on price changes. Positive volume is added when prices rise, and negative volume is subtracted when prices fall. The result is smoothed to detect meaningful trends in volume. A volume spread is derived from the difference between the smoothed OBV and cumulative volume. This is then adjusted by the price deviation to generate the shadow spread, which highlights critical volume-driven price levels.
The shadow spread is added to either the high or low price, depending on its sign, producing a refined OBV output. This serves as the main source for the subsequent TSI calculation. The TSI is a momentum oscillator calculated using double-smoothed price changes. It provides an accurate measure of trend strength and direction.
Various moving average options, such as EMA, DEMA, or TEMA, are applied to the smoothed OBV for additional trend filtering. Users can select their preferred type and length to suit their trading strategy. Trendlines are plotted to visualize the overall direction. When a significant change in trend is detected, up or down arrows indicate potential buy or sell signals. The script identifies key pivot points based on the highest and lowest levels within a defined period. These pivots help pinpoint reversal zones.
The indicator offers customization options, allowing users to adjust the OBV length for smoothing, choose from various moving average types, and fine-tune the short, long, and signal periods for TSI. Additionally, users can toggle visibility for trendlines, signals, and pivots to suit their preferences.
This indicator is ideal for practical use cases such as spotting potential trend reversals by observing TSI crossovers and pivot levels, anticipating breakouts from key price levels using the shadow spread, and validating trends by aligning TSI signals with OBV and moving averages.
The OBV TSI Indicator is a versatile tool designed to enhance decision-making in trading by combining volume and momentum analysis. Its flexibility and visual aids make it suitable for traders of all experience levels. By leveraging its insights, you can confidently navigate market trends and improve your trading outcomes.
BullBear with Volume-Percentile TP - Strategy [presentTrading] Happy New Year, everyone! I hope we have a fantastic year ahead.
It's been a while since I published an open script, but it's time to return.
This strategy introduces an indicator called Bull Bear Power, combined with an advanced take-profit system, which is the main innovative and educational aspect of this script. I hope all of you find some useful insights here. Welcome to engage in meaningful exchanges. This is a versatile tool suitable for both novice and experienced traders.
█ Introduction and How it is Different
Unlike traditional strategies that rely solely on price or volume indicators, this approach combines Bull Bear Power (BBP) with volume percentile analysis to identify optimal entry and exit points. It features a dynamic take-profit mechanism based on ATR (Average True Range) multipliers adjusted by volume and percentile factors, ensuring adaptability to diverse market conditions. This multifaceted strategy not only improves signal accuracy but also optimizes risk management, distinguishing it from conventional trading methods.
BTCUSD 6hr performance
Disable the visualization of Bull Bear Power (BBP) to clearly view the Z-Score.
█ Strategy, How it Works: Detailed Explanation
The BBP Strategy with Volume-Percentile TP utilizes several interconnected components to analyze market data and generate trading signals. Here's an overview with essential equations:
🔶 Core Indicators and Calculations
1. Exponential Moving Average (EMA):
- **Purpose:** Smoothens price data to identify trends.
- **Formula:**
EMA_t = (Close_t * (2 / (lengthInput + 1))) + (EMA_(t-1) * (1 - (2 / (lengthInput + 1))))
- Usage: Baseline for Bull and Bear Power.
2. Bull and Bear Power:
- Bull Power: `BullPower = High_t - EMA_t`
- Bear Power: `BearPower = Low_t - EMA_t`
- BBP:** `BBP = BullPower + BearPower`
- Interpretation: Positive BBP indicates bullish strength, negative indicates bearish.
3. Z-Score Calculation:
- Purpose: Normalizes BBP to assess deviation from the mean.
- Formula:
Z-Score = (BBP_t - bbp_mean) / bbp_std
- Components:
- `bbp_mean` = SMA of BBP over `zLength` periods.
- `bbp_std` = Standard deviation of BBP over `zLength` periods.
- Usage: Identifies overbought or oversold conditions based on thresholds.
🔶 Volume Analysis
1. Volume Moving Average (`vol_sma`):
vol_sma = (Volume_1 + Volume_2 + ... + Volume_vol_period) / vol_period
2. Volume Multiplier (`vol_mult`):
vol_mult = Current Volume / vol_sma
- Thresholds:
- High Volume: `vol_mult > 2.0`
- Medium Volume: `1.5 < vol_mult ≤ 2.0`
- Low Volume: `1.0 < vol_mult ≤ 1.5`
🔶 Percentile Analysis
1. Percentile Calculation (`calcPercentile`):
Percentile = (Number of values ≤ Current Value / perc_period) * 100
2. Thresholds:
- High Percentile: >90%
- Medium Percentile: >80%
- Low Percentile: >70%
🔶 Dynamic Take-Profit Mechanism
1. ATR-Based Targets:
TP1 Price = Entry Price ± (ATR * atrMult1 * TP_Factor)
TP2 Price = Entry Price ± (ATR * atrMult2 * TP_Factor)
TP3 Price = Entry Price ± (ATR * atrMult3 * TP_Factor)
- ATR Calculation:
ATR_t = (True Range_1 + True Range_2 + ... + True Range_baseAtrLength) / baseAtrLength
2. Adjustment Factors:
TP_Factor = (vol_score + price_score) / 2
- **vol_score** and **price_score** are based on current volume and price percentiles.
Local performance
🔶 Entry and Exit Logic
1. Long Entry: If Z-Score crosses above 1.618, then Enter Long.
2. Short Entry: If Z-Score crosses below -1.618, then Enter Short.
3. Exiting Positions:
If Long and Z-Score crosses below 0:
Exit Long
If Short and Z-Score crosses above 0:
Exit Short
4. Take-Profit Execution:
- Set multiple exit orders at dynamically calculated TP levels based on ATR and adjusted by `TP_Factor`.
█ Trade Direction
The strategy determines trade direction using the Z-Score from the BBP indicator:
- Long Positions:
- Condition: Z-Score crosses above 1.618.
- Short Positions:
- Condition: Z-Score crosses below -1.618.
- Exiting Trades:
- Long Exit: Z-Score drops below 0.
- Short Exit: Z-Score rises above 0.
This approach aligns trades with prevailing market trends, increasing the likelihood of successful outcomes.
█ Usage
Implementing the BBP Strategy with Volume-Percentile TP in TradingView involves:
1. Adding the Strategy:
- Copy the Pine Script code.
- Paste it into TradingView's Pine Editor.
- Save and apply the strategy to your chart.
2. Configuring Settings:
- Adjust parameters like EMA length, Z-Score thresholds, ATR multipliers, volume periods, and percentile settings to match your trading preferences and asset behavior.
3. Backtesting:
- Use TradingView’s backtesting tools to evaluate historical performance.
- Analyze metrics such as profit factor, drawdown, and win rate.
4. Optimization:
- Fine-tune parameters based on backtesting results.
- Test across different assets and timeframes to enhance adaptability.
5. Deployment:
- Apply the strategy in a live trading environment.
- Continuously monitor and adjust settings as market conditions change.
█ Default Settings
The BBP Strategy with Volume-Percentile TP includes default parameters designed for balanced performance across various markets. Understanding these settings and their impact is essential for optimizing strategy performance:
Bull Bear Power Settings:
- EMA Length (`lengthInput`): 21
- **Effect:** Balances sensitivity and trend identification; shorter lengths respond quicker but may generate false signals.
- Z-Score Length (`zLength`): 252
- **Effect:** Long period for stable mean and standard deviation, reducing false signals but less responsive to recent changes.
- Z-Score Threshold (`zThreshold`): 1.618
- **Effect:** Higher threshold filters out weaker signals, focusing on significant market moves.
Take Profit Settings:
- Use Take Profit (`useTP`): Enabled (`true`)
- **Effect:** Activates dynamic profit-taking, enhancing profitability and risk management.
- ATR Period (`baseAtrLength`): 20
- **Effect:** Shorter period for sensitive volatility measurement, allowing tighter profit targets.
- ATR Multipliers:
- **Effect:** Define conservative to aggressive profit targets based on volatility.
- Position Sizes:
- **Effect:** Diversifies profit-taking across multiple levels, balancing risk and reward.
Volume Analysis Settings:
- Volume MA Period (`vol_period`): 100
- **Effect:** Longer period for stable volume average, reducing the impact of short-term spikes.
- Volume Multipliers:
- **Effect:** Determines volume conditions affecting take-profit adjustments.
- Volume Factors:
- **Effect:** Adjusts ATR multipliers based on volume strength.
Percentile Analysis Settings:
- Percentile Period (`perc_period`): 100
- **Effect:** Balances historical context with responsiveness to recent data.
- Percentile Thresholds:
- **Effect:** Defines price and volume percentile levels influencing take-profit adjustments.
- Percentile Factors:
- **Effect:** Modulates ATR multipliers based on price percentile strength.
Impact on Performance:
- EMA Length: Shorter EMAs increase sensitivity but may cause more false signals; longer EMAs provide stability but react slower to market changes.
- Z-Score Parameters:*Longer Z-Score periods create more stable signals, while higher thresholds reduce trade frequency but increase signal reliability.
- ATR Multipliers and Position Sizes: Higher multipliers allow for larger profit targets with increased risk, while diversified position sizes help in securing profits at multiple levels.
- Volume and Percentile Settings: These adjustments ensure that take-profit targets adapt to current market conditions, enhancing flexibility and performance across different volatility environments.
- Commission and Slippage: Accurate settings prevent overestimation of profitability and ensure the strategy remains viable after accounting for trading costs.
Conclusion
The BBP Strategy with Volume-Percentile TP offers a robust framework by combining BBP indicators with volume and percentile analyses. Its dynamic take-profit mechanism, tailored through ATR adjustments, ensures that traders can effectively capture profits while managing risks in varying market conditions.
Candle % Close with Bullish/Bearish EvaluationI created the indicator to more quickly define the polarity of candles. For a large number of candles, it is straightforward to determine whether a candle is bullish or bearish. However, candles with long wicks often appear, making it uncertain whether the candle is bullish or bearish from a price action perspective. It is not a rule that a red candle is bearish and a green candle is bullish.
From a more advanced price action standpoint, how these candles close is important. Therefore, I created the 'Percent range' input. By default, it is set to 50% (high-low)/2. This way, the indicator precisely determines 50% of the candle's entire range. This allows us to determine whether a bearish candle truly closed below 50% of its range. If not, such a candle is considered bullish, even if it is a negative candle. The same applies to bullish candles, but conversely. If a positive candle closes below 50% of its range, from a price action perspective, it is considered a bearish candle.
Since in price action it is common for the price to return to 50% of the previous candle and, after filling, to continue in the established trend, I added the line extension option. Whatever high value you enter, the line extension follows the current candle. This option works only when the stop line checkbox is enabled. This way, you can plot 50% of the candle's range that the market has historically not returned to due to a strong trend. Often, this line is plotted on a candle where there is also an FVG, which can help you more easily find a point of interest.
Stop line extension : Ensures the interruption of line plotting when the candle is touched by the body or wick.
Dynamic Risk-Adjusted Performance Ratios with TableWith this indicator, you have everything you need to monitor and compare the Sharpe ratio, Sortino ratio, and Omega ratio across multiple assets—all in one place. This tool is designed to help save time and improve efficiency by letting you track up to 15 assets simultaneously in a fully customizable table. You can adjust the lookback period to fit your trading strategy and get a clearer picture of how your assets perform over time. Instead of switching between charts, this indicator puts all the critical information you need at your fingertips.
Sharpe Ratio -
Helps evaluate the overall efficiency of investments by comparing the average return to the total risk (measured by the standard deviation of all returns). Essentially, it tells you how much excess return you’re getting for each unit of risk you’re taking. A higher Sharpe ratio means you’re getting better risk-adjusted performance—something you’ll want to aim for in your portfolio.
Sortino Ratio -
Goes a step further by focusing only on downside risk—because let’s face it, no one worries about positive volatility. This ratio is calculated by dividing the average return by the standard deviation of only the negative returns. Perfect for those concerned about avoiding losses rather than chasing extreme gains. It gives you a sharper view of how well your assets are performing relative to the risks you’re trying to avoid.
Omega Ratio -
Offers a unique perspective by comparing the sum of positive returns to the absolute sum of negative returns. It’s a straightforward way to see if your wins outweigh your losses. A higher Omega ratio means your positive returns significantly exceed the downside, which is exactly what you want when building a strong, reliable portfolio.
This indicator is perfect for traders who want to streamline their decision-making process and gain an edge. Bringing together these three critical ratios into a single user-defined table makes it easy to compare and rank assets at a glance. Whether optimizing a portfolio or looking for the best opportunities, this tool helps you stay ahead by focusing on risk-adjusted returns. The customizable lookback period lets you tailor the analysis to fit your unique trading approach, giving you insights that align with your goals. If you’re serious about making data-driven decisions and improving your trading outcomes, this indicator is a game-changer for your toolkit.
Session Averages: Open, High, LowThis indicator allows for the user to specify an intraday time based range and calculate the average open price, average high price, and average low price for that session. The indicator plots the 5 most recent sessions on the chart, which allows for the user to identify fair value, Power of 3 movements, trends, and consolidations.
If bullish the user can identify when price is below the average open or low price of a range, and if bearish can identify when price is above the open or high of a range.
Fibonacci Retracement Strategy for CryptoThe Enhanced Fibonacci Retracement Strategy is designed to help traders capitalize on key Fibonacci levels for both long and short trades. This script automatically identifies significant swing highs and lows within a customizable lookback period and dynamically plots Fibonacci retracement levels (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, and 100%) as support and resistance levels.
Key Features:
Automatic Fibonacci Levels:
The script identifies the highest high and lowest low over a user-defined lookback period to calculate Fibonacci retracement levels.
Dual-Directional Trading:
Long Trades: Triggered when the price crosses above the 61.8% retracement level, anticipating a reversal.
Short Trades: Triggered when the price crosses below the 38.2% retracement level, capturing potential downward movement.
Compact Line Option:
Users can toggle "Compact Fibonacci Lines" to reduce visual clutter on the chart, making the lines shorter and easier to interpret.
Dynamic Alerts:
Alerts are embedded directly into the strategy logic for entry and exit points.
Long Entry: Triggered when the price bounces above the 61.8% level.
Long Exit: Triggered when the price reaches the 23.6% level.
Short Entry: Triggered when the price crosses below the 38.2% level.
Short Exit: Triggered when the price reaches the 78.6% level.
Clear Visualization:
Fibonacci levels are plotted with distinct colors and dashed lines (optional compact view),
providing traders with clear and actionable levels to make decisions.
Inputs:
Lookback Period: Number of candles to calculate swing highs and lows.
Plot Fibonacci Levels: Toggle to enable/disable plotting levels.
Compact Fibonacci Lines: Reduce the length of Fibonacci lines for a cleaner chart.
How It Works:
The strategy identifies a high-low range within the lookback period.
Fibonacci levels are calculated based on the range and plotted on the chart.
Long Trade Example:
Enter when the price crosses above the 61.8% level.
Exit when the price reaches the 23.6% level.
Short Trade Example:
Enter when the price crosses below the 38.2% level.
Exit when the price reaches the 78.6% level.
Best Use Cases:
Trending Markets: Use retracements to time entries in the direction of the trend.
Range-Bound Markets: Identify and trade reversals near key Fibonacci levels.
Important Notes:
This strategy is not financial advice and should be backtested thoroughly before live trading.
Risk management is crucial! Consider using stop-loss orders for protection.
Customize inputs to suit your preferred timeframe and trading style.
Advanced Divergence IndicatorAdvanced Divergence Indicator
Unlock the full potential of your trading strategy with the Advanced Divergence Indicator, a powerful tool designed to identify and analyze bullish and bearish divergences using multiple technical indicators. Whether you're a seasoned trader or just starting out, this indicator provides clear, actionable signals to help you make informed trading decisions.
What It Does
The Advanced Divergence Indicator detects divergences between price movements and key technical indicators, specifically the Relative Strength Index (RSI) and On-Balance Volume (OBV). Divergence occurs when the price trends in one direction while the indicator trends in the opposite direction, signaling potential reversals or continuations in the market.
Key Features
Multi-Indicator Analysis
RSI Divergence: Identifies bullish and bearish divergences using the RSI, helping you spot potential reversals based on momentum.
OBV Divergence: Utilizes OBV to detect divergences related to volume flow, providing insights into the strength behind price movements.
Bullish and Bearish Signals
Bullish Divergence: Signals when indicators show higher lows while the price forms lower lows, suggesting a potential upward reversal.
Bearish Divergence: Alerts when indicators display lower highs while the price creates higher highs, indicating a possible downward reversal.
Signal Strength Classification
Standard Signals: Represent typical divergence occurrences, marked with green (bullish) and red (bearish) labels.
Strong Signals: Highlighted with yellow (strong bullish) and blue (strong bearish) labels when divergences coincide with overbought or oversold conditions, enhancing signal reliability.
Customizable Settings
Indicator Selection: Choose to enable RSI, OBV, or both based on your trading preferences.
Pivot Points: Adjust the number of bars left and right to fine-tune pivot detection for more accurate divergence identification.
Range Configuration: Set minimum and maximum bar ranges to control the sensitivity of divergence detection, suitable for different timeframes and trading styles.
Noise Cancellation: Reduce false signals by enabling noise filtering, ensuring that only significant divergences are highlighted.
Visual Clarity
Color-Coded Labels: Easily distinguish between different types of divergences with intuitive color codes—green for bullish, red for bearish, yellow for strong bullish, and blue for strong bearish signals.
Clean Chart Display: The indicator overlays seamlessly on your chart without clutter, ensuring that signals are easily identifiable without distracting from price action.
Real-Time Alerts
Custom Alert Conditions: Receive instant notifications for bullish and bearish divergences, enabling you to act promptly on potential trading opportunities.
Combined Alerts: Get alerts for either bullish or bearish signals, or both, based on your selected criteria.
How to Use
Add the Indicator to Your Chart
Apply the Advanced Divergence Indicator to your desired chart and timeframe.
Configure Settings
Select Indicators: Choose to enable RSI, OBV, or both under the "Indicator Settings" group.
Adjust Parameters: Customize RSI length, pivot points, and divergence ranges to match your trading strategy and the specific asset you are analyzing.
Enable Noise Cancellation: Activate this feature to filter out minor divergences and focus on more significant signals.
Interpret the Signals
Bullish Signals: Look for green or yellow labels below the price bars indicating potential upward reversals.
Bearish Signals: Identify red or blue labels above the price bars signaling possible downward reversals.
Strong Signals: Pay special attention to yellow and blue labels as they denote stronger divergences with higher reliability.
Set Up Alerts
Configure alert conditions within the indicator to receive real-time notifications when bullish or bearish divergences are detected, ensuring you never miss a trading opportunity.
Why Choose Advanced Divergence Indicator
Comprehensive Analysis : By combining RSI and OBV, the indicator provides a more robust analysis compared to single-indicator tools, enhancing the accuracy of divergence detection.
Flexibility : Highly customizable settings allow traders to tailor the indicator to their unique strategies and market conditions.
User-Friendly : Clear labels and color codes make it easy for traders of all levels to understand and act on the signals.
Reliability : Strong signal classification and noise cancellation features help reduce false positives, providing more trustworthy trading signals.
SufinBDThis TradingView script combines RSI, Stochastic RSI, MACD, and Bollinger Bands to generate Buy and Sell signals on two different timeframes: 4-hour (4H) and Daily (1D). The strategy aims to provide entry and exit points based on a multi-indicator confirmation approach, helping traders make more informed decisions.
Features:
RSI (Relative Strength Index):
Measures the speed and change of price movements.
The script looks for oversold conditions (RSI below 30) for buy signals and overbought conditions (RSI above 70) for sell signals.
Stochastic RSI:
Measures the level of RSI relative to its high-low range over a given period.
A Stochastic RSI below 0.2 indicates oversold conditions, and a value above 0.8 indicates overbought conditions.
It helps identify overbought and oversold conditions in a more precise manner than regular RSI.
MACD (Moving Average Convergence Divergence):
A trend-following momentum indicator that shows the relationship between two moving averages of a security's price.
The MACD line crossing above the Signal line generates bullish signals, and vice versa for bearish signals.
Bollinger Bands:
A volatility indicator that consists of a middle band (SMA of price), an upper band, and a lower band.
When the price is below the lower band, it signals potential buy opportunities, while prices above the upper band signal potential sell opportunities.
Timeframe Usage:
The script calculates indicators for both the 4-hour (4H) and Daily (1D) timeframes.
The combined signals from these two timeframes are used to generate Buy and Sell alerts.
Buy Signal:
A Buy signal is generated when all of the following conditions are met:
RSI on both 4H and 1D is below 30 (oversold conditions).
Stochastic RSI on both timeframes is below 0.2.
The MACD line is above the Signal line on both timeframes.
The price is below the lower Bollinger Band on both the 4H and 1D charts.
Sell Signal:
A Sell signal is generated when all of the following conditions are met:
RSI on both 4H and 1D is above 70 (overbought conditions).
Stochastic RSI on both timeframes is above 0.8.
The MACD line is below the Signal line on both timeframes.
The price is above the upper Bollinger Band on both the 4H and 1D charts.
Visuals:
Buy signals are marked with green labels below the bars.
Sell signals are marked with red labels above the bars.
Bollinger Bands are displayed on the chart with the upper and lower bands marked in blue (for 4H) and orange (for 1D).
Purpose:
This script aims to provide more reliable buy/sell signals by combining indicators across multiple timeframes. It is ideal for traders who want to use multiple confirmation points before entering or exiting a trade.
How to Use:
Apply the script to any chart on TradingView.
Look for Buy and Sell signals that meet the conditions above.
You can adjust the timeframe (e.g., 4H or 1D) based on your trading strategy.
This script can be used for intraday trading, swing trading, or position trading depending on your preferred timeframes.
Example of Signal Interpretation:
Buy Signal:
If all conditions are met (e.g., RSI is under 30, Stochastic RSI is under 0.2, MACD is bullish, and price is below the lower Bollinger Band on both the 4-hour and daily charts), the script will show a green "BUY" label below the price bar.
Sell Signal:
If all conditions are met (e.g., RSI is over 70, Stochastic RSI is over 0.8, MACD is bearish, and price is above the upper Bollinger Band on both timeframes), the script will show a red "SELL" label above the price bar.
This combination of indicators offers a multi-layered confirmation approach, which aims to reduce the risk of false signals and increase the reliability of your trading decisions.
Trend Heuristics (+Signals)Trend Heuristics - Enhanced Rolling VWAP with Smart Signals
This indicator is an enhanced version of the Rolling VWAP (RVWAP) concept, originally based on PineCoders' ConditionalAverages library. It combines volume-weighted average price analysis with advanced signal detection for both sweeps and breakouts.
Core Features
1. Rolling VWAP System
- Implements a dynamic rolling VWAP that adapts to different timeframes
- Includes standard deviation bands for volatility measurement
- Offers flexible time period settings (fixed or auto-adjusting)
- Provides customizable visual elements including bands and fills
2. Dual Signal System
Sweep Signals
Detects high-probability reversal points with these conditions:
- Bullish Sweep:
- Opens above upper band
- Tests below upper band (low)
- Closes above upper band
- Shows stronger lower wick
- Closes above previous high
- Has favorable close position (upper 50% of candle)
- Bearish Sweep:
- Opens below lower band
- Tests above lower band (high)
- Closes below lower band
- Shows stronger upper wick
- Closes below previous low
- Has favorable close position (lower 50% of candle)
Breakout Signals
Identifies potential trend changes with these conditions:
- Bullish Breakout:
- Opens below VWAP
- Closes above upper band
- Indicates strong momentum shift upward
- Bearish Breakout:
- Opens above VWAP
- Closes below lower band
- Indicates strong momentum shift downward
Technical Details
Base Components
- Built upon PineCoders' ConditionalAverages library
- Incorporates custom alert system via CustomAlertLib
- Uses standard deviation for band calculations
Customization Options
- Adjustable standard deviation multiplier
- Flexible time period settings
- Independent controls for sweep and breakout signals
- Customizable visual elements (colors, sizes, positions)
- Custom alert message formatting
Use Cases
1. Trend Following:
- Use VWAP as dynamic support/resistance
- Monitor breakout signals for trend changes
2. Mean Reversion:
- Use sweep signals for counter-trend opportunities
- Standard deviation bands for range identification
3. Volume Analysis:
- VWAP provides volume-weighted price levels
- Helps identify significant price levels
Notes
- Best performed on liquid instruments with consistent volume
- Most effective on timeframes from 1hours to 4 hours and 1D, anything greater isn't very good
- Recommended to use in conjunction with other technical analysis tools
- Signals can be filtered based on higher timeframe trends
Credits
- Original Rolling VWAP concept by PineCoders
Economic RegimeThis indicator, "Economic Regime" , provides a comprehensive analysis of market conditions by combining multiple asset classes and financial metrics. It uses normalized scores and trend analysis to classify the current economic regime into one of four categories: Goldilocks, Reflation, Inflation, or Deflation. The classification is based on inputs like S&P 500 performance, bond yields, commodity prices, volatility indices, and sector ETFs. Additionally, it plots key financial spreads, including the yield spread (10Y-2Y) and credit spread (HYG-LQD), to offer deeper insights into liquidity and market sentiment. The background color dynamically reflects the identified economic regime, facilitating quick visual interpretation.
ZelosKapital Weekly/Monthly HLThe ZelosKapital Weekly/Monthly high low indicator is designed to display the weekly and monthly high and low levels directly on the price chart. It helps traders easily identify key support and resistance zones by marking the highest and lowest points of the current week and month. The indicator automatically updates these levels as the price moves, providing a clear visual reference for intraday trading strategies.
Ideal for both Day Trading and Swing Trading, this tool offers valuable insights into potential reversal points, breakout areas, and zones of consolidation. By monitoring these significant price levels, traders can make more informed decisions, timing their entries and exits with greater precision. Whether you're looking for short-term price action or longer-term trends, the weekly and monthly highs and lows serve as critical levels to guide your trades.
Dynamic Display for Max/Min MA Types with Fake-Out FilterDynamic Moving Average Max/Min Indicator with Step Line Break
**** select the setting to STEP LINE BREAK****
This indicator provides a powerful way to identify dynamic entry and stop-loss levels for both long and short trades. It calculates the maximum and minimum values of a selected moving average (MA) over a specified lookback period, adapting dynamically to market conditions. It features options for various MA types, including SMA, EMA, HMA, RMA, and DEMA, to suit different trading strategies and styles.
How It Works
1. Moving Average Selection: Choose the type of moving average (SMA, EMA, HMA, RMA, or DEMA) and its period (e.g., HMA 13).
2. Max/Min Calculation: The indicator calculates the highest and lowest values of the selected moving average over a specified lookback period (e.g., 5 candles).
3. Dynamic Plotting:
• Bullish Market: When the price breaks the Max MA level, the Min level is plotted, trailing upward as a potential stop-loss for long trades.
• Bearish Market: When the price breaks the Min MA level, the Max level is plotted, trailing downward as a potential stop-loss for short trades.
4. Fake-Out Filter: If a candle breaks the Max/Min level but closes within the range (indicating a fake-out), the plots do not switch. This can cause repainting during volatile conditions, so use caution in high-wick markets.
Features
• Customizable Inputs: Adjust MA type, period, lookback, and timeframe to suit your trading strategy.
• Multi-Timeframe Flexibility: Works on all timeframes, from micro-scalping on the 1-minute chart to swing trading on higher timeframes.
• Trend Confirmation: Provides clear indications of when to enter or exit based on dynamic levels.
• Risk Management: Highlights stop-loss levels that trail the trend, helping to lock in profits or limit losses.
Advantages
1. Clear Entry/Exit Points: Provides actionable signals for both long and short trades, with defined stop-loss locations.
2. Customizable for Any Style: Tailor the indicator to your product, timeframe, and trading approach (scalping or swing trading).
3. Trend-Focused Guidance: Helps avoid counter-trend trades by showing the dominant trend direction.
4. Adaptive to Market Conditions: The dynamic nature of the indicator allows it to respond to both trending and consolidating markets.
Limitations
1. Repainting During Fake-Outs: The indicator can repaint during volatile periods with long wicks, as it filters for fake-out candles. This may create noise in certain market conditions.
2. Optimization Required: The ideal settings for MA type, period, and lookback are dependent on the market profile and need to be fine-tuned by the trader.
3. Less Effective in Consolidation: In sideways or choppy markets, the indicator may produce less reliable signals unless adjusted for lower sensitivity.
Trading Tips
• Use this indicator to focus on trending markets, avoiding trades against the prevailing trend. For example, during an uptrend, only take long trades and avoid shorts.
• Consider having two configurations: one for trending markets and one for consolidating markets, switching between them as needed.
• Pair this indicator with volume analysis, price action, or other complementary tools to increase accuracy and reduce noise.
This indicator is designed to be both an entry and risk management tool, enabling traders to make informed decisions while keeping risks in check.
Distribution & Follow-Through Day MarkerMarks D or F on candles based on IBD rule.
Distribution day: The loss must be at least -0.2%; the volume is higher than prior trading day.
Follow through day: The gain must be at least 1.2%; the volume is higher than prior trading day.
ANIL's OHCL, VWAP and EMA CrossPrevious Week High and Low:
This part calculates the previous week's high and low values and plots them as continuous blue lines. The plot.style_line ensures the lines are drawn continuously.
Previous Day Open, High, Low, Close:
The script uses request.security to get the previous day's open, high, low, and close values. These are plotted as continuous lines in different colors:
Open: Green
High: Red
Low: Orange
Close: Purple
VWAP (Volume Weighted Average Price):
The VWAP is calculated using ta.vwap(close) and plotted with a thick black line.
Exponential Moving Averages (EMAs):
The script calculates two EMAs: one with a 9-period (fast) and one with a 21-period (slow).
The EMAs are plotted as continuous lines:
Fast EMA: Blue
Slow EMA: Red
EMA Cross:
The script checks for EMA crossovers and crossunders:
A crossover (fast EMA crossing above slow EMA) triggers a buy signal (green label below the bar).
A crossunder (fast EMA crossing below slow EMA) triggers a sell signal (red label above the bar).
Customization:
You can adjust the fastLength and slowLength variables to change the period of the EMAs.
You can modify the line colors and line thickness to match your preferred style.
The buy and sell signals can be customized further with different shapes or additional conditions for signal generation.
This script provides a comprehensive and visually distinct indicator with the previous week's and day's levels, VWAP, and EMA crossover signals.
Candle Body Size Of Total SizeThis script calculates the candle body size as a percentage of the total candle size (range from high to low) and plots it as a histogram. It also includes a reference line at 70% to identify candles where the body is significant relative to the total range.
PreMarket_Estimator Portfolio [n_dot]AMEX:SOXL ; NASDAQ:TQQQ ; AMEX:FNGU ; AMEX:SOXS ; NASDAQ:SQQQ ; AMEX:FNGD
Strategy Core Idea:
I focus on stocks that are expected to show significant price movements (gaps) during the premarket, usually due to news or earnings reports. I record the highest price formed during the premarket, and if the price exceeds this level after the market opens, I go LONG. Based on my experience, it’s advisable to exit after a few percentage points of increase, as the premarket boom often corrects itself.
Usage:
The indicator is best used in pairs: Pre_Market_Estimator Single and Pre_Market_Estimator Portfolio.
In this portfolio version, you can set up 6 different instruments, which are displayed stacked vertically on the screen, while the single version monitors only one instrument. The portfolio does not plot charts at the actual price levels but offsets them vertically, displaying the current prices in a label at the end of each chart.
Settings:
Time point 1: Start of the observation period.
Time point 2: End of the observation period / Start of the trading period.
GAP: is used to adjust the distance between the charts displayed in the portfolio view. This allows you to customize the spacing for better readability and visualization of the monitored instruments.
Usage:
Set the timeframe period to "1m".
Set Time point 1 to the start of the premarket session on the current day (e.g., NYSE: 9:00).
Set Time point 2 to the market open (e.g., NYSE: 9:30).
The indicator monitors the highest price during the premarket period, marking it with a blue line.
During the subsequent trading period, if the price exceeds the premarket high, it generates a buy signal marked with a blue plus sign.
Limitations:
The premarket prediction typically provides actionable signals during the first 30 minutes to 1 hour of the trading session. After this, the trend is usually driven by daily market events or news.
To reduce data usage, the portfolio version of the indicator (which monitors 6 instruments simultaneously) only loads the last 24 hours of data (60 * 24 minutes). After this, the chart stops providing signals, and the time points need to be reset.
Additional Use Cases:
This type of breakout monitoring is not only suitable for observing premarket events but can also provide relevant information before major announcements.
For example, in the case of central bank rate hikes:
Set Point 1 to 1 hour before the announcement.
Set Point 2 to the time of the announcement.
I hope this contributes to your success!
Dual Spectrum RSI [CHE]Dual Spectrum RSI Indicator
Introduction
The Dual Spectrum RSI Indicator is an innovative and robust tool designed for traders aiming to enhance their market analysis and trading precision. This script leverages multi-timeframe analysis, advanced RSI configurations, and customizable visualization options to provide actionable insights for both trend-following and contrarian strategies.
Key Features
1. Dynamic Timeframe Selection
- Automatically adapts the resolution based on the current chart's timeframe.
- Options to switch between Auto Timeframe, Multiplier-based Timeframe, or Manual Resolution for complete control.
2. Advanced RSI Calculations
- Dual RSI setup for multi-layered analysis:
- Primary RSI for trend identification on the higher timeframe (HTF).
- Secondary RSI for entry signals with oversold/overbought crossovers on the current chart timeframe.
3. EMA Integration on Higher Timeframe (HTF)
- The Exponential Moving Average (EMA) acts as a robust trend filter, calculated on the Higher Timeframe (HTF).
- This ensures that trade signals align with the broader market trend, providing a strategic edge and reducing noise from lower timeframes.
4. Signal Clarity
- Visual labels for Buy and Sell signals directly on the chart.
- Dynamic stop-loss suggestions that adjust based on EMA crossovers and trend changes.
5. Customizable Visualization
- Gradient fills for overbought/oversold zones provide intuitive visual cues.
- User-friendly inputs for adjusting separator lines, color schemes, and label styles.
6. Comprehensive Data Display
- Real-time updates in an Info Box, showing active timeframe settings and resolution.
- Easy-to-understand trend conditions, making it accessible for both novice and professional traders.
Benefits for Traders
1. Precision in Decision-Making
The multi-timeframe capability ensures that traders always have the broader market context, minimizing false signals and enhancing trade accuracy.
2. Flexibility and Customization
Fully adjustable parameters allow traders to tailor the indicator to their unique trading style, whether scalping, day trading, or swing trading.
3. Enhanced Market Insights
By combining HTF trend filters, RSI dynamics, and EMA thresholds, this indicator provides a holistic view of market conditions.
4. User-Friendly Interface
The clean layout and intuitive options make it easy to integrate this tool into any TradingView setup.
5. Increased Confidence in Trades
With visual aids such as labels, gradients, and a trend-detection mechanism, traders can make decisions with greater confidence and less emotional bias.
Example Use Cases
1. Trend-Following Strategy
- Utilize the HTF EMA filter to confirm bullish or bearish trends.
- Enter trades when the secondary RSI crosses oversold/overbought levels in the direction of the trend.
2. Reversal Strategy
- Identify overextended trends using RSI crossovers.
- Look for counter-trend opportunities with precise stop-loss placements.
3. Scalping Setup
- Switch to intraday timeframes and use the multiplier-based resolution to capture short-term market movements.
How to Use
1. Add the script to your TradingView chart by pasting the provided Pine Script code into the Pine Editor.
2. Adjust the Timeframe Type, RSI parameters, and EMA length to align with your trading goals.
3. Monitor the generated signals and use them in conjunction with your broader trading strategy.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Conclusion
The Dual Spectrum RSI Indicator is not just another technical tool—it's a comprehensive trading companion that adapts to your needs, simplifies market analysis, and boosts your trading performance. Whether you're a beginner or a seasoned trader, this indicator provides the edge you need to succeed in today's dynamic markets.
Try It Today!
Experience the power of multi-timeframe analysis and take your trading to the next level. Add the Dual Spectrum RSI Indicator to your TradingView arsenal now!
Best regards
Chervolino
EMA SHIFT & PARALLEL [n_dot]BINANCE:ETHUSDT.P
This strategy was developed for CRYPTO FUTURES, (the settings for ETHUSDT.P) . I aimed for the strategy to function in a live environment, so I focused on making its operation realistic:
When determining the position, only 80% (adjustable) of the available cash is invested to reduce the risk of position liquidation.
I account for a 0.05% commission, typical on the futures market, for each entry and exit.
Concept:
I modified a simple, well-known method: the crossover of two exponential moving averages (FAST, SLOW) generates the entry and exit signals.
I enhanced the base idea as follows:
For the fast EMA, I incorporated a multiplier (offset) to filter out market noise and focus only on strong signals.
I use different EMAs for long and short entry points; both have their own FAST and SLOW EMAs and their own offset. For longs, the FAST EMA is adjusted downward (<1), while for shorts, it is adjusted upward (>1). Consequently, the signal is generated when the modified FAST EMA crosses the SLOW EMA.
Risk Management:
The position includes the following components:
Separate stop-losses for long and short positions.
Separate trailers for long and short positions.
The strategy operates so that the entry point is determined by the EMA crossover, while the exit is governed only by the Stop Loss or Trailer. Optionally, it can be set to close the position at the EMA recrossing ("Close at Signal").
Trailer Operation:
An entry percentage and offset are defined. The trailer activates when the price surpasses the entry price, calculated automatically by the system.
The trailer closes the position when the price drops by the offset percentage from the highest reached price.
Example for trailer:
Purchase Price = 100
Trailer Enter = 5% → Activation Price = 105 (triggers trailer if market price crosses it).
Trailer Offset = 2%
If the price rises to 110, the exit price becomes 107.8.
If the price goes to 120, the exit price becomes 117.6.
If the price falls below 117.6, the trailer closes the position.
Settings:
Source: Determines the market price reference.
End Close: Closes positions at the end of the simulation to avoid "shadow positions" and provide an objective result.
Lot proportional to free cash (%): Only a portion of free cash is invested to meet margin requirements.
Plot Short, Plot Long: Simplifies displayed information by toggling indicator lines on/off.
Long Position (toggleable):
EMA Fast ws: Window size for FAST EMA.
EMA Slow ws: Window size for SLOW EMA.
EMA Fast down shift: Adjustment factor for FAST EMA.
Stop Loss long (%): Percent drop to close the position.
Trailer enter (%): Percent above the purchase price to activate the trailer.
Trailer offset (%): Percent drop to close the position.
Short Position (toggleable):
EMA Fast ws: Window size for FAST EMA.
EMA Slow ws: Window size for SLOW EMA.
EMA Fast up shift: Adjustment factor for FAST EMA.
Stop Loss short (%): Percent rise to close the position.
Trailer enter (%): Percent below the purchase price to activate the trailer.
Trailer offset (%): Percent rise to close the position.
Operational Framework:
If in a long position and a short EMA crossover occurs, the strategy closes the long and opens a short (flip).
If in a short position and a long EMA crossover occurs, the strategy closes the short and opens a long (flip).
A position can close in three ways:
Stop Loss
Trailer
Signal Recrossing
If none are active, the position remains open until the end of the simulation.
Observations:
Shifts significantly deviating from 1 increase overfitting risk. Recommended ranges: 0.96–0.99 (long) and 1.01–1.05 (short).
The strategy's advantage lies in risk management, crucial in leveraged futures markets. It operates with relatively low DrawDown.
Recommendations:
Bullish Market: Higher entry threshold (e.g., 6%) and larger offset (e.g., 3%).
Volatile/Sideways Market: Tighter parameters (e.g., 3%, 1%).
The method is stable, and minor parameter adjustments do not significantly impact results, helping assess overfitting: if small changes lead to drastic differences, the strategy is over-optimized.
EMA Settings: Adjust FAST and SLOW EMAs based on the asset's volatility and cyclicality.
On the crypto market, especially in the Futures market, short time periods (1–15 minutes) often show significant noise, making patterns/repetitions hard to identify. I recommend setting the interval to at least 1 hour.
I hope this contributes to your success!