RSI Buy/Sell SignalsThis Pine Script is designed to plot Buy and Sell signals based on the Relative Strength Index (RSI) for both 15-minute and hourly timeframes. It calculates the RSI values for the current 15-minute chart and requests the hourly RSI data for comparison. Buy signals are generated when the RSI crosses above 60 in either timeframe, while sell signals occur when the RSI crosses below 40. The script also plots visual markers on the chart, indicating buy signals with green labels below the price bars and sell signals with red labels above the price bars. Additionally, it allows for alert conditions, notifying the user when a buy or sell signal is triggered.
オシレーター
RSI 15/60 and ADX PlotIn this script, the buy and sell criteria are based on the Relative Strength Index (RSI) values calculated for two different timeframes: the 15-minute RSI and the hourly RSI. These timeframes are used together to check signals when certain thresholds are crossed, providing confirmation across both short-term and longer-term momentum.
Buy Criteria:
Condition 1:
Hourly RSI > 60: This means the longer-term momentum shows strength.
15-minute RSI crosses above 60: This shows that the shorter-term momentum is catching up and confirms increasing strength.
Condition 2:
15-minute RSI > 60: This indicates that the short-term trend is already strong.
Hourly RSI crosses above 60: This confirms that the longer-term trend is also gaining strength.
Both conditions aim to capture the moments when the market shows increasing strength across both short and long timeframes, signaling a potential buy opportunity.
Sell Criteria:
Condition 1:
Hourly RSI < 40: This indicates that the longer-term trend is weakening.
15-minute RSI crosses below 40: The short-term momentum is also turning down, confirming the weakening trend.
Condition 2:
15-minute RSI < 40: The short-term trend is already weak.
Hourly RSI crosses below 40: The longer-term trend is now confirming the weakness, indicating a potential sell.
These conditions work to identify when the market is showing weakness in both short-term and long-term timeframes, signaling a potential sell opportunity.
ADX Confirmation :
The Average Directional Index (ADX) is a key tool for measuring the strength of a trend. It can be used alongside the RSI to confirm whether a buy or sell signal is occurring in a strong trend or during market consolidation. Here's how ADX can be integrated:
ADX > 25: This indicates a strong trend. Using this threshold, you can confirm buy or sell signals when there is a strong upward or downward movement in the market.
Buy Example: If a buy signal (RSI > 60) is triggered and the ADX is above 25, this confirms that the market is in a strong uptrend, making the buy signal more reliable.
Sell Example: If a sell signal (RSI < 40) is triggered and the ADX is above 25, it confirms a strong downtrend, validating the sell signal.
ADX < 25: This suggests a weak or non-existent trend. In this case, RSI signals might be less reliable since the market could be moving sideways.
Final Approach:
The RSI criteria help identify potential overbought and oversold conditions in both short and long timeframes.
The ADX confirmation ensures that the signals generated are happening during strong trends, increasing the likelihood of successful trades by filtering out weak or choppy market conditions.
This combination of RSI and ADX can help traders make more informed decisions by ensuring both momentum and trend strength align before entering or exiting trades.
Bull Bear Power With EMA FilterDescription of Indicator:
This Pine Script indicator colors price bars based on the open price in relation to custom moving averages (EMA/SMA), Bull/Bear Power (BBPower), and an optional VWAP filter. The bar colors help identify bullish and bearish conditions with added visual cues for price positioning relative to VWAP.
Key Features:
Customizable Moving Averages (EMA/SMA):
The user can select between EMA or SMA for both short-term and long-term moving averages.
Default moving averages are set to 5 (short-term) and 9 (long-term) but can be adjusted by the user.
Bullish Condition (Blue or Purple Bars):
A bar is colored blue if the following conditions are met:
The open price is above both the short-term and long-term moving averages.
The short-term moving average (MA 1) is above the long-term moving average (MA 2).
BBPower (open price minus the 13-period EMA) is positive, indicating bullish strength.
If the VWAP filter is enabled and the price opens below VWAP, the bullish bars will turn purple.
Bearish Condition (Yellow or Orange Bars):
A bar is colored yellow if the following conditions are met:
The open price is below both the short-term and long-term moving averages.
The short-term moving average (MA 1) is below the long-term moving average (MA 2).
BBPower is negative or zero, indicating bearish market conditions.
If the VWAP filter is enabled and the price opens above VWAP, the bearish bars will turn orange.
VWAP Filter (Optional):
An optional filter allows the user to add VWAP (Volume-Weighted Average Price) to the bar coloring logic.
When the VWAP filter is enabled, it provides additional information about price positioning relative to VWAP, turning bullish bars purple and bearish bars orange depending on whether the price opens above or below VWAP.
Usage:
Bullish Trend: Look for blue or purple bars to identify potential bullish momentum.
Bearish Trend: Look for yellow or orange bars to spot bearish conditions in the market.
The indicator allows users to customize the length and type of moving averages (EMA or SMA), as well as decide whether to apply the VWAP filter.
This indicator provides traders with clear visual signals to quickly assess the strength of bullish or bearish conditions based on the price's position relative to custom moving averages, BBPower, and VWAP, helping with trend identification and potential trade setups.
RCYC Bullish Bearish Indicator
Summary: The RCYC Bullish Bearish Indicator is a custom trading tool designed to help traders identify potential bullish and bearish conditions in the market using a combination of KDJ and RSI indicators. This indicator uses color-coded candles to visually represent bullish and bearish signals, making it easy to identify trend changes on the chart. The script is particularly useful for traders who prefer visual signals and want to incorporate both trend momentum (KDJ) and relative strength (RSI) in their analysis.
Description:
The RCYC Bullish Bearish Indicator is a unique mashup of the KDJ and RSI indicators, optimized to provide a clear visual representation of market conditions through color-coded candles. This indicator not only identifies the potential trend shifts but also provides alerts for significant crossover points, enhancing a trader's ability to make informed decisions.
How It Works:
KDJ Calculation:
The KDJ is a variation of the Stochastic Oscillator that includes the %J line, which can go beyond the typical 0-100 range of %K and %D.
The KDJ component of this indicator calculates the highest high and lowest low over a specified period (KDJ Length), using these values to derive the %K line.
The %D line is a smoothed version of %K, and the %J line is derived from %K and %D using the formula: J = 3 * %K - 2 * %D.
This indicator focuses on the behavior of the %J line in relation to a mid-point level (50), identifying crossovers and crossunders that signal potential shifts in market sentiment.
RSI Calculation:
The Relative Strength Index (RSI) is a momentum oscillator that measures the speed and change of price movements. It is widely used to identify overbought or oversold conditions.
In this indicator, RSI values are adjusted and plotted to align visually with the KDJ values, providing a complementary momentum analysis.
Crossover Logic and Candle Coloring:
The indicator tracks two main events:
CrossOver50: When the %J line crosses above the 50 level, indicating potential bullish momentum.
CrossUnder50: When the %J line crosses below the 50 level, indicating potential bearish momentum.
Depending on the crossover events, the script changes the color of the candles on the chart:
Red candles on the initial crossover above 50, followed by dark blue candles to maintain bullish sentiment.
Yellow candles on the initial crossover below 50, followed by light blue candles to maintain bearish sentiment.
Alerts:
The indicator includes alert conditions for both bullish and bearish signals:
Red Candle Alert: Notifies the trader when the %J line crosses above 50.
Yellow Candle Alert: Notifies the trader when the %J line crosses below 50.
These alerts allow traders to react promptly to key market signals without continuously monitoring the chart.
Usage and Benefits:
This indicator is designed for traders looking to combine momentum and trend analysis into a single visual tool. It is particularly useful for those trading in trending markets or looking for entry/exit signals based on momentum shifts.
The color-coded candles provide an intuitive way to assess market conditions at a glance, reducing the complexity associated with analyzing multiple indicators separately.
By integrating both KDJ and RSI, the RCYC Bullish Bearish Indicator offers a balanced approach to trend detection and momentum confirmation, making it versatile for various trading styles, including scalping, swing trading, and position trading.
Originality and Usefulness:
While the indicator builds upon the familiar concepts of KDJ and RSI, it uniquely merges them into a cohesive visual tool with distinct crossover-based alerts and candle coloring.
This approach makes the indicator original, as it simplifies the interpretation of complex signals into straightforward visual cues, enhancing the decision-making process for traders who prefer chart-based analysis.
Color Coded RSI [Phantom]Color Coded RSI
The Color Coded RSI enhances the standard RSI (Relative Strength Index) by applying dynamic color coding to the price bars, making it easier to visualize RSI levels directly on the chart.
Key Feature:
RSI-Based Color Coding: Price bars change color based on RSI values. High RSI values (above 70) show warm colors (red/orange), signaling potential overbought conditions, while low RSI values (below 30) display cool colors (blue), indicating possible oversold levels.
How to Trade with Color Coded RSI:
Overbought (Red/Orange Bars):
When the bars turn red or orange (RSI above 70), the market might be overbought. This could be a signal to sell or exit long positions, expecting a pullback.
Oversold (Blue Bars):
Blue bars (RSI below 30) suggest the market is oversold. Look for buying opportunities or consider exiting short positions, anticipating a rebound.
Neutral (Gray/Green Bars):
Gray or green bars (RSI near 50) indicate neutral conditions. You may want to wait for a clearer trend before taking action.
RSI is best used with other indicators to provide confirmations.
Stochastic RSI Average Overlay Stochastic Average Overlay is an advanced technical indicator designed to enhance your trading strategy by combining the power of stochastic averages with multiple smoothing techniques. This overlay indicator provides a comprehensive view of market momentum and potential reversal points, integrating features for both trend analysis and signal generation.
Key Features:
Stochastic Average:
Customizable Length: Adjust the length parameter to define the period over which the stochastic average is calculated. This flexibility allows you to tailor the indicator to different market conditions and trading styles.
Pre-Smoothing and Post-Smoothing: The indicator offers pre-smoothing and post-smoothing options to reduce noise and enhance signal clarity. Choose from various smoothing methods, including Simple Moving Average (SMA), Triangular Moving Average (TMA), and Least Squares Moving Average (LSMA).
Normalized Average Calculation:
Normalized Values: The stochastic average is calculated using normalized values to provide a clear view of market extremes. This approach helps in identifying overbought and oversold conditions more effectively.
Trend Detection:
Dynamic Coloring: The indicator uses color-coded plots to indicate bullish or bearish trends. The plot color changes dynamically based on whether the stochastic average is rising (bullish) or falling (bearish).
Upper and Lower Bounds: Includes horizontal lines at the upper (95) and lower (5) bounds to visually represent extreme levels and potential reversal zones.
Signal Generation:
Overbought/Oversold Conditions: Circles are plotted above or below the bars to highlight overbought (crossunder 95) and oversold (crossover 5) conditions.
Buy/Sell Labels: Buy and sell signals are plotted directly on the price chart. A "BUY" label appears below the bar when the stochastic average crosses above the lower bound, and a "SELL" label appears above the bar when it crosses below the upper bound.
Overlay Functionality:
Price Chart Integration: As an overlay indicator, it is plotted on the price chart, allowing you to analyze market conditions in conjunction with price movements.
Usage Tips:
Combine with Other Indicators: Use the Multi-Length Stochastic Average in conjunction with other technical indicators to confirm signals and enhance decision-making.
Adjust Parameters: Tailor the length and smoothing options to fit your trading style and market conditions.
Monitor Signal Strength: Pay attention to the strength of buy and sell signals in conjunction with the trend direction indicated by the color of the plot.
The Stochastic Average Overlay provides traders with a powerful tool to analyze market momentum, identify potential reversal points, and make informed trading decisions based on comprehensive technical analysis.
Disclaimer:
This indicator is designed for informational purposes only and should not be construed as financial advice. Always perform your own research and consider your individual financial situation before making trading decisions.
Advanced Stochastic ForLoopAdvanced Stochastic ForLoop
OVERVIEW
Advanced Stochastic ForLoop is an improved version of Stochastic it is designed to calculate an array of values 1 or -1 depending if soruce for calculations is above or below basis.
It takes avereage of values over a range of lengths, providing trend signals smothed based on various moving averages in order to get rid of noise.
It offers flexibility with different signal modes and visual customizations.
TYPE OF SIGNALS
-FAST (MA > MA or MA > 0.99)
-SLOW (MA > 0)
-THRESHOLD CROSSING (set by user treshold for both directions)
-FAST THRESHOLD (when theres an change in signal by set margin e.g 0.4 -> 0.2 means bearsih when FT is set to 0.1, when MA is > 0.99 it will signal bullish, when MA < -0.99 it will signal bearish)
Generaly Lime color of line indicates Bullish, Fuchsia indicates Bearish.
This colors are not set in stone so you can change them in settings.
Alerts included when line color is:
-Bullish Trend, line color is lime
-Bearish Trend, line color is fuchsia
Credit
Idea for this script was from one of indicators created by www.tradingview.com
Warning
This indicator can be really noisy depending on the settings, signal mode so it should be used preferably as a part of an strategy not as a stand alone indicator
Remember the lower the timeframe you use the more noise there is.
No single indicator should be used alone when making investment decisions.
Bollinger Bands with RSI Buy/Sell Signals (15 min) Bollinger Bands with RSI Buy/Sell Signals (15 Min)
Description:
The Bollinger Bands with RSI Buy/Sell Signals (15 Min) indicator is designed to help traders identify potential reversal points in the market using two popular technical indicators: Bollinger Bands and the Relative Strength Index (RSI).
How It Works:
Bollinger Bands:
Bollinger Bands consist of an upper band, lower band, and a middle line (Simple Moving Average). These bands adapt to market volatility, expanding during high volatility and contracting during low volatility.
This indicator monitors the 15-minute Bollinger Bands. If the price moves completely outside the bands, it signals that the market is potentially overextended.
Relative Strength Index (RSI):
RSI is a momentum indicator that measures the strength of price movements. RSI readings above 70 indicate an overbought condition, while readings below 30 suggest an oversold condition.
This indicator uses the RSI on the 15-minute time frame to further confirm overbought and oversold conditions.
Buy/Sell Signal Generation:
Buy Signal:
A buy signal is triggered when the market price crosses above the lower Bollinger Band on the 15-minute time frame, indicating that the market may be oversold.
Additionally, the RSI must be below 30, confirming an oversold condition.
A "Buy" label appears below the price when this condition is met.
Sell Signal:
A sell signal is triggered when the market price crosses below the upper Bollinger Band on the 15-minute time frame, indicating that the market may be overbought.
The RSI must be above 70, confirming an overbought condition.
A "Sell" label appears above the price when this condition is met.
Dynamic Jurik RSX w/ Fisher Transform█ Introduction
The Dynamic Jurik RSX with Fisher Transform is a powerful and adaptive momentum indicator designed for traders who seek a non-laggy view of price movements. This script is based on the classic Jurik RSX (Relative Strength Index). It also includes features such as the dynamic overbought and oversold limits, the Inverse Fisher Transform, trend display, slope calculations, and the ability to color extremes for better clarity.
█ Key Features:
• RSX: The Relative Strength Index (RSX) in this script is based on Jurik’s RSX, which is smoother than the traditional RSI and aims to reduce noise and lag. This script calculates the RSX using an exponential smoothing technique and adaptive adjustments.
• Inverse Fisher Transform: This script can optionally apply the Inverse Fisher Transform to the RSX, which helps to normalize the RSX values, compressing them between -1 and 1. The inverse transformation makes it easier to spot extreme values (overbought and oversold conditions) by enhancing the visual clarity of those extremes. It also smooths the curve over a user-defined period in hopes of providing a more consistent signal.
• Dynamic Limits: The dynamic overbought and oversold limits are calculated based on the RSX's recent high and low values. The limits adjust dynamically depending on market conditions, making them more relevant to current price action.
• Slope Display: The slope of the RSX is calculated as the rate of change between the current and previous RSX value. The slope is displayed as dots when the slope exceeds the threshold designated by the user, providing visual cues for momentum shifts.
• Trend Coloring: Optionally, the user can also enable a trend-based display. It is simply based on current value of RSX versus the previous one. If RSX is rising then the trend is bullish, if not, then the trend is bearish.
• Coloring Extremes: Users can configure the RSX to color the chart when prices enter extreme conditions, such as overbought or oversold zones, providing visual cues for market reversals.
█ Attached Chart Notes:
• Top Panel: Enabled dynamic limits, Trend display, standard Jurik RSX with 20 lookback period, and Slope display.
• Middle Panel: Enabled dynamic limits, Extremes display, and standard Jurik RSX with 20 lookback period.
• Bottom Panel: Enabled dynamic limits, Trend display, Inverse Fisher Transform with 14 lookback period and 9 smoothing period. and Slope display.
█ Credits:
Special thanks to Everget for providing the original script. The script was also slightly modified based on updates from outside sources.
█ Disclaimer:
This script is for educational purposes only and should not be considered financial advice. Always conduct your own research and consult a professional before making any trading decisions.
Adaptive RSI-Stoch with Butterworth Filter [UAlgo]The Adaptive RSI-Stoch with Butterworth Filter is a technical indicator designed to combine the strengths of the Relative Strength Index (RSI), Stochastic Oscillator, and a Butterworth Filter to provide a smooth and adaptive momentum-based trading signal. This custom-built indicator leverages the RSI to measure market momentum, applies Stochastic calculations for overbought/oversold conditions, and incorporates a Butterworth Filter to reduce noise and smooth out price movements for enhanced signal reliability.
By utilizing these combined methods, this indicator aims to help traders identify potential market reversal points, momentum shifts, and overbought/oversold conditions with greater precision, while minimizing false signals in volatile markets.
🔶 Key Features
Adaptive RSI and Stochastic Oscillator: Calculates RSI using a configurable period and applies a dual-smoothing mechanism with Stochastic Oscillator values (K and D lines).
Helps in identifying momentum strength and potential trend reversals.
Butterworth Filter: An advanced signal processing filter that reduces noise and smooths out the indicator values for better trend identification.
The filter can be enabled or disabled based on user preferences.
Customizable Parameters: Flexibility to adjust the length of RSI, the smoothing factors for Stochastic (K and D values), and the Butterworth Filter period.
🔶 Interpreting the Indicator
RSI & Stochastic Calculations:
The RSI is calculated based on the closing price over the user-defined period, and further smoothed to generate Stochastic Oscillator values.
The K and D values of the Stochastic Oscillator provide insights into short-term overbought or oversold conditions.
Butterworth Filter Application:
What is Butterworth Filter and How It Works?
The Butterworth Filter is a type of signal processing filter that is designed to have a maximally flat frequency response in the passband, meaning it doesn’t distort the frequency components of the signal within the desired range. It is widely used in digital signal processing and technical analysis to smooth noisy data while preserving the important trends in the underlying data. In this indicator, the Butterworth Filter is applied to the trigger value, making the resulting signal smoother and more stable by filtering out short-term fluctuations or noise in price data.
Key Concepts Behind the Butterworth Filter:
Filter Design: The Butterworth filter works by calculating weighted averages of current and past inputs (price or indicator values) and outputs to produce a smooth output. It is characterized by the absence of ripple in the passband and a smooth roll-off after the cutoff frequency.
Cutoff Frequency: The period specified in the indicator acts as a control for the cutoff frequency. A higher period means the filter will remove more high-frequency noise and retain longer-term trends, while a lower period means it will respond more to short-term fluctuations in the data.
Smoothing Process: In this script, the Butterworth Filter is calculated recursively using the following formula,
butterworth_filter(series float input, int period) =>
float wc = math.tan(math.pi / period)
float k1 = 1.414 * wc
float k2 = wc * wc
float a0 = k2 / (1 + k1 + k2)
float a1 = 2 * a0
float a2 = a0
float b1 = 2 * (k2 - 1) / (1 + k1 + k2)
float b2 = (1 - k1 + k2) / (1 + k1 + k2)
wc: This is the angular frequency, derived from the period input.
k1 and k2: These are intermediate coefficients used in the filter calculation.
a0, a1, a2: These are the feedforward coefficients, which determine how much of the current and past input values will contribute to the filtered output.
b1, b2: These are feedback coefficients, which determine how much of the past output values will contribute to the current output, effectively allowing the filter to "remember" past behavior and smooth the signal.
Recursive Calculation: The filter operates by taking into account not only the current input value but also the previous two input values and the previous two output values. This recursive nature helps it smooth the signal by blending the recent past data with the current data.
float filtered_value = a0 * input + a1 * prev_input1 + a2 * prev_input2
filtered_value -= b1 * prev_output1 + b2 * prev_output2
input: The current input value, which could be the trigger value in this case.
prev_input1, prev_input2: The previous two input values.
prev_output1, prev_output2: The previous two output values.
This means the current filtered value is determined by the combination of:
A weighted sum of the current input and the last two inputs.
A correction based on the last two output values to ensure smoothness and remove noise.
In conclusion when filter is enabled, the Butterworth Filter smooths the RSI and Stochastic values to reduce market noise and highlight significant momentum shifts.
The filtered trigger value (post-Butterworth) provides a cleaner representation of the market's momentum.
Cross Signals for Trade Entries:
Buy Signal: A bullish crossover of the K value above the D value, particularly when the values are below 40 and when the Stochastic trigger is below 1 and the filtered trigger is below 35.
Sell Signal: A bearish crossunder of the K value below the D value, particularly when the values are above 60 and when the Stochastic trigger is above 99 and the filtered trigger is above 90.
These signals are plotted visually on the chart for easy identification of potential trading opportunities.
Overbought and Oversold Zones:
The indicator highlights the overbought zone when the filtered trigger surpasses a specific threshold (typically above 100) and the oversold zone when it drops below 0.
The color-coded fill areas between the Stochastic and trigger lines help visualize when the market may be overbought (likely a reversal down) or oversold (potential reversal up).
🔶 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.
Dema EFI Volume | viResearchDema EFI Volume | viResearch
Conceptual Foundation and Innovation
The "Dema EFI Volume" indicator from viResearch integrates the Double Exponential Moving Average (DEMA) with the Elder Force Index (EFI), providing a dynamic approach to analyzing both price trends and volume strength. The DEMA is applied to smooth out price fluctuations while minimizing lag, which enhances the ability to detect trend direction. The EFI, developed by Dr. Alexander Elder, measures the power behind price movements by incorporating both price change and volume. This indicator, when combined with DEMA smoothing, gives traders a more accurate understanding of whether the current price movements are supported by significant volume, helping them make more informed trading decisions. The combination of DEMA and EFI allows traders to track trend strength while assessing the market’s volume dynamics, offering a more reliable method for identifying potential trend continuations or reversals.
Technical Composition and Calculation
The "Dema EFI Volume" script consists of two key components: the Double Exponential Moving Average (DEMA) and the Elder Force Index (EFI). The DEMA is applied to the selected source price over a user-defined length, providing a smoothed representation of price movements while reducing the noise that can occur with traditional moving averages. The EFI is calculated by multiplying the change in the DEMA by the volume over a user-defined period, which indicates whether the price movement is being driven by strong or weak volume. The script monitors the EFI values and volume data to generate trend signals. If the EFI is positive and volume increases, this indicates bullish pressure, while a negative EFI with decreasing volume suggests bearish conditions. The combination of these signals helps traders determine whether a price move is backed by sufficient volume, making it easier to identify trend continuations or potential reversals.
Features and User Inputs
The "Dema EFI Volume" script offers several customizable inputs, allowing traders to adapt the indicator to their specific strategies. The DEMA Length controls the smoothing applied to the price data, while the EFI Length defines the period over which the force index is calculated. Additionally, traders can set alert conditions for when a bullish or bearish EFI signal occurs, enabling them to react quickly to changing market conditions.
Practical Applications
The "Dema EFI Volume" indicator is designed for traders who want to combine price trend analysis with volume dynamics in a single tool. This makes it particularly effective for identifying trend continuations, as rising volume alongside a positive EFI suggests that the market move is supported by strong momentum. Conversely, decreasing volume and a negative EFI may indicate a weakening trend, giving traders early warning of potential reversals. The combination of DEMA and EFI also makes this indicator valuable for detecting trend strength by measuring whether price movements are backed by strong volume, confirming trend reversals by comparing price changes with volume activity, and improving trade entries and exits by analyzing both price and volume for more robust signals.
Advantages and Strategic Value
The "Dema EFI Volume" script offers significant advantages by combining the DEMA’s smoothing power with the EFI’s volume analysis. This integration allows traders to filter out noise in price data while ensuring that trend signals are backed by meaningful volume. The result is a more reliable tool for trend-following and reversal detection, making it easier for traders to stay aligned with strong market moves while avoiding false signals caused by low-volume fluctuations. The dual focus on price and volume makes the "Dema EFI Volume" an ideal tool for traders who value a comprehensive approach to market analysis.
Alerts and Visual Cues
The script includes alert conditions that notify traders when a significant EFI signal occurs. The "EFI Volume Long" alert is triggered when the EFI is positive and volume increases, indicating a potential upward trend. The "EFI Volume Short" alert signals a possible downward trend when the EFI turns negative and volume decreases. Visual cues, such as the color and direction of the plotted EFI line, help traders quickly identify trend shifts and make timely decisions.
Summary and Usage Tips
The "Dema EFI Volume | viResearch" indicator provides traders with a powerful tool for analyzing both price trends and volume strength. By incorporating this script into your trading strategy, you can improve your ability to detect trend continuations and reversals, making more informed decisions based on a combination of price movement and volume dynamics. Whether you are focused on identifying trend strength or looking for early reversal signals, the "Dema EFI Volume" offers a reliable and customizable solution for traders of all levels.
Note: Backtests are based on past results and are not indicative of future performance.
RSI TreeRSI Tree is a simple way to compare the strength of several different instruments against each other.
The default is to compare MSFT, NVDA, TSLA, GOOG, META, AMZN, AAPL and NASDAQ. You could do the same for currency pairs and any other instruments available in Trading View. However, it makes the most sense to compare seven instruments to an eighth underlying instrument. As you can see in the default values, we included the NASDAQ as the eighth instrument since the other seven are part of the NASDAQ composite index. If you were to trade major currency pairs, then your eighth instrument would most likely be the U.S. Dollar (DXY).
The chart setup is important as well. You need to split your chart horizontally into 4 plots. Each plot would be at a different timing interval. The example shows 4 hr, 1 hr, 15 min and 5 min (left to right) charts. Now not only can we compare the instruments against each other, but we can do it across time to get an idea of the motion of each instrument.
Note, the instrument used on the chart is somewhat important. If the chart is set to a currency pair, but you have the RSI Tree setup for equities (as in the default) then you will get some odd behavior due to the times when these are open. Equities are 0930 to 1600 EST, whereas something like a currency would be open 24 hours a day.
Layout for default settings: www.tradingview.com
Bugs?
Kindly report any issues and I'll try to fix them promptly.
Thank you!
Bitcoin Thermocap [InvestorUnknown]The Bitcoin Thermocap indicator is designed to analyze Bitcoin's market data using a variant of the "Thermocap Multiple" concept from BitBo. This indicator offers several modes for interpreting Bitcoin's historical block and price data, aiding investors and analysts in understanding long-term market dynamics and generating potential investing signals.
Key Features:
1. Thermocap Calculation
The core of the indicator is based on the Thermocap Multiple, which evaluates Bitcoin's value relative to its cumulative historical blocks mined.
Thermocap Formula:
Source: Bitbo
btc_price = request.security("INDEX:BTCUSD", "1D", close)
BTC_BLOCKSMINED = request.security("BTC_BLOCKSMINED", "D", close)
// Variable to store the cumulative historical blocks
var float historical_blocks = na
// Initialize historical blocks on the first bar
if (na(historical_blocks))
historical_blocks := 0.0
// Update the cumulative blocks for each day
historical_blocks += BTC_BLOCKSMINED * btc_price
// Calculate the Thermocap
float thermocap = ((btc_price / historical_blocks) * 1000000) // the multiplication is just for better visualization
2. Multiple Display Modes:
The indicator can display data in four different modes, offering flexibility in interpretation:
RAW: Displays the raw Thermocap value.
LOG: Applies the logarithm of the Thermocap to visualize long-term trends more effectively, especially for large-value fluctuations.
MA Oscillator: Shows the ratio between the Thermocap and its moving average (MA). Users can choose between Simple Moving Average (SMA) or Exponential Moving Average (EMA) for smoothing.
Normalized MA Oscillator: Provides a normalized version of the MA Oscillator using a dynamic min-max rescaling technique.
3. Normalization and Rescaling
The indicator normalizes the Thermocap Oscillator values between user-defined limits, allowing for easier interpretation. The normalization process decays over time, with values shrinking towards zero, providing more relevance to recent data.
Negative values can be allowed or restricted based on user preferences.
f_rescale(float value, float min, float max, float limit, bool negatives) =>
((limit * (negatives ? 2 : 1)) * (value - min) / (max - min)) - (negatives ? limit : 0)
f_max_min_normalized_oscillator(float x) =>
float oscillator = x
var float min = na
var float max = na
if (oscillator > max or na(max)) and time >= normalization_start_date
max := oscillator
if (min > oscillator or na(min)) and time >= normalization_start_date
min := oscillator
if time >= normalization_start_date
max := max * decay
min := min * decay
normalized_oscillator = f_rescale(x, min, max, lim, neg)
Usage
The Bitcoin Thermocap indicator is ideal for long-term market analysis, particularly for investors seeking to assess Bitcoin's relative value based on mining activity and price dynamics. The different display modes and customization options make it versatile for a variety of market conditions, helping users to:
Identify periods of overvaluation or undervaluation.
Generate potential buy/sell signals based on the MA Oscillator and its normalized version.
By leveraging this Thermocap-based analysis, users can gain a deeper understanding of Bitcoin's historical and current market position, helping to inform investment strategies.
RSItrendsThis is to my friends and to my sons to use.
What Is the Relative Strength Index (RSI)?
The relative strength index (RSI) is a momentum indicator used in technical analysis. RSI measures the speed and magnitude of a security's recent price changes to evaluate overvalued or undervalued conditions in the price of that security.
The RSI is displayed as an oscillator (a line graph) on a scale of zero to 100. The indicator was developed by J. Welles Wilder Jr. and introduced in his seminal 1978 book, New Concepts in Technical Trading Systems.
1
The RSI can do more than point to overbought and oversold securities. It can also indicate securities that may be primed for a trend reversal or corrective pullback in price. It can signal when to buy and sell. Traditionally, an RSI reading of 70 or above indicates an overbought situation. A reading of 30 or below indicates an oversold condition.
Adaptive LSMA Regression OscillatorOverview:
The Adaptive LSMA Regression Oscillator is an open-source technical analysis tool designed to reflect market price deviations from an adaptive least squares moving average (LSMA). The adaptive length of the LSMA changes dynamically based on the volatility of the market, making the indicator responsive to different market conditions.
Key Features:
Adaptive Length Adjustment : The base length of the LSMA is adjusted based on market volatility, measured by the Average True Range (ATR). The more volatile the market, the longer the adaptive length, and vice versa.
Oscillator : The indicator calculates the difference between the closing price and the adaptive LSMA. This difference is plotted as a histogram, showing whether prices are above or below the LSMA.
Color-Coded Histogram:
Positive values (where price is above the LSMA) are colored green.
Negative values (where price is below the LSMA) are colored red.
Debugging Information: The adaptive length is plotted for transparency, allowing users to see how the length changes based on the multiplier and ATR.
How It Works:
Inputs:
Base Length : This defines the starting length of the LSMA. It is adjusted based on market conditions.
Multiplier : A customizable multiplier is used to control how much the adaptive length responds to changes in volatility.
ATR Period : This determines the lookback period for the Average True Range calculation, a measure of market volatility.
Dynamic Adjustment:
The length of the LSMA is dynamically adjusted by multiplying the base length by a factor derived from ATR and the average close price.
This helps the indicator adapt to different market conditions, staying shorter during low volatility and longer during high volatility.
Example Use Cases:
Trend Analysis: By observing the oscillator, traders can see when prices deviate from a dynamically adjusted LSMA. This can be used to evaluate potential trend direction or changes in market behavior.
Volatility-Responsive Indicator: The adaptive length ensures that the indicator responds appropriately in both high and low volatility environments.
Potential Divergence Checker#### Key Features
1. Potential Divergence Signals:
Potential divergences can signal a change in price movement before it occurs. This indicator identifies potential divergences instead of waiting for full confirmation, allowing it to detect signs of divergence earlier than traditional methods. This provides more flexible entry points and can act as a broader filter for potential setups.
2. Exposing Signals for External Use:
One of its advanced features is the ability to expose signals for use in other scripts. This allows users to integrate divergence signals and related entry/exit points into custom strategies or automated systems.
3. Custom Entry/Exit Timing Based on Years and Days:
The indicator provides entry and exit signals based on years and days, which could be useful for time-specific market behavior, long-term trades, and back testing.
#### Basic Usage
This indicator can check for all types of potential divergences: bullish, hidden bullish, bearish, hidden bearish. All you need to do is choose the type you want to check for under “DIVERGENCE TYPE” in the settings. On the chart, potential bullish divergences will show up as triangles below the price candles. one the chart potential bearish divergences will show up as upside down triangles above the price candles
#### Signals for Advanced Usage
You can use this indicator as a source in other indicators or strategies using the following information:
“ PD: Bull divergence signal ” will return “1” when a divergence is present and “0” when not present
“ PD: HBull divergence(hidden bull) signal ” will return “1” when a divergence is present and “0” when not present
“ PD: Bear divergence signal ” will return “1” when a divergence is present and “0” when not present
“ PD: HBear divergence(hidden bear) signal ” will return “1” when a divergence is present and “0” when not present
“ PD: enter ” signal will return a “1” when both the days and years criteria in the “entry filter settings” are met and “0” when not met.
“ PD: exit ” signal will return a “1” when the days criteria in the “exit filter settings” are met and “0” when not met.
#### Examples of Using Signals
1. If you are testing a long strategy for Bitcoin and do not want it to run during bear market years(e.g., the second year after a US presidential election), you can enable the “year and day filter for entry,” uncheck the following years in the settings: 2010, 2014, 2018, 2022, 2026, and reference the signal below in our strategy
signal: “ PD: enter ”
2. Let’s say you have a good long strategy, but want to make it a bit more profitable, you can tell the strategy not to run on days where there is potential bearish divergence and have it only run on more profitable days using these signals and the appropriate settings in the indicator
signal: “ PD: Bear divergence signal ” will return a ‘0’ with no bearish divergence present
signal: “ PD: enter ” will return a “1” if the entry falls on a specific, more profitable day chosen in the settings
#### Disclaimer
The "Potential Divergence Checker" indicator is a tool designed to identify potential market signals. It may have bugs and not do what it should do. It is not a guarantee of future trading performance, and users should exercise caution when making trading decisions based on its outputs. Always perform your own research and consider consulting with a financial advisor before making any investment decisions. Trading involves significant risk, and past performance is not indicative of future results.
Relative Rating Index (RRI)The technical rating is one of the most perfect indicators. The reason is that this indicator is based on a majority vote of multiple indicators. It is logical that the judgment based on a majority vote of multiple indicators would not be inferior to the judgment made using only a single indicator. However, just as any indicator has its shortcomings, the technical rating also has weaknesses. The most significant issue is that it primarily provides only a momentary evaluation of the current situation.
Let's consider this in more detail. In the technical rating, an evaluation of 1.0 by the majority vote of indicators is considered a strong buy. However, in the market, there are naturally varying levels of strength. For example, would a market that only once reached an evaluation of 1.0 within a given period be considered the same as a market that consistently maintains an evaluation of 1.0? The latter clearly shows a stronger trend, but the technical rating does not provide an objective criterion for such differentiation. While it is possible to check the histogram to see how long the buy or sell rating has continued, there is no objective standard for judgment.
The indicator I have created this time compensates for this weakness by using the concept of RSI. As is well known, RSI is an indicator that shows the momentum of the market. RSI typically calculates the strength of the price increase during a 14-period by dividing the total upward movement by the total movement range. Similarly, I thought that if we divide the positive evaluations of the technical rating during a given period by the total evaluations, we could calculate the "momentum of the technical rating," which shows how often positive ratings have appeared during that period.
Below is the calculation formula.
1. Setting the Evaluation Period
Decide the period to calculate (e.g., 14 periods). This is denoted as `n`.
2. Total Positive Ratings of the Technical Rating
Calculate the total number of times the technical rating is evaluated as "strong buy" or "buy" during each period. This is called `positive_sum`.
3. Total Ratings
Count the total number of ratings (including buy, sell, and neutral) during the period. This is called `total_sum`.
4. Calculating the Upward Strength
Divide `positive_sum` by `total_sum` to calculate the ratio of positive ratings in the technical rating. This is called the "ratio of positive ratings."
The ratio of positive ratings, denoted as `P`, is calculated as follows:
P = positive_sum / total_sum
5. Calculating RRI
Following the calculation method of RSI, RRI is calculated by the following formula:
RRI = 100 - (100 / (1 + (P / (1 - P))))
As you can see, the calculation method is similar to that of RSI. Therefore, initially, I intended to name this indicator the Technical Rating RSI. However, RSI calculates based on the difference between the previous bar's price and the current bar's price, whereas this indicator calculates by summing the values of the technical ratings themselves. In the case of prices, if the difference between bars is zero, it indicates a flat market, but in the case of technical rating values, if 1.0 continues for two consecutive periods, it signifies an extremely strong buy rather than a flat market. For this reason, I decided that the calculation method could no longer be considered the same as the traditional RSI, and to avoid confusion, I chose to give this new indicator the name "Relative Rating Index" (RRI), as it provides a new type of numerical evaluation.
The information provided by this indicator is simple. When RRI exceeds 50, it means that more than 50% of the technical rating evaluations during the set period (I recommend 50 periods, but please determine the optimal value based on your timeframe) are buy evaluations. However, since there may be many false signals around exactly 50, I define it as buy-dominant when the value exceeds 60 and sell-dominant when it falls below 40. Additionally, if the graph itself is rising, it indicates that the buying momentum is strengthening, and if it is falling, it indicates that the selling momentum is increasing.
Furthermore, there are lines drawn at 90 and 10, but please note that unlike RSI, these do not indicate overbought or oversold conditions. When RRI exceeds 90, it means that over 90% of the technical rating evaluations during the specified period are buy evaluations, indicating an ongoing extremely strong buy trend. Until the RRI graph turns downward and falls below 90, it should rather be considered a buying opportunity.
With this new indicator, the technical rating becomes an indicator with depth, providing evaluations not only for the moment but over a specified period. I hope you find it helpful in your market analysis.
Dema DMI | viResearchDema DMI | viResearch
Conceptual Foundation and Innovation
The "Dema DMI" indicator integrates the Double Exponential Moving Average (DEMA) with the Directional Movement Index (DMI), creating a more responsive and precise trend-following system. The DEMA is used to smooth price data while minimizing lag, making it highly effective for trend detection. The DMI, on the other hand, measures the strength and direction of a trend by analyzing positive and negative directional movements. By combining these two elements, the "Dema DMI" offers traders a powerful tool for identifying trend changes and evaluating the strength of ongoing trends. This combination helps filter out noise in price data while maintaining sensitivity to market movements, providing better trend signals and decision-making opportunities.
Technical Composition and Calculation
The "Dema DMI" script uses two main components: the Double Exponential Moving Average (DEMA) and the Directional Movement Index (DMI). The DEMA is applied to both the high and low prices, creating smoothed versions of these prices based on a user-defined length. The DMI is then calculated by comparing changes in the smoothed high and low prices to measure directional movement. Positive directional movement (DM+) and negative directional movement (DM−) are calculated by evaluating whether the price is trending upward or downward, and the Average Directional Index (ADX) is computed to measure the strength of the trend. The ADX is smoothed to provide a more stable signal of trend strength.
Features and User Inputs
The "Dema DMI" script provides several customizable inputs, enabling traders to tailor the indicator to their strategies. The DEMA Length controls the period over which the DEMA is calculated for both high and low prices. The DMI Length sets the window for calculating directional movement, while the ADX Smoothing Length determines how smooth the ADX line appears, making it easier to assess whether a trend is strengthening or weakening. The script also includes customizable bar colors and alert conditions, providing traders with clear visual cues and notifications when a trend change occurs.
Practical Applications
The "Dema DMI" indicator is designed for traders looking to assess trend strength and direction more effectively. The DEMA smooths price movements, while the DMI highlights shifts in directional movement, providing early signals of potential trend reversals. The ADX helps gauge whether a trend is gaining momentum, allowing traders to improve the timing of trade entries and exits. Additionally, the customizable inputs make the indicator adaptable to different market conditions, ensuring its usefulness in both trending and ranging environments.
Advantages and Strategic Value
The "Dema DMI" script offers significant value by merging the smoothing effects of DEMA with the directional analysis of the DMI. This combination reduces the lag commonly associated with trend-following indicators, providing more timely and accurate trend signals. The ADX further enhances the indicator’s utility by measuring the strength of the trend, helping traders filter out weak signals and stay aligned with stronger trends. This makes the "Dema DMI" an ideal tool for traders seeking to improve their trend-following strategies and optimize their market positioning.
Alerts and Visual Cues
The script includes alert conditions that notify traders when a significant trend change occurs. The "Dema DMI Long" alert is triggered when the indicator detects an upward trend, while the "Dema DMI Short" alert signals a potential downward trend. Visual cues, such as changes in the bar color and the difference between positive and negative directional movement, help traders quickly identify trend shifts and act accordingly.
Summary and Usage Tips
The "Dema DMI | viResearch" indicator combines the smoothing benefits of the DEMA with the directional analysis of the DMI, providing traders with a reliable tool for detecting trend changes and confirming trend strength. By incorporating this script into your trading strategy, you can improve your ability to detect early trend reversals, confirm trend direction, and reduce noise in price data. The "Dema DMI" is a flexible and adaptable solution for traders looking to enhance their technical analysis in various market conditions.
Note: Backtests are based on past results and are not indicative of future performance.
Ema Z-score | viResearchEma Z-score | viResearch
Conceptual Foundation and Innovation
The "Ema Z-score" indicator introduces a novel method of analyzing price deviations from the mean by combining the Exponential Moving Average (EMA) with a Z-score calculation. The Z-score is a statistical measure that quantifies how far a value deviates from the mean in terms of standard deviations. By applying the Z-score to an EMA, this indicator provides traders with insights into the strength and momentum of price movements relative to a smoothed average. This enables better detection of overbought and oversold conditions, as well as potential trend reversals.
The use of the Z-score helps filter out noise and provides more robust signals by highlighting extreme deviations from the mean, allowing traders to make more informed decisions in both trending and ranging markets.
Technical Composition and Calculation
The "Ema Z-score" script consists of two main components: the Exponential Moving Average (EMA) and the Z-score calculation. The EMA is calculated over a user-defined length, smoothing price movements to provide a clearer trend line. The Z-score is then derived by measuring the deviation of the current EMA value from the mean of the EMA over a lookback period, divided by the standard deviation of the EMA during that same period.
For the Z-score calculation, the script first computes the mean EMA over the lookback period using the ta.ema function. It then calculates the standard deviation of the EMA over the same period using the ta.stdev function. The Z-score is determined by subtracting the mean EMA from the current EMA value and dividing by the standard deviation, producing a normalized measure of deviation from the average.
Features and User Inputs
The "Ema Z-score" script offers several customizable inputs that allow traders to adjust the indicator according to their strategies. The EMA Length controls the smoothing period of the EMA, while the Lookback Period defines how far back the script looks when calculating the mean and standard deviation for the Z-score. Customizable thresholds allow traders to define when the Z-score signals potential uptrends or downtrends, based on their chosen levels of deviation.
Practical Applications
The "Ema Z-score" indicator is designed for traders who want to better understand price deviations from the mean and use those insights to identify potential trading opportunities. This tool is particularly effective for:
Identifying Overbought and Oversold Conditions: The Z-score provides a quantitative measure of how far the price has deviated from the mean, helping traders spot extreme conditions that could lead to reversals. Detecting Trend Reversals: By monitoring when the Z-score crosses certain thresholds, traders can identify potential trend reversals early and adjust their positions accordingly. Confirming Trend Strength: The Z-score can help confirm whether a price move is backed by momentum or is likely to revert to the mean, providing additional context for trade entries and exits.
Advantages and Strategic Value
The "Ema Z-score" script offers a significant advantage by combining the smoothing effect of the EMA with the precision of Z-score analysis. This approach reduces the impact of market noise while highlighting meaningful deviations from the norm. The ability to quantify deviations in terms of standard deviations gives traders a statistical edge in identifying overbought or oversold conditions and potential trend shifts. This makes the "Ema Z-score" an effective tool for both trend-following and contrarian strategies.
Alerts and Visual Cues
The script includes alert conditions to notify traders of key Z-score threshold crossings. The "Ema Z-score Long" alert is triggered when the Z-score exceeds the upper threshold, signaling a potential upward trend. Conversely, the "Ema Z-score Short" alert signals a possible downward trend when the Z-score falls below the lower threshold. Visual cues such as color changes in the bar chart and Z-score plot help traders easily identify these conditions on the chart.
Summary and Usage Tips
The "Ema Z-score | viResearch" indicator offers a unique combination of EMA smoothing and Z-score analysis, giving traders a statistical measure of price deviations and improving their ability to detect overbought or oversold conditions, trend reversals, and trend confirmations. By incorporating this script into your trading strategy, you can better quantify price extremes and make more informed decisions in both volatile and stable markets. Whether you're focused on spotting early reversals or confirming ongoing trends, the "Ema Z-score" provides a reliable and customizable solution.
Note: Backtests are based on past results and are not indicative of future performance.
Median For Loop | viResearchMedian For Loop | viResearch
Conceptual Foundation and Innovation
The "Median For Loop" indicator provides an innovative approach to analyzing market data by combining the power of the Median Price with a dynamic scoring system based on a for loop mechanism. This unique script evaluates the median price of the market over a user-defined period, then applies a loop function to generate a score that helps traders detect trends, reversals, and market momentum.
The median, being a robust measure of central tendency, helps filter out noise and better represent the middle of a price range. By applying a loop function that compares the current median to historical values, this script offers a detailed view of price momentum, allowing traders to detect potential trend changes with improved accuracy.
Technical Composition and Calculation
The "Median For Loop" script is composed of two primary components:
Median Calculation: The indicator calculates the median price of the market based on the chosen input source (default is HLC3: the average of high, low, and close) and the specified length. This creates a central value around which market movements can be evaluated.
For Loop Scoring System: This system compares the current median value with past values within a user-defined range, generating a score that reflects how the market is trending. The loop mechanism dynamically sums the score based on whether the current median is higher or lower than historical medians, providing a clear signal of trend strength and direction.
Key Calculations:
Median Calculation: The median is calculated using the percentile_nearest_rank function, providing the 50th percentile of the selected price data over the given length.
For Loop Scoring:
The loop evaluates the median over a defined range (from and to), comparing the current median to historical values.
If the current median is higher than a previous value, a positive score is added; if it is lower, a negative score is added. This forms the final total score, indicating the trend strength.
Features and User Inputs
The "Median For Loop" script offers flexibility and customization options for traders to adapt it to various market conditions and trading strategies:
Median Length: Control the period over which the median price is calculated, affecting the responsiveness of the indicator to price changes.
Loop Range (From and To): Define the range over which the loop evaluates historical median values, allowing traders to adjust how far back the script looks when assessing momentum.
Thresholds: User-defined thresholds are available to specify when the score indicates an uptrend or downtrend. This provides traders with control over the sensitivity of the trend signals.
Practical Applications
The "Median For Loop" indicator is ideal for traders seeking a balanced, noise-filtered approach to trend detection. It is particularly effective for:
Detecting Early Trend Reversals: The loop-based scoring system offers early signals of potential reversals by comparing the current median with past medians, giving traders an advantage in volatile markets.
Confirming Trend Strength: By analyzing the median over time, the script helps confirm whether trends are gaining or losing momentum, improving the accuracy of trade entries and exits.
Strategic Positioning: The customizable parameters allow traders to adapt the script to various market conditions, enhancing their ability to position themselves effectively in both trending and ranging markets.
Advantages and Strategic Value
The key advantage of the "Median For Loop" script is its ability to reduce market noise by focusing on the median price while providing a dynamic scoring system for trend detection. The combination of median calculation and loop-based evaluation offers a more refined view of market momentum, reducing false signals and increasing the reliability of trend identification. This makes it a valuable tool for traders aiming to enhance their market timing and strategy development.
Alerts and Visual Cues
The script includes built-in alerts to notify traders of potential trend changes:
Median For Loop Long: Triggers when the score exceeds the upper threshold, indicating a possible upward trend.
Median For Loop Short: Triggers when the score falls below the lower threshold, signaling a potential downward trend.
Visual cues are also provided, with background colors highlighting potential trend shifts when the score crosses certain levels, offering traders an easy-to-read signal on the chart.
Summary and Usage Tips
The "Median For Loop | viResearch" indicator provides a powerful combination of median price smoothing and dynamic trend scoring, allowing traders to gain a clearer understanding of market momentum. By incorporating this script into your trading strategy, you can improve your ability to detect trends and reversals while reducing the noise that often affects price data. Whether you're focusing on early reversals or confirming the strength of existing trends, this indicator offers a reliable and customizable solution.
Note: Backtests are based on past results and are not indicative of future performance.
Lsma For Loop | viResearchLsma For Loop | viResearch
Conceptual Foundation and Innovation
The "Lsma For Loop" indicator offers a unique combination of the Least Squares Moving Average (LSMA) with a dynamic scoring system based on a loop function. By comparing the current LSMA value with historical values over a user-defined range, this indicator generates a detailed score that helps detect trend strength and potential reversals. This approach provides traders with a more nuanced analysis of price action, allowing them to identify trends earlier and with more accuracy.
The LSMA, which minimizes lag compared to traditional moving averages, is ideal for detecting trends as it provides a smooth and quick-to-respond line. When combined with the loop-based scoring system, traders can benefit from a powerful tool for analyzing market momentum and capturing profitable trends.
Technical Composition and Calculation
The "Lsma For Loop" script features two essential components:
Least Squares Moving Average (LSMA): The LSMA is calculated over a user-defined length using a linear regression model. It provides a smooth line that follows price trends more closely, reducing the noise that is often present in simple moving averages.
For Loop Scoring System: This system evaluates the LSMA over a range of previous values, generating a score based on whether the current LSMA is higher or lower than its previous values within the specified range. The resulting score reflects the strength of the trend, with higher scores indicating a stronger uptrend and lower scores signaling a downtrend.
Key Calculations:
LSMA Calculation: The LSMA is derived from the closing price over the selected period (len), providing a smooth moving average that fits the price data closely.
For Loop Scoring:
The loop iterates over a range of previous LSMA values, comparing the current LSMA to each past value.
If the current LSMA is higher than a previous value, a positive score is added; if it is lower, a negative score is added. The sum of these comparisons forms the overall score.
Features and User Inputs
The "Lsma For Loop" script offers a range of customization options, allowing traders to tailor the indicator to their specific trading strategies and market conditions:
LSMA Length: Adjust the length of the LSMA, controlling the smoothness of the indicator and how quickly it reacts to price changes.
Loop Range (From and To): Define the range over which the for loop evaluates LSMA values. This provides flexibility in assessing momentum over different timeframes.
Thresholds: Customizable threshold levels are used to define when the score indicates an uptrend or downtrend. This allows traders to fine-tune the sensitivity of the indicator to market movements.
Practical Applications
The "Lsma For Loop" is a versatile tool for traders who want to leverage the advantages of LSMA smoothing while gaining a more detailed view of trend strength. This indicator is particularly useful for:
Identifying Trend Reversals: The loop-based scoring system provides an early indication of potential trend reversals, allowing traders to react before major market movements.
Confirming Trend Strength: By evaluating the LSMA against a range of previous values, the script helps confirm whether a trend is strengthening or weakening.
Enhanced Market Positioning: The customizable range and thresholds enable traders to adapt the script to different market conditions, whether they are day trading or swing trading.
Advantages and Strategic Value
The primary advantage of the "Lsma For Loop" script lies in its ability to provide a more granular analysis of LSMA behavior through the use of the for loop. This dynamic approach reduces the likelihood of false signals and offers greater accuracy in detecting trends. The indicator’s versatility makes it a valuable tool for both short-term and long-term trading strategies.
Alerts and Visual Cues
The script includes built-in alert conditions to notify traders of key trend changes:
Lsma For Loop Long: Indicates a potential upward trend when the score exceeds the upper threshold.
Lsma For Loop Short: Signals a potential downward trend when the score falls below the lower threshold.
Additionally, visual cues such as background color changes highlight when the score crosses certain key levels, providing an easy-to-read representation of market trends directly on the chart.
Summary and Usage Tips
The "Lsma For Loop | viResearch" indicator provides traders with a powerful tool that combines LSMA smoothing with a dynamic loop-based scoring system for trend detection. Incorporating this script into your trading strategy can help improve trend identification and enhance decision-making around entries and exits. Whether you are trading in trending markets or looking for early reversal signals, this script offers a reliable and flexible solution.
Note: Backtests are based on past results and are not indicative of future performance.
RSI Standard Deviation | viResearchRSI Standard Deviation | viResearch
The "RSI Standard Deviation" indicator, developed by viResearch, introduces a new approach to combining the Relative Strength Index (RSI) with a standard deviation measure to offer a more dynamic view of market momentum. By applying standard deviation to the RSI values, this indicator refines the traditional RSI, providing a more precise and adaptive way to measure overbought and oversold conditions. This unique combination allows traders to better understand the underlying volatility in RSI movements, leading to more informed decisions in trending and ranging markets.
Technical Composition and Calculation:
The core of the "RSI Standard Deviation" lies in calculating the RSI based on user-defined input parameters and then applying standard deviation to these RSI values. This method enhances the sensitivity of the RSI, making it more responsive to market volatility.
RSI Calculation:
RSI Length (len): The script computes the Relative Strength Index over a customizable length (default: 21), offering a traditional measure of momentum in the market. The RSI tracks the speed and change of price movements, oscillating between 0 and 100 to indicate overbought and oversold conditions.
Standard Deviation Applied to RSI:
Standard Deviation Length (sdlen): The script calculates the standard deviation of the RSI values over a user-defined period (default: 35). This standard deviation represents the volatility in RSI movements, adding a new layer of analysis to traditional RSI.
Upper (u) and Lower (d) Bands:
The standard deviation values are used to create upper and lower bands around the RSI, offering an adaptive range that expands or contracts based on market volatility. This helps traders identify moments when the market is more likely to reverse or continue its trend.
Trend Identification:
Uptrend (L): The script identifies an uptrend when the RSI moves above the lower band and stays above the midline (50). This indicates that the market is gaining upward momentum, potentially signaling a long position.
Downtrend (S): A downtrend is identified when the RSI moves below 50, suggesting a weakening market and a potential short position.
Features and User Inputs:
The "RSI Standard Deviation" script offers various customization options, enabling traders to tailor it to their specific needs and strategies:
RSI Length: Traders can adjust the length of the RSI calculation to control how quickly the indicator responds to price movements.
Standard Deviation Length: Adjusting the standard deviation length allows users to control the sensitivity of the upper and lower bands, fine-tuning the indicator’s responsiveness to market volatility.
Source Input: The script can be applied to different price sources, offering flexibility in how it calculates RSI and standard deviation values.
Practical Applications:
The "RSI Standard Deviation" indicator is particularly useful in volatile markets, where traditional RSI may produce false signals due to rapid price movements. By adding a standard deviation measure, traders can filter out noise and better identify trends.
Key Uses:
Trend Following: The standard deviation bands provide a clearer view of momentum shifts in the RSI, allowing traders to follow the trend more confidently.
Volatility Assessment: The indicator dynamically adjusts to market volatility, making it easier to assess when the market is overbought or oversold and when a trend reversal is likely.
Signal Confirmation: By comparing the RSI to the adaptive standard deviation bands, traders can confirm signals and avoid false entries during periods of high volatility.
Advantages and Strategic Value:
The "RSI Standard Deviation" offers several advantages:
Enhanced Precision: The combination of RSI and standard deviation results in a more refined momentum indicator that adapts to market conditions.
Noise Reduction: The standard deviation bands help filter out short-term market noise, making it easier to identify significant trend changes.
Dynamic Volatility Awareness: By using standard deviation, the indicator adjusts its bands based on real-time volatility, providing more accurate overbought and oversold signals.
Summary and Usage Tips:
The "RSI Standard Deviation" is a powerful tool for traders looking to enhance their RSI analysis with volatility measures. For optimal performance, traders should experiment with different RSI and standard deviation lengths to suit their trading timeframe and strategy. Whether used to follow trends or confirm momentum signals, the "RSI Standard Deviation" provides a reliable and adaptive solution for modern trading environments.
HMA Smoothed RSI [Pinescriptlabs]This indicator uses a modified version of the RSI (Relative Strength Index) weighted by volume. This means it not only takes into account the price but also the amount of volume supporting those price movements, making the indicator more sensitive to real market fluctuations.
Hull Moving Average (HMA) Applied to RSI: To smooth the volume-weighted RSI, a Hull Moving Average (HMA) is applied. The HMA is known for its ability to reduce market "noise" and quickly react to trend changes. This process helps better identify when an asset is overbought or oversold.
Overbought and Oversold Regions: The indicator sets clear overbought and oversold levels, which are adjustable. By default, the overbought level is set at 20 and the oversold level at -20, but you can customize these values. Additionally, there are extreme overbought and oversold levels to help identify more extreme market conditions where a price reversal is more likely.
Buy and Sell Signals:
Buy Signal: This is generated when the modified RSI crosses above the oversold level. This indicates that the price has dropped enough and may be about to rise.
Sell Signal: This occurs when the RSI crosses below the overbought level. This suggests that the price has risen too much and could be about to fall.
Dynamic Visualization and Colors: The indicator is displayed with different colors based on its behavior:
When the RSI is within normal levels, the color is neutral.
If it is above the overbought level, the color turns red (sell alert).
If it is below the oversold level, the color turns green (buy alert).
Alerts: This indicator also allows you to set up alerts. You will receive automatic notifications when buy or sell signals are generated, helping you make decisions without constantly monitoring the chart.
Español:
Este indicador utiliza una versión modificada del RSI (Índice de Fuerza Relativa), ponderado por volumen. Esto significa que no solo tiene en cuenta el precio, sino también la cantidad de volumen que respalda esos movimientos de precios, haciendo que el indicador sea más sensible a las fluctuaciones reales del mercado.
Media Móvil Hull (HMA) aplicada al RSI: Para suavizar el RSI ponderado por volumen, se le aplica una Media Móvil Hull (HMA). La HMA es conocida por su capacidad para reducir el "ruido" del mercado y reaccionar rápidamente a los cambios de tendencia. Este proceso ayuda a identificar mejor cuándo un activo está sobrecomprado o sobrevendido.
Regiones de sobrecompra y sobreventa: El indicador establece niveles claros de sobrecompra y sobreventa que son ajustables. Por defecto, el nivel de sobrecompra está en 20 y el de sobreventa en -20, pero puedes personalizar estos valores. Además, hay niveles extremos de sobrecompra y sobreventa que te ayudan a identificar condiciones más extremas del mercado, donde una reversión de precio es más probable.
Señales de compra y venta:
Señal de compra: Se genera cuando el RSI modificado cruza hacia arriba el nivel de sobreventa. Esto indica que el precio ha bajado lo suficiente y puede estar a punto de subir.
Señal de venta: Se produce cuando el RSI cruza hacia abajo el nivel de sobrecompra. Esto indica que el precio ha subido demasiado y podría estar a punto de bajar.
Visualización y colores dinámicos: El indicador se muestra con diferentes colores según su comportamiento:
Cuando el RSI está dentro de los niveles normales, el color es neutro.
Si está por encima del nivel de sobrecompra, el color se vuelve rojo (señal de alerta de venta).
Si está por debajo del nivel de sobreventa, el color se vuelve verde (señal de alerta de compra).
Alertas: Este indicador también te permite configurar alertas. Así, recibirás notificaciones automáticas cuando se generen señales de compra o venta, ayudándote a tomar decisiones sin estar constantemente monitoreando el gráfico.