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!
Automatic comparison of symbols depending on custom listIn the indicator settings, specify a list of tickers and the corresponding symbol for comparison (e.g. TVC:DXY). Each new list must be on a separate line. The line must begin with the symbol for comparison, then an equal sign (=), and then a list of tickers separated by commas (e.g. OANDA:XAUUSD, OANDA:XAGUSD). If the ticker selected in the chart window is not found in any of the lists, then the symbol from the first list, which is specified before the equal sign, will be used as the symbol for comparison. For example:
TVC:DXY = OANDA:XAUUSD, OANDA:XAGUSD
OANDA:BCOUSD = OANDA:SPX500USD
OANDA:SPX500USD = BINANCE:BTCUSDT
***
Автоматическое сравнение символов в зависимости от настраиваемого списка
В настройках индикатора укажите список тикеров и соответствующий символ для сравнения. Каждый новый список должен быть на отдельной строке. В начале строки должен быть указан символ для сравнения (например, TVC:DXY), затем знак равенства (=) и после него список тикеров, разделенных запятыми (например, OANDA:XAUUSD, OANDA:XAGUSD). Если выбранный в окне графика тикер не будет найден ни в одном из списков, то в качестве символа для сравнения ему будет соответствовать символ из первого списка, который указан перед знаком равенства. Например:
TVC:DXY = OANDA:XAUUSD, OANDA:XAGUSD
OANDA:BCOUSD = OANDA:SPX500USD
OANDA:SPX500USD = BINANCE:BTCUSDT
FVG Detector (Gholam version)The Fair Value Gap (FVG) Detector is a powerful tool designed to identify and highlight potential imbalance areas in the market. Fair Value Gaps, also known as "FVG" or "Liquidity Gaps," are price ranges where there has been little or no trading activity. These gaps can often act as key levels of support or resistance and may represent areas where price is likely to return to for a fill, providing potential trading opportunities.
This indicator automatically scans and marks these gaps on the chart, helping traders quickly spot areas of interest for potential reversals or continuation patterns.
CandelaCharts - Equal Highs/Lows (EQH/EQL) 📝 Overview
The Equal Highs/Lows indicator is a specialized tool for detecting equal highs and lows within price movements.
These levels hold importance as they frequently signal possible reversal zones or consolidation phases in the market. By leveraging Average True Range (ATR) thresholds, the indicator employs tailored settings to pinpoint these critical price levels with precision.
Visual Markings: Lines and labels highlight equal highs and lows directly on the chart.
Dynamic Adaptability: It adjusts in real time to market volatility, ensuring accurate level identification through ATR-based thresholds.
Equal Highs are not used as entry and exit points; instead, they are used as confirmation that the current market trend will reverse. This means that when an EQH is formed on a chart, traders can adapt a bearish bias and look for only short entries.
📦 Features
Key features of the indicator include:
Visual Markings: Lines and labels highlight equal highs and lows directly on the chart.
Dynamic Adaptability: It adjusts in real time to market volatility, ensuring accurate level identification through ATR-based thresholds.
Styling
⚙️ Settings
Show: Controls whether EQH/EQL are displayed on the chart.
Line Style: Controls the line type and line width
Bullish Color: Color of the bullish EQH/EQL
Bearish Color: Color of the bearish EQH/EQL
⚡️ Showcase
Short Term
Intermediate Term
Long Term
🚨 Alerts
This script provides alert options for all signals.
Bearish Signal
A bearish signal is triggered when the price forms an EQH.
Bullish Signal
A bullish signal is triggered when the price forms an EQL.
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
LibraryDivergenceV6LibraryDivergenceV6
Enhance your trading strategies with LibraryDivergenceV6, a comprehensive Pine Script library designed to simplify and optimize the detection of bullish and bearish divergences across multiple technical indicators. Whether you're developing your own indicators or seeking to incorporate robust divergence analysis into your trading systems, this library provides the essential tools and functions to accurately identify potential market reversals and continuations.
Overview
LibraryDivergenceV6 offers a suite of functions that detect divergences between price movements and key technical indicators such as the Relative Strength Index (RSI) and On-Balance Volume (OBV). By automating the complex calculations involved in divergence detection, this library enables traders and developers to implement reliable and customizable divergence strategies with ease.
Key Features
Comprehensive Divergence Detection
Bullish Divergence: Identifies instances where the indicator forms higher lows while the price forms lower lows, signaling potential upward reversals.
Bearish Divergence: Detects situations where the indicator creates lower highs while the price forms higher highs, indicating possible downward reversals.
Overbought and Oversold Conditions: Differentiates between standard and strong divergences by considering overbought and oversold levels, enhancing signal reliability.
Multi-Indicator Support
RSI (Relative Strength Index): Analyze momentum-based divergences to spot potential trend reversals.
OBV (On-Balance Volume): Incorporate volume flow into divergence analysis for a more comprehensive market perspective.
Customizable Parameters
Pivot Points Configuration: Adjust the number of bars to the left and right for pivot detection, allowing fine-tuning based on different timeframes and trading styles.
Range Settings: Define minimum and maximum bar ranges to control the sensitivity of divergence detection, reducing false signals.
Noise Cancellation: Enable or disable noise filtering to focus on significant divergences and minimize minor fluctuations.
Flexible Usage
Exported Functions: Easily integrate divergence detection into your custom indicators or trading strategies with exported functions such as DivergenceBull, DivergenceBear, DivergenceBullOversold, and DivergenceBearOverbought.
Occurrence Handling: Specify which occurrence of a divergence to consider (e.g., most recent, previous) for precise analysis.
Optimized Performance
Efficient Calculations: Designed to handle multiple occurrences and pivot points without compromising script performance.
Line Management: Automatically creates and deletes trend lines based on divergence conditions, ensuring a clean and uncluttered chart display.
1% Drop from OpenTracks if price drops 1% from market open and marks it up with a call out on screen