Fixed RSI Overlay [lognomics]This overlay indicator provides a dynamic visualization of the RSI on the instrument price chart. It enhances the standard RSI oscillator by scaling it relative to the anchor's maximum & minimum range, conceptualizing how price reacts at standard oscillation levels.
Starting at the anchor's open, the tool collects all the RSI values from each candle within the range, and stores them inside an array corresponding to each candle index. It then pulls relative values and plots a line connecting each point accordingly to the 0-100 range scale.
While determining each maximum and/or minimum the script will plot a box from the opening time of the anchor, encapsulating the high & low of the range, to end at the next anchor time. To the right to of the box, a label is plotted which is pushed to the current time & current RSI y value within the fixed scale.
Relative Strength Index (RSI)
RSI Buy/Sell SignalsThis is RSI based buy/sell indicator.
Why this indicator:
RSI above 70 or RSI below thirty doesnt mean underlying instrument can be a Buy/Sell. Rather it suggests momentum in that direction.
This indicator signals Buy when RSI comes down from overbought and crossed below 50 and vice versa for Sell signal.
Limitation:
This indicator gives frequent buy/sell signals when RSI oscillates between 40 and 60. One can Ignore those buy/sell signals.
However when RSI falls recently from 70 towards 50 crossing it for the first time, it suggests potential downtrend and vice versa.
Due to the above limitation, this indicator is in WIP.
Note : Do your own due diligence and use this indicator with other signals to confirm your trade.
Universal Valuation System Overview 🔍
The Universal Valuation System (UVS) is an advanced valuation-focused indicator that provides insights into whether an asset is statistically overvalued or undervalued, helping traders understand where an asset sits within its historical value range. Unlike trend indicators, UVS emphasizes value analysis through a unique combination of performance ratios and statistical metrics, synthesizing this data into an overall Z-score. This score reflects the asset’s position within a typical normal distribution curve, allowing traders to make data-driven decisions based on historical valuation patterns.
Normal Distribution: A Statistical Foundation for Valuation 📊
The UVS leverages the normal distribution model as its core statistical framework. In a normal distribution, values tend to cluster around a central mean, with predictable probabilities for deviation. In financial markets, this means that most price or valuation levels hover around an average range, while extreme highs or lows are less frequent.
Under normal distribution:
68% of values lie within one standard deviation of the mean.
95% of values lie within two standard deviations.
99.7% of values lie within three standard deviations.
Using Z-scores, UVS calculates where current valuation metrics fall relative to this distribution, identifying overvalued (above-average) or undervalued (below-average) zones. This helps traders interpret an asset’s relative value, showing whether it is more likely to revert toward its mean or is experiencing an exceptional deviation.
Key Components and Ratios in UVS 🔀
UVS includes a range of valuation metrics that work together to determine the Z-score:
Sharpe Ratio: Measures return relative to risk, offering insight into the quality of returns.
Sortino Ratio: Focuses on downside deviation, helping gauge negative returns’ impact.
Omega Ratio: Assesses the likelihood of gains versus losses, providing a risk-adjusted performance measure.
Crosby Ratio: Examines volatility patterns, adding dimension to the valuation signal.
VWAP (Volume-Weighted Average Price) Z-Score: Assesses price relative to volume, highlighting valuation when volume supports price movements.
Price ROC Z-Score: Uses the rate of price change to give a volatility-adjusted price movement signal.
By averaging these ratios, UVS forms a composite Z-score representing an overall valuation signal. This Z-score directly reflects the asset’s position within its historical distribution, indicating whether it’s in a typical, overbought, or oversold range.
DCA (Dollar-Cost Averaging) Application with UVS 💵
The UVS provides powerful insights for those using Dollar-Cost Averaging (DCA) by signaling periods when an asset may be overvalued or undervalued relative to its historical distribution. This model-based approach helps traders strategically adjust their DCA timing:
Overvalued (Overbought) Zones:
When the Z-score indicates that an asset is in an overbought zone (typically above +2 standard deviations), DCA buyers may choose to reduce purchases or pause, as this zone suggests the asset is currently at a premium relative to its historical norms.
Undervalued (Oversold) Zones:
In undervalued regions (typically below -2 standard deviations), the UVS suggests a favorable accumulation point for DCA. These periods allow traders to buy at below-average valuations, optimizing their cost basis over time.
Valuation Zone Display and Accessibility 🌈
UVS includes several user-friendly display options, helping traders interpret its signals easily:
Composite Zone Highlighting: Displays overbought and oversold zones with color gradients, clearly visualizing statistical extremes.
Ratio Breakdown: Allows users to view individual Z-scores for each component, understanding the specific contributions to the overall valuation signal.
Color Blindness Mode: Offers multiple color settings to ensure clear interpretation across different visual needs.
Summary: Structured Value Analysis for Informed DCA Decisions
UVS is designed to be a reliable tool for traders looking to anchor their DCA and valuation-based strategies in statistical reality. By identifying valuation zones within a normal distribution framework, UVS enables a disciplined approach to asset accumulation based on relative value rather than price trends.
Important Note: UVS does not predict future performance. It provides a statistical view of historical valuation, which should be supplemented with additional analysis and risk management practices. Past patterns do not guarantee future results.
Machine Learning RSI [BackQuant]Machine Learning RSI
The Machine Learning RSI is a cutting-edge trading indicator that combines the power of Relative Strength Index (RSI) with Machine Learning (ML) clustering techniques to dynamically determine overbought and oversold thresholds. This advanced indicator adapts to market conditions in real-time, offering traders a robust tool for identifying optimal entry and exit points with increased precision.
Core Concept: Relative Strength Index (RSI)
The RSI is a well-known momentum oscillator that measures the speed and change of price movements, oscillating between 0 and 100. Typically, RSI values above 70 are considered overbought, and values below 30 are considered oversold. However, static thresholds may not be effective in all market conditions.
This script enhances the RSI by integrating a dynamic thresholding system powered by Machine Learning clustering, allowing it to adapt thresholds based on historical RSI behavior and market context.
Machine Learning Clustering for Dynamic Thresholds
The Machine Learning (ML) component uses clustering to calculate dynamic thresholds for overbought and oversold levels. Instead of relying on fixed RSI levels, this indicator clusters historical RSI values into three groups using a percentile-based initialization and iterative optimization:
Cluster 1: Represents lower RSI values (typically associated with oversold conditions).
Cluster 2: Represents mid-range RSI values.
Cluster 3: Represents higher RSI values (typically associated with overbought conditions).
Dynamic thresholds are determined as follows:
Long Threshold: The upper centroid value of Cluster 3.
Short Threshold: The lower centroid value of Cluster 1.
This approach ensures that the indicator adapts to the current market regime, providing more accurate signals in volatile or trending conditions.
Smoothing Options for RSI
To further enhance the effectiveness of the RSI, this script allows traders to apply various smoothing methods to the RSI calculation, including:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Weighted Moving Average (WMA)
Hull Moving Average (HMA)
Linear Regression (LINREG)
Double Exponential Moving Average (DEMA)
Triple Exponential Moving Average (TEMA)
Adaptive Linear Moving Average (ALMA)
T3 Moving Average
Traders can select their preferred smoothing method and adjust the smoothing period to suit their trading style and market conditions. The option to smooth the RSI reduces noise and makes the indicator more reliable for detecting trends and reversals.
Long and Short Signals
The indicator generates long and short signals based on the relationship between the RSI value and the dynamic thresholds:
Long Signals: Triggered when the RSI crosses above the long threshold, signaling bullish momentum.
Short Signals: Triggered when the RSI falls below the short threshold, signaling bearish momentum.
These signals are dynamically adjusted to reflect real-time market conditions, making them more robust than static RSI signals.
Visualization and Clustering Insights
The Machine Learning RSI provides an intuitive and visually rich interface, including:
RSI Line: Plotted in real-time, color-coded based on its position relative to the dynamic thresholds (green for long, red for short, gray for neutral).
Dynamic Threshold Lines: The script plots the long and short thresholds calculated by the ML clustering process, providing a clear visual reference for overbought and oversold levels.
Cluster Plots: Each RSI cluster is displayed with distinct colors (green, orange, and red) to give traders insights into how RSI values are grouped and how the dynamic thresholds are derived.
Customization Options
The Machine Learning RSI is highly customizable, allowing traders to tailor the indicator to their preferences:
RSI Settings : Adjust the RSI length, source price, and smoothing method to match your trading strategy.
Threshold Settings : Define the range and step size for clustering thresholds, allowing you to fine-tune the clustering process.
Optimization Settings : Control the performance memory, maximum clustering steps, and maximum data points for ML calculations to ensure optimal performance.
UI Settings : Customize the appearance of the RSI plot, dynamic thresholds, and cluster plots. Traders can also enable or disable candle coloring based on trend direction.
Alerts and Automation
To assist traders in staying on top of market movements, the script includes alert conditions for key events:
Long Signal: When the RSI crosses above the long threshold.
Short Signal: When the RSI crosses below the short threshold.
These alerts can be configured to notify traders in real-time, enabling timely decisions without constant chart monitoring.
Trading Applications
The Machine Learning RSI is versatile and can be applied to various trading strategies, including:
Trend Following: By dynamically adjusting thresholds, this indicator is effective in identifying and following trends in real-time.
Reversal Trading: The ML clustering process helps identify extreme RSI levels, offering reliable signals for reversals.
Range-Bound Trading: The dynamic thresholds adapt to market conditions, making the indicator suitable for trading in sideways markets where static thresholds often fail.
Final Thoughts
The Machine Learning RSI represents a significant advancement in RSI-based trading indicators. By integrating Machine Learning clustering techniques, this script overcomes the limitations of static thresholds, providing dynamic, adaptive signals that respond to market conditions in real-time. With its robust visualization, customizable settings, and alert capabilities, this indicator is a powerful tool for traders seeking to enhance their momentum analysis and improve decision-making.
As always, thorough backtesting and integration into a broader trading strategy are recommended to maximize the effectiveness!
NASI +The NASI + indicator is an advanced adaptation of the classic McClellan Oscillator, a tool widely used to gauge market breadth. It calculates the McClellan Oscillator by measuring the difference between the 19-day and 39-day EMAs of net advancing issues, which are optionally adjusted to account for the relative strength of advancing vs. declining stocks.
To enhance this analysis, NASI + applies the Relative Strength Index (RSI) to the cumulative McClellan Oscillator values, generating a unique momentum-based view of market breadth. Additionally, two extra EMAs—a 10-day and a 4-day EMA—are applied to the RSI, providing further refinement to signals for overbought and oversold conditions.
With NASI +, users benefit from:
-A deeper analysis of market momentum through cumulative breadth data.
-Enhanced sensitivity to trend shifts with the applied RSI and dual EMAs.
-Clear visual cues for overbought and oversold conditions, aiding in intuitive signal identification.
MACD+RSI+BBDESCRIPTION
The MACD + RSI + Bollinger Bands Indicator is a comprehensive technical analysis tool designed for traders and investors to identify potential market trends and reversals. This script combines three indicators: the Moving Average Convergence Divergence (MACD), the Relative Strength Index (RSI), and Bollinger Bands. Each of these indicators provides unique insights into market behavior.
FEATURES
MACD (Moving Average Convergence Divergence)
The MACD is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price.
The script calculates the MACD line, the signal line, and the histogram, which visually represents the difference between the MACD line and the signal line.
RSI (Relative Strength Index)
The RSI is a momentum oscillator that measures the speed and change of price movements. It ranges from 0 to 100 and is typically used to identify overbought or oversold conditions.
The script allows users to set custom upper and lower thresholds for the RSI, with default values of 70 and 30, respectively.
Bollinger Bands
Bollinger Bands consist of a middle band (EMA) and two outer bands (standard deviations away from the EMA). They help traders identify volatility and potential price reversals.
The script allows users to customize the length of the Bollinger Bands and the multiplier for the standard deviation.
Color-Coding Logic
The histogram color changes based on the following conditions:
Black: If the RSI is above the upper threshold and the closing price is above the upper Bollinger Band, or if the RSI is below the lower threshold and the closing price is below the lower Bollinger Band.
Green (#4caf50): If the RSI is above the upper threshold but the closing price is not above the upper Bollinger Band.
Light Green (#a5d6a7): If the histogram is positive and the RSI is not above the upper threshold.
Red (#f23645): If the RSI is below the lower threshold but the closing price is not below the lower Bollinger Band.
Light Red (#faa1a4): If the histogram is negative and the RSI is not below the lower threshold.
Inputs
Bollinger Bands Settings
Length: The number of periods for the moving average.
Basis MA Type: The type of moving average (SMA, EMA, SMMA, WMA, VWMA).
Source: The price source for the Bollinger Bands calculation.
StdDev: The multiplier for the standard deviation.
RSI Settings
RSI Length: The number of periods for the RSI calculation.
RSI Upper: The upper threshold for the RSI.
RSI Lower: The lower threshold for the RSI.
Source: The price source for the RSI calculation.
MACD Settings
Fast Length: The length for the fast moving average.
Slow Length: The length for the slow moving average.
Signal Smoothing: The length for the signal line smoothing.
Oscillator MA Type: The type of moving average for the MACD calculation.
Signal Line MA Type: The type of moving average for the signal line.
Usage
This indicator is suitable for various trading strategies, including day trading, swing trading, and long-term investing.
Traders can use the MACD histogram to identify potential buy and sell signals, while the RSI can help confirm overbought or oversold conditions.
The Bollinger Bands provide context for price volatility and potential breakout or reversal points.
Example:
From the example, it can clearly see that the Selling Climax and Buying Climax, marked as orange circle when a black histogram occurs.
Conclusion
The MACD + RSI + Bollinger Bands Indicator is a versatile tool that combines multiple technical analysis methods to provide traders with a comprehensive view of market conditions. By utilizing this script, traders can enhance their analysis and improve their decision-making process.
Alex JMA RSX Clone with Price & Divergence [LazyBear]Indicator Description:
RSX Indicator (RSXC_LB): This script is based on a clone of the JMA RSX (Relative Strength Index clone by LazyBear). It is a momentum-based indicator that helps identify overbought and oversold levels, as well as potential trend reversals.
Functional Changes:
Convergence is now marked with a white line on the RSX plot.
Bullish Divergence is marked with a green line, indicating potential upward movement.
Bearish Divergence is marked with a red line, indicating potential downward movement.
The default state is marked with a blue line.
Strong Divergences (both bullish and bearish) are highlighted with triangle markers on the chart.
Updated Features:
The script now visualizes convergence and divergence more clearly using distinct colors:
White: Convergence (indicates potential trend strength).
Green: Bullish divergence (possible price increase).
Red: Bearish divergence (possible price decrease).
Blue: Neutral/default state.
Triangle markers indicate strong divergences, making it easier for the user to spot critical moments.
This visual enhancement aims to provide clearer and more intuitive signals for traders using the RSX indicator, helping them identify trend changes and reversals more effectively.
Depth Trend Indicator - RSIDepth Trend Indicator - RSI
This indicator is designed to identify trends and gauge pullback strength by combining the power of RSI and moving averages with a depth-weighted calculation. The script was created by me, Nathan Farmer and is based on a multi-step process to determine trend strength and direction, adjusted by a "depth" factor for more accurate signal analysis.
How It Works
Trend Definition Using RSI: The RSI Moving Average ( rsiMa ) is calculated to assess the current trend, using customizable parameters for the RSI Period and MA Period .
Trends are defined as follows:
Uptrend : RSI MA > Critical RSI Value
Downtrend : RSI MA < Critical RSI Value
Pullback Depth Calculation: To measure pullback strength relative to the current trend, the indicator calculates a Depth Percentage . This is defined as the portion of the gap between the moving average and the price covered by a pullback.
Depth-Weighted RSI Calculation: The Depth Percentage is then applied as a weighting factor on the RSI Moving Average , giving us a Weighted RSI line that adjusts to the depth of pullbacks. This line is rather noisy, and as such we take a moving average to smooth out some of the noise.
Key Parameters
RSI Period : The period for RSI calculation.
MA Period : The moving average period applied to RSI.
Price MA Period : Determines the SMA period for price, used to calculate pullback depth.
Smoothing Length : Length of smoothing applied to the weighted RSI, creating a more stable signal.
RSI Critical Value : The critical value (level) used in determining whether we're in an uptrend or a downtrend.
Depth Critical Value : The critical value (level) used in determining whether or not the depth weighted value confirms the state of a trend.
Notes:
As always, backtest this indicator and modify the parameters as needed for your specific asset, over your specific timeframe. I chose these defaults as they worked well on the assets I look at, but it is likely you tend to look at a different group of assets over a different timeframe than what I do.
Large pullbacks can create large downward spikes in the weighted line. This isn't graphically pleasing, but I have tested it with various methods of normalization and smoothing and found the simple smoothing used in the indicator to be best despite this.
Black RSI (Multi Symbol RSI)📌 GENERAL OVERVIEW
Black RSI (Multi Symbol RSI) is an indicator with multiple-RSI (multi-symbol support), It is a powerful indicator designed for analyzing the relative strength of multiple financial instruments within a single chart. This indicator essentially combines multiple instances of the Relative Strength Index (RSI) for different symbols, allowing traders to compare and contrast market conditions for a broader, simultaneous analysis of various assets. By tracking RSI across multiple assets, traders can identify broader market trends, and sector rotations, or pinpoint relative strengths and weaknesses among different instruments. Please check the below sections for details.
Black RSI (Multi Symbol RSI) Indicator Features Summary:
+ Multiple RSI with multi-symbol ◢
This indicator plots Primary+3 multiple RSI for multiple symbols at once. For instance, it could simultaneously show the RSI of indices (e.g., SPX, NASDAQ) or stocks within a sector, providing insights into how these assets are moving relative to one another.
+ Custom Divergence Module ◢
It allows the user to select the divergence source among the multiple RSI (Primary, 1st, 2nd or 3rd RSI) and displays regular/hidden bullish/bearish divergence for selected RSI only.
+ Custom RSI Moving Average/BBs ◢
It allows the user to select the RSI moving average/BBs source among the multiple RSI (Primary, 1st, 2nd or 3rd RSI) and displays moving average/BBs for selected RSI only.
+ Alert Triggers ◢
The indicator can incorporate alert functions that notify the user when an RSI threshold (e.g., overbought or oversold levels) is crossed for any of the selected symbols.
📌HOW TO USE IT
Confirm Trends Across Symbols: Use the indicator to confirm trends across multiple assets. For example, if most symbols within a sector or index are showing RSI levels above 50, it may indicate a bullish trend in that sector. Conversely, if most RSIs are below 50, it may signal bearish sentiment.
Spot Divergences: Look for RSI divergences across symbols, which can hint at potential reversals. For instance, if most symbols show declining RSI levels while a few have increasing RSI, it could indicate relative strength in those few, making them candidates for closer watch.
Identify Overbought/Oversold Conditions: By observing the RSI levels of multiple symbols, you can identify when certain assets are overbought (typically RSI > 70) or oversold (typically RSI < 30). When multiple assets show similar RSI levels, this can indicate broader market sentiment or sector momentum.
Sector Rotation Analysis: In longer-term trading or portfolio rebalancing, a Multi-RSI Multi-Symbol indicator can help detect sector rotation patterns by showing which sectors are gaining strength (higher RSI) and which are weakening, facilitating informed sectoral shifts.
Use in Conjunction with Other Indicators: The Multi-RSI can serve as a supporting indicator alongside trend indicators like Moving Averages or Bollinger Bands, helping to confirm entry and exit points. For example, if a symbol’s RSI shows an overbought condition and it aligns with a resistance level from a Moving Average, this could strengthen a sell signal.
Customization: Customize the settings to match your trading style. For instance, day traders might prefer a shorter RSI period and timeframes, while swing traders may benefit from longer timeframes and smoother RSI.
⚙️Black RSI (Multi Symbol RSI) SETTINGS
Black RSI (Multi) Dashboard ◢
+ 1st RSI: Enable/Disable 1st RSI
+ 2nd RSI: Enable/Disable 2nd RSI
+ 3rd RSI: Enable/Disable 3rd RSI
RSI Primary Tools ◢
+ RSI Moving Average/Bollinger Bands: Enable/Disable RSI Moving Average/Bollinger Bands
+ Smooth RSI: Enable/Disable Smooth RSI (for Primary RSI)
+ RSI Divergence: Enable/Disable Divergence for user-selected RSI
RSI Secondary Tools ◢
+ RSI OB/OS Color Bars: Enable/Disable RSI OB/OS Color Bars for user-selected RSI
+ RSI OB/OS Highlights: Enable/Disable OB/OS Highlights for user-selected RSI
+ Background: Enable/Disable RSI Background
+ Primary RSI Settings ▾
- Override Primary RSI Symbol: Allows the user to select the symbol for Primary RSI
- Primary RSI Length: User input primary RSI length value
- Primary RSI Source: User primary RSI source selection
- RSI Line Thickness: User input line thickness value for primary RSI
- Primary RSI Colors:
- OB/OS Highlights: Enable/Disable OB/OS Primary RSI Highlights
- RSI Overbought Threshold: The user can set the RSI overbought threshold value. This Overbought Threshold value will also be applied to All RSI (Primary, 1st, 2nd, 3rd) and "RSI Divergence overbought condition" and "RSI OB/OS Highlights"
- RSI Oversold Threshold: The user can set the RSI oversold threshold value. The lower band (oversold line) of RSI. This Oversold Threshold value will also be applied to All RSI (Primary, 1st, 2nd, 3rd) and "RSI Divergence oversold condition" and "RSI OB/OS Highlights"
+ 1st RSI Settings ▾
- Override 1st RSI Symbol: Allows the user to select the symbol for 1st RSI
- 1st RSI Length: User input 1st RSI length value
- 1st RSI Source: User 1st RSI source selection
- RSI Line Thickness: User input line thickness value for 1st RSI
- 1st RSI Colors:
- OB/OS Highlights: Enable/Disable OB/OS 1st RSI Highlights
+ 2nd RSI Settings ▾
- Override 2nd RSI Symbol: Allows the user to select the symbol for 2nd RSI
- 2nd RSI Length: User input 2nd RSI length value
- 2nd RSI Source: User 2nd RSI source selection
- RSI Line Thickness: User input line thickness value for 2nd RSI
- 2nd RSI Colors:
- OB/OS Highlights: Enable/Disable OB/OS 2nd RSI Highlights
+ 3rd RSI Settings ▾
- Override 3rd RSI Symbol: Allows the user to select the symbol for 3rd RSI
- 3rd RSI Length: User input 3rd RSI length value
- 3rd RSI Source: User 3rd RSI source selection
- RSI Line Thickness: User input line thickness value for 3rd RSI
- 3rd RSI Colors:
- OB/OS Highlights: Enable/Disable OB/OS 3rd RSI Highlights
+ RSI Bands & Threshold Settings ▾
- RSI Middle Band: Allows the user to plot optional RSI band on the RSI Oscillator
- RSI Bullish Band: Allows the user to plot optional RSI band on the RSI Oscillator
- RSI Bearish Band: Allows the user to plot optional RSI band on the RSI Oscillator
+ Primary RSI Smooth Settings ▾
- Type: The user selected Smooth MA type for Primary RSI. With RSI Smooth enabled, it will also affect Primary RSI Divergences detection (all divergences will be plotted according to the "Smoothed RSI line")
- Length: User input Smooth MA length value for Primary RSI
+ RSI Moving Average Settings ▾
- MA/BB RSI Source: Allows the user to MA/BB source selection
- MA/BB Enable/Disable: Allows the user to select Moving average only, BBs only or Both to display on the RSI Oscillator
- RSI Moving Average Colors: Allows the user to select Bullish/Bearish colours of RSI Moving Average
- RSI Moving Average Type: Allows the user to select RSI MA Type
- RSI Moving Average Length: User input RSI MA length value
- RSI Moving Average Thickness: User input RSI MA thickness
- Bollinger Bands Colors: Allows the user to select BBs colours
- BB StdDev: user input Bollinger Bands standard deviation value
+ RSI Divergence Settings ▾
- Divergence RSI source: User selection of divergence source .
- Divergence source: User selection of divergence source . "oscillator" (divergence detection with high/low or close of RSI), "price" (divergence detection with high/low or close of price)
- Bull price source: User selection of Bull price source. Bull price source: "Low" (low of price divergence detection), "Close" (close of price divergence detection) (linked to "price" in "Divergence source")
- Bear price source: User selection of Bear price source. Bear price source: "High" (high of price divergence detection), "Close" (close of price divergence detection) (linked to "price" in "Divergence source")
- Low/High left bars: How many candles to compare on the left side of a candle when deciding whether it is a pivot. The lower the number is, the earlier pivots (and therefore divergences) will be signalled, but the quality of those detections could be lower.
- Low/High right bars: How many candles to compare on the right side of a candle when deciding whether it is a pivot. The lower the number is, the earlier pivots (and therefore divergences) will be signalled, but the quality of those detections could be lower.
- Maximum lookback bars: The maximum length of a divergence (number of bars). If a detected divergence is longer than this, it will be discarded.
- Price threshold: User selection of Price threshold, higher values more lines
- RSI threshold: User selection of RSI threshold, higher values more lines
- Show Lows: Displays lows of RSI
- Show Highs: Displays highs of RSI
- Show Divergence as:
- Line Style:
- Line thickness: User input divergence line thickness value
- Label Transparency: it could reduce label mess on the oscillator line, input "100" for label text only without label background
- Labels Text Color: User label text colour selection
Auto Text Color > Auto colour change of label text according to Dark/Light chart theme
- Bull Divergences: Enable/Disable of Bull divergences
> Color: User selection of Bull divergence color
> Potential Bull: It will plot potential regular bull divergence with a dotted line.
- Bear Divergences: Enable/Disable of Bear divergences
> Color: User selection of Bear divergence color
> Potential Bear: It will plot potential regular bear divergence with a dotted line.
- Hidden Bull Div: Enable/Disable of Hidden Bull divergences
> Color: User selection of Hidden Bull divergence colour
> Potential H.Bull: It will plot potential hidden bull divergence with a dotted line.
- Hidden Bear Div: Enable/Disable of Hidden Bear divergences
> Color: User selection of Hidden Bear divergence colour
> Hidden Bear divergence: It will plot potential hidden bear divergence with a dotted line.
> Regular Bull oversold only: It will show Regular Bullish RSI divergences in the oversold zone only, RSI oversold threshold can be configured in the "Primary RSI Settings" section.
> Regular Bear overbought only: It will show Regular Bearish RSI divergences in the overbought zone only, RSI overbought threshold can be configured in the "Primary RSI Settings" section.
+ RSI OB/OS Colored Bars Settings▾
- OB/OS Bar RSI Source: User selection of OB/OS Bars RSI source .
- Overbought Bar Color: User RSI OB Bars colour selection
- Oversold Bar Color: User RSI OS Bars colour selection
+ Overbought/Oversold Highlights ▾
- OB/OS Highlights RSI Source: User selection of OB/OS Highlights RSI source .
- Overbought Highlights : Enable/Disable Overbought Highlights
- Oversold Highlights : Enable/Disable Oversold Highlights
- Transparency: Gradient transparency of highlighted area
+ RSI Line & Label Settings ▾
- Show Symbol label: Enable/Disable each RSI symbol label.
- RSI line offset: Shifts the RSI to the left or the right on the given number of bars, Default is 0
+ Background Setting ▾
- Custom Background Color: User selection of Background color
Feedback & Bug Report
If you find any bugs in this indicator or have any suggestions, please let me know. Please give feedback & appreciate it if you like to see more future updates and indicators. Thank you
BTX27-MAXIndicator Description: BTX27-MAX
The BTX27-MAX is a comprehensive trading indicator designed to provide traders with customizable signals and alerts based on RSI and ATR calculations. It offers both automatic and manual configurations, making it adaptable to various currency pairs and trading styles. The indicator integrates with Telegram for real-time alerts and includes features for trade management and performance tracking.
Key Features:
Customizable Color Themes: Choose between Dark and Light color styles to match your chart preferences.
Automatic or Manual Configuration: Automatically sets optimal parameters for selected currency pairs or allows manual input for personalized settings.
RSI and ATR-Based Signals: Utilizes RSI smoothing and ATR calculations to identify potential trading opportunities.
Automatic SL and TP Levels: Projects customizable Stop-Loss and Take-Profit levels directly on the chart.
Telegram Integration: Sends customized buy or sell alerts with trade details to your Telegram channel.
Day and Time Filters: Allows selection of trading days and specific trading hours for signal generation.
Trade Summary Table: Displays the results of the last three trades (Win/Loss) directly on the chart.
Customizable Alert Messages: Personalize the messages sent to Telegram for both buy and sell signals.
Visual Enhancements: Colors candles based on trend direction and highlights the trading session on the chart.
How Does the Indicator Work?
Color Style Selection:
- Choose between "Dark" or "Light" themes to match your chart setup.
Currency Pair Selection:
- Select from predefined currency pairs: "EURUSD M5", "USDCAD M3", "GBPUSD M9", "XAUUSD M9".
Automatic vs. Manual Configuration:
- Automatic Configuration: When enabled, the indicator automatically sets parameters optimized for the selected currency pair.
- Manual Configuration: Allows you to input your own parameters for RSI period, smoothing factor, liquidity factors, and SL/TP ticks.
Telegram Integration:
- Input your Telegram chat ID to receive real-time alerts when signals are generated.
Trading Days and Hours:
- Customize which days of the week you want to receive signals.
- Set specific trading start and end hours to focus on preferred trading sessions.
Indicator Calculations:
- Calculates RSI and applies smoothing to identify the trend.
- Uses ATR for volatility measurement and to set dynamic liquidity bands.
Signal Generation:
- A Buy Signal is generated when specific RSI and ATR conditions are met.
- A Sell Signal is generated under the opposite conditions.
- Signals are only generated during the specified trading days and hours.
Trade Execution Visuals:
- Automatically draws SL and TP boxes on the chart for each signal.
- Colors candles based on trend direction: bullish, bearish, or neutral.
Telegram Alerts:
- Sends customized messages to your Telegram channel, including trade details like entry price, SL, TP, volatility, and trend direction.
Trade Summary Table:
- Displays the results of the last three trades ("✅ TP" for Take Profit hit, "❌ SL" for Stop Loss hit) on the chart.
How to Use the Indicator?
Setup:
- Add the indicator to your TradingView chart.
- Choose your preferred Color Style (Dark or Light).
- Select the Currency Pair you are trading.
- Decide whether to use Automatic Configuration or input your own settings.
Configure Telegram Alerts:
- Input your Telegram Chat ID to receive alerts.
- Customize the Buy and Sell alert messages if desired.
Set Trading Days and Hours:
- Enable or disable trading on specific days of the week.
- Set your preferred trading session hours.
Monitor Signals:
- Watch for buy or sell labels appearing on the chart.
- Use the SL and TP boxes to plan your trade entries and exits.
Review Trade Performance:
- Check the trade summary table to see the outcomes of recent trades.
What Makes This Indicator Original?
Adaptable Configuration: Offers both automatic and manual settings, making it suitable for traders of all levels and various trading instruments.
Comprehensive Alerts: Provides detailed alerts via Telegram, including custom messages and comprehensive trade information.
Trade Management Tools: Automatically calculates and visualizes SL and TP levels, aiding in effective risk management.
Performance Tracking: Includes an on-chart summary of recent trade results, helping traders assess the indicator's effectiveness over time.
Visual Customization: Enhances chart visuals with color themes, candle coloring, and trading session highlights.
Additional Considerations
Testing and Optimization: Before using the indicator in live trading, test it in a demo account and adjust settings as needed.
Complementary Analysis: Use in conjunction with other technical or fundamental analysis tools to confirm signals.
Risk Management: Ensure that the automatically calculated SL and TP levels align with your risk tolerance and trading strategy.
Market Awareness: Stay informed about economic events that may impact the instruments you are trading.
Example Configuration
Assuming you are trading "EURUSD M5" with Automatic Configuration enabled:
RSI Period: 15
RSI Smoothing Factor: 14
Rapid Liquidity Factor: 2.238
Liquidity Threshold: 15
SL Ticks: 100
TP Ticks: 300
Trading Days: Tuesday, Wednesday, Thursday
Trading Hours: Start at 8:00, End at 10:00
Telegram Chat ID: Your unique Telegram chat ID
Conclusion
The BTX27-MAX indicator is a versatile tool that combines technical analysis with automated trade management and alerting features. Its adaptability through automatic and manual configurations makes it suitable for a wide range of trading styles and instruments. By integrating real-time Telegram alerts and providing on-chart visual aids, it enhances decision-making processes and helps traders manage their trades more effectively.
Ready for immediate use in TradingView, this indicator can be a valuable addition to your trading toolkit.
Dynamic RSI Mean Reversion StrategyDynamic RSI Mean Reversion Strategy
Overview:
This strategy uses an RSI with ATR-Adjusted OB/OS levels in order to enhance the quality of it's mean reversion trades. It also incorporates a form of trend filtering in an effort to minimize downside and maximize upside. The backtest has fewer trades, as it uses substantial filtering to enhance trade quality. As you can see, I didn't cherry pick the results, so the results aren't the most beautiful thing you'll see in your life. I did this to ensure nobody gets misled. If you need a higher frequency of trades, consider removing the trend filter or increasing the length of the EMAs used for trend detection.
Features:
Dynamic OB/OS Levels: Uses ATR to adjust overbought and oversold thresholds dynamically, making the RSI more responsive in varying volatility conditions. This approach enhances signal strength by expanding the RSI range in high volatility and tightening it in low volatility.
Mean Reversion Focus: Designed for mean reversion but incorporates a trend-following filter to reduce countertrend trades. When the RSI is high, it often indicates an uptrend, so a trend filter prevents shorting in these cases and the same goes for downtrends and longing.
Trend Filtering: A moving average cross trend filter checks for the trend direction, with the RSI signal line color-coded to reflect trend shifts. Entries occur when the RSI crosses above or below the dynamic thresholds and is not a countertrend trade.
Stop Losses: Stop losses are set based on ATR distance from the entry price, providing volatility-adjusted protection.
Note:
If you're using this strategy on assets with a higher price, remember to increase the initial capital in the strategy settings. Otherwise, the strategy won't generate any (or many) trades and you'll end up with some inaccurate results.
Recommended Use:
Test it on different assets and timeframes. I’ve found the best results with standard RSI inputs, a relatively slow ATR, and a slower MA cross for trend filtering. Thus, the defaults are set that way. If the trend metrics are too slow, you’ll filter out too many good trades while allowing crummy ones; if too fast, most trades may be filtered out. As always, this has a lot of configurability so experiment to find the balance that works for your trading style.
Trend IdentifierThe “Trend Identifier” indicator is designed to help traders quickly identify trending and sideways market conditions, allowing them to adapt their strategies based on the prevailing market sentiment. By combining several technical analysis tools—ATR (Average True Range), ADX (Average Directional Index), EMA (Exponential Moving Average), and RSI (Relative Strength Index)—this script provides insights into the market’s strength, direction, and volatility to improve trade decision-making.
How It Works
1. ATR (Average True Range):
• ATR measures market volatility. In this script, ATR is used in combination with a moving average to identify periods of rising or falling volatility, which helps differentiate between trending and non-trending conditions.
2. ADX (Average Directional Index):
• ADX is a key component in identifying the strength of a trend. The script uses a threshold system to classify market conditions:
• If ADX is low (below a specified threshold plus a buffer) and ATR indicates low volatility, the market is likely in a sideways condition.
• If ADX is high (above a threshold minus a buffer) with increasing ATR, the market is likely in a trending condition.
3. EMA (Exponential Moving Average):
• A 20-period EMA is used instead of a simple moving average to enhance trend detection speed. The close price’s position relative to the EMA helps identify bullish or bearish trends when combined with ADX and ATR data.
4. RSI (Relative Strength Index):
• RSI acts as a confirmation tool for trend strength. A bullish trend is confirmed if RSI is above 50 and the price is above the EMA, whereas a bearish trend is confirmed if RSI is below 50 and the price is below the EMA.
Market Condition Signals
• Sideways Signal:
• When ADX and ATR indicate a low-volatility, sideways market, the indicator changes the background color to gray, signaling potential low-trend movement or consolidation. A “S” symbol appears above the bars, making it easier to spot this condition.
• Bullish Trend:
• When conditions favor a strong upward trend, the background changes to green. A “B” symbol is displayed below the bar, indicating the onset of a bullish market condition.
• Bearish Trend:
• Conversely, if conditions indicate a downward trend, the background color changes to red. A “S” symbol is displayed below the bar, showing a bearish trend condition.
Using the Indicator
This indicator helps traders understand the current market structure in a glance:
• Sideways (Gray): Low-volatility consolidation period, ideal for range-bound strategies or waiting for a breakout.
• Bullish (Green): Confirmed uptrend, potentially suitable for buying or long entries.
• Bearish (Red): Confirmed downtrend, ideal for short selling or exiting long positions.
The “Trend Identifier” is a powerful tool for traders who seek a clear view of the market structure, using a balanced approach of volatility, trend strength, and momentum. By combining the power of ATR, ADX, EMA, and RSI, this indicator provides a nuanced picture of the market’s behavior, assisting traders in making more informed decisions.
Stoch RSI and RSI Buy/Sell Signals with MACD Trend FilterDescription of the Indicator
This Pine Script is designed to provide traders with buy and sell signals based on the combination of Stochastic RSI, RSI, and MACD indicators, enhanced by the confirmation of candle colors. The primary goal is to facilitate informed trading decisions in various market conditions by utilizing different indicators and their interactions. The script allows customization of various parameters, providing flexibility for traders to adapt it to their specific trading styles.
Usefulness
This indicator is not just a mashup of existing indicators; it integrates the functionality of multiple momentum and trend-detection methods into a cohesive trading tool. The combination of Stochastic RSI, RSI, and MACD offers a well-rounded approach to analyzing market conditions, allowing traders to identify entry and exit points effectively. The inclusion of color-coded signals (strong vs. weak) further enhances its utility by providing visual cues about the strength of the signals.
How to Use This Indicator
Input Settings: Adjust the parameters for the Stochastic RSI, RSI, and MACD to fit your trading style. Set the overbought/oversold levels according to your risk tolerance.
Signal Colors:
Strong Buy Signal: Indicated by a green label and confirmed by a green candle (close > open).
Weak Buy Signal: Indicated by a blue label and confirmed by a green candle (close > open).
Strong Sell Signal: Indicated by a red label and confirmed by a red candle (close < open).
Weak Sell Signal: Indicated by an orange label and confirmed by a red candle (close < open).
Example Trading Strategy Using This Indicator
To effectively use this indicator as part of your trading strategy, follow these detailed steps:
Setup:
Timeframe : Select a timeframe that aligns with your trading style (e.g., 15-minute for intraday, 1-hour for swing trading, or daily for longer-term positions).
Indicator Settings : Customize the Stochastic RSI, RSI, and MACD parameters to suit your trading approach. Adjust overbought/oversold levels to match your risk tolerance.
Strategy:
1. Strong Buy Entry Criteria :
Wait for a strong buy signal (green label) when the RSI is at or below the oversold level (e.g., ≤ 35), indicating a deeply oversold market. Confirm that the MACD shows a decreasing trend (bearish momentum weakening) to validate a potential reversal. Ensure the current candle is green (close > open) if candle color confirmation is enabled.
Example Use : On a 1-hour chart, if the RSI drops below 35, MACD shows three consecutive bars of decreasing negative momentum, and a green candle forms, enter a buy position. This setup signals a robust entry with strong momentum backing it.
2. Weak Buy Entry Criteria :
Monitor for weak buy signals (blue label) when RSI is above the oversold level but still below the neutral (e.g., between 36 and 50). This indicates a market recovering from an oversold state but not fully reversing yet. These signals can be used for early entries with additional confirmations, such as support levels or higher timeframe trends.
Example Use : On the same 1-hour chart, if RSI is at 45, the MACD shows momentum stabilizing (not necessarily negative), and a green candle appears, consider a partial or cautious entry. Use this as an early warning for a potential bullish move, especially when higher timeframe indicators align.
3. Strong Sell Entry Criteria :
Look for a strong sell signal (red label) when RSI is at or above the overbought level (e.g., ≥ 65), signaling a strong overbought condition. The MACD should show three consecutive bars of increasing positive momentum to indicate that the bullish trend is weakening. Ensure the current candle is red (close < open) if candle color confirmation is enabled.
Example Use : If RSI reaches 70, MACD shows increasing momentum that starts to level off, and a red candle forms on a 1-hour chart, initiate a short position with a stop loss set above recent resistance. This is a high-confidence signal for potential price reversal or pullback.
4. Weak Sell Entry Criteria :
Use weak sell signals (orange label) when RSI is between the neutral and overbought levels (e.g., between 50 and 64). These can indicate potential short opportunities that might not yet be fully mature but are worth monitoring. Look for other confirmations like resistance levels or trendline touches to strengthen the signal.
Example Use : If RSI reads 60 on a 1-hour chart, and the MACD shows slight positive momentum with signs of slowing down, place a cautious sell position or scale out of existing long positions. This setup allows you to prepare for a possible downtrend.
Trade Management:
Stop Loss : For buy trades, place stop losses below recent swing lows. For sell trades, set stops above recent swing highs to manage risk effectively.
Take Profit : Target nearby resistance or support levels, apply risk-to-reward ratios (e.g., 1:2), or use trailing stops to lock in profits as price moves in your favor.
Confirmation : Align these signals with broader trends on higher timeframes. For example, if you receive a weak buy signal on a 15-minute chart, check the 1-hour or daily chart to ensure the overall trend is not bearish.
Real-World Example: Imagine trading on a 15-minute chart :
For a buy:
A strong buy signal (green) appears when the RSI dips to 32, MACD shows declining bearish momentum, and a green candle forms. Enter a buy position with a stop loss below the most recent support level.
Alternatively, a weak buy signal (blue) appears when RSI is at 47. Use this as a signal to start monitoring the market closely or enter a smaller position if other indicators (like support and volume analysis) align.
For a sell:
A strong sell signal (red) with RSI at 72 and a red candle signals to short with conviction. Place your stop loss just above the last peak.
A weak sell signal (orange) with RSI at 62 might prompt caution but can still be acted on if confirmed by declining volume or touching a resistance level.
These strategies show how to blend both strong and weak signals into your trading for more nuanced decision-making.
Technical Analysis of the Code
1. Stochastic RSI Calculation:
The script calculates the Stochastic RSI (stochRsiK) using the RSI as input and smooths it with a moving average (stochRsiD).
Code Explanation : ta.stoch(rsi, rsi, rsi, stochLength) computes the Stochastic RSI, and ta.sma(stochRsiK, stochSmoothing) applies smoothing.
2. RSI Calculation :
The RSI is computed over a user-defined period and checks for overbought or oversold conditions.
Code Explanation : rsi = ta.rsi(close, rsiLength) calculates RSI values.
3. MACD Trend Filter :
MACD is calculated with fast, slow, and signal lengths, identifying trends via three consecutive bars moving in the same direction.
Code Explanation : = ta.macd(close, macdLengthFast, macdLengthSlow, macdSignalLength) sets MACD values. Conditions like macdLine < macdLine confirm trends.
4. Buy and Sell Conditions :
The script checks Stochastic RSI, RSI, and MACD values to set buy/sell flags. Candle color filters further confirm valid entries.
Code Explanation : buyConditionMet and sellConditionMet logically check all conditions and toggles (enableStochCondition, enableRSICondition, etc.).
5. Signal Flags and Confirmation :
Flags track when conditions are met and ensure signals only appear on appropriate candle colors.
Code Explanation : Conditional blocks (if statements) update buyFlag and sellFlag.
6. Labels and Alerts :
The indicator plots "BUY" or "SELL" labels with the RSI value when signals trigger and sets alerts through alertcondition().
Code Explanation : label.new() displays the signal, color-coded for strength based on RSI.
NOTE : All strategies can be enabled or disabled in the settings, allowing traders to customize the indicator to their preferences and trading styles.
Trade 1 + StatergyThe Relative Strength Index (RSI) is a momentum oscillator used in technical analysis that measures the speed and change of price movements of a security within a range of 0 to 100. It is most commonly set to a 14-period timeframe and helps traders identify overbought or oversold conditions, suggesting potential reversal points in the market. Divergence occurs when the price trend and the RSI trend move in opposite directions. A bullish divergence signals potential upward movement when prices are making new lows while the RSI makes higher lows. Conversely, a bearish divergence suggests a possible downward trend when prices are making new highs but the RSI is making lower highs. These signals are crucial for traders looking to capture shifts in momentum and adjust their trading strategies accordingly.
use full to
5 min
10 min
15 min decition
Options Series - Technical Analysis Chart➤ Simple Technical Chart Only:
➤ With MA-20 Overlay and Volatility background bars:
➤ With RSI Candles:
⭐ Overview and How It Works:
This script provides a multi-asset analysis tool to assess various market conditions across four symbols simultaneously. It combines several indicators such as daily price change, Moving Averages (MA), Bollinger Bands (BB), Parabolic SAR, RSI, and VWAP to generate buy/sell signals and trend indicators. Its strength lies in the layered use of indicators to enhance signal reliability, making it valuable for traders needing cross-validation in decision-making.
⭐ Key Features and Functionality:
The script evaluates each symbol's price against various indicators and conditions:
Daily Price Conditions: It checks if each symbol’s close price is above or below the previous day’s open, close, and intra-day ranges, forming a foundational bullish/bearish condition.
Range Breakout 1st 5min Candle (ORB): Opening Range Breakout levels are calculated and compared with current close prices, detecting breakout/breakdown conditions.
ORB Body: This basically calculates the previous day Daily candle body size, if todays Daily candle body size is greater than previous day, then we can say that we are having good momentum else its likely to be in-sidebar trading.
Moving Averages (MA): It leverages EMA-20, 2-day, and 3-day exponential moving averages to gauge short to medium-term trends.
RSI and VWAP: Relative Strength Index (RSI) determines overbought or oversold conditions, while VWAP compares prices to volume-weighted levels.
Bollinger Bands and Trend Analysis: Detects volatility and potential breakout conditions.
Concept of ORB Body:
Current_PrevDay_Body = (math.max(var_Current_PrevD_Open, var_Current_PrevD_Close) - math.min(var_Current_PrevD_Open, var_Current_PrevD_Close))
Current_Upper_ORB = var_Current_D_Open + Current_PrevDay_Body
Current_Lower_ORB = var_Current_D_Open - Current_PrevDay_Body
Current_TodayDay_Body = math.max(var_Current_D_Open, var_Current_Close) - math.min(var_Current_D_Open, var_Current_Close)
Current_ORBBody = Current_TodayDay_Body > Current_PrevDay_Body
Current_Upper_ORB_bull = (var_Current_Close > Current_Upper_ORB)
Current_Lower_ORB_bear = (var_Current_Close < Current_Lower_ORB)
🎨 Visualizations and User Experience:
The script can dynamically display colored backgrounds indicating trends when conditions are met. For example, the bgcolor function changes the background when certain trend-based criteria are satisfied, offering visual cues to users. Additionally, the checkbox input toggles trend bar visualizations, enhancing user experience by providing a quick visual reference without needing to interpret individual data points manually.
RSI-Based Candle Coloring:
➤ The script customizes candle colors based on RSI thresholds, specifically defining upper (60) and lower (40) RSI levels. When the RSI value exceeds the upper threshold, candles are colored as bullish (green), and if it falls below the lower threshold, candles are colored as bearish (red). Neutral RSI values result in a default color (gray).
➤ This setup offers a visually intuitive way to identify potential trend directions based on RSI levels, making it ideal for traders looking to gauge momentum visually.
⭐ Settings and Customization:
With multiple user-configurable inputs, the script allows for tailored analysis. Customizable parameters, such as enabling/disabling trend bars and setting various look-back periods for indicators like Bollinger Bands and Moving Averages, make it adaptable to various trading styles and preferences. It also allows users to modify visual elements like colors and styles, improving flexibility.
⭐ Uniqueness of the Concept:
The unique aspect of this script is its multi-symbol approach combined with complex conditions. By comparing not only one but four symbols simultaneously, it provides a broader market view and allows traders to correlate signals across different assets, offering a potential edge for diversified or comparative strategies. Additionally, the incorporation of ORB and multi-timeframe MAs gives it a robustness often lacking in simpler single-symbol scripts.
🚀 Conclusion:
This script is a powerful multi-indicator tool suited for traders looking for a comparative, multi-symbol analysis. With features like ORB, Bollinger Band-based trend detection, and MA cross-verification, it can assist traders in identifying and validating trend signals across assets. The user-friendly visualizations and customizable settings further enhance its usability, making it versatile for various trading strategies and preferences.
Z-Score RSI StrategyOverview
The Z-Score RSI Indicator is an experimental take on momentum analysis. By applying the Relative Strength Index (RSI) to a Z-score of price data, it measures how far prices deviate from their mean, scaled by standard deviation. This isn’t your traditional use of RSI, which is typically based on price data alone. Nevertheless, this unconventional approach can yield unique insights into market trends and potential reversals.
Theory and Interpretation
The RSI calculates the balance between average gains and losses over a set period, outputting values from 0 to 100. Typically, people look at the overbought or oversold levels to identify momentum extremes that might be likely to lead to a reversal. However, I’ve often found that RSI can be effective for trend-following when observing the crossover of its moving average with the midline or the crossover of the RSI with its own moving average. These crossovers can provide useful trend signals in various market conditions.
By combining RSI with a Z-score of price, this indicator estimates the relative strength of the price’s distance from its mean. Positive Z-score trends may signal a potential for higher-than-average prices in the near future (scaled by the standard deviation), while negative trends suggest the opposite. Essentially, when the Z-Score RSI indicates a trend, it reflects that the Z-score (the distance between the average and current price) is likely to continue moving in the trend’s direction. Generally, this signals a potential price movement, though it’s important to note that this could also occur if there’s a shift in the mean or standard deviation, rather than a meaningful change in price itself.
While the Z-Score RSI could be an insightful addition to a comprehensive trading system, it should be interpreted carefully. Mean shifts may validate the indicator’s predictions without necessarily indicating any notable price change, meaning it’s best used in tandem with other indicators or strategies.
Recommendations
Before putting this indicator to use, conduct thorough backtesting and avoid overfitting. The added parameters allow fine-tuning to fit various assets, but be careful not to optimize purely for the highest historical returns. Doing so may create an overly tailored strategy that performs well in backtests but fails in live markets. Keep it balanced and look for robust performance across multiple scenarios, as overfitting is likely to lead to disappointing real-world results.
XAUUSD 10-Minute StrategyThis XAUUSD 10-Minute Strategy is designed for trading Gold vs. USD on a 10-minute timeframe. By combining multiple technical indicators (MACD, RSI, Bollinger Bands, and ATR), the strategy effectively captures both trend-following and reversal opportunities, with adaptive risk management for varying market volatility. This approach balances high-probability entries with robust volatility management, making it suitable for traders seeking to optimise entries during significant price movements and reversals.
Key Components and Logic:
MACD (12, 26, 9):
Generates buy signals on MACD Line crossovers above the Signal Line and sell signals on crossovers below the Signal Line, helping to capture momentum shifts.
RSI (14):
Utilizes oversold (below 35) and overbought (above 65) levels as a secondary filter to validate entries and avoid overextended price zones.
Bollinger Bands (20, 2):
Uses upper and lower Bollinger Bands to identify potential overbought and oversold conditions, aiming to enter long trades near the lower band and short trades near the upper band.
ATR-Based Stop Loss and Take Profit:
Stop Loss and Take Profit levels are dynamically set as multiples of ATR (3x for stop loss, 5x for take profit), ensuring flexibility with market volatility to optimise exit points.
Entry & Exit Conditions:
Buy Entry: T riggered when any of the following conditions are met:
MACD Line crosses above the Signal Line
RSI is oversold
Price drops below the lower Bollinger Band
Sell Entry: Triggered when any of the following conditions are met:
MACD Line crosses below the Signal Line
RSI is overbought
Price moves above the upper Bollinger Band
Exit Strategy: Trades are closed based on opposing entry signals, with adaptive spread adjustments for realistic exit points.
Backtesting Configuration & Results:
Backtesting Period: July 21, 2024, to October 30, 2024
Symbol Info: XAUUSD, 10-minute timeframe, OANDA data source
Backtesting Capital: Initial capital of $700, with each trade set to 10 contracts (equivalent to approximately 0.1 lots based on the broker’s contract size for gold).
Users should confirm their broker's contract size for gold, as this may differ. This script uses 10 contracts for backtesting purposes, aligned with 0.1 lots on brokers offering a 100-contract specification.
Key Backtesting Performance Metrics:
Net Profit: $4,733.90 USD (676.27% increase)
Total Closed Trades: 526
Win Rate: 53.99%
Profit Factor: 1.44 (1.96 for Long trades, 1.14 for Short trades)
Max Drawdown: $819.75 USD (56.33% of equity)
Sharpe Ratio: 1.726
Average Trade: $9.00 USD (0.04% of equity per trade)
This backtest reflects realistic conditions, with a spread adjustment of 38 points and no slippage or commission applied. The settings aim to simulate typical retail trading conditions. However, please adjust the initial capital, contract size, and other settings based on your account specifics for best results.
Usage:
This strategy is tuned specifically for XAUUSD on a 10-minute timeframe, ideal for both trend-following and reversal trades. The ATR-based stop loss and take profit levels adapt dynamically to market volatility, optimising entries and exits in varied conditions. To backtest this script accurately, ensure your broker’s contract specifications for gold align with the parameters used in this strategy.
Mean Reversion Entry Signal
Mean Reversion Entry Signal Indicator
The Mean Reversion Entry Signal indicator is a trading tool designed for traders looking to capitalize on market corrections. This script leverages mean reversion principles, utilizing price levels and the Relative Strength Index (RSI) to generate potential entry signals for both long and short positions.
Key Features:
1. **Dynamic Price Levels**:
- The indicator calculates critical price levels over a user-defined lookback period, including:
- High (H)**: The highest price point over the lookback period.
- Low (L)**: The lowest price point over the lookback period.
- Midpoint (M)**: The average of the high and low.
- Midpoint High (Mh)** and **Midpoint Low (Ml)**: Additional reference levels derived from M for more nuanced trading signals.
2. User-Configurable Inputs:
- Lookback Period: Traders can specify the number of hours to look back for the calculations, allowing for tailored analysis that fits various trading strategies. By default the lookback is set for 24 hours, as i consider it the most adequate for day trading.
- Aggression Level: This input lets users choose their trading strategy's intensity, affecting the sensitivity of entry signals based on the percentage difference from the midpoint.
3. Entry Signal Generation:
The script evaluates market conditions to signal potential trades:
- Long Entries: Indicated when the price is below the Ml level and the price demonstrates a significant distance from the midpoint (M), coupled with RSI being near the oversold territory.
- Short Entries: Triggered when the price exceeds the Mh level, also indicating a significant distance from M, while the RSI indicates near overbought conditions.
4. Visual Indicators:
Clear visual signals are plotted directly on the chart:
- Long Signals are represented as upward triangles in green.
- Short Signals appear as downward triangles in red.
- Important price levels (M, H, L, Mh, and Ml) are displayed to provide traders with immediate context for potential trades.
5. No Entry Zone:
The area between Mh and Ml is shaded to indicate a "No Entry Zone," helping traders identify regions where conditions may not be favorable for taking new positions.
This can also be used as potencial profit taking area.
Conclusion
1. This indicator was built mainly for day trading, using timeframes between 1 minute and 1 hour. If you want to use it in 1D time frame, for instance, you should adjust the lookback period to 120 hours or so.
2. To use this as a strategy, you should not be afraid to "add to your losers" as the trade goes against you and the signals continue to appear.
Enjoy
COT Trendfilter + SignalsCOT Trendfilter + Signals Indicator
Data Processing and Usage: The COT indicator processes Commitments of Traders (COT) data provided by the CFTC. Users can select from various participant groups, including Commercials, Large Speculators, and Small Speculators. However, it is important to note that the signal logic of the indicator is exclusively applicable to the net positions of Commercials. This is because Commercials tend to trade contrarily, meaning their trading decisions often run against the prevailing market trend.
Functionality of the Indicators
1. Cycle COT
The cCOT is an enhanced version of the classic RSI. It incorporates additional smoothing based on market vibrations, along with adaptive upper and lower bands based on cyclical memory. The cCOT uses the current dominant cycle length as input and highlights trading signals when the signal line crosses above or below the adaptive bands. Compared to the standard RSI, the cCOT responds more quickly to market movements.
For detailed information on the cCOT, please refer to Chapter 4 "Fine tuning technical indicators" in the book "Decoding the Hidden Market Rhythm, Part 1" by Lars von Thienen.
2. Adaptive Ultra-Smooth Momentum Indicator
The Adaptive Ultra-Smooth Momentum Indicator (CSI) provides an optimized momentum oscillator based on the current dominant cycle. It addresses three common issues with standard indicators: excessive false signals, signal delay, and the need for length adjustments. The CSI offers adaptive smoothing, zero delay, and accurate detection of turning points.
For further information about the CSI, please refer to Chapter 10 "Cycle Swing Indicator: Trading the swing of the dominant cycle" in the book "Decoding the Hidden Market Rhythm, Part 1" by Lars von Thienen.
Signals and Validation
The indicator generates various trading signals:
cCOT:
A buy signal is indicated by an airplane emoji (🛫), while a sell signal is marked by another airplane emoji (🛬).
COT Momentum:
A buy signal is shown by the symbol “∿” in green, while a sell signal is represented by the same symbol in red.
Standard COT Index (Willco):
A buy signal is depicted by a “B” (in green), while a sell signal is shown by an “S” (in red).
Additionally, the validity of the signals is checked. If a previous signal becomes invalid in the following week, it is marked with a gray “x,” indicating that these signals may not be reliable. Users can also switch between net positions, long, and short to analyze the most relevant data for them.
Background Color
The color in the channel can indicate the strength of the Commercials' long-term trend. A channel background color signals an active long-, short-term trend, while no color suggests that there is no clear long-term trend present.
Strange behavior
When only a sharp spike is displayed and the rest is flat, the length settings of the Cycle Length Index should be increased. This can occur when the length is too short, resulting in an unusual spike to properly generate the channel.
Disclaimer
The use of this indicator and the generated signals is at your own risk. The author assumes no responsibility for trading decisions made based on these signals. Please be aware that trading financial instruments involves risks.
Weekly RSI Buy/Sell SignalsWeekly RSI Buy/Sell Signal Indicator
This indicator is designed to help traders identify high-probability buy and sell opportunities on the weekly chart by using the Relative Strength Index (RSI). By utilizing weekly RSI values, this indicator ensures signals align with broader market trends, providing a clearer view of potential price reversals and continuation.
How It Works:
Weekly RSI Calculation: This script calculates the RSI using a 14-period setting, focusing on the weekly timeframe regardless of the user’s current chart view. The weekly RSI is derived using request.security, allowing for consistent signals even on intraday charts.
Signal Conditions:
Buy Signal: A buy signal appears when the RSI crosses above the oversold threshold of 30, suggesting that price may be gaining momentum after a potential bottom.
Sell Signal: A sell signal triggers when the RSI crosses below the overbought threshold of 70, indicating a possible momentum shift downwards.
Visual Cues:
Buy/Sell Markers: Clear green "BUY" and red "SELL" markers are displayed on the chart when buy or sell conditions are met, making it easy to identify entry and exit points.
RSI Line and Thresholds: The weekly RSI value is plotted in real time with color-coded horizontal lines at 30 (oversold) and 70 (overbought), providing a visual reference for key levels.
This indicator is ideal for traders looking for reliable, trend-based signals on higher timeframes and can be a helpful tool for filtering out shorter-term market noise.
Pullback Scalp Trade V2Pullback Scalp Trading Indicator
This indicator combines multiple technical analysis tools to identify potential pullback trading opportunities in trending markets. It uses a dual moving average system along with RSI for confirmation, providing a comprehensive approach to trend-following and momentum trading.
Key Features:
1. Trend Identification:
- Uses 50 and 200 period moving averages to define the overall trend
- Visual trend zone highlighting for clear market direction
- Customizable MA periods for different timeframes
2. Signal Generation System:
- Combines RSI crossovers with trend direction
- Buy signals occur when:
* Price is above 200 MA (uptrend)
* RSI crosses above its SMA
* RSI is below the lower threshold (default 50)
- Sell signals occur when:
* Price is below 200 MA (downtrend)
* RSI crosses below its SMA
* RSI is above the upper threshold (default 50)
3. Customizable Parameters:
- Short and Long MA periods
- MA types (SMA, EMA, VWMA)
- RSI length and RSI-SMA length
- RSI signal thresholds
- Trend MA periods
Usage Guidelines:
- Best used on higher timeframes (1H and above) for trend trading
- Wait for price to respect the trend zone before taking trades
- Use additional confirmation from price action or other indicators
- Adjust RSI levels based on market volatility
Limitations:
- Like all indicators, this tool may generate false signals in choppy markets
- Should not be used as a sole decision-making tool
- Past performance does not guarantee future results
----------
Türkçe Açıklama:
Bu indikatör, trendli piyasalarda potansiyel geri çekilme fırsatlarını belirlemek için birden fazla teknik analiz aracını birleştirir. Trend takibi ve momentum ticareti için kapsamlı bir yaklaşım sunan ikili hareketli ortalama sistemi ile RSI'yı bir arada kullanır.
Temel Özellikler:
1. Trend Belirleme:
- Genel trendi tanımlamak için 50 ve 200 periyotlu hareketli ortalamalar
- Görsel trend bölgesi vurgulaması
- Farklı zaman dilimleri için özelleştirilebilir MA periyotları
2. Sinyal Üretim Sistemi:
- RSI kesişimlerini trend yönü ile birleştirir
- Alış sinyalleri şu durumlarda oluşur:
* Fiyat 200 MA'nın üzerinde (yükseliş trendi)
* RSI, SMA'sını yukarı keser
* RSI alt eşiğin altında (varsayılan 50)
- Satış sinyalleri şu durumlarda oluşur:
* Fiyat 200 MA'nın altında (düşüş trendi)
* RSI, SMA'sını aşağı keser
* RSI üst eşiğin üzerinde (varsayılan 50)
3. Özelleştirilebilir Parametreler:
- Kısa ve Uzun MA periyotları
- MA tipleri (SMA, EMA, VWMA)
- RSI uzunluğu ve RSI-SMA uzunluğu
- RSI sinyal seviyeleri
- Trend MA periyotları
Kullanım Önerileri:
- Trend ticareti için yüksek zaman dilimlerinde (1S ve üzeri) kullanılması önerilir
- İşlem almadan önce fiyatın trend bölgesine saygı göstermesini bekleyin
- Fiyat hareketi veya diğer indikatörlerden ek teyit alın
- RSI seviyelerini piyasa volatilitesine göre ayarlayın
Sınırlamalar:
- Tüm indikatörler gibi, dalgalı piyasalarda yanlış sinyaller üretebilir
- Tek başına karar verme aracı olarak kullanılmamalıdır
- Geçmiş performans, gelecekteki sonuçların garantisi değildir
MoonrushCAPITALCOM:US100
Moonrush Indicator - Multi-Timeframe Trend Analysis Tool
Moonrush is a trend analysis tool that helps traders see market trends and identify potential entry or exit points using a combination of Exponential Moving Averages (EMAs) and overbought/oversold signals. The tool has the ability to display data in an easy-to-read dashboard, eliminating the need for users to frequently change charts to get an overview of trends across multiple timeframes.
Key Features and Methods
Multi-Timeframe Trend Analysis:
Moonrush analyzes trends on 1-minute, 5-minute, 15-minute, 30-minute, 1-hour, 4-hour, and 1-day timeframes. It calculates the trend by comparing two user-defined EMA values (EMAfast and EMAslow). If the EMAfast crosses above the EMAslow, it indicates an uptrend (shown in green), while if it crosses below, it indicates a downtrend (shown in red). This allows traders to see the consistency of trends across multiple timeframes.
Customizable Dashboard:
Moonrush provides a dashboard that shows the trend and RSI index for each timeframe, with a table that allows traders to quickly assess market conditions. By displaying the RSI level, it can indicate overbought or oversold conditions. Green is used to indicate overbought conditions, while red is used for oversold conditions.
Overbought/Oversold Color Display:
The dashboard highlights overbought and oversold zones on the support EMA and resistance EMA lines, making it easier for users to identify reversal opportunities.
Key Parameters for Flexibility
EMA Adjustment and Toggle Switch:
Users can adjust the EMAfast and EMAslow parameters to suit their preferences, including turning the EMA display on or off as needed.
Dashboard Customization:
Traders can adjust the size and position of the dashboard to enhance usability, ensuring a clear display without cluttering the chart.
Focus on Risk Management:
Although Moonrush helps in trend detection, users should use this analysis in conjunction with appropriate risk management techniques. It is important to understand how Moonrush works, as the intersection of the EMA and RSI can help identify reversal and continuation patterns. However, users should consider the limitations of this indicator and examine the signals within a broader trading strategy.
How to Use Moonrush
Trend Confirmation:
Check the dashboard to see if trends across multiple timeframes are consistent, to create opportunities to follow or counter the trend.
Identifying Reversals:
Use the overbought and oversold color representations on the EMA support/resistance lines as reversal signals.
Customization:
Adjust the EMA values to your trading style and turn the display on or off as needed.
Moonrush, which combines EMA crossovers and RSI indicators, offers a versatile approach to trend analysis across multiple timeframes. However, traders should note that no single indicator can guarantee success. Users should conduct thorough backtesting and use it in accordance with their personal trading goals and risk tolerance.
##Please note that the tool (Moonrush) is not a guarantee of future market performance and should be used in conjunction with appropriate risk management. Users should ensure that they fully understand the methodology and limitations of the indicator before making any investment decisions. In addition, past performance is not an indication of future results.
Supertrend StrategyThe Supertrend Strategy was created based on the Supertrend and Relative Strength Index (RSI) indicators, widely respected tools in technical analysis. This strategy combines these two indicators to capture market trends with precision and reliability, looking for optimizing exit levels at oversold or overbought price levels.
The Supertrend indicator identifies trend direction based on price and volatility by using the Average True Range (ATR). The ATR measures market volatility by calculating the average range between an asset’s high and low prices over a set period. It provides insight into price fluctuations, with higher ATR values indicating increased volatility and lower values suggesting stability. The Supertrend Indicator plots a line above or below the price, signaling potential buy or sell opportunities: when the price closes above the Supertrend line, an uptrend is indicated, while a close below the line suggests a downtrend. This line shifts as price movements and volatility levels change, acting as both a trailing stop loss and trend confirmation.
To enhance the Supertrend strategy, the Relative Strength Index (RSI) has been added as an exit criterion. As a momentum oscillator, the RSI indicates overbought (usually above 70) or oversold (usually below 30) conditions. This integration allows trades to close when the asset is overbought or oversold, capturing gains before a possible reversal, even if the percentage take profit level has not been reached. This mechanism aims to prevent losses due to market reversals before the Supertrend signal changes.
### Key Features
1. **Entry criteria**:
- The strategy uses the Supertrend indicator calculated by adding or subtracting a multiple of the ATR from the closing price, depending on the trend direction.
- When the price crosses above the Supertrend line, the strategy signals a long (buy) entry. Conversely, when the price crosses below, it signals a short (sell) entry.
- The strategy performs a reversal if there is an open position and a change in the direction of the supertrend occurs
2. **Exit criteria**:
- Take profit of 30% (default) on the average position price.
- Oversold (≤ 5) or overbought (≥ 95) RSI
- Reversal when there is a change in direction of the Supertrend
3. **No Repainting**:
- This strategy is not subject to repainting, as long as the timeframe configured on your chart is the same as the supertrend timeframe .
4. **Position Sizing by Equity and risk management**:
- This strategy has a default configuration to operate with 35% of the equity. At the time of opening the position, the supertrend line is typically positioned at about 12 to 16% of the entry price. This way, the strategy is putting at risk about 16% of 35% of equity, that is, around 5.6% of equity for each trade. The percentage of equity can be adjusted by the user according to their risk management.
5. **Backtest results**:
- This strategy was subjected to deep backtesting and operations in replay mode, including transaction fees of 0.12%, and slippage of 5 ticks.
- The past results in deep backtest and replay mode were compatible and profitable (Variable results depending on the take profit used, supertrend and RSI parameters). However, it should be noted that few operations were evaluated, since the currency in question has been created for a short time and the frequency of operations is relatively small.
- Past results are no guarantee of future results. The strategy's backtest results may even be due to overfitting with past data.
Default Settings
Chart timeframe: 2h
Supertrend Factor: 3.42
ATR period: 14
Supertrend timeframe: 2 h
RSI timeframe: 15 min
RSI Lenght: 5 min
RSI Upper limit: 95
RSI Lower Limit: 5
Take Profit: 30%
BYBIT:1000000MOGUSDT.P