Percentage Retracement from ATH█ OVERVIEW
The Percentage Retracement from ATH indicator is a dynamic trading utility designed to help traders gauge market pullbacks from the peak price. By calculating key retracement levels based on the All-Time High (ATH) and user‑defined percentage inputs, it offers clear visual cues to assist in identifying potential support and resistance zones.
█ KEY FEATURES
Custom Date — Use a custom start date so the indicator only considers specified price action.
Retracement Calculation — Determines ATH and calculates levels based on user‑defined percentages (0% to –100%).
Visual Customisation — Plots configurable horizontal lines and labels showing retracement percentages and prices.
Time Filtering — Uses time filtering to base levels on the desired data period.
█ PURPOSE
Assist traders in visualising the depth of price retracements from recent or historical peaks.
Identify critical zones where the market may find support or resistance after reaching an ATH.
Facilitate more informed entry and exit decisions by clearly demarcating retracement levels on the chart.
█ IDEAL USERS
Swing Traders — Looking to exploit pullbacks following strong upward moves.
Technical Analysts — Interested in pinpointing key retracement levels as potential reversal or continuation points.
Price Action Traders — Focused on the nuances of market peaks and subsequent corrections.
Strategy Developers — Keen to backtest and refine approaches centred on retracement dynamics.
Sentiment
NASDAQ 100 Top 6 Average TrendTakes the average of the top 6 Nasdaq 100, AAPL, MSFT, GOOGL, AMZN, NVDA, META.. If the average is moving down the red indicator will show its a downward sellers market. If the average is moving up is an upward buyers market. Use the higher moving average to work with smaller time frames.
Intraday ORB Breakout IndicatorThis is an intraday indicator works in a 15-minute timeframe.
Timeframe - 15 min
IB Range - 1-hour range after the market opens in India (i.e. 9.15 to 10.15 AM range)
If the price shows a breakout of IB High or a breakdown of IB low and the breakout/breakdown candle has less than 20% of the wick (selling wick in breakout and buying wick in breakdown) in a 15-minute chart, then it will set a flag or alert mechanism on the chart with 'Long' or 'Short' terms. It also marks the IB range (9.15 to 10.15 AM range) with two simple lines.
Traders should wait for the break of the high of the breakout candle or the low of the breakdown candle to take their trades. Besides, one should follow proper risk management rules when making trades.
// Disclaimer: This indicator is for educational purposes only.
// I am not responsible for any financial losses incurred from its use.
MOMENTUM CANDLEThis script checks the following conditions:
- Latest Open < 1 day ago High
- Latest Close < 1 day ago High
- Latest Open > Latest Low
- Latest Close > 1 day ago Low
- 1 day ago Open < Latest High
- 1 day ago Open < Latest High ( duplicate condition)
- 1 day ago Open > Latest Low
Gatilho de Candle Cardoso.EthO Gatilho de Candle Cardoso.Eth é um indicador projetado para identificar oportunidades de compra e venda com base em padrões de impulsão de candles, validando os sinais com médias móveis exponenciais (EMAs).
Este indicador busca confirmar sinais de entrada a favor da tendência predominante, filtrando setups de compra e venda apenas quando o preço estiver alinhado com as médias móveis. Isso reduz sinais falsos e melhora a precisão das operações.
Indicado para TMF H4.
Para mais informações de trade me siga no instagram: @Cardoso.eth .
Intraday ORB Breakout IndicatorThis is only applicable to intraday trading in 15 minutes timeframe.
It highlights the 1-hour range in Indian markets i.e. 9.15 AM to 10.15 AM.
If the price shows a breakout of a 1-hour High or a breakdown of a 1-hour low and the breakout/breakdown candle has less than 20% of the wick (selling wick in breakout and buying wick in breakdown) in the 15-minute chart, then it will set an alert 'Long' or 'Short' on the chart.
However, to take a trade, one must wait for the break of the high of the breakout candle for a long trade or a break of the low of the breakdown candle for a short trade. Besides, one should follow proper risk management rules to manage their trades.
Percent Change HistogramThis indicator shows you percent changes in a super visual way using a color-coded histogram.
Here's how the colors work:
🟩 Dark green = percent change is growing stronger
🟢 Light green = still positive but losing steam
🟥 Dark red = getting more negative
🔴 Light red = negative but improving
The cool part? You can set any lookback period you want. For example:
24 periods on 1H chart = last 24 hours
30 periods on daily = last month
7 periods on daily = last week
Pro tip: You're not locked to your chart's timeframe! Want to see monthly changes while trading on 5min?
No problem.
You can even stack multiple indicators to watch different intervals simultaneously (daily, weekly, monthly) - super helpful for multi-timeframe analysis.
Perfect for spotting momentum shifts across different timeframes without switching between charts.
VIX Differential(Melon)Simple indy that measures the difference between VIX9D and VIX to try assessing short-term market sentiment. I've liked this recently as a big clue for market bottom reversals.
Directional Cycle Indicator (DCI) with True Apex/Nadir CyclesAn indication where the cycle goes over 0 it means it goes up and it's probably time to sell and give you the apex .When under zero and when it's it is in the nadir then it's time to buy , that's it
SPDR Sectors█ OVERVIEW
This script is an interactive and customizable SPDR Sectors Indicator designed to monitor and analyze the performance of the 11 main sectors of the S&P 500 using sector-specific ETFs. The script provides a dynamic table for tracking daily or periodic sector movements, making it an essential tool for traders, analysts, and investors implementing sector rotation strategies.
█ DEFINITIONS
SPDR Sectors ETFs are exchange-traded funds managed by State Street Global Advisors that divide the S&P 500 into the following 11 sectors:
- Communication Services (XLC)
- Consumer Discretionary (XLY)
- Consumer Staples (XLP)
- Energy (XLE)
- Financials (XLF)
- Health Care (XLV)
- Industrials (XLI)
- Materials (XLB)
- Real Estate (XLRE)
- Technology (XLK)
- Utilities (XLU)
These ETFs aim to replicate the performance of their respective sectors as defined by the Global Industry Classification Standard (GICS). The funds are periodically rebalanced to match changes in the S&P 500, offering an accurate reflection of sectoral trends.
█ INDICATOR
The script provides a table displaying the ticker and its corresponding sector name in official GICS terminology, using the SPDR official color. Additionally, it shows the percentage performance, calculated daily for intraday charts or according to the chart's time frame.
The table can be sorted in ascending or descending order, based on either performance or the weight of the ETFs in the S&P 500, which can be manually updated using data retrieved from www.sectorspdrs.com
Auto-Adjusting Kalman Filter by TenozenNew year, new indicator! Auto-Adjusting Kalman Filter is an indicator designed to provide an adaptive approach to trend analysis. Using the Kalman Filter (a recursive algorithm used in signal processing), this algo dynamically adjusts to market conditions, offering traders a reliable way to identify trends and manage risk! In other words, it's a remaster of my previous indicator, Kalman Filter by Tenozen.
What's the difference with the previous indicator (Kalman Filter by Tenozen)?
The indicator adjusts its parameters (Q and R) in real-time using the Average True Range (ATR) as a measure of market volatility. This ensures the filter remains responsive during high-volatility periods and smooth during low-volatility conditions, optimizing its performance across different market environments.
The filter resets on a user-defined timeframe, aligning its calculations with dominant trends and reducing sensitivity to short-term noise. This helps maintain consistency with the broader market structure.
A confidence metric, derived from the deviation of price from the Kalman filter line (measured in ATR multiples), is visualized as a heatmap:
Green : Bullish confidence (higher values indicate stronger trends).
Red : Bearish confidence (higher values indicate stronger trends).
Gray : Neutral zone (low confidence, suggesting caution).
This provides a clear, objective measure of trend strength.
How it works?
The Kalman Filter estimates the "true" price by filtering out market noise. It operates in two steps, that is, prediction and update. Prediction is about projection the current state (price) forward. Update is about adjusting the prediction based on the latest price data. The filter's parameters (Q and R) are scaled using normalized ATR, ensuring adaptibility to changing market conditions. So it means that, Q (Process Noise) increases during high volatility, making the filter more responsive to price changes and R (Measurement Noise) increases during low volatility, smoothing out the filter to avoid overreacting to minor fluctuations. Also, the trend confidence is calculated based on the deviation of price from the Kalman filter line, measured in ATR multiples, this provides a quantifiable measure of trend strength, helping traders assess market conditions objectively.
How to use?
Use the Kalman Filter line to identify the prevailing trend direction. Trade in alignment with the filter's slope for higher-probability setups.
Look for pullbacks toward the Kalman Filter line during strong trends (high confidence zones)
Utilize the dynamic stop-loss and take-profit levels to manage risk and lock in profits
Confidence Heatmap provides an objective measure of market sentiment, helping traders avoid low-confidence (neutral) zones and focus on high-probability opportunities
Guess that's it! I hope this indicator helps! Let me know if you guys got some feedback! Ciao!
EMA Crossover with 50 EMA Filter50-period EMA: We added the 50-period EMA as the filterEMA variable.
Buy and Sell Conditions: The buy signal is generated only if the 8-period and 16-period EMAs both cross above each other and are above the 50-period EMA. Similarly, the sell signal is generated when the 8-period and 16-period EMAs cross below each other and are below the 50-period EMA.
Plotting: The 50-period EMA is also plotted on the chart (in orange).
This strategy will ensure that the buy signals are only triggered when the trend is considered "bullish" (both EMAs above the 50 EMA) and sell signals when the trend is "bearish" (both EMAs below the 50 EMA).
You can set up alerts for both buy and sell conditions using the alertcondition() function.
Let me know if you need further adjustments!
NOTE :- Applicable only for banknifty
Candle Emotion Index (CEI) StrategyThe Candle Emotion Index (CEI) Strategy is an innovative sentiment-based trading approach designed to help traders identify and capitalize on market psychology. By analyzing candlestick patterns and combining them into a unified metric, the CEI Strategy provides clear entry and exit signals while dynamically managing risk. This strategy is ideal for traders looking to leverage market sentiment to identify high-probability trading opportunities.
How It Works
The CEI Strategy is built around three core oscillators that reflect key emotional states in the market:
Indecision Oscillator . Measures market uncertainty using patterns like Doji and Spinning Tops. High values indicate hesitation, signaling potential turning points.
Fear Oscillator . Tracks bearish sentiment through patterns like Shooting Star, Hanging Man, and Bearish Engulfing. Helps identify moments of intense selling pressure.
Greed Oscillator . Detects bullish sentiment using patterns like Marubozu, Hammer, Bullish Engulfing, and Three White Soldiers. Highlights periods of strong buying interest.
These oscillators are averaged into the Candle Emotion Index (CEI):
CEI = (Indecision + Fear + Greed) / 3
This single value quantifies overall market sentiment and drives the strategy’s trading decisions.
Key Features
Sentiment-Based Trading Signals . Long Entry: Triggered when the CEI crosses above a lower threshold (e.g., 0.1), indicating increasing bullish sentiment. Short Entry: Triggered when the CEI crosses above a higher threshold (e.g., 0.2), signaling rising bearish sentiment.
Volume Confirmation . Trades are validated only if volume exceeds a user-defined multiplier of the average volume over the lookback period. This ensures entries are backed by significant market activity.
Break-Even Recovery Mechanism . If a trade moves into a loss, the strategy attempts to recover to break-even instead of immediately exiting at a loss. This feature provides flexibility, allowing the market to recover while maintaining disciplined risk management.
Dynamic Risk Management . Maximum Holding Period: Trades are closed after a user-defined number of candles to avoid overexposure to prolonged uncertainty. Profit-Taking Conditions: Positions are exited when favorable price moves are confirmed by increased volume, locking in gains. Loss Threshold: Trades are exited early if the price moves unfavorably beyond a set percentage of the entry price, limiting potential losses.
Cooldown Period . After a trade is closed, a cooldown period prevents immediate re-entry, reducing overtrading and improving signal quality.
Why Use This Strategy?
The CEI Strategy combines advanced sentiment analysis with robust trade management, making it a powerful tool for traders seeking to understand market psychology and identify high-probability setups. Its unique features, such as the break-even recovery mechanism and volume confirmation, add an extra layer of discipline and reliability to trading decisions.
Best Practices
Combine with Other Indicators . Use trend-following tools (e.g., moving averages, ADX) and momentum oscillators (e.g., RSI, MACD) to confirm signals.
Align with Key Levels . Incorporate support and resistance levels for refined entries and exits.
Multi-Market Compatibility . Apply this strategy to forex, crypto, stocks, or any asset class with strong volume and price action.
Grid Trading with RSI and Fibonacci SLThis script implements a grid trading strategy that buys when the "AI" confidence is high and the RSI is oversold, and sells when the "AI" confidence is high and the RSI is overbought.
It uses a Fibonacci-based stop-loss and adjusts the grid levels and trade size after each trade.
The "AI" is a very simple rule-based system, not actual artificial intelligence. The script also plots the RSI, AI confidence, grid price, and stop-loss level on the chart.
It's important to thoroughly backtest and understand the risks associated with grid trading strategies before using them with real capital.
CryptoMitchX Memecoin ShorterUpdate for "CryptoMitchX Memecoin Shorter" Indicator
New Features & Improvements:
Conditional Hiding of Recommendations:
SHORT Recommendations: These are now hidden when the RSI (Relative Strength Index) falls below 30, preventing signals during potentially oversold conditions.
Take Profit Recommendations: Hidden when the RSI goes above 60, avoiding signals in potentially overbought market conditions.
Refined Alert System:
Alerts for both SHORT and Take Profit signals now only trigger when the RSI conditions are met, ensuring more targeted notifications.
Code Optimization:
The script has been updated to address scope-related errors, improving its reliability and performance on the TradingView platform.
Technical Details:
RSI Implementation: The RSI is calculated with a 14-period length to determine market momentum.
Conditional Plotting: Instead of using direct conditional statements inside plotting functions, we now use boolean variables to control which signals are plotted, avoiding local scope issues.
Signal Tracking: Continues to track consecutive signals, but now with the added condition of RSI thresholds for more nuanced trading signals.
Usage:
Users will see a cleaner chart with signals only appearing when they are most relevant according to RSI levels, reducing false signals and improving the overall trading strategy experience.
I nstallation:
Simply update or replace the existing indicator script with this new version in your TradingView Pine Script editor.
Known Issues & Limitations:
This update does not include real sentiment analysis due to the limitations of Pine Script in accessing external data. The sentiment is simulated based on price volatility and direction.
Feedback:
We're eager to hear your feedback on these changes. If you encounter any issues or have suggestions for further improvements, please let us know.
Memecoin Shorter Indicator by CryptoMitchXMemecoin Shorter Indicator by CryptoMitchX
Introducing the "Memecoin Shorter Indicator" designed for traders looking to capitalize on the volatile nature of memecoins. This is built on the concept that MemeCoins can't sustain their rallies and that profits move into safer cryptocurrencies like Bitcoin or Stablecoins.
This indicator combines momentum, volume, and sentiment analysis to signal shorting opportunities with a cap at two consecutive signals to manage risk effectively.
Key Features:
Momentum Analysis: Uses Simple Moving Averages (SMA) to detect when the short-term trend crosses below the long-term trend, indicating potential downward momentum.
Volume Spike Detection: Identifies significant volume increases that could signify a reversal or continuation of a downtrend.
Simulated Sentiment Analysis: Monitors price volatility to simulate sentiment, suggesting "Take Profit" when conditions hint at negative market sentiment.
How to Use:
SHORT: The indicator marks "SHORT" on the chart when conditions are met to initiate a short position. This happens when negative momentum, volume spikes, or simulated negative sentiment are combined.
Take Profit: Signals to take profit after initiating a short position, again limited to two consecutive signals.
Strategies and Tips for Optimization:
Backtesting and Forward Testing:
Before live trading, backtest this indicator with historical data to see how it performs over different market conditions, especially during memecoin pump-and-dump cycles.
Use forward testing in a demo account to understand real-time performance without financial risk.
Customization:
Adjust the short_sma_length and long_sma_length according to the asset's volatility. More volatile memecoins might require shorter periods for quicker signals.
Modify volume_spike_threshold to be more or less sensitive to volume changes based on the average trading volume of the asset.
Risk Management:
Since this indicator allows for two consecutive signals, set strict stop-losses to manage risk. Consider the percentage drop from your entry price where you are comfortable cutting losses.
Use this indicator in conjunction with other technical analysis tools like RSI or MACD for confirmation signals to increase the reliability of your trades.
Market Context:
Understand the broader market sentiment towards memecoins. This indicator works best in bearish or highly volatile scenarios. Keep an eye on news and social media trends that could affect memecoin prices.
Trade Sizing:
Due to the speculative nature of memecoins, consider smaller position sizes to manage potential losses. Even with only two consecutive signals, losses can accumulate quickly in volatile markets.
Exit Strategy:
Beyond taking profit on signals, consider setting a trailing stop loss or using a time-based exit strategy if the market doesn't move as expected after your entry.
Alert Utilization:
Set up alerts for both SHORT and Take Profit signals to monitor opportunities without needing constant chart watching.
Remember, trading meme coins involves high risk due to their speculative nature and susceptibility to manipulation. Always trade with what you can afford to lose and use this indicator as part of a broader trading strategy.
Note: This indicator simulates sentiment based on price action; for real sentiment analysis, external data integration would be necessary, which is beyond the scope of Pine Script in TradingView.
US10Y 63-Day Range Percentage [TomasOnMarkets]Shows the relation of US Government Bonds 10 YR Yield to risk assets like S&P500.
When yields move to the 80th percentile of their rolling 1 quarter (63 day) range, the S&P500 struggles.
The indicator chart's background is painted with red when yields move over 80th percentile. Notice how the risk assets (eg S&P500) goes down in that range.
The indicator works pretty good for the S&P500.
Not as good for bitcoin, but maybe still useful
Credits:
Tomas (@TomasOnMarkets) - x.com/TomasOnMarkets/status/1881770106356641885
Warren Pies (@WarrenPies) - x.com/WarrenPies/status/1881480249139187974
9/21 EMA_DSWThe 9 and 21 Exponential Moving Average (EMA) crossover is a popular technical indicator used by traders to identify potential buy and sell signals in the market. The 9 EMA is a shorter-term moving average, which responds more quickly to recent price movements, while the 21 EMA is a longer-term moving average that smooths out price action over a longer period. A bullish signal occurs when the 9 EMA crosses above the 21 EMA, suggesting upward momentum and a potential buying opportunity. Conversely, a bearish signal occurs when the 9 EMA crosses below the 21 EMA, indicating downward momentum and a potential selling opportunity. Traders often use this crossover in combination with other indicators, such as volume or RSI, to confirm the strength of the trend. The strategy is commonly applied in various time frames, from intraday charts to longer-term setups, and is widely used for trend-following strategies. However, it’s essential to keep in mind that the EMA crossover strategy can produce false signals in choppy or sideways markets.
Dynamic Ticks Oscillator Model (DTOM)The Dynamic Ticks Oscillator Model (DTOM) is a systematic trading approach grounded in momentum and volatility analysis, designed to exploit behavioral inefficiencies in the equity markets. It focuses on the NYSE Down Ticks, a metric reflecting the cumulative number of stocks trading at a lower price than their previous trade. As a proxy for market sentiment and selling pressure, this indicator is particularly useful in identifying shifts in investor behavior during periods of heightened uncertainty or volatility (Jegadeesh & Titman, 1993).
Theoretical Basis
The DTOM builds on established principles of momentum and mean reversion in financial markets. Momentum strategies, which seek to capitalize on the persistence of price trends, have been shown to deliver significant returns in various asset classes (Carhart, 1997). However, these strategies are also susceptible to periods of drawdown due to sudden reversals. By incorporating volatility as a dynamic component, DTOM adapts to changing market conditions, addressing one of the primary challenges of traditional momentum models (Barroso & Santa-Clara, 2015).
Sentiment and Volatility as Core Drivers
The NYSE Down Ticks serve as a proxy for short-term negative sentiment. Sudden increases in Down Ticks often signal panic-driven selling, creating potential opportunities for mean reversion. Behavioral finance studies suggest that investor overreaction to negative news can lead to temporary mispricings, which systematic strategies can exploit (De Bondt & Thaler, 1985). By incorporating a rate-of-change (ROC) oscillator into the model, DTOM tracks the momentum of Down Ticks over a specified lookback period, identifying periods of extreme sentiment.
In addition, the strategy dynamically adjusts entry and exit thresholds based on recent volatility. Research indicates that incorporating volatility into momentum strategies can enhance risk-adjusted returns by improving adaptability to market conditions (Moskowitz, Ooi, & Pedersen, 2012). DTOM uses standard deviations of the ROC as a measure of volatility, allowing thresholds to contract during calm markets and expand during turbulent ones. This approach helps mitigate false signals and aligns with findings that volatility scaling can improve strategy robustness (Barroso & Santa-Clara, 2015).
Practical Implications
The DTOM framework is particularly well-suited for systematic traders seeking to exploit behavioral inefficiencies while maintaining adaptability to varying market environments. By leveraging sentiment metrics such as the NYSE Down Ticks and combining them with a volatility-adjusted momentum oscillator, the strategy addresses key limitations of traditional trend-following models, such as their lagging nature and susceptibility to reversals in volatile conditions.
References
• Barroso, P., & Santa-Clara, P. (2015). Momentum Has Its Moments. Journal of Financial Economics, 116(1), 111–120.
• Carhart, M. M. (1997). On Persistence in Mutual Fund Performance. The Journal of Finance, 52(1), 57–82.
• De Bondt, W. F., & Thaler, R. (1985). Does the Stock Market Overreact? The Journal of Finance, 40(3), 793–805.
• Jegadeesh, N., & Titman, S. (1993). Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency. The Journal of Finance, 48(1), 65–91.
• Moskowitz, T. J., Ooi, Y. H., & Pedersen, L. H. (2012). Time Series Momentum. Journal of Financial Economics, 104(2), 228–250.
Global Relevant Events MarkerThe Global Relevant Events Marker script is designed to mark significant global events on a chart, such as economic crises or major geopolitical events. It uses vertical lines to indicate the exact dates of these events and places labels (optional) near the lines to provide a description of the event.