RShar Seasonal RSISeasonal RSI
This indicator, Seasonal RSI, is designed to enhance trading decisions by combining the **Relative Strength Index (RSI)** with insights derived from historical **seasonality patterns**. It not only calculates RSI but also overlays seasonality data for the current week of the year, providing traders with a more contextualized view of market conditions.
---
### **Key Features**
#### 1. **Relative Strength Index (RSI) Calculation**
- The script calculates the RSI for a user-defined period (`RSI Length`), which is an oscillator used to measure the speed and magnitude of price changes.
- RSI values are plotted on the chart, helping traders identify **overbought** and **oversold** conditions.
- Thresholds for **Overbought** and **Oversold** levels are customizable, with default values of 70 and 30, respectively.
---
#### 2. **Dynamic RSI Coloring Based on Seasonality**
- The color of the RSI line dynamically adjusts based on historical **win rates** for the current week of the year:
- **Bright Green** for win rates > 65%.
- **Green** for win rates between 50-65%.
- **Red** for win rates between 35-50%.
- **Dark Red** for win rates < 35%.
- This feature gives traders a quick visual cue about whether the historical performance of the current week tends to be bullish, neutral, or bearish.
---
#### 3. **Overbought and Oversold Level Visualization**
- Overbought and oversold levels are displayed as dotted horizontal lines on the RSI chart.
- These levels act as visual guides for potential price reversals:
- **Overbought (default 70)**: Indicates potential selling pressure.
- **Oversold (default 30)**: Indicates potential buying pressure.
---
#### 4. **Seasonality Data Integration**
- Historical **seasonality data** is used to analyze price performance patterns for each week of the year:
- **Win Rate**: The percentage of years in which prices closed higher during the current week.
- **Average Weekly Change**: The average price percentage change during the current week over historical data.
- This data provides additional context to RSI readings, helping traders align their strategies with seasonal tendencies.
---
#### 5. **Information Table Overlay**
- A table is displayed in the **top-right corner** of the chart, summarizing seasonality data for the current week:
- **Week Win Rate**: Displays the percentage of historical years where prices rose during this week.
- **Avg Weekly Change**: Shows the average percentage price change for the current week. Positive values are displayed in green, and negative values are shown in red.
- This overlay provides actionable insights without cluttering the chart.
---
### **How It Works**
1. **Seasonality Data**:
- A function (`getSeasonalityForWeek`) fetches or uses predefined mock seasonality data for each week of the year.
- For each week, it calculates:
- The **Win Rate** (percentage of years with positive performance).
- The **Mean Change** (average price percentage change).
2. **RSI Plot**:
- The RSI line is plotted on the chart.
- The line's color is determined by the win rate for the current week, providing a visual representation of historical performance trends.
3. **Threshold Visualization**:
- Horizontal lines for overbought and oversold levels are drawn to assist in identifying potential reversal points.
4. **Information Table**:
- The table summarizes the current week's seasonality data for quick reference, helping traders make data-driven decisions.
---
### **Use Cases**
- **Short-Term Traders**:
Use the dynamic RSI colors and seasonality table to align short-term trades with historical patterns of weekly performance.
- **Swing Traders**:
Identify whether a stock or market is in an overbought/oversold condition while considering the seasonal tendency for the week.
- **Contextual Decision-Making**:
Combine traditional RSI signals with historical data to reduce false signals and improve timing.
---
### **Limitations**
- The script uses **mock seasonality data** in its default state. To make it fully functional, replace the mock data with actual historical performance metrics for your specific ticker or market.
- The indicator does not fetch real-time external data due to Pine Script’s limitations, so all seasonality data must be manually updated or hardcoded.
---
This indicator provides a powerful way to combine technical analysis with historical trends, offering a unique edge to traders by adding seasonal context to RSI signals.
Pengayun
MA RSI MACD Signal SuiteThis Pine Script™ is designed for use in Trading View and generates trading signals based on moving average (MA) crossovers, RSI (Relative Strength Index) signals, and MACD (Moving Average Convergence Divergence) indicators. It provides visual markers on the chart and can be configured to suit various trading strategies.
1. Indicator Overview
The indicator includes signals for:
Moving Averages (MA): It tracks crossovers between different types of moving averages.
RSI: Signals based on RSI crossing certain levels or its signal line.
MACD: Buy and sell signals generated by MACD crossovers.
2. Inputs and Customization
Moving Averages (MAs):
You can customize up to 6 moving averages with different types, lengths, and colors.
MA Type: Choose from different types of moving averages:
SMA (Simple Moving Average)
EMA (Exponential Moving Average)
HMA (Hull Moving Average)
SMMA (RMA) (Smoothed Moving Average)
WMA (Weighted Moving Average)
VWMA (Volume Weighted Moving Average)
T3, DEMA, TEMA
Source: Select the price to base the MA on (e.g., close, open, high, low).
Length: Define the number of periods for each moving average.
Examples:
MA1: Exponential Moving Average (EMA) with a period of 9
MA2: Exponential Moving Average (EMA) with a period of 21
RSI Settings:
RSI is calculated based on a user-defined period and is used to identify potential overbought or oversold conditions.
RSI Length: Lookback period for RSI (default 14).
Overbought Level: Defines the overbought threshold for RSI (default 70).
Oversold Level: Defines the oversold threshold for RSI (default 30).
You can also adjust the smoothing for the RSI signal line and customize when to trigger buy and sell signals based on the RSI crossing these levels.
MACD Settings:
MACD is used for identifying changes in momentum and trends.
Fast Length: The period for the fast moving average (default 12).
Slow Length: The period for the slow moving average (default 26).
Signal Length: The period for the signal line (default 9).
Smoothing Method: Choose between SMA or EMA for both the MACD and the signal line.
3. Signal Logic
Moving Average (MA) Crossover Signals:
Crossover: A bullish signal is generated when a fast MA crosses above a slow MA.
Crossunder: A bearish signal is generated when a fast MA crosses below a slow MA.
The crossovers are plotted with distinct colors, and the chart will display markers for these crossover events.
RSI Signals:
Oversold Crossover: A bullish signal when RSI crosses over its signal line below the oversold level (30).
Overbought Crossunder: A bearish signal when RSI crosses under its signal line above the overbought level (70).
RSI signals are divided into:
Aggressive (Early) Entries: Signals when RSI is crossing the oversold/overbought levels.
Conservative Entries: Signals when RSI confirms a reversal after crossing these levels.
MACD Signals:
Buy Signal: Generated when the MACD line crosses above the signal line (bullish crossover).
Sell Signal: Generated when the MACD line crosses below the signal line (bearish crossunder).
Additionally, the MACD histogram is used to identify momentum shifts:
Rising to Falling Histogram: Alerts when the MACD histogram switches from rising to falling.
Falling to Rising Histogram: Alerts when the MACD histogram switches from falling to rising.
4. Visuals and Alerts
Plotting:
The script plots the following on the price chart:
Moving Averages (MA): The selected MAs are plotted as lines.
Buy/Sell Shapes: Triangular markers are displayed for buy and sell signals generated by RSI and MACD.
Crossover and Crossunder Markers: Crosses are shown when two MAs crossover or crossunder.
Alerts:
Alerts can be configured based on the following conditions:
RSI Signals: Alerts for oversold or overbought crossover and crossunder events.
MACD Signals: Alerts for MACD line crossovers or momentum shifts in the MACD histogram.
Alerts are triggered when specific conditions are met, such as:
RSI crosses over or under the oversold/overbought levels.
MACD crosses the signal line.
Changes in the MACD histogram.
5. Example Usage
1. Trend Reversal Setup:
Buy Signal: Use the RSI oversold crossover and MACD bullish crossover to identify potential entry points in a downtrend.
Sell Signal: Use the RSI overbought crossunder and MACD bearish crossunder to identify potential exit points or short entries in an uptrend.
2. Momentum Strategy:
Combine MACD and RSI signals to identify the strength of a trend. Use MACD histogram analysis and RSI levels for confirmation.
3. Moving Average Crossover Strategy:
Focus on specific MA crossovers, such as the 9-period EMA crossing above the 21-period EMA, for buy signals. When a longer-term MA (e.g., 50-period) crosses a shorter-term MA, it may indicate a strong trend change.
6. Alerts Conditions
The script includes several alert conditions, which can be triggered and customized based on the user’s preferences:
RSI Oversold Crossover: Alerts when RSI crosses over the signal line below the oversold level (30).
RSI Overbought Crossunder: Alerts when RSI crosses under the signal line above the overbought level (70).
MACD Buy/Sell Crossover: Alerts when the MACD line crosses the signal line for a buy or sell signal.
7. Conclusion
This script is highly customizable and can be adjusted to suit different trading strategies. By combining MAs, RSI, and MACD, traders can gain multiple perspectives on the market, enhancing their ability to identify potential buy and sell opportunities.
4x Stochastic and 1x RSI Buy and Sell SignalsBuy signal (green), when Stochastic 9, 14, 40 and 60 are bellow 20.
Sell signal (red), when Stochastic 9, 14, 40 and 60 are above 80.
Buy signal is larger, when RSI is also bellow 30.
Sell signal is larger, when RSI is also above 70.
Using RSI is optional and can be disabled.
Use this signals when confirmed by another indicators, like support and resistance levels, EMAs and fundamental analysis.
MTF RSI CandlesThis Pine Script indicator is designed to provide a visual representation of Relative Strength Index (RSI) values across multiple timeframes. It enhances traditional candlestick charts by color-coding candles based on RSI levels, offering a clearer picture of overbought, oversold, and sideways market conditions. Additionally, it displays a hoverable table with RSI values for multiple predefined timeframes.
Key Features
1. Candle Coloring Based on RSI Levels:
Candles are color-coded based on predefined RSI ranges for easy interpretation of market conditions.
RSI Levels:
75-100: Strongest Overbought (Green)
65-75: Stronger Overbought (Dark Green)
55-65: Overbought (Teal)
45-55: Sideways (Gray)
35-45: Oversold (Light Red)
25-35: Stronger Oversold (Dark Red)
0-25: Strongest Oversold (Bright Red)
2. Multi-Timeframe RSI Table:
Displays RSI values for the following timeframes:
1 Min, 2 Min, 3 Min, 4 Min, 5 Min
10 Min, 15 Min, 30 Min, 1 Hour, 1 Day, 1 Week
Helps traders identify RSI trends across different time horizons.
3. Hoverable RSI Values:
Displays the RSI value of any candle when hovering over it, providing additional insights for analysis.
Inputs
1. RSI Length:
Default: 14
Determines the calculation period for the RSI indicator.
2. RSI Levels:
Configurable thresholds for RSI zones:
75-100: Strongest Overbought
65-75: Stronger Overbought
55-65: Overbought
45-55: Sideways
35-45: Oversold
25-35: Stronger Oversold
0-25: Strongest Oversold
How It Works:
1. RSI Calculation:
The RSI is calculated for the current timeframe using the input RSI Length.
It is also computed for 11 additional predefined timeframes using request.security.
2. Candle Coloring:
Candles are colored based on their RSI values and the specified RSI levels.
3. Hoverable RSI Values:
Each candle displays its RSI value when hovered over, via a dynamically created label.
Multi-Timeframe Table:
A table at the bottom-left of the chart displays RSI values for all predefined timeframes, making it easy to compare trends.
Usage:
1. Trend Identification:
Use candle colors to quickly assess market conditions (overbought, oversold, or sideways).
2. Timeframe Analysis:
Compare RSI values across different timeframes to determine long-term and short-term momentum.
3. Signal Confirmation:
Combine RSI signals with other indicators or patterns for higher-confidence trades.
Best Practices
Use this indicator in conjunction with volume analysis, support/resistance levels, or trendline strategies for better results.
Customize RSI levels and timeframes based on your trading strategy or market conditions.
Limitations
RSI is a lagging indicator and may not always predict immediate market reversals.
Multi-timeframe analysis can lead to conflicting signals; consider your trading horizon.
Relative Open Interest - TradingriotRelative Open Interest
This indicator presents a normalized visualization of Open Interest, employing methodology similar to oscillators like RSI.
It transforms raw Open Interest data into an intuitive format that helps identify significant shifts in market positioning within perpetual futures markets.
Overbought Territory (>70)
When the indicator enters overbought territory, it signals substantial new directional perpetuals futures increase in the market.
This surge in positioning can signal two potential scenarios:
Momentum Continuation: The influx of new participants reinforces the existing trend
Mean Reversion: The rapid accumulation of positions creates conditions for a potential reversal
Oversold Territory (<30)
Oversold readings indicate a significant reduction in open positions, typically through a combination of:
Voluntary position closures
Stop-loss triggers
Forced liquidations
These conditions often present compelling mean reversion opportunities as the market digests this rapid position reduction.
Implementation Framework
While this indicator provides valuable insights into market positioning dynamics, it should be integrated within a comprehensive analytical framework rather than used in isolation.
The signals it generates are most effective when confirmed by complementary technical and fundamental analysis tools.
The indicator's strength lies in its ability to quantify and visualize significant changes in market participation, offering traders a sophisticated metric for understanding potential market inflection points and positioning dynamics.
Can be used on any timeframe with any lookback, make sure to backtest the settings that work best for you.
Do not forget that indicator only works when used on Binance perpetual futures charts.
MATA GOLD RATIOMata Gold Instrument: User Guide
The Instrument to Gold Oscillator is a technical analysis tool that normalizes the ratio of an instrument's price (e.g., BTC/USD) to the price of gold (XAU/USD) into a 0-100 scale. This provides a clear and intuitive way to evaluate the relative performance of an instrument compared to gold over a specified period.
---
How It Works
1. Calculation of the Ratio:
The ratio is calculated as:
\text{Ratio} = \frac{\text{Instrument Price}}{\text{Gold Price}}
2. Normalization:
The ratio is normalized using the highest and lowest values over a user-defined period (length), typically 14 periods:
\text{Normalized Ratio} = \frac{\text{Ratio} - \text{Min(Ratio)}}{\text{Max(Ratio)} - \text{Min(Ratio)}} \times 100
3. Overbought/Oversold Levels:
Above 80: The instrument is relatively expensive compared to gold (overbought).
Below 20: The instrument is relatively cheap compared to gold (oversold).
---
How to Use the Oscillator
1. Identify Overbought and Oversold Levels:
If the oscillator rises above 80, the instrument may be overvalued relative to gold. This could signal a potential reversal or correction.
If the oscillator falls below 20, the instrument may be undervalued relative to gold. This could signal a buying opportunity.
2. Track Trends:
Rising oscillator values indicate the instrument is gaining value relative to gold.
Falling oscillator values indicate the instrument is losing value relative to gold.
3. Crossing the Midline (50):
When the oscillator crosses above 50, the instrument's value is gaining strength relative to gold.
When it crosses below 50, the instrument is weakening relative to gold.
4. Combine with Other Indicators:
Use this oscillator alongside other technical indicators (e.g., RSI, MACD, STOCH) for more robust decision-making.
Confirm signals from the oscillator with price action or volume analysis.
---
Example Scenarios
1. Trading Cryptocurrencies Against Gold:
If BTC/USD's oscillator value is above 80, Bitcoin may be overvalued relative to gold. Consider reducing exposure or looking for short opportunities.
If BTC/USD's oscillator value is below 20, Bitcoin may be undervalued relative to gold. This could be a good time to accumulate.
2. Commodities vs. Gold:
Analyze the relative strength of commodities (e.g., oil, silver) against gold using the oscillator to identify periods of overperformance or underperformance.
---
Advantages of the Oscillator
Relative Performance Insight: Tracks the performance of an instrument relative to gold, providing a macro perspective.
Clear Visual Representation: The 0-100 scale makes it easy to identify overbought/oversold conditions and trend shifts.
Customizable Periods: The user-defined length allows flexibility in analyzing short- or long-term trends.
---
Limitations
Dependence on Gold: As the oscillator is based on gold prices, any external shocks to gold (e.g., geopolitical events) can influence its signals.
No Absolute Buy/Sell Signals: The oscillator should not be used in isolation but as part of a broader analysis strategy.
---
By using the Instrument to Gold Oscillator effectively, traders and investors can gain valuable insights into the relative valuation and performance of assets compared to gold, enabling more informed trading and investment decisions.
[LeonidasCrypto]Volume Force IndexVolume Force Index (VFI)
Overview
The Volume Force Index (VFI) is a technical indicator that measures the balance between buying and selling pressure in the market by analyzing volume patterns. It helps traders identify potential trend reversals and confirm trend strength.
What It Measures
Buying vs. selling volume pressure
Market momentum
Potential overbought/oversold conditions
Volume trend strength
How to Read the Indicator
Main Components:
Main Line (Green/Red)
Green: Buying pressure is dominant
Red: Selling pressure is dominant
The steeper the slope, the stronger the pressure
Signal Line (Yellow)
Fast EMA that helps identify trend changes
Acts as an early warning system for potential reversals
Dynamic Bands (Red/Green lines)
Adapt to market volatility
Help identify extreme conditions
Based on actual market volatility rather than fixed levels
Signals to Watch
Trend Direction:
Rising oscillator = Increasing buying pressure
Falling oscillator = Increasing selling pressure
Signal Line Crossovers:
Main line crosses above signal line = Potential bullish signal
Main line crosses below signal line = Potential bearish signal
Band Touches:
Touching upper band = Possible buying exhaustion
Touching lower band = Possible selling exhaustion
Color Changes:
Green to Red = Shift to selling pressure
Red to Green = Shift to buying pressure
Best Practices
When to Use:
Trend confirmation
Identifying potential reversals
Volume analysis
Market strength assessment
Tips:
Use in conjunction with price action
Look for divergences with price
More reliable on higher timeframes
Consider market context
Default Settings:
MA Period: 14 (volume calculation)
Smooth Length: 3 (noise reduction)
EMA Period: 4 (signal line)
Volatility Period: 20 (band calculation)
Volatility Multiplier: 1.5 (band width)
Best Markets to Apply
Any market with reliable volume data
Summary
The VFI is a powerful tool that combines volume analysis with trend identification. Its adaptive nature makes it suitable for various market conditions, but it should be used as part of a complete trading strategy, not in isolation.
Higher Timeframe Stochastics with Slope ColorThis script displays the Stochastic K value of a user-defined higher timeframe and colors the plot based on its slope, providing a unique way to visualize higher timeframe momentum on the current chart.
What makes it unique?
While many scripts display higher timeframe indicators, this script goes a step further by visually highlighting the *slope* of the higher timeframe Stochastic K. This allows traders to quickly assess the direction and strength of the higher timeframe momentum without switching timeframes or manually comparing values.
Features:
* **Primary Function:** Displays the Stochastic K value from a selected higher timeframe.
* **Secondary Function:** Colors the Stochastic K plot based on its slope compared to the previous confirmed value:
* Green: The current Stochastic K value is higher than the previous confirmed value, indicating increasing upward momentum on the higher timeframe.
* Red: The current Stochastic K value is lower than the previous confirmed value, indicating increasing downward momentum on the higher timeframe.
How it works:
* The script calculates the Stochastic K value using the standard formula with user-defined length and the selected higher timeframe.
* It then compares the current higher timeframe Stochastic K value with the *previous confirmed* value obtained using `request.security` with `lookahead=barmerge.lookahead_on`.
* The difference between these two values determines the slope, which is then represented by the color of the plot.
How to Use:
1. Add this script to your chart.
2. Configure the "Higher Timeframe" and "Stochastic Length" in the script settings.
3. Observe the plot of the higher timeframe Stochastic K value and its color changes. The color provides a quick visual cue of the higher timeframe momentum's direction.
Important Note about `request.security` and `lookahead=barmerge.lookahead_on`:
This script uses `request.security(..., lookahead=barmerge.lookahead_on)` to obtain the *previous confirmed* value of the higher timeframe Stochastic K. This is crucial for accurately calculating the slope. While `lookahead=barmerge.lookahead_on` can introduce lookahead bias on historical bars when used with non-offset expressions, in this case, it's used to access the *last confirmed value* of the higher timeframe, which is a valid and necessary approach for this calculation. The current higher timeframe value is then compared to this *already confirmed* past value, ensuring that the slope calculation and the resulting color changes are based on reliable data and do not repaint.
このスクリプトは、ユーザーが設定した上位時間足のストキャスティクス K 値を表示し、その傾きに基づいてプロットに色を付けることで、現在のチャート上で上位時間足のモメンタムを視覚化する独自の方法を提供します。
独自性:
多くのスクリプトが上位時間足のインジケーターを表示しますが、このスクリプトは上位時間足のストキャスティクス K の*傾き*を視覚的に強調することで、一歩進んだ機能を提供します。これにより、トレーダーは時間足を切り替えたり、手動で値を比較したりすることなく、上位時間足のモメンタムの方向と強さを素早く評価できます。
特徴:
* **主な機能:** 選択した上位時間足のストキャスティクス K 値を表示します。
* **補助的な機能:** 前回の確定値と比較した傾きに基づいて、ストキャスティクス K のプロットに色を付けます。
* 緑: 現在のストキャスティクス K 値が前回の確定値より高く、上位時間足で上昇モメンタムが増加していることを示します。
* 赤: 現在のストキャスティクス K 値が前回の確定値より低く、上位時間足で下降モメンタムが増加していることを示します。
仕組み:
* スクリプトは、ユーザー定義の期間と選択された上位時間足を使用して、標準的な計算式でストキャスティクス K 値を計算します。
* 次に、現在の高次時間枠のストキャスティクス K 値を、`request.security` と `lookahead=barmerge.lookahead_on` を使用して取得した*前回の確定値*と比較します。
* これら 2 つの値の差が傾きを決定し、プロットの色で表されます。
使い方:
1. このスクリプトをチャートに追加します。
2. スクリプトの設定で「上位時間枠」と「ストキャスティクスの期間」を設定します。
3. 上位時間足のストキャスティクス K 値のプロットとその色の変化を観察します。色は、上位時間足のモメンタムの方向を素早く視覚的に示します。
`request.security` と `lookahead=barmerge.lookahead_on` に関する重要な注意事項:
このスクリプトは、`request.security(..., lookahead=barmerge.lookahead_on)` を使用して、上位時間足のストキャスティクス K の*前回の確定値*を取得します。これは、傾きを正確に計算するために重要です。`lookahead=barmerge.lookahead_on` は、非オフセット式で使用すると過去のバーでルックアヘッドバイアスを引き起こす可能性がありますが、この場合、上位時間足の*最後の確定値*にアクセスするために使用されており、この計算には有効かつ必要なアプローチです。現在の高次時間枠の値は、この*既に確定した*過去の値と比較されるため、傾きの計算と結果として生じる色の変化は、信頼できるデータに基づいており、リペイントしないことが保証されます。
MACD MTFThis table is a technical indicator that shows the proximity between the MACD line and the signal line of the multitemporal MACD (Moving Average Convergence Divergence) indicator. When the crossover is bullish, the timeframe will light up in green, and vice versa, if the crossover is bearish, the timeframe will light up in red. With this table, we can save time when detecting opportunities, as with one glance, we can spot potential MACD crossovers (which tend to indicate price action inflection points).
Esta tabla es un indicador técnico que muestra la proximidad entre la línea MACD y la línea de señal del indicador MACD (Moving Average Convergence Divergence) multitemporalmente. Cuando el cruce es alcista la temporalidad se iluminará en verde, y viceversa, si el cruce es bajista la temporalidad se iluminará en rojo. Con esta tabla podremos ahorrar tiempo a la hora de detectar oportunidades, pues de un vistazo podremos detectar posibles cruces de MACD (tienden a señalar puntos de inflexión en la acción de precio)
ADX, RSI, & TSI utilized as ART [by KeremErtem]The "ADX, RSI, & TSI utilized as ART" script is an advanced technical analysis tool designed by Kerem Ertem to help traders identify trend direction, strength, and potential reversals. It integrates the Average Directional Index (ADX), Relative Strength Index (RSI), and True Strength Index (TSI) into a cohesive, user-friendly indicator known as ART (Adaptive Relative Trend) .
What it does:
Trend Detection: Utilizes ADX to identify the strength and direction of trends.
Momentum Analysis: Uses RSI to gauge the speed and change of price movements.
Signal Smoothing: Incorporates TSI to reduce noise and provide clearer signals.
How it works:
Input Settings: Customize the source (hlc3), signal period (l1), and lookback range (l2) to tailor the indicator to your trading strategy.
Angle Calculation (ACI): The script calculates the angle of price movements using a custom function, which combines the lowest and highest prices with moving averages to create a smoother representation of trend angles.
Weighted Average: The ACI function is applied to the source price to derive a weighted average, which serves as the foundation for further calculations.
RSI Integration: The script calculates the RSI based on the weighted average price and further refines it using the ACI function to enhance signal accuracy.
ADX Calculation: ADX values are computed and adjusted using the ACI function to provide a clearer indication of trend strength and direction.
ART Indicator: The combined results of the RSI and ADX calculations form the ART indicator, which is plotted alongside trend lines and bands for comprehensive trend analysis.
Bands and Trend Lines: The script plots upper, lower, and center bands based on standard deviation and moving averages, providing visual cues for potential support and resistance levels.
How to use it:
Customization: Adjust the signal period, lookback range, RSI length, and ADX settings to fit your trading preferences.
Interpretation: Green ART signal lines indicate bullish trends, while red lines indicate bearish trends. The trend line color changes from cyan to magenta based on the trend direction.
Bands: Use the upper and lower bands as potential entry and exit points, with the center line acting as a trend confirmation.
This script offers a comprehensive approach to trend and momentum analysis, making it a valuable tool for traders seeking to enhance their trading strategies with advanced technical indicators.
Multi-Timeframe Technical IndicatorThis Multi-Timeframe Technical Indicator is designed for use in financial markets to assist traders in evaluating various key technical indicators across multiple timeframes. The indicator displays a table that includes the values of Moving Averages (MA), Relative Strength Index (RSI), Momentum, and VWAP for a range of timeframes, allowing for the evaluation of trends in real-time.
Key Features:
Multiple Timeframes: The indicator supports timeframes ranging from as low as 1 minute up to 1 month. By tracking indicators on multiple timeframes, traders can make better-informed decisions based on trends across different periods (e.g., short-term vs. long-term trends).
Technical Indicators:
Moving Average (MA): The MA provides insight into the trend direction of the asset's price. It can be configured as Simple Moving Average (SMA), Exponential Moving Average (EMA), or Weighted Moving Average (WMA).
Relative Strength Index (RSI): A momentum oscillator that measures the speed and change of price movements. RSI values below 50 suggest an upward trend, while values above 50 indicate a downward trend.
Momentum: Measures the rate of change of an asset's price, highlighting whether the price is increasing or decreasing.
VWAP (Volume Weighted Average Price): Reflects the average price of the asset weighted by its trading volume. Traders use this value to gauge the fair value of an asset.
Trend Indicators: The table dynamically displays trend arrows (↑ or ↓) based on the comparison of each indicator's value to the previous timeframe’s value. This allows users to identify the prevailing market sentiment or trend at a glance.
Visualization: The data is presented in an easy-to-read table format, where each value is accompanied by color-coded indicators (e.g., green for bullish trends, red for bearish trends). This provides a clear and visually accessible way to interpret complex market conditions.
Use Cases:
Day Trading: Helps day traders assess the momentum and strength of a price move on short-term timeframes like 1-minute, 5-minute, and 15-minute intervals.
Swing Trading: Provides insights into medium-term trends using 1-hour, 4-hour, and daily data points.
Long-Term Analysis: Useful for traders and investors looking to gauge the overall health of an asset over weeks or months, analyzing the 1-week and 1-month indicators.
Limitations and Risks:
As with all technical indicators, it is important to remember that the Multi-Timeframe Technical Indicator is not foolproof. While technical analysis offers valuable insights, it does not guarantee success and can lead to losses. Traders should always use a combination of different methods (technical and fundamental) and consult with financial advisors before making trading decisions.
The indicator operates as a tool for analysis but should not be the sole basis for trading decisions. According to Elder (1993), no indicator is perfect, and it is crucial to combine multiple factors when assessing market conditions. Additionally, Murphy (1999) emphasized the importance of understanding the limitations of indicators, as they are based on historical price movements and may not always predict future trends accurately.
References:
Elder, A. (1993). Trading for a Living. Wiley.
Murphy, J. J. (1999). Technical Analysis of the Financial Markets. New York Institute of Finance.
This Multi-Timeframe Technical Indicator is built to provide real-time, comprehensive data for informed decision-making, and is best used in conjunction with other analysis methods to manage risk effectively.
Price and Volume Divergence Analyzer
How to Use the Indicator
Main Purpose:
Identify divergences between price movement, the volume line, and the weighted volume line to predict potential reversals.
Volume Line Explanation:
At zero: Equal buying and selling volume.
At 1: Double the buying volume vs. selling.
At -1: Double the selling volume vs. buying.
Divergence:
Price rising, volume line falling: Sellers offloading to buyers—likely reversal downward.
Price falling, volume line rising: Buyers stepping in—likely reversal upward.
Higher/Lower Volume Movement Line:
At zero: Equal volume required for price movement.
At 1: High efficiency—half the volume needed to move price.
At -1: Low efficiency—double the volume needed to move price.
Above volume line: Movement aligns with efficient volume.
Below volume line: Inefficient price movement.
Candle Fill Colors:
Shaded based on whether the current close is higher or lower than the previous close.
Settings Overview
EMA Settings:
Timeframe Selection:
Use a lower timeframe than your chart for accuracy. Avoid selecting a timeframe higher than your chart.
EMA Length Option:
Default: Sets lengths automatically (EMA = 14, EMA of EMA = 3).
User Input: Allows custom EMA length.
Calculation Type:
EMA: Standard exponential moving average.
EMA of EMA: Applies EMA three times for smoother values.
Volume Line Settings:
Line Width: Adjust thickness.
Colors:
More Buying: Green (default).
More Selling: Red (default).
Higher/Lower Volume Movement Line:
Line Width: Adjust thickness.
Colors:
Higher Volume Movement: Indicates higher volume required.
Lower Volume Movement: Indicates lower volume required.
Up/Down Candle Fill:
Colors:
Up Candle: Green (default).
Down Candle: Red (default).
Transparency: Adjust percentage for visibility.
Balance Line Settings:
Line Width and Color: Equilibrium line showing equal buying/selling volume at zero.
Flow-Weighted Volume Oscillator (FWVO)Volume Dynamics Oscillator (VDO)
Description
The Volume Dynamics Oscillator (VDO) is a powerful and innovative tool designed to analyze volume trends and provide traders with actionable insights into market dynamics. This indicator goes beyond simple volume analysis by incorporating a smoothed oscillator that visualizes the flow and momentum of trading activity, giving traders a clearer understanding of volume behavior over time.
What It Does
The VDO calculates the flow of volume by scaling raw volume data relative to its highest and lowest values over a user-defined period. This scaled volume is then smoothed using an exponential moving average (EMA) to eliminate noise and highlight significant trends. The oscillator dynamically shifts above or below a zero line, providing clear visual cues for bullish or bearish volume pressure.
Key features include:
Smoothed Oscillator: Displays the direction and momentum of volume using gradient colors.
Threshold Markers: Highlights overbought or oversold zones based on upper and lower bounds of the oscillator.
Visual Fill Zones: Uses color-filled areas to emphasize positive and negative volume flow, making it easy to interpret market sentiment.
How It Works
The calculation consists of several steps:
Smoothing with EMA: An EMA of the scaled volume is applied to reduce noise and enhance trends. A separate EMA period can be adjusted by the user (Volume EMA Period).
Dynamic Thresholds: The script determines upper and lower bounds around the smoothed oscillator, derived from its recent highest and lowest values. These thresholds indicate critical zones of volume momentum.
How to Use It
Bullish Signals: When the oscillator is above zero and green, it suggests strong buying pressure. A crossover from negative to positive can signal the start of an uptrend.
Bearish Signals: When the oscillator is below zero and blue, it indicates selling pressure. A crossover from positive to negative signals potential bearish momentum.
Overbought/Oversold Zones: Use the upper and lower threshold levels as indicators of extreme volume momentum. These can act as early warnings for trend reversals.
Traders can adjust the following inputs to customize the indicator:
High/Low Period: Defines the period for volume scaling.
Volume EMA Period: Adjusts the smoothing factor for the oscillator.
Smooth Factor: Controls the responsiveness of the smoothed oscillator.
Originality and Usefulness
The VDO stands out by combining dynamic volume scaling, EMA smoothing, and gradient-based visualization into a single, cohesive tool. Unlike traditional volume indicators, which often display raw or cumulative data, the VDO emphasizes relative volume strength and flow, making it particularly useful for spotting reversals, confirming trends, and identifying breakout opportunities.
The integration of color-coded fills and thresholds enhances usability, allowing traders to quickly interpret market conditions without requiring deep technical expertise.
Chart Recommendations
To maximize the effectiveness of the VDO, use it on a clean chart without additional indicators. The gradient coloring and filled zones make it self-explanatory, but traders can overlay basic trendlines or support/resistance levels for additional context.
For advanced users, the VDO can be paired with price action strategies, candlestick patterns, or other trend-following indicators to improve accuracy and timing.
ueuito Custom Moving Averages and VWMA TrendDescription in English:
is a customizable indicator that combines multiple technical analysis tools to identify market trends and buy/sell signals. It integrates moving averages (including VWMA), RSI, MACD, and various configurable levels, providing detailed visual analysis on the chart.
Key Features:
Customizable Moving Averages:
Supports SMA, EMA, WMA, VWMA, and RMA.
Allows for customizing the period and displaying up to two moving averages simultaneously.
VWMA with RSI Indication:
VWMA changes color based on RSI conditions:
Overbought color when RSI exceeds a configurable level.
Oversold color when RSI drops below a configurable level.
MACD and Crossovers:
Detects MACD crossovers with the signal line and highlights them on the chart.
Includes visual indicators to mark key moments of MACD rising or falling.
Overbought/Oversold Signals:
Adds visual markers when RSI exceeds user-defined levels (overbought or oversold).
MACD Level Indicators:
Displays specific values on the chart when MACD reaches predefined levels, with color adjustments based on trend direction.
Advanced Configurations:
Configurable parameters for vertical offset, label colors, and alert levels.
Provides flexibility to tailor the indicator’s appearance and behavior.
Still improving...
ADX-DMIThis script manually calculates the Directional Movement Index (DMI) and the Average Directional Index (ADX) using Wilder’s smoothing technique. The DMI indicators are used to assess the strength and direction of a market trend. It includes three main lines: ADX (yellow), DI+ (green), and DI− (red). Traders use these indicators to determine whether a trend is strong and in which direction it is moving.
The process begins by defining the length parameter, which determines how many periods are considered in the calculation. It then calculates the True Range (TR), which is the greatest of three values: the difference between the current high and low, the difference between the current high and the previous close, and the difference between the current low and the previous close. This TR is used to compute the Average True Range (ATR), which smooths out price fluctuations to get a clearer picture of the market’s volatility. Next, the script calculates the +DM (positive directional movement) and -DM (negative directional movement) based on the changes in the highs and lows from one period to the next.
Finally, the script computes the DI+ and DI− values by dividing the smoothed +DM and -DM by the ATR and multiplying by 100 to express them as percentages. The DX value is calculated as the absolute difference between DI+ and DI−, normalized by the sum of both values. The ADX is then derived by smoothing the DX value over the specified length. The three indicators — ADX, DI+, and DI− — are plotted in the lower chart panel, providing traders with visual cues about the trend’s direction (DI+ and DI−) and strength (ADX).
Important Notice:
The use of technical indicators like this one does not guarantee profitable results. This indicator should not be used as a standalone analysis tool. It is essential to combine it with other forms of analysis, such as fundamental analysis, risk management strategies, and awareness of current market conditions. Always conduct thorough research.
Note: The effectiveness of any technical indicator can vary based on market conditions and individual trading styles. It's crucial to test indicators thoroughly using historical data before applying them in live trading scenarios.
Disclaimer:
Trading financial instruments involves substantial risk and may not be suitable for all investors. Past performance is not indicative of future results. This indicator is provided for informational and educational purposes only and should not be considered investment advice. Always conduct your own research before making any trading decisions.
Red Pill VWAP/RSI DivergenceI created this indicator to identify moments in time VWAP and RSI are diverging.
Ideally useful in strong trend, bullish or bearish, as a potential entry point on a pull back for continuation. Not to be used as a stand alone signal, but rather in conjunction with any possible trend/momentum strategy.
VWAP is identified as the blue line. Green label(blue pill) is your potential entry on a pull back when price is above, stacked EMAS & VWAP for a long position. Red label(red pill) is your potential entry on a pull back when price is below inversely stacked EMAS & VWAP for a short position. These are the 2 ideal scenarios I have found. Please back test for yourself
I have had great results but must emphasis this is not a stand alone buy/sell. I use it in confluence to add conviction to my current A+ setups.
***Pivot ribbon in chart created by Saty Mahajan set to 3/10 time warp works ideal in conjunction.
***please note false positive and false negative signals can occur, particularly in chop
I hope you find this helpful . TRADE SAFE!
Williams %R IntensityOverview
"Williams %R Intensity" is a unique indicator that combines the classic Williams %R with a dynamic intensity-based visualization. This indicator helps traders identify overbought and oversold conditions with enhanced clarity while also predicting potential future crossovers using smoothed slope calculations. It is tailored for traders seeking a more nuanced approach to trend detection and momentum analysis.
Features and How It Works
Core Calculation:
Williams %R : Measures the current closing price relative to the highest high and lowest low over a user-defined length (default: 14).
Exponential Moving Average (EMA) : Smoothens the %R values for better trend tracking (default length: 14).
Overbought/Oversold Zones :
Upper and lower threshold levels are set at -20 (overbought) and -80 (oversold), making it easier to identify extreme conditions.
Intensity Visualization:
The intensity is calculated based on the absolute distance between Williams %R and its EMA.
The closer the value is to extreme levels, the more pronounced the visual intensity, capping at 90% transparency.
Overbought conditions are highlighted in red; oversold conditions in teal.
Crossover Signals:
Bullish Cross: When Williams %R crosses above its EMA in the oversold zone.
Bearish Cross: When Williams %R crosses below its EMA in the overbought zone.
The background color changes (lime for bullish, red for bearish) to highlight these critical moments when enabled via the "Show Cross & Predicted Cross Signal" option.
Future Cross Prediction:
Uses the smoothed slope of %R to estimate future values over a customizable number of steps.
Predicts potential bullish or bearish crosses based on the interaction between the predicted Williams %R and EMA.
Light green and light red background colors indicate predicted bullish and bearish crosses, respectively.
How to Use
Trend Detection: Use the Williams %R and its EMA to identify ongoing trends and confirm their strength.
Overbought/Oversold Analysis: Pay attention to crosses in extreme zones (-20 and -80) for potential reversals.
Intensity-Based Filtering: The intensity visualization helps to focus on the most significant conditions, reducing noise.
Cross Prediction: Enable "Show Cross & Predicted Cross Signal" to anticipate future turning points and plan trades proactively.
Example Applications
Scalping: Monitor rapid crossovers in lower timeframes for quick entries and exits.
Swing Trading: Use the overbought/oversold zones and cross predictions to identify longer-term reversal opportunities.
Risk Management: The intensity visualization can be used to filter out weak signals, ensuring higher-quality trade setups.
Chart Information
For clarity and compliance with publishing standards:
The chart should display the full symbol, timeframe, and the script name ("Williams %R Intensity").
Ensure the indicator is visible and properly configured for the chart.
Xmaster Formula Indicator [TradingFinder] No Repaint Strategies🔵 Introduction
The Xmaster Formula Indicator is a powerful tool for forex trading, combining multiple technical indicators to provide insights into market trends, support and resistance levels, and price reversals. Developed in the early 2010s, it is widely valued for generating reliable buy and sell signals.
Key components include Exponential Moving Averages (EMA) for identifying trends and price momentum, and MACD (Moving Average Convergence Divergence) for analyzing trend strength and direction.
The Stochastic Oscillator and RSI (Relative Strength Index) enhance accuracy by signaling potential price reversals. Additionally, the Parabolic SAR assists in identifying trend reversals and managing risk.
By integrating these tools, the Xmaster Formula Indicator provides a comprehensive view of market conditions, empowering traders to make informed decisions.
🔵 How to Use
The Xmaster Formula Indicator offers two distinct methods for generating signals: Standard Mode and Advance Mode. Each method caters to different trading styles and strategies.
Standard Mode :
In Standard Mode, the indicator uses normalized moving average data to generate buy and sell signals. The difference between the short-term (10-period) and long-term (38-period) EMAs is calculated and normalized to a 0-100 scale.
Buy Signal : When the normalized value crosses above 55, accompanied by the trend line turning green, a buy signal is generated.
Sell Signal : When the normalized value crosses below 45, and the trend line turns red, a sell signal is issued.
This mode is simple, making it ideal for traders looking for straightforward signals without the need for additional confirmations.
Advance Mode :
Advance Mode combines multiple technical indicators to provide more detailed and robust signals.
This method analyzes trends by incorporating :
🟣 MACD
Buy Signal : When the MACD histogram bars are positive.
Sell Signal : When the MACD histogram bars are negative.
🟣 RSI
Buy Signal : When RSI is below 30, indicating oversold conditions.
Sell Signal : When RSI is above 70, suggesting overbought conditions.
🟣 Stochastic Oscillator
Buy Signal : When Stochastic is below 20.
Sell Signal : When Stochastic is above 80.
🟣 Parabolic SAR
Buy Signal : When SAR is below the price.
Sell Signal : When SAR is above the price.
A signal is generated in Advance Mode only when all these indicators align :
Buy Signal : All conditions point to a bullish trend.
Sell Signal : All conditions indicate a bearish trend.
This mode is more comprehensive and suitable for traders who prefer deeper analysis and stronger confirmations before executing trades.
🔵 Settings
Method :
Choose between "Standard" and "Advance" modes to determine how signals are generated. In Standard Mode, signals are based on normalized moving average data, while in Advance Mode, signals rely on the combination of MACD, RSI, Stochastic Oscillator, and Parabolic SAR.
Moving Average Settings :
Short Length : The period for the short-term EMA (default is 10).
Mid Length : The period for the medium-term EMA (default is 20).
Long Length : The period for the long-term EMA (default is 38).
MACD Settings :
Fast Length : The period for the fast EMA in the MACD calculation (default is 12).
Slow Length : The period for the slow EMA in the MACD calculation (default is 26).
Signal Line : The signal line period for MACD (default is 9).
Stochastic Settings :
Length : The period for the Stochastic Oscillator (default is 14).
RSI Settings :
Length : The period for the Relative Strength Index (default is 14).
🔵 Conclusion
The Xmaster Formula Indicator is a versatile and reliable tool for forex traders, offering both simplicity and advanced analysis through its Standard and Advance modes. In Standard Mode, traders benefit from straightforward signals based on normalized moving average data, making it ideal for quick decision-making.
Advance Mode, on the other hand, provides a more detailed analysis by combining multiple indicators like MACD, RSI, Stochastic Oscillator, and Parabolic SAR, delivering stronger confirmations for critical market decisions.
While the Xmaster Formula Indicator offers valuable insights and reliable signals, it is important to use it alongside proper risk management and other analytical methods. By leveraging its capabilities effectively, traders can enhance their trading strategies and achieve better outcomes in the dynamic forex market.
RSI Team Synergy | JeffreyTimmermansRSI Team Synergy
The "RSI Team Synergy" indicator is an advanced and highly customizable tool that integrates a Double RSI (DRSI) approach for comprehensive trend and momentum analysis. It utilizes two layers of RSI calculations, along with optional smoothing and various moving average types, to enhance signal accuracy. The dynamic visuals and alerts make this indicator a valuable resource for traders aiming to optimize their strategies.
Key Features
Double RSI (DRSI) Calculation
First RSI (Primary Layer): Captures the core price momentum using a configurable period.
Second RSI (DRSI Layer): Applies a second RSI calculation to the smoothed first RSI, refining signals and amplifying trend accuracy.
Double RSI Formula: Combines the smoothed RSI layers into a single robust indicator that adapts to market conditions.
Smoothing and Advanced Moving Averages
Optional Smoothing: Enables users to reduce noise by applying smoothing to both RSI layers.
Advanced MA Options: Supports multiple MA types, including SMA, EMA, WMA, RMA, DEMA, TEMA, VWMA, ZLEMA, and HMA. These can be applied to tailor the indicator to specific trading conditions.
Separate Configurations: Independent smoothing lengths and types for each RSI layer provide unparalleled customization.
Threshold and Signal System
Long Threshold: Highlights bullish conditions when the Double RSI exceeds the threshold.
Short Threshold: Signals bearish conditions when the Double RSI falls below the threshold.
Directional State: Tracks the overall direction using a state-based signal system (bullish, bearish, or neutral).
Dynamic Visualization
Oscillator Color Coding: Green shades for bullish momentum. Red shades for bearish momentum. Dynamic gradients for smoother transitions.
Glow Effect: Optional glowing lines enhance the visual clarity of the oscillator.
Threshold Lines: Configurable dashed horizontal lines to mark critical levels for easy reference.
Bar Color Integration
Bar Coloring: Matches bar colors to the oscillator's direction for cohesive visualization.
Advanced Control: Toggle bar coloring on/off without affecting other plots.
Alerts
Bullish Signal Alert: Triggers when the Double RSI crosses above the long threshold.
Bearish Signal Alert: Triggers when the Double RSI crosses below the short threshold.
Custom Messages: Alerts are equipped with descriptive messages for actionable insights.
Signal Arrows
Bullish Arrow (↑): Marks upward trends directly on the chart.
Bearish Arrow (↓): Highlights downward trends, ensuring traders never miss an opportunity.
Improvements
Customizable Thresholds: Adjustable long and short thresholds allow traders to fine-tune sensitivity.
Enhanced Smoothing Control: Separate smoothing options for each RSI layer provide flexibility in noise reduction.
Multiple MA Types: Extensive support for advanced moving averages to suit diverse trading preferences.
Color-Coded Oscillator: Improves trend visibility with gradient-based coloring and optional glow effects.
Signal Detection: Clear and intuitive arrows directly on the chart for quick signal interpretation.
Alerts and Notifications: Comprehensive alert conditions keep traders informed in real-time.
Use Cases
Momentum Analysis: Identify sustained bullish or bearish trends using the Double RSI calculation.
Noise Reduction: Utilize smoothing and advanced MA options to remove market noise.
Reversal Detection: Spot potential trend reversals with threshold-based signals.
Customizable Strategies: Tailor the indicator for scalping, swing trading, or long-term analysis.
The RSI Team Synergy indicator combines precision, flexibility, and intuitive design, making it an essential tool for traders at all levels. With its innovative Double RSI approach and advanced customization options, it provides actionable insights for mastering market trends.
This script is inspired by "Clokivez" . However, it is more advanced and includes additional features and options.
-Jeffrey
Volume Weighted Moving Average (TechnoBlooms)The Volume Weighted Moving Average Oscillator (VWMO) is a custom technical indicator designed to measure market momentum while accounting for volume. It helps traders assess whether price movements are supported by strong or weak trading volumes. The VWMO provides insights into potential trends by comparing current momentum with historical averages.
Indicator Overview:
The VWMO is based on a combination of price and volume data, highlighting the relationship between these two components to generate a clear oscillation value. The oscillator displays dynamic insights into market strength, capturing price directionality and volume alignment.
Key Features:
1. Dynamic Visualization of Momentum:
o The oscillator displays positive and negative momentum by analyzing the relationship between price movements and trading volume over a specified period.
o Positive momentum typically represents a bullish market, while negative momentum reflects bearish conditions.
2. Volume-Weighted Analysis:
o Volume is incorporated to give an adjusted price perspective, where price movements on high-volume days have more influence on the resulting oscillator values.
3. Trend Confirmation via EMA:
o An Exponential Moving Average (EMA) of the oscillator is plotted to smooth the raw oscillator values and provide trend confirmation.
o The EMA is essential for identifying whether the oscillator is in an upward or downward trend. It also serves as a support for evaluating when momentum might reverse.
4. Visual Indicators and Color Coding:
o The indicator uses varying color intensities to differentiate between strong and weak momentum.
o Bullish and bearish momentum is visually reflected by colors, offering at-a-glance guidance on potential trade opportunities.
5. Overbought and Oversold Thresholds:
o Horizontal lines at predefined levels (e.g., +100 and -100) help to define overbought and oversold areas, which assist in identifying overextended price movements that may signal reversals.
6. Scalability & Adaptability:
o The indicator allows for adjustment of the period, EMA length, and other key parameters to tailor its usage according to different asset classes or timeframe preferences.
Big Candle Identifier with RSI Divergence and Advanced Stops1. Strategy Objective
The main goal of this strategy is to:
Identify significant price momentum (big candles).
Enter trades at opportune moments based on market signals (candlestick patterns and RSI divergence).
Limit initial risk through a fixed stop loss.
Maximize profits by using a trailing stop that activates only after the trade moves a specified distance in the profitable direction.
2. Components of the Strategy
A. Big Candle Identification
The strategy identifies big candles as indicators of strong momentum.
A big candle is defined as:
The body (absolute difference between close and open) of the current candle (body0) is larger than the bodies of the last five candles.
The candle is:
Bullish Big Candle: If close > open.
Bearish Big Candle: If open > close.
Purpose: Big candles signal potential continuation or reversal of trends, serving as the primary entry trigger.
B. RSI Divergence
Relative Strength Index (RSI): A momentum oscillator used to detect overbought/oversold conditions and divergence.
Fast RSI: A 5-period RSI, which is more sensitive to short-term price movements.
Slow RSI: A 14-period RSI, which smoothens fluctuations over a longer timeframe.
Divergence: The difference between the fast and slow RSIs.
Positive divergence (divergence > 0): Bullish momentum.
Negative divergence (divergence < 0): Bearish momentum.
Visualization: The divergence is plotted on the chart, helping traders confirm momentum shifts.
C. Stop Loss
Initial Stop Loss:
When entering a trade, an immediate stop loss of 200 points is applied.
This stop loss ensures the maximum risk is capped at a predefined level.
Implementation:
Long Trades: Stop loss is set below the entry price at low - 200 points.
Short Trades: Stop loss is set above the entry price at high + 200 points.
Purpose:
Prevents significant losses if the price moves against the trade immediately after entry.
D. Trailing Stop
The trailing stop is a dynamic risk management tool that adjusts with price movements to lock in profits. Here’s how it works:
Activation Condition:
The trailing stop only starts trailing when the trade moves 200 ticks (profit) in the right direction:
Long Position: close - entry_price >= 200 ticks.
Short Position: entry_price - close >= 200 ticks.
Trailing Logic:
Once activated, the trailing stop:
For Long Positions: Trails behind the price by 150 ticks (trail_stop = close - 150 ticks).
For Short Positions: Trails above the price by 150 ticks (trail_stop = close + 150 ticks).
Exit Condition:
The trade exits automatically if the price touches the trailing stop level.
Purpose:
Ensures profits are locked in as the trade progresses while still allowing room for price fluctuations.
E. Trade Entry Logic
Long Entry:
Triggered when a bullish big candle is identified.
Stop loss is set at low - 200 points.
Short Entry:
Triggered when a bearish big candle is identified.
Stop loss is set at high + 200 points.
F. Trade Exit Logic
Trailing Stop: Automatically exits the trade if the price touches the trailing stop level.
Fixed Stop Loss: Exits the trade if the price hits the predefined stop loss level.
G. 21 EMA
The strategy includes a 21-period Exponential Moving Average (EMA), which acts as a trend filter.
EMA helps visualize the overall market direction:
Price above EMA: Indicates an uptrend.
Price below EMA: Indicates a downtrend.
H. Visualization
Big Candle Identification:
The open and close prices of big candles are plotted for easy reference.
Trailing Stop:
Plotted on the chart to visualize its progression during the trade.
Green Line: Indicates the trailing stop for long positions.
Red Line: Indicates the trailing stop for short positions.
RSI Divergence:
Positive divergence is shown in green.
Negative divergence is shown in red.
3. Key Parameters
trail_start_ticks: The number of ticks required before the trailing stop activates (default: 200 ticks).
trail_distance_ticks: The distance between the trailing stop and price once the trailing stop starts (default: 150 ticks).
initial_stop_loss_points: The fixed stop loss in points applied at entry (default: 200 points).
tick_size: Automatically calculates the minimum tick size for the trading instrument.
4. Workflow of the Strategy
Step 1: Entry Signal
The strategy identifies a big candle (bullish or bearish).
If conditions are met, a trade is entered with a fixed stop loss.
Step 2: Initial Risk Management
The trade starts with an initial stop loss of 200 points.
Step 3: Trailing Stop Activation
If the trade moves 200 ticks in the profitable direction:
The trailing stop is activated and follows the price at a distance of 150 ticks.
Step 4: Exit the Trade
The trade is exited if:
The price hits the trailing stop.
The price hits the initial stop loss.
5. Advantages of the Strategy
Risk Management:
The fixed stop loss ensures that losses are capped.
The trailing stop locks in profits after the trade becomes profitable.
Momentum-Based Entries:
The strategy uses big candles as entry triggers, which often indicate strong price momentum.
Divergence Confirmation:
RSI divergence helps validate momentum and avoid false signals.
Dynamic Profit Protection:
The trailing stop adjusts dynamically, allowing the trade to capture larger moves while protecting gains.
6. Ideal Market Conditions
This strategy performs best in:
Trending Markets:
Big candles and momentum signals are more effective in capturing directional moves.
High Volatility:
Larger price swings improve the probability of reaching the trailing stop activation level (200 ticks).
[MAD] Self-Optimizing RSIOverview
This script evaluates multiple RSI lengths within a specified range, calculates performance metrics for each, and identifies the top 3 configurations based on a custom scoring system. It then plots the three best RSI curves and optionally displays a summary table and label.
How It Works
The script calculates a custom RSI for each length in the range.
It simulates entering a long position when RSI crosses below the Buy Value and exits when RSI crosses above the Sell Value.
Each trade's return is stored in the relevant StatsContainer.
Metrics Computation
After all bars have been processed,
* Net Profit,
* Sharpe Ratio, and
* Win Rate
are computed for each RSI length.
A weighted score is then derived using the input weights.
Top 3 Identification
The script finds the three RSI lengths with the highest scores.
The RSI lines for these top 3 lengths are plotted in different colors.
If enabled, a table listing the top 3 results (Rank, RSI length, Sharpe, NetPnL, Win Rate) is shown.
If enabled, a label with the highest-scoring RSI length and its score is placed on the final bar.
Usage Tips
Adjust Min RSI Length and Max RSI Length to explore a narrower or wider range of periods.
Be aware, to high settings will slow down the calculation.
Experiment with different RSI Buy Value and RSI Sell Value settings if you prefer more or fewer trade signals.
Confirm that Min Trades Required aligns with the desired confidence level for the computed metrics.
Modify Weight: Sharpe, Weight: NetProfit, and Weight: WinRate to reflect which metrics are most important.
Troubleshooting
If metrics remain - or NaN, confirm enough trades (Min Trades Required) have occurred.
If no top 3 lines appear, it could mean no valid trades were taken in the specified range, or the script lacks sufficient bars to calculate RSI for some lengths. In this case set better buyvalue and sellvalues in the inputs
Disclaimer
Past performance is not indicative of future results specialy as this indicator can repaint based on max candles in memory which are limited by your subscription
Dynamic RSI Table (Periods & Timeframe)Introduction
Relative Strength Index (RSI) is one of the most widely used indicators in technical analysis, offering traders insights into market momentum and potential overbought or oversold conditions. While RSI is commonly applied as a single line on a chart, analyzing multiple RSI periods simultaneously can provide deeper insights. In this article, we'll explore how to create and use dynamic RSI tables in TradingView, allowing traders to monitor multiple timeframes and periods in one organized view.
---
What Is RSI?
RSI is an oscillator that measures the speed and change of price movements over a specific period, providing values between 0 and 100. The standard interpretation includes:
Overbought Zone (>70): Indicates that the asset might be overvalued and due for a correction or reversal.
Oversold Zone (<30): Suggests that the asset could be undervalued and may rebound upward.
However, relying on a single RSI period or timeframe might not capture the full picture. This is where RSI tables come into play.
---
Why Use RSI Tables?
Using an RSI table in TradingView enables traders to:
1. Track Multiple Periods: Monitor RSI values for short, medium, and long-term periods simultaneously.
2. Analyze Different Timeframes: Evaluate RSI data across multiple timeframes (e.g., 1-hour, 4-hour, daily).
3. Simplify Decision-Making: Visualize overbought and oversold conditions in a clean, color-coded table.
4. Receive Alerts: Automate notifications for extreme conditions across all selected periods.