Breadth Thrust Indicator by Zweig (NYSE Data with Volume)The Breadth Thrust Indicator, based on Zweig's methodology, is used to gauge the strength of market breadth and potential bullish signals. This indicator evaluates the breadth of the market by analyzing the ratio of advancing to declining stocks and their associated volumes.
Usage:
Smoothing Length: Adjusts the smoothing period for the combined ratio of breadth and volume.
Low Threshold: Defines the threshold below which the smoothed combined ratio should fall to consider a bullish signal.
High Threshold: Sets the upper threshold that the smoothed combined ratio must exceed to confirm a bullish Breadth Thrust signal.
Signal Interpretation:
Bullish Signal: A background color change to green indicates that the Breadth Thrust condition has been met. This occurs when the smoothed combined ratio crosses above the high threshold after being below the low threshold. This signal suggests strong market breadth and potential bullish momentum.
By using this indicator, traders can identify periods of strong market participation and potential upward price movement, helping them make informed trading decisions.
Osilator
RSI Strategy with Adjustable RSI and Stop-LossThis trading strategy uses the Relative Strength Index (RSI) and a Stop-Loss mechanism to make trading decisions. Here’s a breakdown of how it works:
RSI Calculation:
The RSI is calculated based on the user-defined length (rsi_length). This is a momentum oscillator that measures the speed and change of price movements.
Buy Condition:
The strategy generates a buy signal when the RSI value is below a user-defined threshold (rsi_threshold). This condition indicates that the asset might be oversold and potentially due for a rebound.
Stop-Loss Mechanism:
Upon triggering a buy signal, the strategy calculates the Stop-Loss level. The Stop-Loss level is set to a percentage below the entry price, as specified by the user (stop_loss_percent). This level is used to limit potential losses if the price moves against the trade.
Sell Condition:
A sell signal is generated when the current closing price is higher than the highest high of the previous day. This condition suggests that the price has reached a new high, and the strategy decides to exit the trade.
Plotting:
The RSI values are plotted on the chart for visual reference. A horizontal line is drawn at the RSI threshold level to help visualize the oversold condition.
Summary
Buying Strategy: When RSI is below the specified threshold, indicating potential oversold conditions.
Stop-Loss: Set based on a percentage of the entry price to limit potential losses.
Selling Strategy: When the price surpasses the highest high of the previous day, signaling a potential exit point.
This strategy aims to capture potential rebounds from oversold conditions and manage risk using a Stop-Loss mechanism. As with any trading strategy, it’s essential to test and optimize it under various market conditions to ensure its effectiveness.
RSI-based MACDThe RSI is one of the most popular indicators available. This indicator, which represents the strength of market momentum based on the gains and losses over the past 14 candlesticks, is rational and is mainly used as an oscillator to determine overbought or oversold conditions. However, because the RSI is an older indicator, its very simple design—displaying only a single line on the graph—may feel somewhat lacking in functionality to modern traders. The main issue is that there is no objective measure to determine whether the RSI is currently rising or falling.
That’s when I came up with the idea of calculating the MACD based on the smoothed values of the RSI. As is well known, the MACD is an indicator that represents the distance between moving averages, designed to show when the moving averages cross as the value falls below zero. By observing the golden crosses and death crosses of the MACD and signal line, one can anticipate the golden and death crosses of the moving averages. Applying the same logic, I thought that calculating the MACD based on RSI values would allow us to predict the rise and fall of the RSI by observing these golden and death crosses.
Currently, the RSI is often used as a contrarian indicator to determine overbought and oversold conditions, but with this approach, I believe the RSI can instead function extremely well as a trend-following indicator. Whenever an uptrend occurs, the RSI inevitably rises, and when a downtrend occurs, the RSI inevitably falls. Therefore, by predicting the rise and fall of the RSI, it becomes possible to forecast what kind of trend is likely to develop.
In this indicator, the MACD calculated from the RSI is displayed, with the original RSI line plotted above it. Since the scales of the RSI and MACD are different, I originally wanted to provide a separate scale for the RSI on the left side. However, due to TradingView’s limitations, it seems quite difficult to display more than one scale in a single panel, so I had to give up on that. Instead, I ask that you mentally multiply the RSI values displayed on the right by 10—for example, 2.11 indicates 21.1%.
Additionally, as a bonus, I’ve included a feature that detects divergences. With these features, I believe this has become the most useful indicator when compared to existing RSI-based indicators. I hope you find it helpful in your trading.
Approximate Spectral Entropy-Based Market Momentum (SEMM)Overview
The Approximate Spectral Entropy-Based Market Momentum (SEMM) indicator combines the concepts of spectral entropy and traditional momentum to provide traders with insights into both the strength and the complexity of market movements. By measuring the randomness or predictability of price changes, SEMM helps traders understand whether the market is in a trending or consolidating state and how strong that trend or consolidation might be.
Key Features
Entropy Measurement: Calculates the approximate spectral entropy of price movements to quantify market randomness.
Momentum Analysis: Integrates entropy with rate-of-change (ROC) to highlight periods of strong or weak momentum.
Dynamic Market Insight: Provides a dual perspective on market behavior—both the trend strength and the underlying complexity.
Customizable Parameters: Adjustable window length for entropy calculation, allowing for fine-tuning to suit different market conditions.
Concepts Underlying the Calculations
The indicator utilizes Shannon entropy, a concept from information theory, to approximate the spectral entropy of price returns. Spectral entropy traditionally involves a Fourier Transform to analyze the frequency components of a signal, but due to Pine Script limitations, this indicator uses a simplified approach. It calculates log returns over a rolling window, normalizes them, and then computes the Shannon entropy. This entropy value represents the level of disorder or complexity in the market, which is then multiplied by traditional momentum measures like the rate of change (ROC).
How It Works
Price Returns Calculation: The indicator first computes the log returns of price data over a specified window length.
Entropy Calculation: These log returns are normalized and used to calculate the Shannon entropy, representing market complexity.
Momentum Integration: The calculated entropy is then multiplied by the rate of change (ROC) of prices to generate the SEMM value.
Signal Generation: High SEMM values indicate strong momentum with higher randomness, while low SEMM values indicate lower momentum with more predictable trends.
How Traders Can Use It
Trend Identification: Use SEMM to identify strong trends or potential trend reversals. Low entropy values can indicate a trending market, whereas high entropy suggests choppy or consolidating conditions.
Market State Analysis: Combine SEMM with other indicators or chart patterns to confirm the market's state—whether it's trending, ranging, or transitioning between states.
Risk Management: Consider high SEMM values as a signal to be cautious, as they suggest increased market unpredictability.
Example Usage Instructions
Add the Indicator: Apply the "Approximate Spectral Entropy-Based Market Momentum (SEMM)" indicator to your chart.
Adjust Parameters: Modify the length parameter to suit your trading timeframe. Shorter lengths are more responsive, while longer lengths smooth out the signal.
Analyze the Output: Observe the blue line for entropy and the red line for SEMM. Look for divergences or confirmations with price action to guide your trades.
Combine with Other Tools: Use SEMM alongside moving averages, support/resistance levels, or other indicators to build a comprehensive trading strategy.
RSI - ARIEIVhe RSI MAPPING - ARIEIV is a powerful technical indicator based on the Relative Strength Index (RSI) combined with moving averages and divergence detection. This indicator is designed to provide a clear view of overbought and oversold conditions, as well as identifying potential reversals and signals for market entries and exits.
Key Features:
Customizable RSI:
The indicator offers flexibility in adjusting the RSI length and data source (closing price, open price, etc.).
The overbought and oversold lines can be customized, allowing the RSI to signal critical market zones according to the trader’s strategy.
RSI-Based Moving Averages (MA):
Users can enable a moving average based on the RSI with support for multiple types such as SMA, EMA, WMA, VWMA, and SMMA (RMA).
For those who prefer Bollinger Bands, there’s an option to use the moving average with standard deviation to detect market volatility.
Divergence Detection:
Detects both regular and hidden divergences (bullish and bearish) between price and RSI, which can indicate potential market reversals.
These divergences can be customized with specific colors for easy identification on the chart, allowing traders to quickly spot significant market shifts.
Zone Mapping:
The script maps zones of buying and selling strength, filling the areas between the overbought and oversold levels with specific colors, highlighting when the market is in extreme conditions.
Strength Tables:
At the end of each session, a table appears on the right side of the chart, displaying the "Buying Strength" and "Selling Strength" based on calculated RSI levels. This allows for quick analysis of the dominant pressure in the market.
Flexible Settings:
Many customization options are available, from adjusting the number of decimal places to the choice of colors and the ability to toggle elements on or off within the chart.
RSI Slope Filtered Signals [UAlgo]The "RSI Slope Filtered Signals " is a technical analysis tool designed to enhance the accuracy of RSI (Relative Strength Index) signals by incorporating slope analysis. This indicator not only considers the RSI value but also analyzes the slope of the RSI over a specified number of bars, providing a more refined signal that accounts for the momentum and trend strength. By utilizing both positive and negative slope arrays, the indicator dynamically adjusts its thresholds, ensuring that signals are responsive to changing market conditions. This tool is particularly useful for traders looking to identify overbought and oversold conditions with a higher degree of precision, filtering out noise and providing clear visual cues for potential market reversals.
🔶 Key Features
Dynamic Slope Analysis: Measures the slope of RSI over a customizable number of bars, offering insights into the momentum and trend direction.
Adaptive Thresholds: Uses historical slope data to calculate dynamic thresholds, adjusting signal sensitivity based on market conditions.
Normalized Slope Calculation: Normalizes the slope values to provide a consistent measure across different market conditions, making the indicator more versatile.
Clear Signal Visualization: The indicator plots both positive and negative normalized slopes with color gradients, visually representing the strength of the trend.
Overbought and Oversold Signals: Plots overbought and oversold signals directly on the chart when the calculated value reaches the user-specified threshold, helping traders identify potential reversal points.
Customizable Settings: Allows users to adjust the RSI length, slope measurement bars, and lookback periods, providing flexibility to tailor the indicator to different trading strategies.
🔶 Interpreting the Indicator
The "RSI Slope Filtered Signals " indicator is designed to be easy to interpret. Here's how you can use it:
Normalized Slope: The indicator plots the normalized slope of the RSI, with values above zero indicating positive momentum and values below zero indicating negative momentum. A higher positive slope suggests a strong upward trend, while a deeper negative slope indicates a strong downward trend.
Reversal Signals: The indicator plots several horizontal lines at different thresholds (+3, +2, +1, 0, -1, -2, -3). These levels are used to gauge the strength of the momentum based on the normalized slope. For example, a normalized slope crossing above the +2 threshold may indicate a strong bullish trend, while crossing below the -2 threshold may suggest a strong bearish trend. These thresholds help in understanding the intensity of the current trend and provide context for interpreting the indicator's signals.
This indicator generates overbought and oversold signals not solely based on the RSI entering extreme levels (above 70 for overbought and below 30 for oversold), but also by considering the behavior of the normalized slope relative to specific thresholds. Specifically, the Overbought Signal (🔽) is triggered when the RSI is above 70 and the normalized slope from the previous bar is greater than or equal to the upper threshold, with the current slope being lower than the previous slope, indicating a potential bearish reversal as momentum may be slowing down.
Similarly, the Oversold Signal (🔼) is generated when the RSI is below 30 and the normalized slope from the previous bar is less than or equal to the lower threshold, with the current slope being higher than the previous slope, signaling a potential bullish reversal as the downward momentum may be weakening.
Area Plots: The indicator also plots the positive and negative slopes as filled areas, providing a quick visual cue for the strength and direction of the trend. Green areas represent positive slopes (upward momentum), while red areas represent negative slopes (downward momentum).
By combining these elements, the "RSI Slope Filtered Signals " provides a comprehensive view of the market's momentum, helping traders make more informed decisions by filtering out false signals and focusing on the significant trends.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Support line based on RSIThis indicator builds a support line using the stock price and RSI.
Inputs:
1. Time window for the RSI:
the time window the RSI is calculated with, usually it's 14 but in here I recommend 30.
2. offset by percentage:
just adding or subtructing some percentage of the result, some stocks need a bit of offset to work
3. stability:
the higher it is the less the RSI effects the graph. for realy high stability the indicator the the stock price will be realy close.
formula: (close*(100-newRSI)/50)*(100+offset)/100
when:
newRSI = (RSI + (50 * stability1))/(stability+1)
recommended usage:
Usually, if the indicator becomes higher than the price, (the price lowers). the stock will go up again to around the last price where they met.
so, for example, if the stock price was 20 and going down. while the indicator was 18 and going up, then they met at 19 and later the indicator became 20 while the stock fell to 18. most chances are that the stock will come back to 19 where they met and at the same time the indicator will also get to 19.
In stocks that are unstable, like NVDA. this indicator can be used to see the trend and avoid the unstability of the stock.
Average of CBO and CBO divergence histogramShort Description:
This indicator combines a Custom Bias Oscillator (CBO) with its Divergence Histogram and computes their average for use to assess the market's bias based on candlestick analysis, from the aforementioned CBO indicator.
Full Description:
Overview:
This indicator integrates two powerful analytical tools into a single script: a Custom Bias Oscillator (CBO) and its Divergence Histogram. This indicator provides traders with a comprehensive view of market bias and divergence between price movements and volume, enhanced by an optional signal line derived from the combined average of these metrics.
Key Features:
Custom Bias Oscillator (CBO):
The CBO is calculated based on the body and wick biases of candlesticks, normalized by the Average True Range (ATR) to account for market volatility.
The CBO is scaled by the divergence between the Rate of Change (ROC) of volume and the ROC of the adjusted bias, ensuring it reflects potential reversals or continuations in the market.
Divergence Histogram:
The Divergence Histogram is derived from the difference between the CBO and its signal line.
This difference is normalized and plotted to provide visual cues for potential divergences, which may indicate trend exhaustion or the beginning of a new trend.
Combined Average with Signal Line:
The indicator calculates the average of the CBO and the normalized divergence, creating a combined signal that offers a more rounded perspective on market conditions.
A signal line, generated by smoothing the combined average, is plotted to help traders identify potential buy or sell signals based on crossovers.
Customization:
The indicator includes customizable parameters for the periods of the oscillator, signal line, ATR, ROC, and the combined signal line, allowing traders to tailor the indicator to different market conditions and timeframes.
How to Use:
Buy Signal: Consider a long position when the combined average crosses above the signal line, indicating potential bullish momentum.
Sell Signal: Consider a short position when the combined average crosses below the signal line, indicating potential bearish momentum.
Divergence Analysis: Use the Divergence Histogram to identify areas where price movements may be diverging from volume, signaling potential reversals or corrections.
Disclaimer:
This indicator is designed for educational and informational purposes only. It is not financial advice. Always perform your own analysis before making any investment decisions. Past performance is not indicative of future results.
Nautilus Oscillator [BigBeluga]NAUTILUS OSCILLATOR
The Nautilus Oscillator by BigBeluga is an advanced technical analysis tool designed to help traders identify trend direction, strength, and potential reversal points in the market. This versatile indicator combines multiple analytical elements to provide a comprehensive view of market conditions.
Why It’s Unique:
The Nautilus Oscillator is unique too, its blend of multiple technical analysis tools into a single, coherent indicator.
By smoothing with a unique and highly valued in signal processing filter, and incorporating dynamic thresholds, this oscillator offers a more refined and adaptable approach to identifying trading signals.
The filter is designed to have as flat a frequency response as possible in the passband. This means that within the range of frequencies it allows through, minimizes distortion and maintains the true shape of the signal more accurately than many other types of filters.
The addition of a trend filter and divergence detection further enhances its capability, making it a versatile tool for both trend-following and reversal strategies. The built-in dashboard and clean chart management features provide traders with a streamlined, informative, and visually appealing trading experience. This makes the Nautilus Oscillator not just a tool for analysis but a comprehensive trading system in itself.
🔵 KEY FEATURES
● Main Oscillator Line
Smoothly transitions between bullish (green) and bearish (purple) colors
Helps visualize mean-reversion, market trend, and momentum
● Histogram
Displayed below the main oscillator line
Represents the rate of change of the main oscillator
Acts as a leading indicator, often showing changes faster than the main oscillator line
Can be viewed as a predictive element, potentially indicating future movements of the main oscillator
Histogram crossover signals (small dots) can indicate short-term momentum shifts
Useful for early detection of potential trend changes or momentum shifts
● Confluence Arrows
Arrows displayed above and below the oscillator
Provide additional confluence signals that work in conjunction with the histogram
Act as supplementary indicators to confirm the main oscillator signals
Help in identifying stronger, more reliable trading opportunities when aligned with other indicator elements
● Trend Filter
Displayed as horizontal lines above and below the oscillator
Upper lines (above the oscillator): Indicate an uptrend
Lower lines (below the oscillator): Indicate a downtrend
Three lines appear when a strong trend is present
Only one line is displayed when there's no trend
Color-coded for easy identification (typically green for up, purple for down)
Color intensity indicates the strength of the trend. More intensive color indicates stronger trend
Provides a clear visual representation of the overall market trend
Helps traders align their strategies with the broader market direction
● Overbought/Oversold Thresholds
Can be set to static levels or dynamically adjust based on market volatility
Helps identify potential reversal points in the market
● Signals
Strong signals: Displayed as circles on both the oscillator and main chart (optional)
Simple signals: Shown as X marks on both the oscillator and main chart (optional)
Histogram crossover signals: Small dots on the histogram
● Stop Levels
Optional feature that plots potential stop-loss levels for strong signals
Based on the Market volatility for adaptability to different market conditions
● Divergences
Identifies and displays bullish and bearish divergences between price and the oscillator
Helps spot potential trend reversals
● Dashboard
Provides at-a-glance information about current market conditions
Displays trend direction, last signal, histogram direction, threshold mode, and divergence status
🔵 HOW TO USE
● Trend Identification
Use the main oscillator line color and position, along with the trend filter lines, to determine the overall market trend
● Entry Signals
Strong signals (circles) suggest potential entry points in the direction of the trend
Simple signals (X marks) can be used for more frequent, but potentially less reliable, entry opportunities
Histogram crossover signals (dots) can indicate changes faster than the main oscillator line
Look for alignment with confluence arrows for stronger entry signals
● Exit Signals
Use the overbought/oversold thresholds as potential enter and exit points
Stop levels (if enabled) provide dynamic exit points for risk management
● Reversal Identification
Watch for divergences between price and the oscillator for potential trend reversals
Pay attention to the histogram direction for early signs of momentum shifts
Notice changes in the trend filter lines (from three lines to one, or vice versa)
● Confirmation
Use the dashboard to quickly confirm the current market state and indicator readings
Combine signals from different elements (main line, histogram, trend filter, confluence arrows) for stronger confirmation
🔵 CUSTOMIZATION
The Nautilus Oscillator offers several customization options to suit different trading styles:
Adjust the main oscillator length
Set static or dynamic overbought/oversold thresholds
Enable/disable and customize stop levels
Toggle divergence display and adjust its parameters
Show/hide the information dashboard
Display simple signals on the main chart
By fine-tuning these settings, traders can adapt the Nautilus Oscillator to various market conditions and personal trading strategies.
The Nautilus Oscillator provides a multi-faceted approach to market analysis, combining trend identification, momentum assessment, and reversal detection in one comprehensive tool. Its visual cues and customizable features make it suitable for both novice and experienced traders across various timeframes and markets. The integration of multiple analytical elements – including the predictive histogram, confluence arrows, and adaptive trend filter – offers traders a rich set of data points to inform their trading decisions.
Prime Oscillators Pro + [ChartPrime]Prime Oscillators Pro Plus
The Prime Oscillator is a powerful technical analysis tool designed to provide traders with a multi-faceted view of market trends and potential price movements. By integrating several key components, each with unique analytical capabilities, the Prime Oscillator offers a robust mechanism for evaluating market conditions, predicting trends, and identifying potential trading opportunities. Here's a detailed breakdown of why each component is unique and brings varying approaches into market analysis:
Money Flow Tracker
The Money Flow Tracker measures the flow of money into and out of a security over a specific period of time. It combines both price and volume data to provide insights into the buying and selling pressure of an asset. Employing low lag filtering methods; this confluence of readings allows for in theory; a more reliable oscillator.
This feature allows for:
Early Trend Detection: By highlighting periods of positive (green) and negative (red) volume, traders can anticipate shifts in market sentiment before they become apparent in price action.
Volume Matrix
The lower volume oscillator shows whether money is flowing into or out of the market. Green suggests uptrend and buyers are in control whereas red represents a majority of sellers. By incorporating smoothed volume analysis, it distinguishes between bullish and bearish volumes, providing an early indication of potential trend reversals.
Top and Bottom Power Bars
These lines represent confirmation of trends based on the convergence of seven different conditions, with brightness indicating the strength of the trend. Brighter lines suggest strong trends, while dimmer lines indicate weaker trends.
Trend Strength Identification; By visually representing the strength of a trend, traders can gauge the confidence of the market in a particular direction.
Overbought/Oversold Conditions: Bright lines in overbought or oversold zones signal potential reversal points, helping traders avoid entering positions at extreme highs or lows.
Volume-Inspired Signals
The volume inspired signals inspired signals are used to determine overbought and oversold conditions, adding another layer of analysis to the oscillator.
Price Fairness Assessment: The signals help traders assess whether the current price is above or below the average price, adjusted for volume, indicating potential reversal zones.
Improved Timing: By using these signals, traders can improve the timing of their entries and exits, ensuring they are aligned with the broader market consensus.
The True 7
The middle ranking system evaluates the strength of a move and the overall trend, offering a numeric or visual representation of trend strength. It can also indicate when a trend is starting to reverse, providing leading signals for potential market shifts. This allows for traders to understand how strong the trend is and their trade and also forecast potential reversals in market activity. For example if a trader were in a long position and the ranking system starts to show a weakening trend the trader may want to exit their position. This is a unique piece of confluence lacking in other tools where market performance is boiled down to a rank rather than value.
Reversal signals: These are in essence a contrarian signal predicting the reversal of the market and the oscillator.
The Peak Seekers are blue dots that analyze multiple indicators to deduce more accurately and confluence within divergences. Settings here are auto optimized depending on the user selected timeframe.
Main Oscillator
The main oscillator is designed to be a low lag identifier of market moves. Using low lag smoothing approaches, a green and red color further indicates a trend. This is fantastic when used in confluence with other features in this toolkit.
This system quantifies the strength of a trend, helping traders understand the market's momentum and the potential sustainability of a move.
MVP Oscillator
The second mode in this toolkit; the MVP Oscillator analyses volume at a deeper level.
The Main Ribbon
This oscillator analyses market trends and produces a blue and purple ribbon. A blue ribbon suggests the market is moving upwards and a purple ribbon suggests the market is moving downwards. This plot can be used classically and a user can easily use this for divergence identification. In this mode however divergences are not the main feature and would need to be manually identified.
Ranging between -100 and 100; this oscillator, when below 0, suggests the market is bearish and moving downwards. When above 0 the market is in a bullish state. Looking for confluence here is key. For example if the oscillator is below 0 and we see purple appearing on the ribbon; this could be a stronger sign the market will continue to move downwards. However; if it's below 0 and the oscillator turns blue; this could indicate indecision in the market.
The Green Bars
The main other component on the MVP oscillator are the overextended green bars that appear when a market reversal is due.
Green bars suggesting the market will soon reverse
When the green bars appear the user can infer that the market may bounce around this region making it once again excellent when used in confluence with other tools from ChartPrime. Looking for these bars can indicate when a trader might want to be looking for some dynamic positions. Consider these a warning sign.
Signals
The MVP oscillator also has signals. These appear when the oscillator becomes overextended and displays arrows. These can serve as classical buy or sell signals when used in confluence with other indicators.
Looking for confluence with these signals can be a powerful idea. For example; in the image above we see a buy signal with green bars. This suggests the market is due a reversal and that reversal will most likely be a bullish one.
Summary
The Prime Oscillator combines these components to create a powerful and comprehensive tool for technical analysis. Each element plays a crucial role in offering a nuanced view of the market, from early trend detection and volume confirmation to trend strength measurement and overbought/oversold signals. By using the Prime Oscillator, traders can gain a deeper understanding of market dynamics, make more informed trading decisions, and enhance their overall trading strategy.
Normalized Willspread IndicatorNot sure to call it as willspread or not, because i take this idea from Larry William's original willspread indicator and did some modifications which found out to be more effective in my opinion, which is by subtracting 21 and 3 ma, this indicator is found on Trade_Stocks_and_Commodities_With_the_Insiders page155. Feel free to find out.
Here's what I modified, instead of using the subtraction between two ma, I use one ma only, I find more accurate in spotting oversold and overbought value. This indicator is useful for metals. It basically compares the value between two assets, let's say u are watching gold, u can select compare it to dxy, us30Y or gold, let's say u choose to compare to dxy, and the indicator shows the the index is overvalued which is above 80 levels, then it is suggesting that gold is overvalued, the same logic apply to undervalued as well which is 20 levels. This is not a entry or exit tool but as additional confluence, u can use any entry method u want like supply and demand and use this indicator to validate your idea, not sure whether it works on forex or not, so far i think it works well on metals.
The bar colour corresponding to the index when it is overbought or oversold. U can switch off it if you dont need it. Do note that this is a repainting indicator, so u must refer to previous week close.
EMA Crossover Buy/Sell IndicatorScript Overview
This script is a trading indicator designed to identify potential buy and sell signals based on the crossover of two Exponential Moving Averages (EMAs):
Indicator Title and Setup:
The script is named "EMA Crossover Buy/Sell Indicator" and is plotted directly on the price chart.
EMAs Calculation:
It calculates two EMAs: a 20-period EMA and a 50-period EMA. These are used to analyze the market trends over different time frames.
Plotting EMAs:
The 20-period EMA is shown on the chart in blue.
The 50-period EMA is shown in orange.
These lines help visualize the current trend and potential points of interest where the moving averages intersect.
Generating Signals:
A buy signal is triggered when the 20-period EMA crosses above the 50-period EMA.
A sell signal is triggered when the 20-period EMA crosses below the 50-period EMA.
These signals suggest potential buying or selling opportunities based on the crossover of the EMAs.
Displaying Signals:
Buy signals are marked with green labels below the bars on the chart.
Sell signals are marked with red labels above the bars on the chart.
This visual representation helps traders quickly identify potential trading opportunities.
Alerts:
Alerts are set up to notify the trader when a buy or sell signal occurs.
The alert messages specify whether the signal is a buying opportunity or a selling opportunity based on the EMA crossovers.
Altcoin Total Average Divergence (YavuzAkbay)The "Average Price and Divergence" indicator is a strong tool built exclusively for cryptocurrency traders who understand the significance of comparing altcoins to Bitcoin (BTC). While traditional research frequently focusses on the value of cryptocurrencies against fiat currencies such as the US dollar, this indicator switches the focus to the value of altcoins against Bitcoin itself, allowing you to detect potential market opportunities and divergences.
The indicator allows you to compare the price of an altcoin to Bitcoin (e.g., ETHBTC, SOLBTC), which is critical for determining how well an altcoin performs against the main cryptocurrency. This is especially important for investors who expect Bitcoin's price will continue to rise logarithmically and want to ensure that their altcoin holdings retain or expand in market capitalisation compared to Bitcoin.
The indicator computes the average price of the chosen cryptocurrency relative to Bitcoin over the viewable portion of the chart. This average acts as a benchmark, indicating the normal value around which the altcoin's price moves.
The primary objective of this indicator is to calculate and plot the divergence, which is the difference between the altcoin's current price relative to Bitcoin and its average value. This divergence can reveal probable overbought or oversold conditions, allowing traders to make better decisions about entry and exit points.
The divergence is represented as a histogram, with bars representing the magnitude of the difference between the current and average prices. Positive values indicate that the altcoin is trading above its average value in comparison to Bitcoin, whereas negative values indicate that it is trading below its average.
The indicator automatically adjusts to the chart's visible range, ensuring that the average price and divergence are always calculated using the most relevant data. This makes the indicator extremely sensitive to changes in the chart view and market conditions.
How to Use:
A significant positive divergence may imply that the cryptocurrency is overbought in comparison to Bitcoin and is headed for a correction. A significant negative divergence, on the other hand, may indicate that the cryptocurrency has been oversold and is cheap in comparison to Bitcoin.
Tracking how an altcoin's price deviates from its average relative to Bitcoin can provide insights about the market's opinion towards that altcoin. Persistent positive divergence may suggest high market confidence, whilst constant negative divergence may imply a lack of interest or eroding fundamentals.
Use divergence data to better time your trades, either by entering when a cryptocurrency is discounted in comparison to its average (negative divergence) or departing when it is overpriced (positive divergence). This allows you to capture value as the price returns to its mean.
Ideal For:
Cryptocurrency Traders who want to understand how altcoins are performing relative to Bitcoin rather than just against fiat currencies.
Long-term Investors looking to ensure their altcoin investments are maintaining or growing their value relative to Bitcoin.
Market Analysts interested in identifying potential reversals or continuations in altcoin prices based on divergence from their average value relative to Bitcoin.
Simplified Spoofing DetectorIndicator Name:
Simplified Spoofing Detector
Description:
Simplified Spoofing Detector is an indicator designed to detect potential spoofing activity in financial markets. Spoofing is a form of market manipulation where large orders are placed to create a false impression of demand or supply, only to be quickly canceled.
The indicator analyzes changes in trading volume and price velocity to identify suspicious activities. When significant changes in both volume and price velocity occur simultaneously, the indicator generates a signal indicating possible spoofing.
How the Indicator Works:
Volume Change: The indicator calculates how much the current trading volume deviates from its average. If this change is significant, it may indicate a large order that could be part of a spoofing attempt.
Price Velocity: The indicator also tracks how quickly the price is changing. A sudden change in price velocity may be a sign of manipulation.
Spoofing Signal: If both conditions – significant volume change and price velocity – are met simultaneously, the indicator generates a signal that is highlighted on the chart.
Indicator Parameters:
Sensitivity: Determines how quickly the indicator responds to changes in volume.
Volume Threshold: The minimum level of volume change required to trigger a signal.
Price Velocity Threshold: The minimum level of price velocity change required to trigger a signal.
Volume Amplitude Multiplier: Amplifies the amplitude of the displayed blue volume line.
Velocity Multiplier: Amplifies the amplitude of the displayed green price velocity line.
Usage:
This indicator is intended for traders who want to monitor suspicious market activities related to potential manipulation. It can be useful for analyzing both short-term and long-term trading strategies.
Please note: The indicator does not guarantee precise detection of spoofing and should be used in conjunction with other analysis methods.
Here’s the detailed explanation of how the indicator works:
1. Parameters:
sensitivity: Specifies the number of periods used to calculate the Exponential Moving Average (EMA) of volume. The lower the value, the faster the indicator will respond to changes in volume.
volume_threshold: Sets the minimum volume change required for the indicator to consider it a potential spoofing signal. If the volume change exceeds this value, the indicator will assume that spoofing may be occurring.
velocity_threshold: Defines the minimum price velocity change (change in closing price) considered significant. If the price velocity exceeds this value, it may be part of a spoofing signal.
amplitude_multiplier: Used to increase the value of volume change (volume_change), making the volume line more visible on the chart.
velocity_multiplier: Used to amplify the value of price velocity (price_velocity), making the price velocity line more visible on the chart.
2. Calculation of Variables:
volume_change_raw: Calculated as the ratio of the current volume to its Exponential Moving Average (EMA) over the number of periods defined by sensitivity. This shows how much the current volume deviates from the average volume.
volume_change: This is the volume_change_raw value multiplied by the amplitude_multiplier. Increasing this value makes volume changes more noticeable on the chart.
price_velocity: Calculated as the rate of change of the closing price over one period (roc(close, 1)), multiplied by the velocity_multiplier. This indicates how quickly the price is changing on the chart.
3. Spoofing Detection Logic:
spoofing_detected: This is the primary signal of the indicator. It is triggered if two conditions are met simultaneously:
volume_change exceeds volume_threshold, indicating a significant volume change.
price_velocity exceeds velocity_threshold, indicating a significant change in price velocity.
If both conditions are met, the indicator assumes that spoofing may be occurring.
4. Data Display:
plot(volume_change): Displays the volume change value as a blue line on the chart.
plot(price_velocity): Displays the price velocity value as a green line on the chart.
5. Spoofing Signal Highlight:
bgcolor(spoofing_detected ? color.new(color.red, 80) : na): If spoofing_detected returns true, the chart's background is highlighted with a semi-transparent red color to visually mark the moment when the indicator detects potential spoofing.
6. Alerts:
alertcondition(spoofing_detected): If the indicator detects spoofing, an alert is triggered with the message "Advanced spoofing activity detected!".
Conclusion:
This indicator analyzes changes in volume and price velocity to identify potential cases of spoofing. If significant changes in both volume and price velocity are observed simultaneously, the indicator highlights these moments on the chart and can send an alert to the user.
Yes, the Simplified Spoofing Detector indicator can be used on all timeframes.
Why it is suitable for all timeframes:
Volume and Price Velocity Analysis: The indicator is based on analyzing changes in volume and price velocity, which are relevant across any timeframe—whether it’s a minute, hourly, daily, or weekly chart.
Adjustable Sensitivity: The indicator's parameters, such as sensitivity, volume threshold, and price velocity threshold, can be adapted to specific timeframes. This allows traders to optimize the indicator’s performance according to their strategy and time preferences.
Recommendations:
For short-term timeframes (e.g., 1 minute, 5 minutes): You can use higher sensitivity and lower threshold values to detect rapid changes.
For long-term timeframes (e.g., 1 hour, 1 day): You can use lower sensitivity and higher threshold values to filter out noise and focus on significant changes.
Thus, the Simplified Spoofing Detector indicator is versatile and can be effectively applied on any timeframe.
Название индикатора:
Simplified Spoofing Detector
Описание:
Simplified Spoofing Detector – это индикатор, разработанный для выявления возможных случаев спуффинга на финансовых рынках. Спуффинг – это форма рыночной манипуляции, при которой крупные ордера размещаются для создания ложного впечатления о спросе или предложении, а затем быстро отменяются.
Индикатор анализирует изменения объема торгов и скорости изменения цены для выявления подозрительных активностей. Когда одновременно происходят значительные изменения в объеме и скорости цены, индикатор генерирует сигнал о возможном спуффинге.
Как работает индикатор:
Изменение объема (Volume Change): Индикатор рассчитывает, насколько текущий объем отличается от его среднего значения. Если это изменение значительно, это может быть признаком крупного ордера, который потенциально может быть частью спуффинга.
Скорость изменения цены (Price Velocity): Индикатор также отслеживает, насколько быстро меняется цена. Внезапное изменение скорости цены может свидетельствовать о манипуляции.
Сигнал спуффинга: Если оба условия – значительное изменение объема и скорости цены – выполняются одновременно, индикатор генерирует сигнал, который отображается в виде подсветки на графике.
Параметры индикатора:
Sensitivity (Чувствительность): Определяет, насколько быстро индикатор реагирует на изменения объема.
Volume Threshold (Порог объема): Минимальный уровень изменения объема, при котором активируется сигнал.
Price Velocity Threshold (Порог скорости цены): Минимальный уровень изменения скорости цены для активации сигнала.
Volume Amplitude Multiplier (Множитель амплитуды объема): Увеличивает амплитуду отображаемой синей линии объема.
Velocity Multiplier (Множитель скорости): Увеличивает амплитуду отображаемой зелёной линии скорости цены.
Использование:
Этот индикатор предназначен для трейдеров, которые хотят отслеживать подозрительные рыночные активности, связанные с возможными манипуляциями. Он может быть полезен при анализе как краткосрочных, так и долгосрочных торговых стратегий.
Обратите внимание: Индикатор не гарантирует точное определение спуффинга и должен использоваться в сочетании с другими методами анализа.
Подробное объяснение работы индикатора:
1. Параметры:
sensitivity (Чувствительность): Указывает количество периодов для расчета скользящего среднего (EMA) объема. Чем меньше значение, тем быстрее индикатор будет реагировать на изменения объема.
volume_threshold (Порог объема): Определяет минимальное значение изменения объема, при котором индикатор будет рассматривать это как возможный сигнал спуффинга. Если изменение объема превышает это значение, индикатор будет считать, что может происходить спуффинг.
velocity_threshold (Порог скорости): Определяет минимальное значение изменения скорости цены (изменения закрытия цены), которое будет рассматриваться как значительное. Если изменение скорости превышает это значение, это может быть частью сигнала спуффинга.
amplitude_multiplier (Множитель амплитуды объема): Используется для увеличения значения изменения объема (volume_change), чтобы сделать линию объема более заметной на графике.
velocity_multiplier (Множитель скорости): Используется для увеличения значения изменения скорости цены (price_velocity), чтобы сделать линию скорости цены более заметной на графике.
2. Расчет переменных:
volume_change_raw: Вычисляется как отношение текущего объема к его экспоненциальному скользящему среднему (EMA) за sensitivity периодов. Это показывает, насколько текущий объем отличается от среднего объема.
volume_change: Это значение volume_change_raw, умноженное на amplitude_multiplier. Увеличение этого значения делает изменение объема более заметным на графике.
price_velocity: Вычисляется как скорость изменения цены закрытия за один период (roc(close, 1)), умноженная на velocity_multiplier. Это показывает, насколько быстро меняется цена на графике.
3. Логика обнаружения спуффинга:
spoofing_detected: Это основной сигнал индикатора. Он активируется, если одновременно выполняются два условия:
volume_change превышает volume_threshold, что указывает на значительное изменение объема.
price_velocity превышает velocity_threshold, что указывает на значительное изменение скорости цены.
Если оба условия выполняются, индикатор считает, что может происходить спуффинг.
4. Отображение данных:
plot(volume_change): Отображает на графике значение изменения объема как синюю линию.
plot(price_velocity): Отображает на графике значение изменения скорости цены как зеленую линию.
5. Подсветка сигналов спуффинга:
bgcolor(spoofing_detected ? color.new(color.red, 80) : na): Если spoofing_detected возвращает true, фон графика подсвечивается полупрозрачным красным цветом, чтобы визуально отметить момент, когда индикатор считает, что происходит спуффинг.
6. Оповещения:
alertcondition(spoofing_detected): Если индикатор обнаруживает спуффинг, срабатывает оповещение с сообщением "Advanced spoofing activity detected!".
Заключение:
Этот индикатор анализирует изменения объема и скорости цены, чтобы определить потенциальные случаи спуффинга. Если одновременно наблюдаются значительные изменения и объема, и скорости цены, индикатор подсвечивает эти моменты на графике и может отправить оповещение пользователю.
индикатор Simplified Spoofing Detector может быть использован на всех таймфреймах.
Почему он подходит для всех таймфреймов:
Анализ объема и скорости цены: Индикатор основан на анализе изменения объема и скорости изменения цены, что актуально на любом таймфрейме — будь то минутный, часовой, дневной или недельный график.
Настраиваемая чувствительность: Параметры индикатора, такие как чувствительность, порог объема и порог скорости цены, можно адаптировать под конкретный таймфрейм. Это позволяет трейдерам оптимизировать работу индикатора для их стратегии и временных предпочтений.
Рекомендации:
Для краткосрочных таймфреймов (например, 1 мин, 5 мин): Можно использовать более высокую чувствительность и низкие пороговые значения для обнаружения быстрых изменений.
Для долгосрочных таймфреймов (например, 1 час, 1 день): Можно использовать более низкую чувствительность и более высокие пороговые значения, чтобы отфильтровать шум и сосредоточиться на значимых изменениях.
Таким образом, индикатор Simplified Spoofing Detector универсален и может быть эффективно применён на любом таймфрейме.
MACD with 1D Stochastic Confirmation Reversal StrategyOverview
The MACD with 1D Stochastic Confirmation Reversal Strategy utilizes MACD indicator in conjunction with 1 day timeframe Stochastic indicators to obtain the high probability short-term trend reversal signals. The main idea is to wait until MACD line crosses up it’s signal line, at the same time Stochastic indicator on 1D time frame shall show the uptrend (will be discussed in methodology) and not to be in the oversold territory. Strategy works on time frames from 30 min to 4 hours and opens only long trades.
Unique Features
Dynamic stop-loss system: Instead of fixed stop-loss level strategy utilizes average true range (ATR) multiplied by user given number subtracted from the position entry price as a dynamic stop loss level.
Configurable Trading Periods: Users can tailor the strategy to specific market windows, adapting to different market conditions.
Higher time frame confirmation: Strategy utilizes 1D Stochastic to establish the major trend and confirm the local reversals with the higher probability.
Trailing take profit level: After reaching the trailing profit activation level scrip activate the trailing of long trade using EMA. More information in methodology.
Methodology
The strategy opens long trade when the following price met the conditions:
MACD line of MACD indicator shall cross over the signal line of MACD indicator.
1D time frame Stochastic’s K line shall be above the D line.
1D time frame Stochastic’s K line value shall be below 80 (not overbought)
When long trade is executed, strategy set the stop-loss level at the price ATR multiplied by user-given value below the entry price. This level is recalculated on every next candle close, adjusting to the current market volatility.
At the same time strategy set up the trailing stop validation level. When the price crosses the level equals entry price plus ATR multiplied by user-given value script starts to trail the price with EMA. If price closes below EMA long trade is closed. When the trailing starts, script prints the label “Trailing Activated”.
Strategy settings
In the inputs window user can setup the following strategy settings:
ATR Stop Loss (by default = 3.25, value multiplied by ATR to be subtracted from position entry price to setup stop loss)
ATR Trailing Profit Activation Level (by default = 4.25, value multiplied by ATR to be added to position entry price to setup trailing profit activation level)
Trailing EMA Length (by default = 20, period for EMA, when price reached trailing profit activation level EMA will stop out of position if price closes below it)
User can choose the optimal parameters during backtesting on certain price chart, in our example we use default settings.
Justification of Methodology
This strategy leverages 2 time frames analysis to have the high probability reversal setups on lower time frame in the direction of the 1D time frame trend. That’s why it’s recommended to use this strategy on 30 min – 4 hours time frames.
To have an approximation of 1D time frame trend strategy utilizes classical Stochastic indicator. The Stochastic Indicator is a momentum oscillator that compares a security's closing price to its price range over a specific period. It's used to identify overbought and oversold conditions. The indicator ranges from 0 to 100, with readings above 80 indicating overbought conditions and readings below 20 indicating oversold conditions.
It consists of two lines:
%K: The main line, calculated using the formula (CurrentClose−LowestLow)/(HighestHigh−LowestLow)×100 . Highest and lowest price taken for 14 periods.
%D: A smoothed moving average of %K, often used as a signal line.
Strategy logic assumes that on 1D time frame it’s uptrend in %K line is above the %D line. Moreover, we can consider long trade only in %K line is below 80. It means that in overbought state the long trade will not be opened due to higher probability of pullback or even major trend reversal. If these conditions are met we are going to our working (lower) time frame.
On the chosen time frame, we remind you that for correct work of this strategy you shall use 30min – 4h time frames, MACD line shall cross over it’s signal line. The MACD (Moving Average Convergence Divergence) is a popular momentum and trend-following indicator used in technical analysis. It helps traders identify changes in the strength, direction, momentum, and duration of a trend in a stock's price.
The MACD consists of three components:
MACD Line: This is the difference between a short-term Exponential Moving Average (EMA) and a long-term EMA, typically calculated as: MACD Line=12-period EMA−26-period
Signal Line: This is a 9-period EMA of the MACD Line, which helps to identify buy or sell signals. When the MACD Line crosses above the Signal Line, it can be a bullish signal (suggesting a buy); when it crosses below, it can be a bearish signal (suggesting a sell).
Histogram: The histogram shows the difference between the MACD Line and the Signal Line, visually representing the momentum of the trend. Positive histogram values indicate increasing bullish momentum, while negative values indicate increasing bearish momentum.
In our script we are interested in only MACD and signal lines. When MACD line crosses signal line there is a high chance that short-term trend reversed to the upside. We use this strategy on 45 min time frame.
ATR is used to adjust the strategy risk management to the current market volatility. If volatility is low, we don’t need the large stop loss to understand the there is a high probability that we made a mistake opening the trade. User can setup the settings ATR Stop Loss and ATR Trailing Profit Activation Level to realize his own risk to reward preferences, but the unique feature of a strategy is that after reaching trailing profit activation level strategy is trying to follow the trend until it is likely to be finished instead of using fixed risk management settings. It allows sometimes to be involved in the large movements.
Backtest Results
Operating window: Date range of backtests is 2023.01.01 - 2024.08.01. It is chosen to let the strategy to close all opened positions.
Commission and Slippage: Includes a standard Binance commission of 0.1% and accounts for possible slippage over 5 ticks.
Initial capital: 10000 USDT
Percent of capital used in every trade: 30%
Maximum Single Position Loss: -4.79%
Maximum Single Profit: +20.14%
Net Profit: +2361.33 USDT (+44.72%)
Total Trades: 123 (44.72% win rate)
Profit Factor: 1.623
Maximum Accumulated Loss: 695.80 USDT (-5.48%)
Average Profit per Trade: 19.20 USDT (+0.59%)
Average Trade Duration: 30 hours
These results are obtained with realistic parameters representing trading conditions observed at major exchanges such as Binance and with realistic trading portfolio usage parameters.
How to Use
Add the script to favorites for easy access.
Apply to the desired timeframe between 30 min and 4 hours and chart (optimal performance observed on 45 min BTC/USDT).
Configure settings using the dropdown choice list in the built-in menu.
Set up alerts to automate strategy positions through web hook with the text: {{strategy.order.alert_message}}
Disclaimer:
Educational and informational tool reflecting Skyrex commitment to informed trading. Past performance does not guarantee future results. Test strategies in a simulated environment before live implementation
Price Oscillator TR### Summary: How to Use the Price Oscillator with EMA Indicator
The **Price Oscillator with EMA** is a custom technical analysis tool designed to help traders identify potential buying and selling opportunities based on price momentum. Here's how to use it:
1. **Understanding the Oscillator**:
- The oscillator is calculated by normalizing the current price relative to the highest high and lowest low over a specified lookback period. It fluctuates between -70 and +70.
- When the oscillator is near +70, the price is close to the recent highs, indicating potential overbought conditions. Conversely, when it’s near -100, the price is close to recent lows, indicating potential oversold conditions.
2. **Exponential Moving Average (EMA)**:
- The indicator includes an EMA of the oscillator to smooth out price fluctuations and provide a clearer signal.
- The EMA helps to filter out noise and confirm trends.
3. **Trading Signals**:
- **Bullish Signal**: A potential buying opportunity is signaled when the oscillator crosses above its EMA. This suggests increasing upward momentum.
- **Bearish Signal**: A potential selling opportunity is signaled when the oscillator crosses below its EMA. This indicates increasing downward momentum.
4. **Visual Aids**:
- The indicator includes horizontal lines at +70, 0, and -70 to help you quickly assess overbought, neutral, and oversold conditions.
- The blue line represents the oscillator, while the orange line represents the EMA of the oscillator.
### How to Use:
- **Set your parameters**: Adjust the lookback period and EMA length to fit your trading strategy and time frame.
- **Watch for Crossovers**: Monitor when the oscillator crosses the EMA. A crossover from below to above suggests a buy, while a crossunder from above to below suggests a sell.
- **Confirm with Other Indicators**: For more reliable signals, consider using this indicator alongside other technical tools like volume analysis, trend lines, or support/resistance levels.
This indicator is ideal for traders looking to capture momentum-based trades in various market conditions.
MACD Trail | Flux Charts💎 GENERAL OVERVIEW
Introducing our new MACD Trail indicator! Moving average convergence/divergence (MACD) is a well-known indicator among traders. It's a trend-following indicator that uses the relationship between two exponential moving averages (EMAs). This indicator aims to use MACD to generate a trail that follows the current price of the ticker, which can act as a support / resistance zone. More info about the process in the "How Does It Work" section.
Features of the new MACD Trail Indicator :
A Trail Generated Using MACD Calculation
Customizable Algorithm
Customizable Styling
📌 HOW DOES IT WORK ?
First of all, this indicator calculates the current MACD of the ticker using the user's input as settings. Let X = MACD Length setting ;
MACD ~= X Period EMA - (X * 2) Period EMA
Then, two MACD Trails are generated, one being bullish and other being bearish. Let ATR = 30 period ATR (Average True Range)
Bullish MACD Trail = Current Price + MACD - (ATR * 1.75)
Bearish MACD Trail = Current Price + MACD + (ATR * 1.75)
The indicator starts by rendering only the Bullish MACD Trail. Then if it's invalidated (candlestick closes below the trail) it switches to Bearish MACD Trail. The MACD trail switches between bullish & bearish as they get invalidated.
The trail type may give a hint about the current trend of the price action. The trail itself also can act as a support / resistance zone, here is an example :
🚩 UNIQUENESS
While MACD is one of the most used indicators among traders, this indicator aims to add another functionality to it by rendering a trail based on it. This trail may act as a support / resistance zone as described above, and gives a glimpse about the current trend. The indicator also has custom MACD Length and smoothing options, as well as various style options.
⚙️ SETTINGS
1. General Configuration
MACD Length -> This setting adjusts the EMA periods used in MACD calculation. Increasing this setting will make MACD more responseive to longer trends, while decreasing it may help with detection of shorter trends.
Smoothing -> The smoothing of the MACD Trail. Increasing this setting will help smoothen out the MACD Trail line, but it can also make it less responsive to the latest changes.
Moments Functions
This script is a TradingView Pine Script (version 5) for calculating and plotting statistical moments of a financial series. Here's a breakdown of what it does:
Script Overview
Purpose:
The script calculates and visualizes moments such as Mean, Variance, Skewness, and Kurtosis of a price series.
It also provides the option to display log returns and various statistical bands.
Inputs:
Moments Selection: Choose from Mean, Variance, Skewness, or Excess Kurtosis.
Source Settings: Define the lookback period and source data (e.g., closing price or log returns).
Plot Settings: Control visibility and styling of plots, bands, and information panels.
Colors Settings: Customize colors for different plot elements.
Functions:
f_va(): Computes sample variance.
f_sd(): Computes sample standard deviation.
f_skew(): Computes sample skewness.
f_kurt(): Computes sample kurtosis.
seskew(): Calculates the standard error of skewness.
sekurt(): Calculates the standard error of kurtosis.
skewcv(): Computes critical values for skewness.
kurtcv(): Computes critical values for kurtosis.
Outputs:
Plots:
Moment values (Mean, Variance, Skewness, Kurtosis).
Log Returns (if selected).
Standard Deviation Bands (if selected).
Critical Values for Skewness and Kurtosis (if selected).
Information Panel: Displays current statistical values and their significance.
Customization:
Users can customize appearance and behavior of the script through various input options, including colors, line thickness, and background settings.
Key Variables and Constants
Constants:
zscoreS and zscoreL: Z-scores for confidence intervals based on sample size.
skewrv and kurtrv: Reference values for skewness and excess kurtosis.
Sample Functions:
f_va() and f_sd(): Custom functions to calculate sample variance and standard deviation.
f_skew() and f_kurt(): Custom functions to calculate skewness and kurtosis.
Critical Values:
Functions skewcv() and kurtcv() calculate critical values used to assess statistical significance of skewness and kurtosis.
Plotting
Plot Types:
Mean, variance, skewness, and excess kurtosis are plotted based on user selection.
Log returns are plotted if enabled.
Standard deviation bands and critical values are plotted if enabled.
Labels:
Information panel labels display mean, variance/standard deviation, skewness, and kurtosis values along with their significance.
Example Usage
To use this script:
Add it to a TradingView chart.
Adjust inputs to configure which statistical moments to display, the source data, and the appearance of the plots.
Review the plotted data and labels to analyze the statistical properties of the selected price series.
This script is useful for traders and analysts looking to perform advanced statistical analysis on financial data directly within TradingView.
When comparing two stock prices over a period of time, the statistical moments—mean, variance, skewness, and kurtosis—can provide a deep insight into the behavior of the stock prices and their distributions. Here’s what each moment signifies in this context:
1. Mean
Definition: The mean (or average) is the sum of the stock prices over the period divided by the number of data points. It represents the central value of the price series.
Interpretation: When comparing two stocks, the mean tells you the average price level of each stock over the period. A higher mean indicates that, on average, the stock price is higher compared to another stock with a lower mean.
Comparison Insight: If Stock A has a higher mean price than Stock B, it implies that Stock A's prices are generally higher than those of Stock B over the given period.
2. Variance
Definition: Variance measures the dispersion or spread of the stock prices around the mean. It is the average of the squared differences from the mean.
Interpretation: A higher variance indicates that the stock prices fluctuate more widely from the mean, implying greater volatility. Conversely, a lower variance indicates more stable and predictable prices.
Comparison Insight: Comparing the variances of two stocks helps in assessing which stock has more price volatility. If Stock A has a higher variance than Stock B, it means Stock A's prices are more volatile and less predictable compared to Stock B.
3. Skewness
Definition: Skewness measures the asymmetry of the distribution of stock prices around the mean. It can be positive, negative, or zero:
Positive Skewness: The distribution has a long right tail, with more frequent small returns and fewer large positive returns.
Negative Skewness: The distribution has a long left tail, with more frequent small returns and fewer large negative returns.
Zero Skewness: The distribution is symmetric around the mean.
Interpretation: Skewness tells you about the direction of outliers in the stock price distribution. Positive skewness means a higher probability of large positive returns, while negative skewness means a higher probability of large negative returns.
Comparison Insight: By comparing skewness, you can understand the nature of extreme returns for two stocks. For example, if Stock A has positive skewness and Stock B has negative skewness, Stock A might have more frequent large gains, whereas Stock B might have more frequent large losses.
4. Kurtosis
Definition: Kurtosis measures the "tailedness" of the distribution of stock prices. It indicates how much of the distribution is in the tails versus the center. High kurtosis means more outliers (extreme returns), while low kurtosis means fewer outliers.
Interpretation:
High Kurtosis: Indicates a higher likelihood of extreme price movements (both high and low) compared to a normal distribution.
Low Kurtosis: Indicates that extreme price movements are less common.
Comparison Insight: Comparing kurtosis between two stocks shows which stock has more extreme returns. If Stock A has higher kurtosis than Stock B, it means Stock A has more frequent extreme price changes, suggesting more risk or opportunities for large gains or losses.
Summary
Mean: Compares average price levels.
Variance: Compares price volatility.
Skewness: Compares the asymmetry of price movements.
Kurtosis: Compares the likelihood of extreme price changes.
By analyzing these statistical moments, you can gain a comprehensive view of how the two stocks behave relative to each other, which can inform investment decisions based on risk, return expectations, and the nature of price movements.
Gabriel's Relative Unrealized Profit with Dynamic MVRV Histogram
Certainly! Here’s an enhanced description of the Gabriel's Relative Unrealized Profit with Dynamic MVRV Histogram indicator with detailed usage instructions and explanations of why it's effective:
Gabriel's Relative Unrealized Profit with Dynamic MVRV Histogram
Description:
The Gabriel's Relative Unrealized Profit with Dynamic MVRV Histogram is an advanced trading indicator designed to offer in-depth insights into asset profitability and market valuation. By integrating Relative Unrealized Profit (RUP) and the Market Value to Realized Value (MVRV) Ratio, this indicator provides a nuanced view of an asset's performance and potential trading signals.
Key Components:
SMA Length and Volume Indicator:
SMA Length: Defines the period for the Simple Moving Average (SMA) used to calculate the entry price, defaulted to 14 periods. This smoothing technique helps estimate the average historical price at which the asset was acquired.
Volume Indicator: Allows selection between "volume" and "vwap" (Volume-Weighted Average Price) for calculating entry volume. The choice impacts the calculation of entry volume, either based on standard trading volume or a weighted average price.
Realized Price Calculation:
Computes the average price over a specified period (default of 30 periods) to establish the realized price. This serves as a benchmark for evaluating the cost basis of the asset.
MVRV Calculation:
Current Price: The most recent closing price of the asset, representing its market value.
Total Cost: Calculated as the product of the entry price and entry volume, reflecting the total investment made.
Unrealized Profit: The difference between the current price and the entry price, multiplied by entry volume, indicating profit or loss that has yet to be realized.
Relative Unrealized Profit: Expressed as a percentage of the total cost, showing how much profit or loss exists relative to the initial investment.
Market Value and Realized Value: Market Value is the current price multiplied by entry volume, while Realized Value is the realized price multiplied by entry volume. The MVRV Ratio is obtained by dividing Market Value by Realized Value.
Normalization:
Normalizes both Relative Unrealized Profit and MVRV Ratio to a standardized range of -100 to 100. This involves calculating the minimum and maximum values over a 100-period window to ensure comparability and relevance.
Histogram Calculation:
The histogram is derived from the difference between the normalized Relative Unrealized Profit and the normalized MVRV Ratio. It visually represents the disparity between the two metrics, highlighting potential trading signals.
Plotting and Alerts:
Plots:
Normalized Relative Unrealized Profit (Blue Line): Plotted in blue, this line shows the scaled measure of unrealized profit. Positive values indicate potential gains, while negative values suggest potential losses.
Normalized MVRV Ratio (Red Line): Plotted in red, this line represents the scaled MVRV Ratio. Higher values suggest that the asset’s market value significantly exceeds its realized value, indicating potential overvaluation, while lower values suggest potential undervaluation.
Histogram (Green Bars): Plotted in green, this histogram displays the difference between the normalized Relative Unrealized Profit and the normalized MVRV Ratio. Positive bars indicate that the asset’s profitability is exceeding its market valuation, while negative bars suggest the opposite.
Alerts:
High Histogram Alert: Activated when the histogram value exceeds 50. This condition signals a strong positive divergence, indicating that the asset's profitability is outperforming its market valuation. It may suggest a buying opportunity or indicate that the asset is undervalued relative to its potential profitability.
Low Histogram Alert: Triggered when the histogram value falls below -50. This condition signals a strong negative divergence, indicating that the asset's profitability is lagging behind its market valuation. It may suggest a selling opportunity or indicate that the asset is overvalued relative to its profitability.
How to Use the Indicator:
Setup: Customize the SMA Length, Volume Indicator, and Realized Price Length based on your trading strategy and asset volatility. These parameters allow you to tailor the indicator to different market conditions and asset types.
Interpretation:
Blue Line (Normalized Relative Unrealized Profit): Monitor this line to gauge the profitability of holding the asset. Significant positive values suggest that the asset is currently in a profitable position relative to its purchase price.
Red Line (Normalized MVRV Ratio): Use this line to assess whether the asset is trading at a premium or discount relative to its cost basis. Higher values may indicate overvaluation, while lower values suggest undervaluation.
Green Bars (Histogram): Observe the histogram for deviations between RUP and MVRV Ratio. Large positive bars indicate that the asset's profitability is strong relative to its valuation, signaling potential buying opportunities. Large negative bars suggest that the asset's profitability is weak relative to its valuation, signaling potential selling opportunities.
Trading Strategy:
Bullish Conditions: When the histogram shows large positive values, it suggests that the asset’s profitability is strong compared to its valuation. Consider this as a potential buying signal, especially if the histogram remains consistently positive.
Bearish Conditions: When the histogram displays large negative values, it indicates that the asset’s profitability is weak compared to its valuation. This may signal a potential selling opportunity or caution, particularly if the histogram remains consistently negative.
Why This Indicator is Effective:
Integrated Metrics: Combining Relative Unrealized Profit and MVRV Ratio provides a comprehensive view of asset performance. This integration allows traders to evaluate both profitability and market valuation in one cohesive tool.
TICK Price Label Colors[Salty]The ticker symbol for the NYSE CUMULATIVE Tick Index is TICK. The Tick Index is a short-term indicator that shows the number of stocks trading up minus the number of stocks trading down. Traders can use this ratio to make quick trading decisions based on market movement. For example, a positive tick index can indicate market optimism, while readings of +1,000 and -1,000 can indicate overbought or oversold conditions.
This script is used to color code the price label of the Symbol values zero or above in Green(default), and values below zero in red(default). For a dynamic symbol like the TICK this tells me the market is bullish when Green or Bearish when Red. I was previously using the baseline style with a Base level of 50 to accomplish this view of the symbol, but it was always difficult to maintain the zero level at the zero TICK value. This indicator is always able to color code the price label properly. Also, it has the benefit of setting the timeframe to 1 second(default) that is maintained even when the chart timeframe is changed.
Update: Added the ability to show the TICK Symbol to support viewing multiple TICK tickers at once as shown.
Trend Strength | Flux Charts💎 GENERAL OVERVIEW
Introducing the new Trend Strength indicator! Latest trends and their strengths play an important role for traders. This indicator aims to make trend and strength detection much easier by coloring candlesticks based on the current strength of trend. More info about the process in the "How Does It Work" section.
Features of the new Trend Strength Indicator :
3 Trend Detection Algorithms Combined (RSI, Supertrend & EMA Cross)
Fully Customizable Algorithm
Strength Labels
Customizable Colors For Bullish, Neutral & Bearish Trends
📌 HOW DOES IT WORK ?
This indicator uses three different methods of trend detection and combines them all into one value. First, the RSI is calculated. The RSI outputs a value between 0 & 100, which this indicator maps into -100 <-> 100. Let this value be named RSI. Then, the Supertrend is calculated. Let SPR be -1 if the calculated Supertrend is bearish, and 1 if it's bullish. After that, latest EMA Cross is calculated. This is done by checking the distance between the two EMA's adjusted by the user. Let EMADiff = EMA1 - EMA2. Then EMADiff is mapped from -ATR * 2 <-> ATR * 2 to -100 <-> 100.
Then a Total Strength (TS) is calculated by given formula : RSI * 0.5 + SPR * 0.2 + EMADiff * 0.3
The TS value is between -100 <-> 100, -100 being fully bearish, 0 being true neutral and 100 being fully bullish.
Then the Total Strength is converted into a color adjusted by the user. The candlesticks in the chart will be presented with the calculated color.
If the Labels setting is enabled, each time the trend changes direction a label will appear indicating the new direction. The latest candlestick will always show the current trend with a label.
EMA = Exponential Moving Average
RSI = Relative Strength Index
ATR = Average True Range
🚩 UNIQUENESS
The main point that differentiates this indicator from others is it's simplicity and customization options. The indicator interprets trend and strength detection in it's own way, combining 3 different well-known trend detection methods: RSI, Supertrend & EMA Cross into one simple method. The algorithm is fully customizable and all styling options are adjustable for the user's liking.
⚙️ SETTINGS
1. General Configuration
Detection Length -> This setting determines the amount of candlesticks the indicator will look for trend detection. Higher settings may help the indicator find longer trends, while lower settings will help with finding smaller trends.
Smoothing -> Higher settings will result in longer periods of time required for trend to change direction from bullish to bearish and vice versa.
EMA Lengths -> You can enter two EMA Lengths here, the second one must be longer than the first one. When the shorter one crosses under the longer one, this will be a bearish sign, and if it crosses above it will be a bullish sign for the indicator.
Labels -> Enables / Disables trend strength labels.
DSL Oscillator [BigBeluga]DSL Oscillator BigBeluga
The DSL (Discontinued Signal Lines) Oscillator is an advanced technical analysis tool that combines elements of the Relative Strength Index (RSI), Discontinued Signal Lines, and Zero-Lag Exponential Moving Average (ZLEMA). This versatile indicator is designed to help traders identify trend direction, momentum, and potential reversal points in the market.
What are Discontinued Signal Lines (DSL)?
Discontinued Signal Lines are an extension of the traditional signal line concept used in many indicators. While a standard signal line compares an indicator's value to its smoothed (slightly lagging) state, DSL takes this idea further by using multiple adaptive lines that respond to the indicator's current value. This approach provides a more nuanced view of the indicator's state and momentum, making it easier to determine trends and desired states of the indicator.
🔵 KEY FEATURES
● Discontinued Signal Lines (DSL)
Uses multiple adaptive lines that respond to the indicator's value
Provides a more nuanced view of the indicator's state and momentum
Helps determine trends and desired states of the indicator more effectively
Available in "Fast" and "Slow" modes for different responsiveness
Acts as dynamic support and resistance levels for the oscillator
● DSL Oscillator
Based on a combination of RSI and Discontinued Signal Lines
// Discontinued Signal Lines
dsl_lines(src, length)=>
UP = 0.
DN = 0.
UP := (src > ta.sma(src, length)) ? nz(UP ) + dsl_mode / length * (src - nz(UP )) : nz(UP )
DN := (src < ta.sma(src, length)) ? nz(DN ) + dsl_mode / length * (src - nz(DN )) : nz(DN )
Smoothed using Zero-Lag Exponential Moving Average for reduced lag
// Zero-Lag Exponential Moving Average function
zlema(src, length) =>
lag = math.floor((length - 1) / 2)
ema_data = 2 * src - src
ema2 = ta.ema(ema_data, length)
ema2
Oscillates between 0 and 100
Color-coded for easy interpretation of market conditions
● Signal Generation
Generates buy signals when the oscillator crosses above the lower DSL line below 50
Generates sell signals when the oscillator crosses below the upper DSL line above 50
Signals are visualized on both the oscillator and the main chart
● Visual Cues
Background color changes on signal occurrences for easy identification
Candles on the main chart are colored based on the latest signal
Oscillator line color changes based on its position relative to the DSL lines
🔵 HOW TO USE
● Trend Identification
Use the color and position of the DSL Oscillator relative to its Discontinued Signal Lines to determine the overall market trend
● Entry Signals
Look for buy signals (green circles) when the oscillator crosses above the lower DSL line
Look for sell signals (blue circles) when the oscillator crosses below the upper DSL line
Confirm signals with the triangles on the main chart and background color changes
● Exit Signals
Consider exiting long positions on exit signals and short positions on Entery signals
Watch for the oscillator crossing back between the DSL lines as a potential early exit signal
● Momentum Analysis
Strong momentum is indicated when the oscillator moves rapidly towards extremes and away from the DSL lines
Weakening momentum can be spotted when the oscillator struggles to reach new highs or lows, or starts converging with the DSL lines
The space between the DSL lines can indicate potential momentum strength - wider gaps suggest stronger trends
● Confirmation
Use the DSL lines as dynamic support/resistance levels for the oscillator
Look for convergence between oscillator signals and price action on the main chart
Combine signals with other technical indicators or chart patterns for stronger confirmation
🔵 CUSTOMIZATION
The DSL Oscillator offers several customization options:
Adjust the main calculation length for the DSL lines
Choose between "Fast" and "Slow" modes for the DSL lines calculation
By fine-tuning these settings, traders can adapt the DSL Oscillator to various market conditions and personal trading strategies.
The DSL Oscillator provides a multi-faceted approach to market analysis, combining trend identification, momentum assessment, and signal generation in one comprehensive tool. Its dynamic nature and visual cues make it suitable for both novice and experienced traders across various timeframes and markets. The integration of RSI, Discontinued Signal Lines, and ZLEMA offers traders a sophisticated yet intuitive tool to inform their trading decisions.
The use of Discontinued Signal Lines sets this oscillator apart from traditional indicators by providing a more adaptive and nuanced view of market conditions. This can potentially lead to more accurate trend identification and signal generation, especially in markets with varying volatility.
Traders can use the DSL Oscillator to identify trends, spot potential reversals, and gauge market momentum. The combination of the oscillator, dynamic signal lines, and clear visual signals provides a holistic view of market conditions. As with all technical indicators, it's recommended to use the DSL Oscillator in conjunction with other forms of analysis and within the context of a well-defined trading strategy.
Supply and Demand Zones with Enhanced SignalsThis Pine Script indicator combines supply and demand zone analysis with dynamic buy/sell signals to enhance trading strategies. It provides a robust framework for identifying optimal trading opportunities and managing existing trades.
Key Features:
Supply and Demand Zones: The indicator identifies significant supply and demand zones based on recent price action. These zones are plotted as horizontal lines to help traders visualize potential reversal points.
Exponential Moving Average (EMA): A 21-period EMA is used to determine the prevailing trend and generate buy and sell signals.
Relative Strength Index (RSI): The 14-period RSI is utilized to filter buy and sell signals, providing additional context on overbought and oversold conditions.
Signal Generation:
Buy Signal: Triggered when the price crosses above the EMA and RSI indicates that the market is not overbought.
Sell Signal: Triggered when the price crosses below the EMA and RSI indicates that the market is not oversold.
Enhanced Exit Signals:
Exit Buy Signal: Generated if an opposite sell signal occurs or the higher timeframe RSI indicates overbought conditions.
Exit Sell Signal: Generated if an opposite buy signal occurs or the higher timeframe RSI indicates oversold conditions.
Trade Management:
Tracks active trades and provides exit signals based on the occurrence of opposite trading signals. This helps in managing positions more effectively and reducing potential losses.
Usage:
Supply and Demand Zones: Look for price action around these zones to identify potential trading opportunities.
EMA and RSI: Use buy and sell signals in conjunction with EMA and RSI to validate trading decisions.
Higher Timeframe RSI: Utilize this for additional confirmation and exit signals.
Plotting:
Supply Zone: Plotted as a red horizontal line.
Demand Zone: Plotted as a green horizontal line.
EMA: Plotted as a blue line.
Buy and Sell Signals: Indicated by green and red triangle shapes, respectively.
Exit Signals: Indicated by blue and orange X shapes.
This indicator is designed to help traders make informed decisions by combining technical analysis with strategic trade management.