Oscillateurs
US30-5min-Low RiskRisk 0.5% per position
SL @ 50 MA
T SL @ 1/2 way to TP
Uses KST and RSI for long/short signal
RSI Required for Bullish => 55
RSI Required for Bearish =< 45
21/50 MA verifying trend
Adjustable settings used in 90 day BT
Margin for long 52%
Margin for short 41%
Pyramiding 3
Would love some feedback and to convert to EA for use with MatchTrade?
Serum Oscillator [ST]Serum Oscillator is an advanced technical indicator. This indicator combines several techniques and algorithms to provide traders with a robust tool for analyzing and predicting market movements. The indicator is not just an oscillator, but also includes functionalities for detecting divergences, mining flow, custom alerts, and more. Below is a detailed description of its features, components, and functionalities.
Characteristics
1. Oscillator and Signal: the indicator has a moving line that acts as a signal to determine the state of the market, whether bullish or bearish. In addition, this moving line can be switched between different types for greater accuracy, allowing it to better suit the trader's style.
2. Modes: the indicator has three modes to adapt to the market. Fast, Normal and Slow. The user can choose the mode that best suits his strategy. Fast mode generates very early signals, perfect for getting ahead of the market; however, it can also generate a greater number of false crosses. Slow mode generates fewer signals, perfect for filtering range zones.
3. Overbought and Oversold Levels: the indicator generates signals between values 0 and 100, for this reason it can be speculated that values 70 and 30 are overbought and oversold levels respectively; however, these levels can vary according to the modes. For this reason we designed the dynamic bands.
4. Multi Timeframe: Can observe data from a different time frame than the current chart. You will be able to observe the state of the oscillator and the direction.
5. Trend Catcher: tool to detect the market trend according to the indicator. Ideal for filtering false crossovers and trading in favor of the trend.
6. Smart Flow: Money flow optimized with AI to detect the overall money flow. Ideal for detecting trends. Additionally, you will be able to visualize the convergences between smart flow and the oscillator to operate in favor of the price trend. You can also activate thresholds, to detect when there is really a large monetary flow.
7. Divergences: Real-time detection of divergences to identify possible reversal zones. The user can adjust the sensitivity.
8. Alerts: Programmable alerts to automate the detection of various price conditions according to the indicator.
> This indicator is a comprehensive technical tool that provides traders with multiple capabilities to analyze market trends and reversals. Its combination of different types of smoothing and adaptive functions, along with the detection of divergences, trend lines, and custom alerts, makes it a powerful and versatile indicator for trading decision-making. The customization of its parameters and the depth of its calculations offer users a significant advantage in interpreting market data, facilitating more precise understanding and timely action in their trading operations.
Multi-Timeframe Stochastic Table**Description:**
The **Multi-Timeframe Stochastic Table** indicator is a powerful tool designed to provide traders with a comprehensive view of the Stochastic Oscillator across multiple timeframes in a single, easy-to-read table. This indicator is particularly useful for traders who rely on multi-timeframe analysis to make informed trading decisions.
### Key Features:
- **Customizable Timeframes:** The indicator allows you to select up to six different timeframes to monitor simultaneously. You can enable or disable each timeframe according to your trading strategy.
- **Stochastic Oscillator Calculation:** The Stochastic Oscillator is calculated for each selected timeframe, providing both the %K value and its direction (up or down). This helps you quickly identify overbought or oversold conditions across different timeframes.
- **Dynamic Table Display:** The table dynamically updates to show the Stochastic values and their directions for each timeframe. The table's position on the chart can be customized to suit your preference (Top Right, Top Left, Bottom Right, or Bottom Left).
- **Color-Coded Rows:** Each row in the table is color-coded, making it easy to distinguish between different timeframes at a glance. The direction of the Stochastic (%K) is also color-coded (green for upward and red for downward), providing a quick visual cue.
- **Flexible Inputs:** The indicator offers customizable inputs for the Stochastic length, %K smoothing, and %D smoothing, allowing you to tailor the indicator to your specific trading style.
### How to Use:
1. **Select Timeframes:** Choose the timeframes you want to monitor by enabling or disabling them in the inputs. You can select from a range of timeframes, including 1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, and 4 hours.
2. **Customize Stochastic Settings:** Adjust the Stochastic length, %K smoothing, and %D smoothing to fit your trading strategy.
3. **Position the Table:** Select the desired position for the table on your chart (Top Right, Top Left, Bottom Right, or Bottom Left).
4. **Analyze the Data:** The table will display the Stochastic values and their directions for each selected timeframe. Use this information to identify potential trading opportunities based on multi-timeframe analysis.
### Benefits:
- **Enhanced Market Insight:** By monitoring the Stochastic Oscillator across multiple timeframes, you can gain a deeper understanding of market trends and potential reversals.
- **Improved Decision-Making:** The clear, color-coded table allows you to quickly assess market conditions, helping you make more informed trading decisions.
- **Customizable and Flexible:** The indicator is highly customizable, allowing you to tailor it to your specific trading needs and preferences.
### Ideal For:
- **Swing Traders:** Who need to analyze multiple timeframes to identify potential entry and exit points.
- **Day Traders:** Who require quick, at-a-glance information on market conditions across different timeframes.
- **Technical Analysts:** Who rely on the Stochastic Oscillator as part of their trading strategy.
The **Multi-Timeframe Stochastic Table** is an essential tool for any trader looking to enhance their technical analysis with multi-timeframe insights. Whether you're a beginner or an experienced trader, this indicator can help you stay ahead of the market trends.
RSI (Basis at 0)This script is a modified version of the default RSI, adjusted to oscillate around 0 instead of 50, with a range spanning from -100 to 100. This transformation ensures better alignment with other indicators that use a zero-centered scale, making it ideal for comparative analysis and overlaying on complementary indicators.
Triple Timeframe Stochastic Oscillator (Averaged)This custom Triple Timeframe Stochastic Oscillator indicator combines stochastic calculations from three user-defined timeframes into a single view, averaging the %K and %D lines for each timeframe to produce one representative line per timeframe. Users can manually set the timeframes (e.g., daily, weekly, monthly), as well as the length and smoothing periods for each stochastic calculation, providing flexibility for multi-timeframe analysis. The indicator plots three distinct lines in red, blue, and green, with overbought (80) and oversold (20) levels marked, helping traders identify momentum and potential reversal points across different time perspectives.
Timeframe 1: Red
Timeframe 2: Blue
Timeframe 3: Green
Quantum Momentum FusionPurpose of the Indicator
"Quantum Momentum Fusion" aims to combine the strengths of RSI (Relative Strength Index) and Williams %R to create a hybrid momentum indicator tailored for volatile markets like crypto:
RSI: Measures the strength of price changes, great for understanding trend stability but can sometimes lag.
Williams %R: Assesses the position of the price relative to the highest and lowest levels over a period, offering faster responses but sensitive to noise.
Combination: By blending these two indicators with a weighted average (default 50%-50%), we achieve both speed and reliability.
Additionally, we use the indicator’s own SMA (Simple Moving Average) crossovers to filter out noise and generate more meaningful signals. The goal is to craft a simple yet effective tool, especially for short-term trading like scalping.
How Signals Are Generated
The indicator produces signals as follows:
Calculations:
RSI: Standard 14-period RSI based on closing prices.
Williams %R: Calculated over 14 periods using the highest high and lowest low, then normalized to a 0-100 scale.
Quantum Fusion: A weighted average of RSI and Williams %R (e.g., 50% RSI + 50% Williams %R).
Fusion SMA: 5-period Simple Moving Average of Quantum Fusion.
Signal Conditions:
Overbought Signal (Red Background):
Quantum Fusion crosses below Fusion SMA (indicating weakening momentum).
And Quantum Fusion is above 70 (in the overbought zone).
This is a sell signal.
Oversold Signal (Green Background):
Quantum Fusion crosses above Fusion SMA (indicating strengthening momentum).
And Quantum Fusion is below 30 (in the oversold zone).
This is a buy signal.
Filtering:
The background only changes color during crossovers, reducing “fake” signals.
The 70 and 30 thresholds ensure signals trigger only in extreme conditions.
On the chart:
Purple line: Quantum Fusion.
Yellow line: Fusion SMA.
Red background: Sell signal (overbought confirmation).
Green background: Buy signal (oversold confirmation).
Overall Assessment
This indicator can be a fast-reacting tool for scalping. However:
Volatility Warning: Sudden crypto pumps/dumps can disrupt signals.
Confirmation: Pair it with price action (candlestick patterns) or another indicator (e.g., volume) for validation.
Timeframe: Works best on 1-5 minute charts.
Suggested Settings for Long Timeframes
Here’s a practical configuration for, say, a 4-hour chart:
RSI Period: 20
Williams %R Period: 20
RSI Weight: 60%
Williams %R Weight: 40% (automatically calculated as 100 - RSI Weight)
SMA Period: 15
Overbought Level: 75
Oversold Level: 25
Red & Green Zone ReversalOverview
The “Red & Green Zone Reversal” indicator is designed to visually highlight potential reversal zones on your chart by using a combination of Bollinger Bands and the Relative Strength Index (RSI).
It overlays on the chart and provides background color cues—red for oversold conditions and green for overbought conditions—along with corresponding alert triggers.
Key Components
Overlay: The indicator is set to overlay the chart, meaning its visual cues (colored backgrounds) are drawn directly on the price chart.
Bollinger Bands Calculation
Period: A 20-period simple moving average (SMA) is calculated from the closing prices.
Standard Deviation Multiplier: A multiplier of 2.0 is applied.
Bands Defined:
Basis: The 20-period SMA.
Deviation: Calculated as 2 times the standard deviation over the same period.
Upper Band: Basis plus the deviation.
Lower Band: Basis minus the deviation.
RSI Calculation
Period: The RSI is computed over a 14-period span using the closing prices.
Thresholds:
Oversold Threshold: 30 (used for the red zone condition).
Overbought Threshold: 70 (used for the green zone condition).
Zone Conditions
Red Zone (Oversold):
Criteria: The price is below the lower Bollinger Band and the RSI is below 30.
Purpose: Highlights a situation where the asset may be deeply oversold, signaling a potential reversal to the upside.
Green Zone (Overbought):
Criteria: The price is above the upper Bollinger Band and the RSI is above 70.
Purpose: Indicates that the asset may be overbought, potentially signaling a reversal to the downside.
Visual and Alert Components
Background Coloring:
Red Background: Applied when the red zone condition is met (using a semi-transparent red).
Green Background: Applied when the green zone condition is met (using a semi-transparent green).
Alerts:
Red Alert: An alert condition titled “Deep Oversold Alert” is triggered with the message “Deep Oversold Signal triggered!” when the red zone criteria are satisfied.
Green Alert: Similarly, an alert condition titled “Deep Overbought Alert” is triggered with the message “Deep Overbought Signal triggered!” when the green zone criteria are met.
Important Disclaimers
Not Financial Advice:
This indicator is provided for informational and analytical purposes only. It does not constitute trading advice or a recommendation to buy or sell any asset. Traders should use it as one of several tools in their analysis and should perform their own due diligence.
Risk Management:
Trading inherently involves risk. Past performance is not indicative of future results. Always implement appropriate risk management and use stop losses where necessary.
Summary
In summary, the “Red & Green Zone Reversal” indicator uses Bollinger Bands and RSI to detect extreme market conditions. It visually marks oversold (red) and overbought (green) conditions directly on the chart and offers alert conditions to help traders monitor these potential reversal points.
Enjoy!!
AFB_TrendMarketDMSThis script is an implementation of the **Directional Movement System (DMS)**, which includes the **Positive Directional Indicator (+DI)**, **Negative Directional Indicator (-DI)**, and **Average Directional Index (ADX)**. Additionally, the script provides visualizations and logic to identify trends and key levels. Below is a detailed explanation of how to use this script:
---
### 1. **Function `dirmov(jarak)`**:
This function calculates the **+DI (Plus Directional Indicator)** and **-DI (Minus Directional Indicator)**.
- **Input**:
- `jarak`: The period used for calculation (in this script, `14`).
- **Process**:
- `naik = ta.change(high)`: Calculates the change in the high price (upward movement).
- `turun = -ta.change(low)`: Calculates the change in the low price (downward movement).
- `truerange = ta.rma(ta.tr, jarak)`: Calculates the **True Range (TR)** smoothed using RMA (Rolling Moving Average).
- `plus`: Calculates +DI by comparing upward (`naik`) and downward (`turun`) movements.
- `minus`: Calculates -DI by comparing downward (`turun`) and upward (`naik`) movements.
- **Output**:
- Returns the values of `plus` (+DI) and `minus` (-DI).
---
### 2. **Function `adx(dilen, adxlen)`**:
This function calculates the **ADX (Average Directional Index)**, **+DI**, and **-DI**.
- **Input**:
- `dilen`: The period for calculating +DI and -DI.
- `adxlen`: The period for calculating ADX.
- **Process**:
- Calls the `dirmov(dilen)` function to get the values of `plus` (+DI) and `minus` (-DI).
- Calculates ADX by comparing the difference between +DI and -DI, then smoothing it with RMA.
- **Output**:
- Returns the values of `adx`, `plus` (+DI), and `minus` (-DI).
---
### 3. **Variables and Plots**:
- ` = adx(14, 14)`:
- `sig`: The ADX value.
- `up`: The +DI value.
- `down`: The -DI value.
- `RatioNT = up - down`:
- Calculates the difference between +DI and -DI. This value represents the relative strength between the upward and downward trends.
- `Garis_ratioNT = ta.sma(RatioNT, 14)`:
- Calculates the Simple Moving Average (SMA) of `RatioNT` with a period of 14. This is used as a key level to identify trend changes.
- **Plots**:
- `L1 = plot(RatioNT, 'Trend', ...)`:
- Plots the `RatioNT` value as a trend line. The line color changes based on whether `RatioNT` is above or below `Garis_ratioNT`.
- Green (`#00d36880`) if `RatioNT > Garis_ratioNT` (strong uptrend).
- Red (`#fe585880`) if `RatioNT < Garis_ratioNT` (strong downtrend).
- `L3 = plot(Garis_ratioNT, 'KeyLevel', ...)`:
- Plots `Garis_ratioNT` as a key level (blue line, `#1848cc`).
- **Horizontal Lines (HLine)**:
- `hline(0.8, 'Top', ...)`: A horizontal line at the `0.8` level (pink color, `#fe585850`).
- `hline(0, 'Mid', ...)`: A horizontal line at the `0` level (black color, `#00000050`).
- `hline(-0.8, 'Bottom', ...)`: A horizontal line at the `-0.8` level (green color, `#00d36850`).
---
### 4. **How to Use This Script**:
This script can be used to:
1. **Identify Trends**:
- If `RatioNT` is above `Garis_ratioNT` and colored green, it indicates a strong uptrend.
- If `RatioNT` is below `Garis_ratioNT` and colored red, it indicates a strong downtrend.
2. **Identify Key Levels**:
- `Garis_ratioNT` (blue line) is a key level that can be used as a reference to confirm trend changes.
3. **Use Horizontal Lines**:
- The horizontal lines at `0.8`, `0`, and `-0.8` can be used as overbought/oversold levels or trend confirmation levels.
4. **Trading Signals**:
- **Buy Signal**: When `RatioNT` crosses above `Garis_ratioNT` and turns green.
- **Sell Signal**: When `RatioNT` crosses below `Garis_ratioNT` and turns red.
---
### 5. **Visual Interpretation**:
- **Uptrend**:
- `RatioNT` is green and above `Garis_ratioNT`.
- `RatioNT` approaches or exceeds the `0.8` level (pink line).
- **Downtrend**:
- `RatioNT` is red and below `Garis_ratioNT`.
- `RatioNT` approaches or exceeds the `-0.8` level (green line).
- **Sideways/Consolidation**:
- `RatioNT` fluctuates around the `0` level (black line).
---
### 6. **Example Trading Signals**:
- **Buy Signal Example**:
- `RatioNT` crosses above `Garis_ratioNT` and turns green.
- `RatioNT` approaches the `0.8` level (confirms strong uptrend).
- **Sell Signal Example**:
- `RatioNT` crosses below `Garis_ratioNT` and turns red.
- `RatioNT` approaches the `-0.8` level (confirms strong downtrend).
---
### 7. **Conclusion**:
This script is a useful tool for:
- Identifying the strength and direction of trends.
- Providing trading signals based on the movement of `RatioNT` and `Garis_ratioNT`.
- Offering key levels for trend confirmation.
If you'd like to add more features or need further clarification, let me know! 😊
Multi-Asset & TF RSI
Multi-Asset & TF RSI
This indicator allows you to compare the Relative Strength Index (RSI) values of two different assets across multiple timeframes in a single pane. It’s ideal for traders who wish to monitor momentum across different markets or instruments simultaneously.
Key Features:
Primary Asset RSI:
The indicator automatically calculates the RSI for the chart’s asset. You can adjust the timeframe for this asset using a dropdown that offers standard TradingView timeframes, a "Chart" option (which syncs with your current chart timeframe), or a "Custom" option where you can enter any timeframe.
Optional Second Asset RSI:
Enable the “Display Second Asset” option to compare another asset’s RSI. Simply select the symbol (default is “DXY”) and choose its timeframe from an identical dropdown. When enabled, the second asset’s RSI is computed and plotted for easy comparison.
RSI Settings:
Customize the RSI length and choose the data source (e.g., close price) to suit your trading strategy.
Visual Aids:
Overbought (70) and oversold (30) levels are clearly marked, along with a midline at 50. These visual cues help you quickly assess market conditions.
Asset Information Table:
A dynamic table at the top of the pane displays the symbols being analysed – the chart’s asset as the “1st” asset and, if enabled, the second asset as the “2nd.”
How to Use:
Apply the Indicator:
Add the indicator to your chart. By default, it will calculate the RSI for the chart’s current asset using your chart’s timeframe.
Adjust Primary Asset Settings:
Use the “Main Asset Timeframe” dropdown to choose the timeframe for the RSI calculation on the chart asset. Select “Chart” to automatically match your current chart’s timeframe or choose a preset/custom timeframe.
Enable and Configure the Second Asset:
Toggle the “Display Second Asset” option to enable the second asset’s RSI. Select the asset symbol and its desired timeframe using the provided dropdown. The RSI for the second asset will be plotted if enabled.
Monitor the RSI Values:
Observe the plotted RSI lines along with the overbought/oversold levels. Use the table at the top-centre of the pane to verify which asset symbols are being displayed.
This versatile tool is designed to support multi-asset analysis and can be a valuable addition to your technical analysis toolkit. Enjoy enhanced RSI comparison across markets and timeframes!
Happy Trading!
Multi Asset & TF Stochastic
Multi Asset & TF Stochastic
This indicator allows you to compare the stochastic oscillator values of two different assets across multiple timeframes in a single pane. It’s designed for traders who want to analyse the momentum of one asset (by default, the chart’s asset) alongside a second asset of your choice (e.g., comparing EURUSD to the USD Index).
How It Works:
Main Asset:
The indicator automatically uses the chart’s asset for the primary stochastic calculation. You have the option to adjust the timeframe for this asset using a dropdown that includes TradingView’s standard timeframes, a "Chart" option (which automatically uses your chart’s timeframe), or a "Custom" option where you can type in any timeframe.
Second Asset:
You can enable the display of a second asset by toggling the “Display Second Asset” option. Choose the asset symbol (default is “DXY”) and select its timeframe from an identical dropdown. When enabled, the script calculates the stochastic oscillator for the second asset, allowing you to compare its momentum (%K and %D lines) with that of the main asset.
Stochastic Oscillator Settings:
Customize the %K length, the smoothing period for %K, and the smoothing period for %D. Both assets’ stochastic values are calculated using these parameters.
Visual Display:
The indicator plots the %K and %D lines for the main asset in prominent colours. If the second asset is enabled, its %K and %D lines are also plotted in different colours. Additionally, overbought (80) and oversold (20) levels are marked, with a midline at 50, making it easier to gauge market conditions at a glance.
%D line can be toggled off for a cleaner view if required:
Asset Information Table:
A table at the top-centre of the pane displays the active asset symbols—ensuring you always know which assets are being analysed.
How to Use:
Apply the Indicator:
Add the script to your chart. By default, it will use the chart’s current asset and timeframe for the primary stochastic oscillator.
Adjust the Main Asset Settings:
Use the “Main Asset Timeframe” dropdown to select a specific timeframe for the main asset or stick with the “Chart” option for automatic syncing with your current chart.
Enable and Configure the Second Asset (Optional):
Toggle on “Display Second Asset” if you wish to compare another asset. Select the desired symbol and adjust its timeframe using the provided dropdown. Choose “Custom” if you need a timeframe not listed by default.
Review the Plots and Table:
Observe the stochastic %K and %D lines for each asset. The overbought/oversold levels help indicate potential market turning points. Check the table at the top-centre to confirm the asset symbols being displayed.
This versatile tool is ideal for traders who rely on momentum analysis and need to quickly compare the stochastic signals of different markets or instruments. Enjoy seamless multi-asset analysis with complete control over your timeframe settings!
BBWP + Stochastic with DivergencesBased on Eric Krown crypto course, on Crypto School. It plots the Bollinger Bands width percentile alongside Stochastic. This is good for gaging volatility and momentum, to be used on a trending motion strategy.
MACD+RSI Indicator Moving Average Convergence/Divergence or MACD is a momentum indicator that shows the relationship between two Exponential Moving Averages (EMAs) of a stock price. Convergence happens when two moving averages move toward one another, while divergence occurs when the moving averages move away from each other. This indicator also helps traders to know whether the stock is being extensively bought or sold. Its ability to identify and assess short-term price movements makes this indicator quite useful.
The Moving Average Convergence/Divergence indicator was invented by Gerald Appel in 1979.
Moving Average Convergence/Divergence is calculated using a 12-day EMA and 26-day EMA. It is important to note that both the EMAs are based on closing prices. The convergence and divergence (CD) values have to be calculated first. The CD value is calculated by subtracting the 26-day EMA from the 12-day EMA.
---------------------------------------------------------------------------------------------------------------------
The relative strength index (RSI) is a momentum indicator used in technical analysis. RSI measures the speed and magnitude of a security's recent price changes to detect overbought or oversold conditions in the price of that security.
The RSI is displayed as an oscillator (a line graph) on a scale of zero to 100. The indicator was developed by J. Welles Wilder Jr. and introduced in his seminal 1978 book, New Concepts in Technical Trading Systems.
In addition to identifying overbought and oversold securities, the RSI can also indicate securities that may be primed for a trend reversal or a corrective pullback in price. It can signal when to buy and sell. Traditionally, an RSI reading of 70 or above indicates an overbought condition. A reading of 30 or below indicates an oversold condition.
---------------------------------------------------------------------------------------------------------------------
By combining them, you can create a MACD/RSI strategy. You can go ahead and search for MACD/RSI strategy on any social platform. It is so powerful that it is the most used indicator in TradingView. It is best for trending market. Our indicator literally let you customize MACD/RSI settings. Explore our indicator by applying to your chart and start trading now!
RSI Classic calculationClassic RSI with Moving Average
This script implements the Classic RSI (Relative Strength Index) method with the option to use either an Exponential Moving Average (EMA) or a Simple Moving Average (SMA) for smoothing the gains and losses. This custom implementation primarily aims to resolve a specific issue I encountered when cross-referencing RSI values with Python-based data, which is calculated differently than in Pine Script. However, the methodology here can benefit anyone who needs to align RSI calculations across different programming languages or platforms.
The Problem:
When working with Python for data analysis, the RSI values are calculated differently. The smoothing method, for example, can vary—RMA (Relative Moving Average) may be used instead of SMA or EMA, resulting in discrepancies when comparing RSI values across systems. To solve this problem, this script allows for the same type of smoothing to be applied (EMA or SMA) as used in Python, ensuring consistency in the data.
Why This Implementation:
The main goal of this approach was to align RSI calculations across Python and Pine Script so that I could cross-check the results accurately. By offering both EMA and SMA options, this script bridges the gap between Pine Script and Python, ensuring that the data is comparable and consistent. While this particular issue arose from my work with Python, this solution is valuable for anyone dealing with cross-platform RSI comparisons in different coding languages or systems.
Benefits:
Cross-Platform Consistency: This script ensures that RSI values calculated in Pine Script are directly comparable to those from Python (or any other platform), which is crucial for accurate analysis, especially in automated trading systems.
Flexibility: The ability to choose between EMA and SMA provides flexibility in line with the specific needs of your strategy or data source.
Ease of Use: The RSI is plotted with overbought and oversold levels clearly marked, making it easy to visualize and use in decision-making processes.
Limitations:
Calculation Differences: While this script bridges the gap between Pine Script and Python, if you're working with a different platform or coding language that uses variations like RMA, small discrepancies may still arise.
Sensitivity Trade-Off: The choice between EMA and SMA impacts the sensitivity of the RSI. EMA responds quicker to recent price changes, which could lead to faster signals, while SMA provides a more stable but slower response.
Conclusion:
This Classic RSI script, with its customizable moving average type (EMA or SMA), not only solves the issue I faced with Python-based calculations but also provides a solution for anyone needing consistency across different programming languages and platforms. Whether you're working with Pine Script, Python, or other languages, this script ensures that your RSI values are aligned for more accurate cross-platform analysis. However, always be mindful of the small differences that can arise when different smoothing techniques (like RMA) are used in other systems.
BUY Signal with Williams %R, CMA, and ResetИндикатор предназначен для поиска сигналов на покупку ("BUY") и набора позиции на основе следующих условий:
Пересечение индикатора Williams %R уровня -80 снизу вверх.
Текущая цена закрытия находится ниже значения Cumulative Moving Average (CMA).
Текущая цена должна быть ниже цены предыдущей метки "BUY" (условие последовательного снижения).
Если цена закрытия становится выше CMA, значение последней метки "BUY" сбрасывается.
На каждой метке "BUY" отображается значение цены.
--------------------------------------------------------------------------------------------------------------------
The indicator is designed to search for buy signals ("BUY") and set a position based on the following conditions:
The Williams %R indicator crosses the -80 level from bottom to top.
The current closing price is below the Cumulative Moving Average (EMA) value.
The current price must be lower than the price of the previous "BUY" label (the condition for a sequential decrease).
If the closing price becomes higher than the CMA, the value of the last "BUY" label is reset.
The price value is displayed on each "BUY" label.
RSI DivergenceMade the rsi divergence appear on the candle.
Look at the indicators and enter long and short after the signal comes out
Make it easier to see by showing up in overlay.
Combined Stochastic, ADX & BreakoutOverview
This technical indicator combines three powerful technical analysis tools - Stochastic Oscillator, Average Directional Index (ADX), and Breakout detection - to identify potential trading opportunities on daily charts. The indicator is designed to identify strong trend movements with momentum confirmation.
TO BE USED ON DAILY CHART ONLY
made by @immortaltraderA
on twitter
Technical Components
1. Stochastic Settings (Fast Stochastic)
Period K: 8 periods
Smooth K: 1 period
Period D: 1 period
This creates a very responsive stochastic that reacts quickly to price changes
2. ADX Settings
ADX Length: 14 periods
DI Length: 14 periods
Key Level: 30 (threshold for trend strength)
3. Breakout Detection
Identifies price breakouts by comparing current high with previous highs
Breakout condition: Current high > Previous high AND Previous high < High two bars ago
Signal Conditions
High Signal (Short Setup)
Triggers when ALL conditions are met:
Stochastic: K < 41
ADX: > 30 (strong trend)
DI+: Greater than DI- (upward pressure)
Low Signal (Long Setup)
Triggers when ALL conditions are met:
Stochastic: K > 60
ADX: > 30 (strong trend)
DI-: Greater than DI+ (downward pressure)
Breakout Confirmation
Identified by yellow triangle (▲) below the bar
Condition: high > high and high < high
Visual Components
Signal Markers
High Signals
Blue triangle down above the bar
Marks potential short entries
Low Signals
Light blue triangle up below the bar
Marks potential long entries
Breakout Signals
Yellow triangle (▲) below the bar
Black text on yellow background
Size: Tiny
Alert Conditions
High Alert
Title: "Stochastic and ADX Conditions Met - High"
Message: "High of last bar marked - Stochastic < 41, ADX > 25, DI+ > DI-"
Low Alert
Title: "Stochastic and ADX Conditions Met - Low"
Message: "Low of last bar marked - Stochastic > 60, ADX > 30, DI- > DI+"
QTS Unviversal RSI QTS Universal RSI
- Using many option of MA for RSI Calculation
- Powerfull Smoothing methods
- RSI Divergence study
- Colorful Presentation
Dynamic RSIBelow is a step‐by‐step breakdown of how the script works, what each section does, and some commentary on its effectiveness and time frame adaptability.
1. Indicator Setup
pinescript
Copy
Edit
//version=5
indicator("Dynamic RSI", overlay=false)
What it does:
Specifies that the script uses Pine Script version 5.
Declares an indicator named “Dynamic RSI.”
overlay=false means it will appear in a separate panel (like a typical oscillator) rather than on the price chart.
2. Time Frame Determination
pinescript
Copy
Edit
// Check for long-term resolutions (daily, weekly, or monthly)
isLongTerm = (timeframe.isdaily or timeframe.isweekly or timeframe.ismonthly)
// Check for short-term (intraday) resolutions using the resolution string
isShortTerm = (timeframe.period == "15" or timeframe.period == "60" or timeframe.period == "240")
What it does:
isLongTerm: Checks if the current chart is using a daily, weekly, or monthly time frame.
isShortTerm: Checks if the chart’s period is exactly 15, 60, or 240 minutes.
Why it matters:
The script will adjust its parameters based on the chart’s time frame—making the RSI more sensitive on intraday charts and less reactive on longer-term charts.
3. Dynamic RSI Calculation
pinescript
Copy
Edit
// Adjust RSI Length Dynamically with explicit parentheses
rsiLength = isLongTerm ? 14 : (isShortTerm ? 7 : 10)
rsiValue = ta.rsi(close, rsiLength)
signalLineRSI = ta.sma(rsiValue, 9)
What it does:
RSI Period (rsiLength):
Uses 14 periods for long-term charts.
Uses 7 periods for short-term charts.
Uses 10 periods as a default for other time frames.
RSI Value (rsiValue): Calculates the RSI on the close prices using the chosen length.
Signal Line (signalLineRSI): Computes a 9-period simple moving average of the RSI. This can help smooth out the RSI’s fluctuations.
Why it matters:
Adjusting the RSI period helps adapt the indicator’s sensitivity:
Short-term (7-period): More reactive, capturing quick moves.
Long-term (14-period): Smoother, reducing noise.
Default (10-period): A middle ground for other resolutions.
4. Dynamic Overbought/Oversold Levels
pinescript
Copy
Edit
// Dynamic RSI Levels Based on Time Frame with parentheses for clarity
rsiOverbought = isLongTerm ? 75 : (isShortTerm ? 70 : 72)
rsiOversold = isLongTerm ? 25 : (isShortTerm ? 30 : 28)
What it does:
Sets overbought and oversold thresholds differently depending on the time frame:
Long-Term: Overbought at 75 and oversold at 25.
Short-Term: Overbought at 70 and oversold at 30.
Default: Overbought at 72 and oversold at 28.
Why it matters:
These dynamic levels can help adjust the sensitivity of the RSI signals to match the expected market behavior on different time frames.
5. Defining Consolidation and Continuation Levels
pinescript
Copy
Edit
// Consolidation Ranges
rsiBearishConsolidationLow = isLongTerm ? 40 : (isShortTerm ? 38 : 39)
rsiBearishConsolidationHigh = isLongTerm ? 50 : (isShortTerm ? 48 : 49)
rsiBullishConsolidationLow = isLongTerm ? 50 : (isShortTerm ? 52 : 51)
rsiBullishConsolidationHigh = isLongTerm ? 60 : (isShortTerm ? 58 : 59)
// Bullish and Bearish Continuation Levels
rsiBullishContinuation = isLongTerm ? 55 : (isShortTerm ? 57 : 56)
rsiBearishContinuation = isLongTerm ? 45 : (isShortTerm ? 43 : 44)
What it does:
Consolidation Levels:
Defines ranges where the RSI might be consolidating (moving sideways).
There are separate ranges for potential bearish (40–50 on long-term) and bullish (50–60 on long-term) consolidation.
Continuation Levels:
Provides additional reference levels to identify the potential continuation of bullish or bearish trends.
Why it matters:
These extra levels can give traders more context about the RSI’s position beyond just overbought/oversold. They help in identifying areas of potential support/resistance in RSI space.
6. Plotting the RSI and Reference Lines
pinescript
Copy
Edit
// Plot RSI and associated levels using continuous lines
plot(rsiValue, title="RSI", color=color.blue, linewidth=2)
plot(signalLineRSI, title="RSI Signal Line", color=color.orange, linewidth=2)
plot(rsiOverbought, title="Overbought", color=color.red, linewidth=1, style=plot.style_line)
plot(rsiOversold, title="Oversold", color=color.green, linewidth=1, style=plot.style_line)
plot(rsiBearishConsolidationLow, title="Bearish Consolidation Low", color=color.gray, linewidth=1, style=plot.style_line)
plot(rsiBearishConsolidationHigh, title="Bearish Consolidation High", color=color.gray, linewidth=1, style=plot.style_line)
plot(rsiBullishConsolidationLow, title="Bullish Consolidation Low", color=color.gray, linewidth=1, style=plot.style_line)
plot(rsiBullishConsolidationHigh, title="Bullish Consolidation High", color=color.gray, linewidth=1, style=plot.style_line)
What it does:
Plots the calculated RSI (blue) and its signal line (orange) with a thicker line for better visibility.
Draws horizontal lines for each of the key levels:
Overbought (red) and oversold (green).
Consolidation ranges (gray).
Why it matters:
Visual reference lines allow traders to quickly see when the RSI crosses important thresholds, aiding in decision-making.
7. Background Color Alerts
pinescript
Copy
Edit
bgcolor(rsiValue > rsiOverbought ? color.new(color.red, 90) : na)
bgcolor(rsiValue < rsiOversold ? color.new(color.green, 90) : na)
What it does:
Changes the background color of the RSI panel:
Red Background: When the RSI is above the overbought level (suggesting a potential sell or reversal zone).
Green Background: When the RSI is below the oversold level (suggesting a potential buy or reversal zone).
The color is made semi-transparent (90 out of 255 opacity) so it’s noticeable but not overwhelming.
Why it matters:
These visual cues help the trader quickly identify when the RSI is in an extreme zone, without having to inspect the numerical values closely.
8. Effectiveness and Time Frame Compatibility
Effectiveness:
Dynamic Adaptation: By adjusting both the period and the threshold levels based on the time frame, the indicator tailors its sensitivity to the market context.
Short-Term (Intraday): Uses a shorter period (RSI period 7) which is more sensitive to price changes.
Long-Term: Uses a longer period (RSI period 14) for a smoother signal.
Multiple Reference Levels: In addition to the classic overbought/oversold levels, the script includes consolidation and continuation levels. These can provide deeper insight into the momentum and potential reversals or continuations.
Visual Cues: The background color changes add an extra layer of immediate visual feedback.
Time Frame Compatibility:
Works on All Time Frames:
The script checks for specific conditions (daily, weekly, monthly, and specific intraday periods).
For time frames that don’t match these specific conditions, it defaults to a middle setting (RSI period 10, thresholds at 72/28, etc.).
Adaptive Nature: This makes it flexible for various types of traders—from day traders to swing traders to long-term investors—ensuring that the RSI indicator is tuned to the volatility and noise level typical of the chosen resolution.
Summary
Functionality:
Calculates an RSI whose parameters (length and threshold levels) dynamically adjust based on whether the chart is a long-term, short-term, or other time frame.
Provides additional plotted levels (consolidation and continuation) to help identify market conditions.
Uses background color changes as visual alerts when RSI reaches extreme conditions.
Effectiveness:
The dynamic adjustments can make the RSI more responsive to the particular market environment of different time frames.
Its effectiveness ultimately depends on the trading strategy and market conditions, but it offers a more tailored approach than a static RSI.
Time Frame Use:
Yes, it works in all time frames. Specific settings are applied for defined resolutions (daily, weekly, monthly, and 15, 60, 240 minutes). Other time frames use default parameters, making it broadly adaptable.
This detailed breakdown should help you understand how the script operates step by step, its intended functionality, and its adaptability across different time frames.
MACD + RSI Strategy Manish//@version=5
indicator("MACD + RSI Strategy", overlay=true)
// Input parameters
rsiLength = input.int(14, title="RSI Length")
rsiOverbought = input.int(70, title="RSI Overbought Level")
rsiOversold = input.int(30, title="RSI Oversold Level")
macdFastLength = input.int(12, title="MACD Fast Length")
macdSlowLength = input.int(26, title="MACD Slow Length")
macdSignalSmoothing = input.int(9, title="MACD Signal Smoothing")
// RSI Calculation
rsi = ta.rsi(close, rsiLength)
// MACD Calculation
= ta.macd(close, macdFastLength, macdSlowLength, macdSignalSmoothing)
// Buy Condition: RSI is oversold and MACD line crosses above Signal line
buyCondition = (rsi < rsiOversold) and (ta.crossover(macdLine, signalLine))
// Sell Condition: RSI is overbought and MACD line crosses below Signal line
sellCondition = (rsi > rsiOverbought) and (ta.crossunder(macdLine, signalLine))
// Plotting Buy and Sell signals on the chart
plotshape(series=buyCondition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY", size=size.small)
plotshape(series=sellCondition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL", size=size.small)
// Plot MACD and Signal Line (optional, for visualization)
hline(0, "Zero Line", color=color.gray)
plot(macdLine, color=color.blue, title="MACD Line")
plot(signalLine, color=color.orange, title="Signal Line")
// Alerts for Buy and Sell signals
alertcondition(buyCondition, title="Buy Alert", message="BUY signal generated")
alertcondition(sellCondition, title="Sell Alert", message="SELL signal generated")
RSI/Stochastic With Real Time Candle OverlayThis indicator provides an alternative way to visualize either RSI or Stochastic values by representing them as candle bars in real time, allowing a more detailed view of momentum shifts within each bar. By default, it displays the standard historical plot of the chosen oscillator in the background, but once you are receiving real-time data (or if you keep your chart open through the close), it begins overlaying candles that track the oscillator’s intrabar movements. These candles only exist for as long as the chart remains open; if you refresh or load the chart anew, there is no stored candle history, although the standard RSI or Stochastic line is still fully retained. These candles offer insight into short-term fluctuations that are otherwise hidden when viewing a single line for RSI or Stochastic.
In the settings, there is an option to switch between standard candlesticks and Heiken Ashi. When Heiken Ashi is selected, the indicator uses the Heiken Ashi close once it updates in real time, producing a smoothed view of intrabar price movement for the oscillator. This can help identify trends in RSI or Stochastic by making it easier to spot subtle changes in direction, though some may prefer the unmodified values that come from using regular candles. The combination of these candle styles with an oscillator’s output offers flexibility for different analytical preferences.
Traders who use RSI or Stochastic often focus on entry and exit signals derived from crossing certain thresholds, but they are usually limited to a single reading per bar. With this tool, it becomes possible to watch how the oscillator’s value evolves within the bar itself, which can be especially useful for shorter timeframes or for those who prefer a more granular look at momentum shifts. The visual separation between bullish and bearish candle bodies within the indicator can highlight sudden reversals or confirm ongoing trends in the oscillator, aiding in more precise decision-making. Because the candle overlay is cleared as soon as the bar closes, the chart remains uncluttered when scrolling through historical data, ensuring that only the necessary real-time candle information is displayed.
Overall, this indicator is intended for users who wish to track intrabar changes in RSI or Stochastic, with the added choice of standard or Heiken Ashi candle representation. The real-time candle overlay clarifies short-lived fluctuations, while the standard line plots maintain the usual clarity of past data. This approach can be beneficial for those who want deeper insights into how oscillator values develop in real time, without permanently altering the simplicity of the chart’s historical view.
Money Flow Indicator (Chaikin Oscillator) with VWAPStrategy Overview
Entry Conditions:
Buy Entry:
The Chaikin Oscillator crosses above the signal line.
The current price is above the VWAP.
Sell Entry:
The Chaikin Oscillator crosses below the signal line.
The current price is below the VWAP.
Exit Conditions:
Profit Taking:
Take profit when a target profit is reached (e.g., a 2% increase from the entry price).
Stop Loss:
Set a stop loss, for example, at a 1% decline from the entry price.
Risk Management:
Manage risk by limiting each trade to no more than 1-2% of the account balance.
Calculate position size based on risk and trade accordingly.
Trend Confirmation:
Use other indicators (like moving averages) to confirm the overall trend and focus trades in the direction of the trend.
In an uptrend, prioritize buy entries; in a downtrend, prioritize sell entries.
Specific Trade Scenarios
Example 1: Buy Entry:
Enter a buy position when the Chaikin Oscillator crosses above the signal line and the price is above the VWAP.
Set a stop loss 1% below the entry price and a profit target 2% above the entry price.
Example 2: Sell Entry:
Enter a sell position when the Chaikin Oscillator crosses below the signal line and the price is below the VWAP.
Set a stop loss 1% above the entry price and a profit target 2% below the entry price.
Additional Considerations
Backtesting: Test this strategy with historical data to evaluate performance and make adjustments as needed.
Market Conditions: Pay attention to market volatility and economic indicators, adjusting the trading strategy flexibly.
Psychological Factors: Avoid emotional decisions and follow clear rules when trading.