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.
Relative Strength Index (RSI)
Fibonacci Retracement Dynamic with RSI TickerCe script de retracement de Fibonacci dynamique trace les niveaux de Fibonacci en temps réel sur le graphique, en se basant sur les derniers hauts et bas du marché. Il met à jour ces niveaux au fur et à mesure de l'évolution des prix. Les niveaux de Fibonacci calculés incluent : 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, et 100%, chacun étant configurable avec des couleurs personnalisées.
Le script permet également de suivre la valeur du RSI en temps réel. Le label RSI est affiché en haut à droite du graphique, mettant à jour la valeur du RSI à chaque barre.
Caractéristiques principales :
Calcul des niveaux de Fibonacci sur les derniers hauts et bas détectés.
Affichage dynamique des niveaux de Fibonacci en temps réel, avec des couleurs personnalisables.
Mise à jour du RSI à chaque barre avec un label RSI positionné à droite du graphique.
Ce script est idéal pour les traders qui utilisent les retracements de Fibonacci pour repérer les zones de support et de résistance clés, tout en surveillant en temps réel la force du marché via le RSI.
This dynamic Fibonacci retracement script plots Fibonacci levels in real-time on the chart, based on the latest market highs and lows. It updates these levels as the price evolves. The calculated Fibonacci levels include: 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, and 100%, each configurable with custom colors.
The script also allows you to track the real-time RSI value. The RSI label is displayed at the top right of the chart, updating the RSI value at each bar.
Key Features:
Fibonacci levels calculated based on the latest detected highs and lows.
Dynamic display of Fibonacci levels in real-time with customizable colors.
RSI updated at each bar with an RSI label positioned at the right side of the chart.
This script is ideal for traders using Fibonacci retracements to identify key support and resistance areas while simultaneously monitoring market strength in real-time with the RSI.
RSI Integral by Hawkeye ChartingThe Hawkeye Charting Integral RSI is a highly intuitive and easy-to-understand indicator that shows you when the price is overbought or oversold.
It also includes optional Buy and Sell labels that you can toggle on or off.
If you have any questions, feel free to leave an Commentary.
Wishing you successful trading!
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.
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.
!!! - Advanced Multi MA`s (v.1) [PowerEn]1) 6 EMA + 6 SMA + 6 WMA (same length) or 2 + 2 + 2 (various length, option "One to 1")
2) Labels for all MA's
3) Different settings (on/off, source, color, width)
4) Three color/width presets
5) Standart Bollindger Bands (SMA, x2, with length #1)
6) RSI panel (with current value)
7) Crosses MA's
To quickly change the MA's lengths, you can use presets in the code:
ma1 = 20, ma2 = 50, ma3 = 100, ma4 = 200, ma5 = 300, ma6 = 500
//--presets MA`s
// ma1 = 10, ma2 = 20, ma3 = 30, ma4 = 40, ma5 = 50, ma6 = 60
// ma1 = 100, ma2 = 200, ma3 = 300, ma4 = 400, ma5 = 500, ma6 = 600
// ma1 = 200, ma2 = 500, ma3 = 1000, ma4 = 1500, ma5 = 2000, ma6 = 3000
The second version of this indicator will be released soon with a modified Inputs window and Multi Timeframe. Follow the news)
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.
RSI Overbought and Oversold Levels - Mikel VaqueroThis Pine Script strategy is designed to trade using RSI (Relative Strength Index) overbought and oversold levels. Below is an overview of its functionality:
1. RSI Configuration
RSI Length: Calculates RSI with a customizable length (default is 14).
Key Levels: Includes overbought (70), oversold (30), and an optional middle level (50).
RSI Source: Uses the closing price by default, but it's adjustable.
2. Risk and Reward Parameters
Defines Stop Loss, Take Profit, and Partial Profit levels in pips, converted to the chart's price scale.
3. Trading Window
Operates only within a specific time window in GMT+2 (default: 8:00 to 11:00).
4. RSI Calculation and Conditions
Computes RSI based on price changes.
Detects two conditions:
Overbought: RSI crosses above level 70.
Oversold: RSI crosses below level 30.
5. Visual Representation
Plots RSI and key levels on the chart.
Displays labels when RSI reaches overbought ("B") or oversold ("S") conditions.
6. Alerts
Triggers automatic alerts when RSI crosses overbought or oversold levels.
7. Entry and Exit Management
Entry Conditions:
Long: When RSI is oversold.
Short: When RSI is overbought.
Exit Conditions:
Partial Take Profit: Closes 50% of the position at a predefined price level.
Full Take Profit: Closes the entire position upon reaching the full profit target.
Stop Loss: Closes the position if the price reverses by a defined amount.
Dynamic Breakeven: Moves the Stop Loss to the entry price after reaching the partial profit level.
8. State Management
Prevents duplicate entries in the same direction during an open position.
Strategy Summary
This strategy is ideal for trading within a specific time range using RSI signals. It dynamically manages positions with partial profits and breakeven adjustments, balancing simplicity and customization.
Feel free to adjust parameters such as RSI length, time windows, and pip values to suit your trading style.
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!
AK Stochastic-RSI+RSI+CHOP Here I have added Stochastic- RSI + RSI + Choppiness Index all together. You can turn on/ off as per your choice. all these are popular and useful indicators. Hope this will add some value.
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.
EMA + RSI Strategy with Labels for SL and TPThis strategy combines Exponential Moving Averages (EMAs), Relative Strength Index (RSI), and Average True Range (ATR) to create an efficient trading system designed for the 1-hour timeframe. It includes dynamic stop-loss and optional take-profit levels for risk management.
Key Components
1. Indicators Used
Exponential Moving Averages (EMAs):
Short EMA (default 9-period): Tracks recent price trends.
Long EMA (default 21-period): Tracks longer-term trends.
Condition: A bullish trend is identified when the Short EMA is above the Long EMA, and a bearish trend is identified when the Short EMA is below the Long EMA.
Relative Strength Index (RSI):
Measures momentum and identifies overbought/oversold conditions.
Default Settings:
Overbought Level: 70
Oversold Level: 30
Condition:
Long trades are triggered when the RSI crosses above the oversold level (30).
Short trades are triggered when the RSI crosses below the overbought level (70).
Average True Range (ATR):
Measures market volatility.
Used to dynamically calculate stop-loss and take-profit levels.
Entry Rules
Long Entry:
RSI crosses above the oversold level (30).
Short EMA is above the Long EMA (bullish trend).
A buy signal is plotted on the chart.
Short Entry:
RSI crosses below the overbought level (70).
Short EMA is below the Long EMA (bearish trend).
A sell signal is plotted on the chart.
Exit Rules
Dynamic Stop Loss:
Calculated as 1.5x ATR from the entry price.
Adjusts based on market volatility to prevent premature exits.
Optional Take Profit:
Calculated as 2x ATR from the entry price (configurable).
Can be enabled or disabled in the settings.
Automatic Exit:
If the price hits the stop-loss or take-profit levels, the position is exited.
Features
Dynamic Risk Management:
ATR-based stop-loss ensures that risk adapts to market volatility.
Reduces losses during highly volatile periods.
Take-Profit Flexibility:
Take profit can be toggled on or off.
The default multiplier is 2x ATR, which provides a balance between risk and reward.
Signal Visualizations:
Clear buy/sell signals are plotted on the chart using labels.
Stop-loss and take-profit levels are displayed as dynamic lines.
Labels for SL (Stop Loss) and TP (Take Profit) appear at entry to provide quick reference points.
Trend and Momentum Filtering:
EMAs ensure trades align with the prevailing trend.
RSI ensures entries occur during momentum shifts.
Strengths of This Strategy
Trend-Following: Ensures trades are made in the direction of the prevailing market trend.
Momentum-Based Entries: RSI adds precision to the entry points, capturing reversals in momentum.
Volatility Protection: ATR-based stop-loss prevents exiting trades too early during volatile market conditions.
Scalability: Works effectively on the 1-hour timeframe but can be tested on other timeframes with appropriate adjustments.
Best Use Cases
Intraday Trading: Ideal for 1-hour timeframe trading with minimal monitoring.
Volatile Markets: Adapts well to markets with varying volatility, thanks to ATR-based calculations.
Forex, Stocks, or Cryptos: Versatile strategy that can be applied across different asset classes.
Customization Options
Adjust EMA lengths for faster or slower trend detection.
Change RSI levels to suit different asset classes or trading styles.
Fine-tune ATR multipliers to balance stop-loss and take-profit distances.
SJ Candle with Conditions and RSI below 20- Daily ChartEnter on breakout candle. met condition candle is where we enter
Purpose:
The script highlights candles on a daily chart that meet specific price and RSI-based conditions.
Conditions Checked:
2 days ago, the close was less than the open.
1 day ago, the close was greater than the open.
The daily close is greater than the high from 2 days ago.
The daily close is greater than the high from 1 day ago.
The daily close is greater than the daily open.
RSI Filters:
Any of the following RSI conditions must also be met:
RSI 2 days ago is less than 20.
RSI 1 day ago is less than 20.
RSI today is less than 20.
Result:
When all 5 price conditions and any of the RSI filters are met, the script:
Plots a green upward arrow below the candle.
Draws a green vertical line at the candle.
Optionally, plot a green downward triangle below the candle.
This helps visually identify key trading signals based on a daily chart's price movement and RSI llevels
Bottom Detection MonitorBottom Detection Monitor
抄底监测器
利用了RSI值低于30的时候,跟30的差值,进行累积和计算,期间如果有RSI值超过了30,则自动累计和值清零,重新计算。一直到达设置的阈值标准,则会清零重置。
阈值的默认设置标准为100。
这个最早是从一分钟交易里总结出来的,小级别周期特别适合。
因为如果是连续的一段强势下跌过程,如果是大时间周期级别,这个阈值可能需要设置很高,就会有一个问题,指标的图表部分就有可能失真过大。而每个产品的波动特点和幅度可能会有差异,所以我把这个阈值留给了用户自己设置。
同样的原理,我也还制作了一个CCI的类似原理检测。
平时,这条曲线会成一条水平贴近零轴的直线,直到下跌波动跌破RSI30开始,当突然增加的曲线从波峰跌回零轴,就是抄底的时机。当然由于阈值的问题,可能会连续出现多个波峰,这个在使用中需要注意,可以通过增大阈值来改变这种现象。
我是我开源的开始。
我尊重有趣的想法,和重新定义的表达。
感谢Tradingview社区,给了我这个机会。
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
3_EMA50 with FB M&W by tamer nabilThis indicator combines a 50-period Exponential Moving Average (EMA) with dynamic Fibonacci retracements for both weekly and monthly timeframes. It is designed to provide traders with an insightful visual tool for market analysis. Below is a detailed breakdown of its features:
Key Features:
Dynamic EMA50 with Color Coding:
Plots the 50-period EMA on the chart.
The EMA line changes color based on the price's position relative to it:
Green: Price is above the EMA.
Red: Price is below the EMA.
Blue: Price is equal to the EMA.
Fibonacci Levels:
Calculates and displays Fibonacci retracement levels for both weekly and monthly timeframes.
Levels include 0%, 12.5%, 25%, 37.5%, 50%, 62.5%, 75%, 87.5%, and 100%.
Custom color-coding highlights critical levels:
50%: Blue.
0%: Red.
100%: Green.
Other levels: Gray.
Timeframe Status Monitoring:
Monitors the EMA50 status across multiple timeframes:
30-minute.
45-minute.
1-hour.
Displays the status as "Above," "Below," or "Cross" relative to the EMA50 for each timeframe.
Labels dynamically adjust based on the last bar.
Customizable Display:
Users can toggle the visibility of weekly and monthly Fibonacci levels.
Fibonacci levels dynamically adjust to historical weekly and monthly high/low values for greater relevance.
Enhanced Visualization:
Labels and lines are plotted with precise positioning for better clarity.
Fibonacci levels are extended across the chart for a comprehensive view of key retracement areas.
Use Cases:
Trend Analysis: Use the color-coded EMA50 to quickly identify market trends and potential reversal points.
Support and Resistance Identification: Leverage the weekly and monthly Fibonacci levels to find significant areas for price reaction.
Multi-Timeframe Confirmation: The indicator’s status labels help traders align their strategy across multiple timeframes.
This indicator provides a comprehensive tool for traders who seek to combine moving averages with Fibonacci retracements for enhanced technical analysis.
ASLANMAX METEASLANMAX METE
📊 OVERVIEW:
This advanced TradingView indicator is a professional trading tool powered by an AI-powered signal generation algorithm.
🔍 KEY FEATURES:
Multi-Indicator Integration
Fisher Transform
Momentum
RSI
CCI
Stochastic Oscillator
Ultimate Oscillator
Dynamic Signal Generation
Risk tolerance adjustable
Volatility-based thresholds
Confidence score calculation
Special Signal Types
Buy/Sell Signals
"Meto" Up Crossing Signal
"Zico" Down Crossing Signal
🧠 AI-LIKE TECHNIQUES:
Integrated signal line
Dynamic threshold mechanism
Multi-indicator correlation
💡 USAGE ADVANTAGES:
Flexible parameter settings
Low and high risk modes
Real-time signal generation
Adaptation to different market conditions
⚙️ ADJUSTABLE PARAMETERS:
Basic Period
EMA Period
Risk Tolerance
Volatility Thresholds
🔔 SIGNAL TYPES:
Buy Signal (Green)
Sell Signal (Red)
Meto Signal (Yellow Triangle Up)
Zico Signal (Purple Triangle Down)
🌈 VISUALIZATION:
Integrated Line (Red)
EMA Line (Blue)
Background Color Changes
Signal Shapes
⚠️ RECOMMENDATIONS:
Be sure to test in your own market
Do not neglect risk management
Use multiple approval mechanisms
🔬 TECHNICAL INFRASTRUCTURE:
Pine Script v6
Advanced mathematical algorithms
Dynamic calculation techniques
🚦 PERFORMANCE TIPS:
Test in different time frames
Find optimal parameters
Apply risk management rules
💼 AREAS OF USE:
Cryptocurrency
Stocks Stock
Forex
Commodities
🌟 SPECIAL RECOMMENDATION:
This indicator is for informational purposes only. Support your investment decisions with professional advisors and your own research.
REVERSÃO POR ZONA DE RSI- INICIA CRYPTO //@version=5
indicator('REVERSÃO POR ZONA DE RSI- INICIA CRYPTO ', overlay=false)
//functions
xrf(values, length) =>
r_val = float(na)
if length >= 1
for i = 0 to length by 1
if na(r_val) or not na(values )
r_val := values
r_val
r_val
xsa(src, len, wei) =>
sumf = 0.0
ma = 0.0
out = 0.0
sumf := nz(sumf ) - nz(src ) + src
ma := na(src ) ? na : sumf / len
out := na(out ) ? ma : (src * wei + out * (len - wei)) / len
out
// inputs
n1 = input.int(30, title='n1', minval=1)
//threshold lines
h1 = hline(50, color=color.red, linestyle=hline.style_dotted)
h2 = hline(50, color=color.green, linestyle=hline.style_dotted)
h3 = hline(10, color=color.lime, linestyle=hline.style_dotted)
h4 = hline(90, color=color.red, linestyle=hline.style_dotted)
fill(h2, h3, color=color.new(color.green, 70))
fill(h1, h4, color=color.new(color.red, 70))
//KDJ indicator
rsv = (close - ta.lowest(low, n1)) / (ta.highest(high, n1) - ta.lowest(low, n1)) * 100
k = xsa(rsv, 3, 1)
d = xsa(k, 3, 1)
crossover_1 = ta.crossover(k, d)
buysig = d < 25 and crossover_1 ? 30 : 0
crossunder_1 = ta.crossunder(d, k)
selsig = d > 75 and crossunder_1 ? 70 : 100
//plot buy and sell signal
ple = plot(buysig, color=color.new(color.green, 0), linewidth=1, style=plot.style_area)
pse = plot(selsig, color=color.new(color.red, 0), linewidth=2, style=plot.style_line)
//plot KD candles
plotcandle(k, d, k, d, color=k >= d ? color.green : na)
plotcandle(k, d, k, d, color=d > k ? color.red : na)
// KDJ leading line
var1 = (close - ta.sma(close, 13)) / ta.sma(close, 13) * 100
var2 = (close - ta.sma(close, 26)) / ta.sma(close, 21) * 100
var3 = (close - ta.sma(close, 90)) / ta.sma(close, 34) * 100
var4 = (var1 + 3 * var2 + 9 * var3) / 13
var5 = 100 - math.abs(var4)
var10 = ta.lowest(low, 10)
var13 = ta.highest(high, 25)
leadingline = ta.ema((close - var10) / (var13 - var10) * 4, 4) * 25
pbias = plot(leadingline, color=k >= d ? color.green : color.red, linewidth=4, style=plot.style_line, transp=10)
Multiframe - EMAs + RSI LevelsThis indicator was created to make life easier for all traders, including the main market indicators, such as EMAs 12, 26 and 200 + respective EMAs in higher time frames, and complemented with RSI Levels that vary from overbought 70 - 90 and oversold 30 - 10.
The Indicator can be configured to make the chart cleaner according to your wishes.