Macd and RSI % Change Signals Devis'SoLong Signal Strategy
RSI-Based Long Signals:
A long signal is triggered when the percentage change in RSI of the close price crosses over thresholds like 10 or 20.
Similarly, a long signal is triggered when the percentage change in RSI of the low price crosses over 20.
MACD-Based Long Signals:
A long signal is triggered when the MACD, its signal line, or the midpoint of the two crosses over thresholds such as 2, 3, 4, or 5.
When a long signal is triggered, the low of the corresponding candle is recorded as the "pullback level." This pullback level is displayed on the chart to help identify potential areas of support.
Short Signal Strategy
RSI-Based Short Signals:
A short signal is triggered when the percentage change in RSI of the low price crosses under -20.
Similarly, a short signal is triggered when the percentage change in RSI of the close price crosses under thresholds like -10 or -20.
MACD-Based Short Signals:
A short signal is triggered when the MACD, its signal line, or the midpoint of the two crosses under thresholds such as -2, -3, -4, or -5.
When a short signal is triggered, the high of the corresponding candle is recorded as the "pullback level." This pullback level is displayed on the chart to help identify potential areas of resistance.
Visualization
Signals:
Long signals are plotted as green upward triangles below the price bars.
Short signals are plotted as red downward triangles above the price bars.
Pullback Levels:
Long pullback levels are plotted as a green line below the price.
Short pullback levels are plotted as a red line above the price.
Alerts
Alerts are defined for specific signals, allowing traders to receive notifications when important levels are crossed, such as:
Long signal based on RSI or MACD changes.
Short signal based on RSI or MACD changes.
Скользящие средние
[blackcat] L3 Counter Peacock Spread█ OVERVIEW
The script titled " L3 Counter Peacock Spread" is an indicator designed for use in TradingView. It calculates and plots various moving averages, K lines derived from these moving averages, additional simple moving averages (SMAs), weighted moving averages (WMAs), and other technical indicators like slope calculations. The primary function of the script is to provide a comprehensive set of visual tools that traders can use to identify trends, potential support/resistance levels, and crossover signals.
█ LOGICAL FRAMEWORK
Input Parameters:
There are no explicit input parameters defined; all variables are hardcoded or calculated within the script.
Calculations:
• Moving Averages: Calculates Simple Moving Averages (SMA) using ta.sma.
• Slope Calculation: Computes the slope of a given series over a specified period using linear regression (ta.linreg).
• K Lines: Defines multiple exponentially adjusted SMAs based on a 30-period MA and a 1-period MA.
• Weighted Moving Average (WMA): Custom function to compute WMAs by iterating through price data points.
• Other Indicators: Includes Exponential Moving Average (EMA) for momentum calculation.
Plotting:
Various elements such as MAs, K lines, conditional bands, additional SMAs, and WMAs are plotted on the chart overlaying the main price action.
No loops control the behavior beyond those used in custom functions for calculating WMAs. Conditional statements determine the coloring of certain plot lines based on specific criteria.
█ CUSTOM FUNCTIONS
calculate_slope(src, length) :
• Purpose: To calculate the slope of a time-series data point over a specified number of periods.
• Functionality: Uses linear regression to find the current and previous slopes and computes their difference scaled by the timeframe multiplier.
• Parameters:
– src: Source of the input data (e.g., closing prices).
– length: Periodicity of the linreg calculation.
• Return Value: Computed slope value.
calculate_ma(source, length) :
• Purpose: To calculate the Simple Moving Average (SMA) of a given source over a specified period.
• Functionality: Utilizes TradingView’s built-in ta.sma function.
• Parameters:
– source: Input data series (e.g., closing prices).
– length: Number of bars considered for the SMA calculation.
• Return Value: Calculated SMA value.
calculate_k_lines(ma30, ma1) :
• Purpose: Generates multiple exponentially adjusted versions of a 30-period MA relative to a 1-period MA.
• Functionality: Multiplies the 30-period MA by coefficients ranging from 1.1 to 3 and subtracts multiples of the 1-period MA accordingly.
• Parameters:
– ma30: 30-period Simple Moving Average.
– ma1: 1-period Simple Moving Average.
• Return Value: Returns an array containing ten different \u2003\u2022 "K line" values.
calculate_wma(source, length) :
• Purpose: Computes the Weighted Moving Average (WMA) of a provided series over a defined period.
• Functionality: Iterates backward through the last 'n' bars, weights each bar according to its position, sums them up, and divides by the total weight.
• Parameters:
– source: Price series to average.
– length: Length of the lookback window.
• Return Value: Calculated WMA value.
█ KEY POINTS AND TECHNIQUES
• Advanced Pine Script Features: Utilization of custom functions for encapsulating complex logic, leveraging TradingView’s library functions (ta.sma, ta.linreg, ta.ema) for efficient computations.
• Optimization Techniques: Efficient computation of K lines via pre-calculated components (multiples of MA30 and MA1). Use of arrays to store intermediate results which simplifies plotting.
• Best Practices: Clear separation between calculation and visualization sections enhances readability and maintainability. Usage of color.new() allows dynamic adjustments without hardcoding colors directly into plot commands.
• Unique Approaches: Introduction of K lines provides an alternative representation of trend strength compared to traditional MAs. Implementation of conditional band coloring adds real-time context to existing visual cues.
█ EXTENDED KNOWLEDGE AND APPLICATIONS
Potential Modifications/Extensions:
• Adding more user-defined inputs for lengths of MAs, K lines, etc., would make the script more flexible.
• Incorporating alert conditions based on crossovers between key lines could enhance automated trading strategies.
Application Scenarios:
• Useful for both intraday and swing trading due to the combination of short-term and long-term MAs along with trend analysis via slopes and K lines.
• Can be integrated into larger systems combining this indicator with others like oscillators or volume-based metrics.
Related Concepts:
• Understanding how linear regression works internally aids in grasping the slope calculation.
• Familiarity with WMA versus SMA helps appreciate why different types of averaging might be necessary depending on market dynamics.
• Knowledge of candlestick patterns can complement insights gained from this indicator.
All-in-One: VWAP, Ichimoku, EMAs, ADX, RSI + AlertsTitle: All-in-One: VWAP, Ichimoku, EMAs, ADX, RSI + Alerts
Short Title: Multi-Indicator + Alerts
Description:
This script combines several popular trading tools into a single indicator, giving traders a comprehensive view of market conditions alongside convenient alerts. Whether you are monitoring intraday trends, identifying breakouts, or looking for overbought/oversold zones, this script centralizes all the major signals you need.
Features & Options
VWAP (Volume-Weighted Average Price)
Multi-timeframe VWAP on 1H, 4H, and Daily
Helps identify key support/resistance zones based on volume distribution
EMAs (Exponential Moving Averages)
EMAs of 10, 20, 50, and 200 periods (customizable)
Quick visualization of short-term vs. long-term trends
Ichimoku Cloud
Full Ichimoku suite (Tenkan, Kijun, Senkou A/B, Chikou)
Auto-filled cloud for bullish/bearish scenarios
Detect momentum shifts and potential support/resistance zones
RSI & ADX Table
RSI(14) and ADX(14) displayed on a small on-chart table
Compare values across three custom timeframes for multi-timeframe confluence
Labels on Last Bar
Optional labels for VWAP, EMAs, and Ichimoku values on the latest candle
Keeps critical numeric data in sight
Alerts
RSI Overbought/Oversold : Triggers when RSI crosses above/below user-defined thresholds (default 70/30).
ADX Strong Trend : Fires when ADX surpasses a chosen level (default 25), indicating strong momentum.
EMA Cross : Set an alert whenever a faster EMA crosses over or under a slower EMA (default EMA10 vs. EMA50).
Ichimoku Kumo Breakout : Informs you when price closes above or below the Ichimoku cloud.
With everything in one place, this script helps traders streamline their workflow and spot potential opportunities faster. All alert messages are static to ensure compliance with TradingView’s requirement for constant strings in alerts.
Disclaimer:
All trading involves risk. The signals generated by this script do not guarantee profits or prevent losses. Always combine multiple forms of analysis and exercise your own judgment before making any trading decisions.
Trend Battery [Phantom]Trend Battery
Visualize Trend Strength with a Dynamic EMA Power Gauge
OVERVIEW
The Trend Battery indicator offers a clear, visual representation of trend strength based on the alignment of multiple Exponential Moving Averages (EMAs). It assigns a color-coded score to each bar, helping traders quickly assess the prevailing trend's power and direction.
CONCEPT
• Trend Strength Using EMAs: The indicator analyzes the alignment of 20 EMAs (8 to 200 periods) to gauge trend strength. The more EMAs align, the stronger the trend.
• Gradient-Based Visualization: Scores are mapped to a color gradient, transitioning from green (bullish) to purple (bearish), providing an intuitive visual representation of trend momentum.
HOW IT WORKS
Trend Battery calculates 20 EMAs and evaluates their alignment. When EMAs align in a strong trend, the bar colors change (as displayed in battery color key on chart) displaying a spectrum of colors from bright green (strong uptrend) to deep purple (strong downtrend).
• Dynamic Bar Colors:
o Green hues: Strong bullish trends.
o Purple hues: Strong bearish trends.
o Red hues: Weaker trends or potential transitions.
FEATURES
• Dynamic Color Coding: Easy-to-read and instantly assess trend.
• Customizable Transparency: Adjust bar color opacity to your preference.
• Optional EMA Display: Toggle individual EMA lines on/off for additional context.
• Compact Battery View: Quick reference table displaying the gradient color mapping.
SETTINGS
• Transparency: Controls the opacity of bar colors.
• Show EMAs on Chart: Enables/disables plotting of EMA lines.
USAGE
• Identify trend strength and direction.
• Confirm trend reversals or continuations.
• Complement other indicators and strategies.
• Monitor multi-timeframe trends.
TRADE IDEAS:
• For larger timeframes purple hues can be used for accumulating and green hues for distribution.
• For smaller timeframes, color transitions could be a signal for trend reversal, or corrections.
• It is a good idea to use larger timeframes for overall trend directions, and smaller timeframes for entries.
LIMITATIONS
• Lagging Indicator: As the Trend Battery relies on Exponential Moving Averages (EMAs), it is inherently a lagging indicator. This means it reflects past price action and may not always provide timely signals for rapid market changes or sudden reversals.
• False Signals in Sideways Markets: In ranging or consolidating markets, the indicator may produce mixed signals (frequent color changes) as EMAs intertwine without a clear trend. This can lead to false interpretations if not considered alongside other market context indicators.
• Not a Standalone System: The Trend Battery is designed to be a visual aid and should not be used as the sole basis for trading decisions. It's most effective when combined with other technical analysis tools, such as oscillators, support/resistance levels, and fundamental analysis.
DISCLAIMER
Use the Trend Battery indicator in conjunction with other forms of analysis and risk management. Past performance is not indicative of future results.
EMA ivis Breakout StrategyEine bewährte Strategie kombiniert gleitende Durchschnitte (EMAs) mit einem Breakout-Filter, um nur bei klaren Markttrends zu handeln. Entwickelt habe ich diese für BTCUSD, funktioniert aber auch in anderen Assets.
Ausstiegsregeln:
Für den Stop-Loss: 1,5-fache ATR unterhalb/oberhalb des Einstiegskurses.
Für den Take-Profit: 2-fache ATR über/unter dem Einstiegspunkt
Zeit Filter:
Der Indikator liefert nur in der definierten Handelszeit Signale. Diese können SIe selbstständig in den Einstellungen verändern.
Die Strategie kann man bestens in 15min anwenden.
OBV Crossover SignalsPlacing a 20 EMA on the on balance volume indicator and adding arrows. When OBV crosses above the 20 EMA adds a green bullish candle to the indicator. When OBV crosses below the 20 EMA this adds a red bearish candle to the indicator. I use this in conjunction with another indicator I've programmed to add arrows to the price chart when price closes above or below the 20 EMA. When you have bullish arrows on both indicators, this is when to take bullish swing trades. When you have bearish arrows on both indicators, either stay away (if you're a bull) or its a time to take a bearish swing trade.
[TST] ALGOSuper Trend RSi BB Moving Awerange ATR Base Trailling . Support And Resistance Technical Indicator
Trend Background Color (Dynamic Timeframe)Uses EMA's to change the background color from shades of Green to shades of Red depending on the trend. Colors will change based the timeframe you have selected in Tradingview. Decent as another confluence to ones trading, would not use this solely by itself.
Awesome Oscillator Twin Peaks Strategy
1. The indicator identifies both bullish and bearish twin peaks:
- Bullish: Two consecutive valleys below zero, where the second valley is higher than the first
- Bearish: Two consecutive peaks above zero, where the second peak is lower than the first
2. Visual elements:
- AO histogram with color-coding for increasing/decreasing values
- Triangle markers for confirmed twin peak signals
- Zero line for reference
- Customizable colors through inputs
3. Built-in safeguards:
- Minimum separation between peaks to avoid false signals
- Maximum time window for pattern completion
- Clear signal reset conditions
4. Alert conditions for both bullish and bearish signals
To use this indicator:
1. Add it to your TradingView chart
2. Customize the input parameters if needed
3. Look for triangle markers that indicate confirmed twin peak patterns
4. Optional: Set up alerts based on the signal conditions
Swing Strategy - XAUUSD (50-Point Stop Loss)a strategy in which you enter in change in trend with a stoploss of 50 points and targets of 200-400 points. that means 4:1 to 8:1 strategy.
CI, RSI & EMA StrategyTo be used with simple lines and triangles to confirm enter and exit strategy. Currently testing this script for when market is more choppy due to low volume eg. during weekends. Choppiness Index can give you an overall view on whether the market is hard or easy to trade. Script is originally written by LLM.
MTF EMA Cloud // Multi Time Frame Expodential Moving AveragesTo work properly, You should select the option from the dropdown menu >>> PIN TO SCALE > PIN TO RIGHT SCALE.
You can adjust the length of the EMAs and the timeframe to fit Your strategy.
Good Luck, Friends !
8 Günlük ve 21 Günlük SMA Stratejisi8 gün (bar) ve 13 gün (bar) arasındaki basit hareketli ortalamaya dayalı al sat sinyali üreten bir indikatördür.
Ema Crossover + Volume (Ashish Singh)This indicator is advance version of ema crossover with volumes effect on chart.
Ema are 21,50 and 200
Indicator also includes heavy volume effect on candlestick candle.
freely available to all.
Multi SMA EMA VWAP1. Moving Average Crossover
This is one of the most common strategies with moving averages, and it involves observing crossovers between EMAs and SMAs to determine buy or sell signals.
Buy signal: When a faster EMA (like a short-term EMA) crosses above a slower SMA, it can indicate a potential upward movement.
Sell signal: When a faster EMA crosses below a slower SMA, it can indicate a potential downward movement.
With 4 EMAs and 5 SMAs, you can set up crossovers between different combinations, such as:
EMA(9) crosses above SMA(50) → buy.
EMA(9) crosses below SMA(50) → sell.
2. Divergence Confirmation Between EMAs and SMAs
Divergence between the EMAs and SMAs can offer additional confirmation. If the EMAs are pointing in one direction and the SMAs are still in the opposite direction, it is a sign that the movement could be stronger and continue in the same direction.
Positive divergence: If the EMAs are making new highs while the SMAs are still below, it could be a sign that the market is in a strong trend.
Negative divergence: If the EMAs are making new lows and the SMAs are still above, you might consider that the market is in a downtrend or correction.
3. Using EMAs as Dynamic Support and Resistance
EMAs can act as dynamic support and resistance in strong trends. If the price approaches a faster EMA from above and doesn’t break it, it could be a good entry point for a long position (buy). If the price approaches a slower EMA from below and doesn't break it, it could be a good point to sell (short).
Buy: If the price is above all EMAs and approaches the fastest EMA (e.g., EMA(9)), it could be a good buy point if the price bounces upward.
Sell: If the price is below all EMAs and approaches the fastest EMA, it could be a good sell point if the price bounces downward.
4. Combining SMAs and EMAs to Filter Signals
SMAs can serve as a trend filter to avoid trading in sideways markets. For example:
Bullish trend condition: If the longer-term SMAs (such as SMA(100) or SMA(200)) are below the price, and the shorter EMAs are aligned upward, you can look for buy signals.
Bearish trend condition: If the longer-term SMAs are above the price and the shorter EMAs are aligned downward, you can look for sell signals.
5. Consolidation Zone Between EMAs and SMAs
When the price moves between EMAs and SMAs without a clear trend (consolidation zone), you can expect a breakout. In this case, you can use the EMAs and SMAs to identify the direction of the breakout:
If the price is in a narrow range between the EMAs and SMAs and then breaks above the fastest EMA, it’s a sign that an upward trend may begin.
If the price breaks below the fastest EMA, it could indicate a potential downward trend.
6. "Golden Cross" and "Death Cross" Strategy
These are classic strategies based on crossovers between moving averages of different periods.
Golden Cross: Occurs when a faster EMA (e.g., EMA(50)) crosses above a slower SMA (e.g., SMA(200)), which suggests a potential bullish trend.
Death Cross: Occurs when a faster EMA crosses below a slower SMA, which suggests a potential bearish trend.
Additional Recommendations:
Combining with other indicators: You can combine EMA and SMA signals with other indicators like the RSI (Relative Strength Index) or MACD (Moving Average Convergence/Divergence) for confirmation and to avoid false signals.
Risk management: Always use stop-loss and take-profit orders to protect your capital. Moving averages are trend-following indicators but don’t guarantee that the price will move in the same direction.
Timeframe analysis: It’s recommended to use different timeframes to confirm the trend (e.g., use EMAs on hourly charts along with SMAs on daily charts).
VWAP
1. VWAP + EMAs for Trend Confirmation
VWAP can act as a trend filter, confirming the direction provided by the EMAs.
Buy Signal: If the price is above the VWAP and the EMAs are aligned in an uptrend (e.g., short-term EMAs are above longer-term EMAs), this indicates that the trend is bullish and you can look for buy opportunities.
Sell Signal: If the price is below the VWAP and the EMAs are aligned in a downtrend (e.g., short-term EMAs are below longer-term EMAs), this suggests a bearish trend and you can look for sell opportunities.
In this case, VWAP is used to confirm the overall trend. For example:
Bullish: Price above VWAP, EMAs aligned to the upside (e.g., EMA(9) > EMA(50) > EMA(200)), buy.
Bearish: Price below VWAP, EMAs aligned to the downside (e.g., EMA(9) < EMA(50) < EMA(200)), sell.
2. VWAP as Dynamic Support and Resistance
VWAP can act as a dynamic support or resistance level during the day. Combining this with EMAs and SMAs helps you refine your entry and exit points.
Support: If the price is above VWAP and starts pulling back to VWAP, it could act as support. If the price bounces off the VWAP and aligns with bullish EMAs (e.g., EMA(9) crossing above EMA(50)), you can consider entering a buy position.
Resistance: If the price is below VWAP and approaches VWAP from below, it can act as resistance. If the price fails to break through VWAP and aligns with bearish EMAs (e.g., EMA(9) crossing below EMA(50)), it could be a good signal for a sell.
Refined Fibonacci Strategy - Enhanced Risk ManagementThis strategy leverages the 0.65 Fibonacci retracement level as a key point of interest while incorporating trend filtering and risk management mechanisms. It is designed for use on the 15-minute timeframe and aims to identify high-probability trading opportunities in line with the prevailing market trend.
Trend Followermix of trader_xo and btc_charlie EMAs.
charlie_slowEMA_period = 50
charlie_fastEMA_period = 10
xo_slowEMA_period = 21
xo_fastEMA_period = 12
uses above EMAs to publish the trend. feel free to copy and update
3 EMA Cross 9 EMA with Close ConfirmationThe 3x Exponential Moving Average Crosses the 9x Exponential Moving Average. Once the 3x closes above the 9x and then a subsequent candle closes above the 9x, this strategy goes long. This strategy exits once the candle closes below the 9x.
U Bot V6This indicator is simply the updated of UT Bot Alerts by QuantNomad.
Credit @QuantNomad
UT Bot indicator was initially developer by Yo_adriiiiaan
The idea of original code belongs HPotter
I translated it from V4 to V5 and V6, for a better alignement with Pine Script requirements.
I publish it in the purpose of integrating it into a strategy that I will publish later, in free access (in the spirit of Tradingview community).