Close Price - EMA Percentage Difference
Title: Close Price - EMA Percentage Difference Indicator
Description:
The Close Price - EMA Percentage Difference Indicator is an essential tool designed to calculate and display the percentage difference between the closing price of a security and its Exponential Moving Average (EMA). This indicator is particularly useful for traders and analysts who want to understand how far the current price is from its EMA, providing insights into potential price trends and reversals.
Key Features:
Customizable EMA Period: Easily adjust the EMA period to match your trading strategy. Whether you're focusing on short-term trends with a 20-period EMA or analyzing long-term trends with a 200-period EMA, this indicator is flexible to suit your needs.
Percentage Difference Calculation: The indicator computes the percentage difference between the closing price and the selected EMA, allowing you to see how much the current price deviates from its moving average in percentage terms. This calculation helps in identifying potential buying or selling opportunities based on price movements relative to the EMA.
Zero Line Reference: A dotted red line at the zero level is included for quick visual reference. This line helps you instantly identify when the closing price is equal to the EMA, and whether the price is above or below the EMA.
Visual Representation: The percentage difference is plotted on a separate panel below the price chart, providing a clear and intuitive visualization that aids in decision-making.
How to Use:
Adjust the EMA period to fit your analysis or trading strategy.
Observe the percentage difference to understand the strength of the current price in relation to the EMA.
Use the zero line as a reference point to determine whether the price is above (positive values) or below (negative values) the EMA, which can help in identifying overbought or oversold conditions.
This indicator is suitable for all types of traders, from day traders to long-term investors, offering valuable insights into the price dynamics relative to the EMA.
Đường Trung bình trượt
Multi-Factor StrategyThis trading strategy combines multiple technical indicators to create a systematic approach for entering and exiting trades. The goal is to capture trends by aligning several key indicators to confirm the direction and strength of a potential trade. Below is a detailed description of how the strategy works:
Indicators Used
MACD (Moving Average Convergence Divergence):
MACD Line: The difference between the 12-period and 26-period Exponential Moving Averages (EMAs).
Signal Line: A 9-period EMA of the MACD line.
Usage: The strategy looks for crossovers between the MACD line and the Signal line as entry signals. A bullish crossover (MACD line crossing above the Signal line) indicates a potential upward movement, while a bearish crossover (MACD line crossing below the Signal line) signals a potential downward movement.
RSI (Relative Strength Index):
Usage: RSI is used to gauge the momentum of the price movement. The strategy uses specific thresholds: below 70 for long positions to avoid overbought conditions and above 30 for short positions to avoid oversold conditions.
ATR (Average True Range):
Usage: ATR measures market volatility and is used to set dynamic stop-loss and take-profit levels. A stop loss is set at 2 times the ATR, and a take profit at 3 times the ATR, ensuring that risk is managed relative to market conditions.
Simple Moving Averages (SMA):
50-day SMA: A short-term trend indicator.
200-day SMA: A long-term trend indicator.
Usage: The strategy uses the relationship between the 50-day and 200-day SMAs to determine the overall market trend. Long positions are taken when the price is above the 50-day SMA and the 50-day SMA is above the 200-day SMA, indicating an uptrend. Conversely, short positions are taken when the price is below the 50-day SMA and the 50-day SMA is below the 200-day SMA, indicating a downtrend.
Entry Conditions
Long Position:
-MACD Crossover: The MACD line crosses above the Signal line.
-RSI Confirmation: RSI is below 70, ensuring the asset is not overbought.
-SMA Confirmation: The price is above the 50-day SMA, and the 50-day SMA is above the 200-day SMA, indicating a strong uptrend.
Short Position:
MACD Crossunder: The MACD line crosses below the Signal line.
RSI Confirmation: RSI is above 30, ensuring the asset is not oversold.
SMA Confirmation: The price is below the 50-day SMA, and the 50-day SMA is below the 200-day SMA, indicating a strong downtrend.
Opposite conditions for shorts
Exit Strategy
Stop Loss: Set at 2 times the ATR from the entry price. This dynamically adjusts to market volatility, allowing for wider stops in volatile markets and tighter stops in calmer markets.
Take Profit: Set at 3 times the ATR from the entry price. This ensures a favorable risk-reward ratio of 1:1.5, aiming for higher rewards on successful trades.
Visualization
SMAs: The 50-day and 200-day SMAs are plotted on the chart to visualize the trend direction.
MACD Crossovers: Bullish and bearish MACD crossovers are highlighted on the chart to identify potential entry points.
Summary
This strategy is designed to align multiple indicators to increase the probability of successful trades by confirming trends and momentum before entering a position. It systematically manages risk with ATR-based stop loss and take profit levels, ensuring that trades are exited based on market conditions rather than arbitrary points. The combination of trend indicators (SMAs) with momentum and volatility indicators (MACD, RSI, ATR) creates a robust approach to trading in various market environments.
Raj - Mark Minervini Stage 2 with RSTitle: Mark Minervini Stage 2 Screener with Custom RS
Description:
This script is designed to identify stocks that meet the criteria for Mark Minervini's Stage 2 trend setup, incorporating custom relative strength (RS) ranking.
Key Features:
Moving Averages: Tracks the 50-day, 150-day, and 200-day Simple Moving Averages (SMA) to identify trend alignment.
Price Conditions: Ensures the stock price is above key moving averages, is within 25% of its 52-week high, and is at least 25% above its 52-week low.
Custom Relative Strength (RS): Compares the stock's performance against a benchmark (e.g., S&P 500) to ensure it has a strong relative strength. The RS is normalized on a 0-100 scale, and only stocks with an RS above 70 are highlighted.
Visual Indicators: The script plots moving averages on the chart and labels points where all conditions for the Stage 2 setup are met.
Usage:
Apply this script to your charts to find stocks that are in a strong uptrend and meet Mark Minervini's Stage 2 criteria.
Customize the benchmark symbol for the RS calculation to fit your market or preference
Custom EMA Multi-Timeframe Indicator [Pineify]
This innovative indicator combines Exponential Moving Averages (EMAs) across multiple timeframes to provide traders with a comprehensive view of market trends and potential trading opportunities. By analyzing short, medium, and long-term EMAs simultaneously, this indicator offers valuable insights into market dynamics and helps identify high-probability entry and exit points.
Key Features
Multi-timeframe analysis using customizable EMAs
Visual representation of trend alignment across different timeframes
Customizable EMA lengths and sources for each timeframe
Buy and sell signals based on EMA crossovers
Alert functionality for real-time trade notifications
How It Works
The Custom EMA Multi-Timeframe Indicator calculates three separate EMAs:
1. Short-term EMA: Represents immediate market sentiment
2. Medium-term EMA: Captures intermediate trend direction
3. Long-term EMA: Reflects the overall market trend
These EMAs are plotted on the chart using different colors for easy identification. The indicator generates buy and sell signals based on the relative positions of these EMAs, providing traders with clear visual cues for potential trade entries and exits.
Trading Ideas and Insights
This indicator offers several powerful trading concepts:
Trend Alignment: When all three EMAs are aligned (short above medium above long), it indicates a strong trend. Traders can look for pullbacks to enter in the direction of the trend.
Trend Reversal: When the short-term EMA crosses above or below both the medium and long-term EMAs, it may signal a potential trend reversal. This can be used to exit existing positions or enter new trades in the opposite direction.
Range-bound Markets: When the EMAs are tightly grouped together, it suggests a consolidation phase. Traders can wait for a breakout or use range-trading strategies.
Momentum Confirmation: The speed at which the short-term EMA diverges from or converges with the longer-term EMAs can indicate the strength of the current move.
Unique Aspects
What sets this indicator apart is its ability to synthesize information from multiple timeframes into a single, easy-to-interpret visual display. Unlike traditional single-timeframe EMAs, this indicator provides a more holistic view of market trends, reducing false signals and improving trade timing.
The customizable nature of the indicator allows traders to adapt it to various trading styles and market conditions. By adjusting the EMA lengths and sources, traders can fine-tune the indicator to their specific needs and preferences.
How to Use
1. Apply the indicator to your chart
2. Customize the timeframes and EMA settings as desired
3. Look for buy signals when the short and medium EMAs cross above the long EMA
4. Look for sell signals when the short and medium EMAs cross below the long EMA
5. Use the relative positions of the EMAs to gauge overall trend strength and direction
6. Combine with other technical analysis tools for confirmation
Customization
The indicator offers extensive customization options:
Short, medium, and long timeframes can be adjusted
EMA lengths for each timeframe are customizable
EMA source (close, open, high, low, etc.) can be selected for each timeframe
Colors and line styles can be modified to suit personal preferences
Alert settings can be configured for automated trade notifications
Conclusion
The Custom EMA Multi-Timeframe Indicator is a powerful tool for traders seeking to gain a comprehensive understanding of market trends across different time horizons. By combining multiple EMAs and timeframes, it provides a unique perspective on market dynamics, helping traders make more informed decisions and potentially improve their trading results.
Whether you're a day trader looking for short-term opportunities or a swing trader focusing on longer-term trends, this indicator offers valuable insights that can enhance your trading strategy. Its flexibility and customization options make it suitable for a wide range of trading styles and market conditions.
Remember: While this indicator can be a valuable tool in your trading arsenal, it should not be used in isolation. Always combine it with other forms
Uptrick: EMA Trend Indicator
### Overview
The goal of this script is to visually indicate on a trading chart whether all three Exponential Moving Averages (EMAs) are trending upwards (i.e., their slopes are positive). If all EMAs are trending upwards, the script will color the bars green. If not, the bars will be colored red.
### Key Concepts
1. **Exponential Moving Average (EMA)**: An EMA is a type of moving average that places more weight on recent data, making it more responsive to price changes compared to a simple moving average (SMA). In this script, we use three different EMAs with different lengths (20, 50, and 200 periods).
2. **Slope of an EMA**: The slope of an EMA refers to the direction in which the EMA is moving. If the current value of the EMA is higher than its value in the previous bar, the slope is positive (upward). Conversely, if the current value is lower than its previous value, the slope is negative (downward).
3. **Bar Color Coding**: The script changes the color of the bars on the chart to provide a visual cue:
- **Green Bars**: Indicate that all three EMAs are trending upwards.
- **Red Bars**: Indicate that one or more EMAs are not trending upwards.
### Detailed Breakdown
#### 1. Input Fields
- **EMA Lengths**: The script starts by allowing the user to input the lengths for the three EMAs. These lengths determine how many periods (e.g., days) are used to calculate each EMA.
- `ema20_length` is set to 20, meaning the first EMA uses the last 20 bars of data.
- `ema50_length` is set to 50, meaning the second EMA uses the last 50 bars of data.
- `ema200_length` is set to 200, meaning the third EMA uses the last 200 bars of data.
#### 2. EMA Calculation
- The script calculates the values of the three EMAs:
- **EMA 20**: This is calculated using the last 20 bars of closing prices.
- **EMA 50**: This is calculated using the last 50 bars of closing prices.
- **EMA 200**: This is calculated using the last 200 bars of closing prices.
These calculations result in three values for each bar on the chart, each representing the EMA value at that point in time.
#### 3. Determining EMA Slopes
- **EMA Slopes**: To understand the trend of each EMA, the script compares the current value of each EMA to its value in the previous bar:
- For the 20-period EMA, the script checks if today’s EMA value is higher than yesterday’s EMA value.
- This process is repeated for the 50-period and 200-period EMAs.
- If today’s EMA value is greater than yesterday’s value, the slope is positive (upward).
- If today’s EMA value is not greater (it is either equal to or less than yesterday’s value), the slope is not positive.
#### 4. Evaluating All Slopes
- **All Slopes Positive Condition**: The script combines the results of the individual slope checks into a single condition. It uses a logical "AND" operation:
- The condition will be `true` only if all three EMAs (20, 50, and 200) have positive slopes.
- If any one of the EMAs does not have a positive slope, the condition will be `false`.
#### 5. Coloring the Bars
- **Bar Coloring Logic**: Based on the above condition, the script decides the color of each bar on the chart:
- If all slopes are positive (condition is `true`), the bar is colored green.
- If any slope is not positive (condition is `false`), the bar is colored red.
- **Visual Cue**: This provides a quick, visual indication to traders:
- Green bars suggest that the market is in an upward trend across all three EMAs, which might indicate a strong bullish trend.
- Red bars suggest that the trend is not uniformly upward, which could be a sign of weakening momentum or a potential reversal.
#### 6. Alerts
- **Alert Conditions**: The script also allows for alert conditions to be set based on the slope analysis:
- An alert can be triggered when all EMA slopes are positive. This might be useful for traders who want to be notified when the market shows strong upward momentum.
### Summary
- The script essentially takes the market data and applies three different EMAs to it, each with a different time frame.
- It then checks the direction (slope) of each of these EMAs to determine if they are all trending upwards.
- If they are, the script colors the bar green, signaling a potentially strong bullish trend.
- If any of the EMAs is not trending upwards, it colors the bar red, indicating a potential issue with the strength of the trend.
This approach helps traders quickly assess market conditions based on multiple EMAs, providing a clearer picture of the overall trend across different time frames.
Buy and Sell Alerts using VWAPThis is my first script, which I hope you'll enjoy.
The script generates alerts for buy and sell trades using VWAP and volume threshold that you select.
Indicators and Moving Averages :
This script allows you to choose which moving averages like VWAP, 9EMA, 10, 20, 50, 100, 200, and 325 SMAs you want to see on your chart.
Volume Threshold :
You can set a volume threshold, which is the minimum required volume required for buy and sell signals to be considered valid. (For example, I like 60,000 on SPY, 5 minute chart.)
Buy and Sell Signals :
The script checks if the stock prices crosses above or below the VWAP and if the trading volume is above the threshold you set.
If the price crosses above the VWAP and the volume is sufficient, a "Buy" signal is generated.
If the price crosses below the VWAP and the volume is sufficient, a "Sell" signal is generated.
This hopefully user-friendly indicator will alert you when certain conditions trading conditions are met, helping to make it a little easier to make informed trading decisions.
Negroni Opening Range StrategyStrategy Summary:
This tool can be used to help identify breakouts from a range during a time-zone of your choosing. It plots a pre-market range, an opening range, it also includes moving average levels that can be used as confluence, as well as plotting previous day SESSION highs and lows.
There are several options on how you wish to close out the trades, all described in more detail below.
Back-testing Inputs:
You define your timezone.
You define how many trades to open on any given day.
You decide to go: long only, short only, or long & short (CAREFUL: "Long & Short" can open trades that effectively closes-out existing ones, for better AND worse!)
You define between which times the strategy will open trades.
You define when it closes any open trades (preventing overnight trades, or leaving trades open into US data times!!).
This hopefully helps make back-testing reflect YOUR trading hours.
NOTE: Renko or Heikin-Ashi charts
For ALL strategies, don’t use Renko or Heikin-Ashi charts unless you know EXACTLY the implications.
Specific to my strategy, using a renko chart can make this 85-90% profitable (I wish it was!!) Although they can be useful, renko charts don’t always capture real wicks, so the renko chart may show your trade up-only but your broker (who is not using renko!!) will have likely stopped you out on a wick somewhere along the line.
NOTE: TradingView ‘Deep backtesting’
For ALL strategies, be cynical of all backtesting (e.g. repainting issues etc) as well as ‘Deep backtesting’ results.
Specific to this strategy, the default settings here SHOULD BE OK, but unfortunately at the time of writing, we can’t see on the chart what exactly ‘deep backtesting’ is calculating. In the past I have noted a number of trades that were not closed at the end of the day, despite my ‘end of day’ trade closing being enabled, so there were big winners and losers that would not have materialized otherwise. As I say, this seems ok at these settings but just always be cynical!!
Opening Range Inputs
You define a pre-market range (example: 08:00 - 09:00).
You define an opening range (example: 09:00 - 09:30).
The strategy will give an update at the close of the opening range to let you know if the opening range has broken out the pre-market range (OR Breakout), or if it has remained inside (OR Inside). The label appears at the end of the opening range NOT at the bar that ‘broke-out’.
This is just a visual cue for you, it has no bearing on what the strategy will do.
The strategy default will trade off the pre-market range, but you can untick this if you prefer to trade off the opening range.
Opening Trades:
Strategy goes long when the bar (CLOSE) crosses-over the ‘pre-market’ high (not the ‘opening range’ high); and the time is within your trading session, and you have not maxed out your number of trades for the day!
Strategy goes short when the bar (CLOSE) crosses-under the ‘pre-market’ low (not the ‘opening range low); and the time is within your trading session, and you have not maxed out your number of trades for the day!
Remember, you can untick this if you prefer to trade off the opening range instead.
NOTES:
Using momentum indicators can help (RSI and MACD): especially to trade range plays in failed breakouts, when momentum shifts… but the strategy won’t do this for you!
Using an anchored vwap at the session open can also provide nice confluence, as well as take-profit levels at the upper/lower of 3x standard deviation.
CLOSING TRADES:
You have 6 take-profit (TP) options:
1) Full TP: uses ATR Multiplier - Full TP at the ATR parameters as defined in inputs.
2) Take Partial profits: ATR Multiplier - Takes partial profits based on parameters as defined in inputs (i.e close 40% of original trade at TP1, close another 40% of original trade at TP2, then the remainder at Full TP as set in option 1.).
3) Full TP: Trailing Stop - Applies a Trailing Stop at the number of points, as defined in inputs.
4) Full TP: MA cross - Takes profit when price crosses ‘Trend MA’ as defined in inputs.
5) Scalp: Points - closes at a set number of points, as defined in inputs.
6) Full TP: PMKT Multiplier - places a SL at opposite pre-market Hi/Low (we go long at a break-out of the pre-market high, 50% would place a SL at the pre-market range mid-point; 100% would place a SL at the pre-market low)'. This takes profit at the input set in option 1).
TradeMate - Trend TamerTradeMate Trend Tamer
The TradeMate Trend Tamer is designed to help traders identify potential trend reversals and navigate periods of high market volatility. This tool combines a custom EMA-based oscillator with a volatility detection mechanism, providing traders with actionable signals that are easy to interpret and apply.
🔶 Originality and Utility
The TradeMate Trend Tamer is not just a mashup of indicators but a well-integrated system that enhances the reliability of trend detection. The core of this indicator is a custom EMA calculation that identifies trend shifts based on price momentum and directional changes. This EMA is further enhanced by a volatility detection system that colors bars yellow during periods of high volatility, indicating potential market reversals.
The indicator is particularly useful for traders who are looking for clear and straightforward signals to identify buying and selling opportunities, especially in volatile markets where traditional indicators might produce false signals. By combining trend arrows with volatility signals, the TradeMate Trend Tamer helps traders confirm the strength of a signal and avoid getting caught in market noise.
🔶 Description and Underlying Logic
The TradeMate Trend Tamer uses a custom EMA calculation that smooths price movements to detect significant shifts in momentum. This EMA is plotted on the chart and is complemented by arrows indicating potential buy or sell signals:
Upward Arrows: These appear when the EMA indicates an upward momentum shift, suggesting a potential buying opportunity.
Downward Arrows: These indicate a downward momentum shift, signaling a potential selling opportunity.
The volatility detection mechanism works by analyzing the ATR (Average True Range) over a specified lookback period. The indicator identifies extreme volatility zones where the ATR exceeds a certain threshold, coloring the bars yellow to visually alert traders. This helps traders identify when the market is more likely to reverse, making the combination of trend arrows and volatility signals a powerful tool for decision-making.
🔶 Using the TradeMate Trend Tamer
Traders should use the trend arrows as an initial signal and confirm it with the yellow-colored volatility bars. For example:
High Volatility with Upward Arrow: Indicates a strong buy signal as the market is likely to reverse upwards.
High Volatility with Downward Arrow: Indicates a strong sell signal, suggesting a potential downward reversal.
By following these signals, traders can enhance their entry and exit strategies, especially in markets prone to sudden moves.
Multi-Timeframe EMA Distance & % Change TableDescription of Multi-Timeframe EMA Distance & % Change Table
The Multi-Timeframe EMA Distance & % Change Table indicator is designed to display the distance and percentage change between the current price and the Exponential Moving Averages (EMAs) on multiple timeframes. It creates a table to show these values, with customizable options for decimal precision .
Key Features:
Inputs:
- Timeframes (tf1, tf2, tf3, tf4): User-defined timeframes for EMA calculations (e.g., 1 minute, 15 minutes, daily, etc.).
- EMA Levels (emaLevel, emaLevel2, emaLevel3): User-defined periods for three different EMAs.
EMA Calculations:
- Computes EMAs for the specified levels (50, 100, 200) on each of the user-selected timeframes.
Plotting:
- Plots the EMAs on the chart with distinct colors: Orange, Teal, and Green for different EMAs.
Display Options:
- Checkbox (displayAsPercentage): Allows the user to toggle between displaying distances or percentage changes.
- Decimal Precision:
- decimalPlacesDistance: Specifies the number of decimal places for rounded distance values.
- decimalPlacesPercentage: Specifies the number of decimal places for rounded percentage values.
Table Creation:
- Location: Table is placed in the top-right corner of the chart.
- Headers: Includes columns for each timeframe and EMA distance/percentage.
Distance and Percentage Calculations:
- Distances: Calculated as the difference between the current price and the EMA values for each timeframe.
- Percentages: Calculated as the distance divided by the EMA value, converted to a percentage.
Decimal Rounding:
- Custom Rounding Function: Ensures that distance and percentage values are displayed with the user-specified number of decimal places.
Color Coding:
- Distance Values: Colored green if positive, red if negative.
- Table Entries: Display either the rounded distance or percentage, based on user selection.
Table Update:
- The table is dynamically updated with either distance or percentage values based on the user's choice and rounded to the specified number of decimal places.
This indicator provides a comprehensive overview of EMA distances and percentage changes across multiple timeframes, with detailed control over the precision of the displayed values.
Bollinger Band + Mid BandBollinger Band + Mid Band
This indicator combines the classic Bollinger Bands with enhanced customization options, allowing traders to fine-tune the settings according to their specific strategies.
Key Features:
Moving Average Flexibility: Choose between Simple Moving Average (SMA), Exponential Moving Average (EMA), or Weighted Moving Average (WMA) as the central basis for the Bollinger Bands. This flexibility allows you to align the indicator with your preferred method of trend analysis.
Dual Band Deviation: The indicator includes two sets of upper and lower bands based on different standard deviation multipliers. This helps you analyze both the tightness of price action and potential breakout zones.
Customizable Colors: The mid-band, upper bands, and lower bands can be fully customized in terms of color, allowing you to personalize the visual representation of the indicator on your charts.
Dynamic Transparency: The space between the outer Bollinger Bands can be filled with a customizable transparent color, making it easy to visualize price movements within the bands.
Alerts for Crossovers: Alerts are triggered whenever the price crosses above the upper band or below the lower band, giving you timely notifications of potential breakout or breakdown scenarios.
Overbought/Oversold Visualization: The background of the chart changes color when the price crosses above the upper band (indicating overbought conditions) or below the lower band (indicating oversold conditions), providing a visual cue to help you identify market extremes.
Labeling for Significant Events: Labels appear on the chart whenever the price crosses the upper or lower bands, helping you quickly identify key moments for further analysis.
This script is designed for traders who want to leverage Bollinger Bands in their technical analysis but require additional flexibility and customization options. Whether you're using it for trend analysis, volatility assessment, or identifying overbought and oversold conditions, this tool can be tailored to fit a wide variety of trading styles.
Usage:
Ideal for traders looking to enhance the standard Bollinger Bands with more dynamic and customizable features.
Suitable for any market, including stocks, forex, and cryptocurrencies.
Useful in identifying volatility squeezes, breakouts, and potential reversal points.
Vmoon By:VasmaVmoon Indicator by Vasma
Overview:
The Vmoon indicator is an advanced tool designed for trend following and momentum trading, uniquely combining the Average True Range (ATR) with a Double Exponential Moving Average (DEMA). Unlike standard indicators, Vmoon provides traders with a dual-layered approach to detect trend reversals and confirm momentum, making it a robust solution for identifying trading opportunities in various market conditions.
Key Features and Calculation Methodology:
Average True Range (ATR) Based Trend Detection:
ATR Period: The user can define the ATR period, with a default setting of 12 periods. This period is crucial for accurately measuring market volatility over the chosen timeframe.
ATR Multiplier: Set at a default of 3.0, the multiplier adjusts the ATR range to determine dynamic support and resistance levels, allowing the indicator to adapt to different market conditions.
Custom ATR Calculation Method: Traders can choose between a simple moving average of the true range or the built-in ATR method. This flexibility allows for personalized risk management and signal sensitivity.
Upper and Lower Bands: These bands are calculated by adding and subtracting the ATR value from the price (hl2 by default). The bands serve as dynamic thresholds—when price breaks above the upper band, it suggests an upward trend, and breaking below the lower band suggests a downward trend.
The Vmoon indicator doesn't just plot these bands; it dynamically adjusts them based on price action, providing a real-time, adaptive system for trend detection.
Innovative Trend Identification:
Real-Time Trend Tracking: The indicator monitors price movements relative to the ATR bands, continuously updating the trend direction. This allows for quick identification of trend changes, which is critical in volatile markets.
Trend Change Detection: Vmoon captures shifts from upward to downward trends (and vice versa) with precision, generating actionable buy or sell signals. This feature helps traders stay ahead of market reversals.
Double Exponential Moving Average (DEMA) Integration:
DEMA Calculation: The Vmoon indicator uses a 200-period DEMA, which is known for reducing lag and providing a faster reaction to price changes compared to traditional moving averages. This ensures that the indicator responds promptly to emerging trends.
Crossover-Based Momentum Confirmation: The indicator generates signals based on price crossovers with the 200-period DEMA:
Buy Signal: A green triangle appears when the price crosses above the DEMA, signaling potential bullish momentum.
Sell Signal: A red triangle is displayed when the price crosses below the DEMA, indicating possible bearish momentum.
The DEMA component of Vmoon offers a long-term perspective on market momentum, acting as a filter to confirm the strength and direction of the trend.
Customizable Alerts:
Vmoon includes fully customizable alert conditions, allowing traders to stay informed about critical market movements:
Buy Signal Alert: Notifies when the trend changes from downward to upward, indicating a potential buying opportunity.
Sell Signal Alert: Alerts when the trend shifts from upward to downward, signaling a possible selling point.
General Trend Change Alert: Keeps traders aware of any direction changes, helping them to react quickly to potential reversals.
How to Use Vmoon:
Dynamic Trend Following: Use the ATR-based upper and lower bands as dynamic support and resistance levels. Monitor for breakouts to identify trend reversals.
Momentum Confirmation with DEMA: Validate trend signals by watching for price crossovers with the 200-period DEMA, ensuring that the trend is supported by strong momentum.
Signal Interpretation: Act on the buy and sell signals displayed on the chart, supported by optional alerts, to make informed trading decisions in real time.
Enhanced Customization Options:
Adjustable ATR Settings: Modify the ATR period and multiplier to better align with your trading strategy and market conditions.
Selectable ATR Calculation Method: Choose the ATR method that best suits your risk tolerance and market analysis approach.
Configurable Signal Display: Tailor the indicator to show or hide buy/sell signals based on your preferences.
Personalized Alerts: Set alerts that match your specific trading needs, ensuring that you never miss a significant market move.
Visual Representation:
Vmoon provides a clear and concise visual representation on the chart, with distinct markers for buy and sell signals, dynamic ATR bands, and the 200-period DEMA. This visualization helps traders quickly interpret market conditions and make timely decisions.
Why Vmoon is Unique:
Vmoon stands out by integrating ATR-based dynamic thresholds with the reduced-lag DEMA, offering a comprehensive solution for trend identification and momentum confirmation. This combination is not commonly found in standard indicators, and the flexibility in customization ensures that Vmoon can be adapted to suit various trading strategies and market environments. The proprietary logic behind Vmoon’s signal generation, particularly in how it adjusts to market volatility, is what makes it both powerful and worthy of protection as a closed-source script.
Navid-MASummary of the Pine Script "Navid-MA":
The "Navid-MA" Pine Script is a custom indicator designed to enhance technical analysis by plotting two moving averages (MA7 and MA20) on a TradingView chart, while also providing real-time insights into the relationship between these moving averages. The indicator includes:
MA7 and MA20 Plotting:
MA7 is plotted in yellow with a thickness of 2.
MA20 is plotted in blue with a thickness of 3.
Delta Calculation:
The script calculates the difference (delta) between MA7 and MA20, rounded to two decimal places.
Threshold-Based Analysis:
Users can define a threshold based on time (in minutes) or bars to analyze recent market trends.
The script identifies the maximum and minimum delta values within this threshold.
Comprehensive Data Table:
A single table displays the current delta, maximum delta, and minimum delta, all in one row.
An additional row in the table indicates the direction of the current delta relative to the maximum delta using upward (↑) and downward (↓) arrows.
Usefulness for Publishing:
This Pine Script is highly useful for traders and analysts who want to:
Visualize Short-Term Trends:
By comparing MA7 and MA20, traders can quickly identify short-term trend shifts and potential entry/exit points.
Monitor Market Momentum:
The delta values provide insights into the momentum of the market, helping traders gauge the strength or weakness of the current trend.
Customizable Analysis:
The script's ability to adjust the threshold based on time or bars allows for flexible analysis, catering to both intraday and swing traders.
Clear and Concise Data Representation:
The table's format, with one row summarizing key metrics, ensures that traders can easily digest critical information without cluttering the chart.
Direction Indicator:
The arrow in the table serves as a quick visual cue, showing whether the current market momentum is increasing or decreasing relative to the recent maximum, aiding in decision-making.
Results:
This script offers a powerful yet straightforward tool for technical analysis. Its user-friendly design and immediate visual feedback make it a valuable addition to any trader's toolkit, particularly for those focused on momentum trading. Publishing this script on TradingView could attract a wide audience of traders looking for an intuitive way to monitor and analyze short-term market trends. The script's flexibility and clear data presentation make it appealing for both novice and experienced traders.
EMAs for D W M TimeframesEMAs for D W M Timeframes
Description:
The “EMAs for D W M Timeframes” indicator allows users to set specific Exponential Moving Averages (EMAs) for Daily, Weekly, and Monthly timeframes. The script utilizes these user-defined EMA settings based on the chart’s current timeframe, ensuring that the appropriate EMAs are always displayed.
Please note that for timeframes other than specified, it defaults to daily EMA values.
EMA : The Exponential Moving Average (EMA) is a type of moving average that places greater weight and significance on the most recent data points. This makes the EMA more responsive to recent price changes compared to a simple moving average (SMA), making it a popular tool for identifying trends in financial markets.
Features:
Daily and Default EMAs: Users can specify two EMAs for the Daily timeframe, which also act as the default EMAs for any unspecified timeframe. The default values are set to 10 and 20.
Weekly EMAs: For Weekly charts, the indicator plots two EMAs with default values of 10 and 30. These EMAs help in tracking medium-term trends.
Monthly EMAs: On Monthly charts, the indicator plots EMAs with default values of 5 and 10, providing insights into long-term trends.
Timeframe-Based Display: The indicator automatically uses the EMA settings corresponding to the current chart’s timeframe, whether it is Daily, Weekly, or Monthly.
If the chart is set to any other timeframe, the Daily EMA settings are used by default.
How to Use:
Inputs:
* Daily and Default EMA 1 & 2: Adjust the values for the short-term and long-term EMAs on the Daily chart, which are also used for any other unspecified timeframe.
* Weekly EMA 1 & 2: Set the values for the EMAs that will be shown on Weekly charts.
* Monthly EMA 1 & 2: Specify the values for the EMAs to be displayed on Monthly charts.
Visualization:
* Depending on the current chart timeframe, the script will automatically display the relevant EMAs.
Default Values:
* Daily and Default EMAs: 10 (EMA 1), 20 (EMA 2)
* Weekly EMAs: 10 (EMA 1), 30 (EMA 2)
* Monthly EMAs: 5 (EMA 1), 10 (EMA 2)
This indicator is designed for users who want to monitor EMAs across different timeframes, using specific settings for Daily, Weekly, and Monthly charts.
Curious Buy - Sell Indicator - Institutional Zones (Smart Money)How the Script Works:
1. The Scripts identifies Institutional Demand , Supply & Neutral Zones with FIBS on the scripts with Rectangle BOX with labels in advance. User can insert desired start and end value to plot institutional zones
2. Script generates BUY - SELL signals shape based on candle stick formation in live market and labels with BUY - SELL image for easy identification
3. Script gives pop message EXIT SHORT once Buy spotted and candle close above the buy signal and same way EXIT LONG once Sell spotted and candle close below the buy signal
4. Scripts identifies the candle closing above the BUY - SELL signals Eg - If buy spotted the candle closing above the BUY signal with display with BLUE color Candle same way for sell signal the candle closing below the sell signal candle with display with BLACK color candle.
5. Script spots fake signals which are not valid and can be ignored by the end user
6. Three EMA's 20,50,200 has implemented to identify the strength of the market
7. Scripts identifies OPEN = LOW & OPEN = HIGH candle stick to spot the Institutional BUY - SELL activity
8. The script provides visual clues on the chart to help users identify potential trading opportunities.
9. The script provides visual clues on the chart to help users identity potential trading opportunities in live market
10. The looks and parameters of the script can be modified by end user to customize and adapt to different strategy.
11. With the script user can check higher time frame DAILY \ WEEKLY BUY - SELL signals to plan intraday trades and plan safe BUY - SELL positions.
How Users Can Make Profit Using This Script:
1. Identify potential BUY - LONG opportunities: When a valid BUY is detected and condition is met, it is suggested to opening BUY position with stoploss below the BUY signal spotted candle.
Safe users can execute BUY position once BLUE COLOR candle is formed, Wait for pull back to reduce the stoploss
2. Identify potential SELL - SHORT opportunities: When a valid SELL is detected and condition is met, it suggests a potential opening SELL positions with stoploss above the BUY signal spotted candle. Safe users can execute SELL position once BLACK COLOR candle is formed, Wait for pull back to reduce the stoploss.
3. Script generated BUY - SELL signal met target with the Institutional zone. Eg if BUY spotted at demand zone target will be neutral zone & Supply zone.
4. Script designed for user to spot high probability trades when BUY SIGNAL SPOTTED at the Institutional Demand zone same way SELL SIGNAL SPOTTED AT INSTITUTIONAL supply zone.
5. Combine with additional analysis: Users can utilize this script as a tool in their overall trading strategy. They can combine the signals with fundament analysis , market sentiment to make more informed trading decision
6.Set risk management measures: It is important for users to implement proper risk management strategies when trading based on the scripts signals. To avoid potential losses user once spotted BUY - SELL execute the long or short position. Ensure to place the stoploss to avoid potential losses and place the target. Once your trade is moving in your favor
can trial your stoploss to cost and protect the profits.
Market Oracle Plus [ChartPrime]ChartPrime Oracle Plus combines actionable, elegant and functional indicators into a single toolkit. It builds upon previously laid out creations in order to create a more advanced experience. Combinations of both trend following and contrarian logic aim to provide traders with a deeper insight into market movements; aiming to assist in better entries and exits.
Designed and created by the ChartPrime team, this toolkit takes deeper level theory and expresses it in a usable format for traders. ChartPrime Oracle Plus is designed to satisfy and cover major trading theories allowing the user to pick and select the features that fit them.
Trend signals, Prime Ranges and Quantum Reactor
When using any indicator suite it is important to understand these tools are there to assist trading rather than to be a single source of truth. Functionality such as Auto Maximization of parameters is there to guide and enhance user experience, however it is important to be aware of overfitting results.
Plus features:
ChartPrime Market Oracle Plus has introduced some unique additions in order to enhance traders’ experiences.
Custom Signals: Toolkits and signals often limit traders to a single algorithm. This reduces flexibility and adaptability in the market. Traders will often want to develop their own systems without the constraints of an existing one. Market Oracle Plus introduces a custom signals builder; taking components in the toolkit and allowing them to be combined into a single signal/alert. Want a signal when the trend changes with bullish candlestick patterns? With a few clicks this can now be enabled. Traders can also set alerts on their custom signals making automating trades easier than ever.
Custom signals labelled with a cross
The Quantum tools. Looking at the tiny in the market and making it clearer.
Quantum Bands: The quantum bands provide areas of highly likely reversals to occur by analysing market momentum and noise. They can be used classically and are comparable in application to the commonly used bollinger bands. When price finds itself inside a zone it is more likely to reverse. This is excellent when used in confluence with other reversal indicators. The reason these bands are unique is their ability to adapt to trending markets allowing not only reversals to be identified in ranging markets but also trending ones leveraging volatility calculations. They also enable the user to use MTF functionality to load bands from higher timeframes. This allows users to have a broader perspective of support and resistance levels in the market.
The quantum bands are powerful for scalpers who want faster entries and exits. Entering a trade on a bands extremity can give earlier entries and exiting on the touch of the opposing band can serve as a great take profit.
Quantum Bands bounce
Quantum Reactor: The quantum reactor is a custom weighted moving average analyzing trends in the market. Unlike another moving averages; weighting has been considered to account for ranging markets. The Reactor will turn gray in a ranging market to avoid chop allowing for filtering of trades. This offers a unique insight into price action. Classical moving averages will constantly attempt to re-adapt to a trend whereas the Reactor will avoid adaptation where it sees fit.
Filtering a ranging market
Features included & Use cases:
Signal Mode: Select the type of assistive signals you are requiring. Provided are both trend following signals with self optimization using backtest results as well as reversal signals, aiming to provide real time tops and bottoms in markets. Both these signal modes can be fine tuned using the tuning input to refine signals to a trader's liking. The ChartPrime Auto Maximizer will automatically apply a backtested parameter and display the "best performing signals" on your chart. It is important to note this is not indicative of future results. ChartPrime Trend Signals leverage audio engineering inspired techniques and low-pass filters in order to achieve and attempt to produce lower lag response times and therefore is designed to have a uniqueness when compared to more classical trend following approaches.
Candle Highlighting: Choose between a clean gradient or more classical red/green coloring. These color the candles to assist with trend identification.
ChartPrime Dashboard: This redesigned dashboard provides 4 simple to interpret metrics. Firstly, the Optimal Tuning box provides a backtested result giving you the most accurate input. Again, it is important to note this is not indicative of future results. A Prime Score is also provided. This metric is a collection of ChartPrime trend following indicators bundled into a single item. It ranges from 0 (being a very bearish trend) to 10 (being a very bullish trend). 5 would indicate a ranging market. A consolidation score is also provided showing how "ranging" the market is. 10 being a low volatility and consolidating market and 0 being a more volatile and trending market which can assist the trader in avoiding ranges (if undesired). Finally the market prophecy gives simple forecasts in text form giving outlooks on potential activity.
The unique bar based visualization makes it clearer than ever to quantify key metrics on your chart.
Additional Features:
The Dynamic Reactor provides a simple band passing through the chart. This can provide assistance in support and resistance locations as well as identifying the trend direction expressed via green and red colors. Taking a moving average and applying unique low lag adaptivity calculations gives this plot a unique and fast behavior. This gives a unique edge to standard high length moving averages.
The Prime Ranges provide VWAP inspired real time actionable ranges on your chart. These ranges provide support and resistance levels as well as coloring, once again, there to aid trend identification. By generating a distribution and projecting it we produce real time levels for traders.
Candlestick structures analyze candlestick formation putting a spin on classical candlestick patterns and provide the most relevant formations on the chart. These are not classical and are filtered by further analyzing market activity. A trader's classic with a spin.
The Prime Trend Assistant provides a trend following dynamic support and resistance level. This makes it perfect to use in confluence or as a filter for other supporting indicators. This is an adaptive trend following system designed to handle volatility leveraging filter kernels as opposed to low pass filters.
Settings:
Signal Mode: Drop down to select the types of signals wanted
Tuning: Integer input to adjust signal's responsiveness. Lower inputs result in more frequent signals being produced.
Auto Maximizer Toggle: Automatically apply a backtested parameter to the signals
Dashboard Size: Drop down to select the size of the dashboard
Dashboard Position: Change the location of the dashboard on your chart
Additional Features: A set of toggles turning on/off these indicators.
Example Usecases:
Trend based confluences:
ChartPrime Oracle Plus provides classical (all be-it self optimizing) trend based signals. When trading, taking into consideration other forms of confluences are crucial. Take the image below:
Here we see the quantum reactor being green suggesting the market was in an upwards trend. We then see a sell signal appear. Knowing that we were in a macro uptrend allows us to filter out signals that go against this. Albeit basic; understanding multi-level confluence is key.
Features such as the Prime Ranges have duplicate usecases whereby a trend can be identified via the color of the bands as well as providing TP/SL levels. Considering these assisting features is vital before entering a trade.
Contrarian trading methodologies:
Commonly; trading with a trending market is most well known. However; markets are just as susceptible to ranging behaviors. ChartPrime has designed this toolkit to cater to most market conditions. For example, finding confluence between reversal indicators such as our contrarian signals and the Quantum Band can provide for some very strong confluence that can help a trader attempt to enter at bottoms of retracements and achieve the best possible entries or exits.
Developing confluences as shown above can be key to a trader's success. It is important to avoid biases when looking at indicators and view the market as objectively as possible.
ChartPrime believes that there is no magic indicator that is able to print money. Indicator toolkits provide value via their convenience, adaptability and uniqueness. Combining these items can help a trader make more educated; less messy, more planned trades and in turn hopefully help them succeed.
Risk Disclaimer
All content and developments created by ChartPrime are purely for informational & educational purposes only. Past performance does not guarantee future results. Suggested usecases are theoretical.
Timeframe WatermarkA small indicator designed for the minimalist chartist which prints the timeframe on your chart. The color of the text is based on whether the currency is trending (using the 8 and 21 EMAs) in that timeframe. Trending here is simply defined as the direction in which the 8 is above or below the 21. When used in a multi-timeframe layout, this indicator lets you easily scan multiple charts to see if they are trending across multiple timeframes by looking at the color of each chart's timeframe stamp.
This is designed to be used in a multi-timeframe window layout to efficiently and minimally present trending information across multiple timeframes.
Features:
adjustable colors
adjustable text position within the chart (top left/middle/right, bottom left/middle/right)
Altcoin Total Average Divergence (YavuzAkbay)The "Average Price and Divergence" indicator is a strong tool built exclusively for cryptocurrency traders who understand the significance of comparing altcoins to Bitcoin (BTC). While traditional research frequently focusses on the value of cryptocurrencies against fiat currencies such as the US dollar, this indicator switches the focus to the value of altcoins against Bitcoin itself, allowing you to detect potential market opportunities and divergences.
The indicator allows you to compare the price of an altcoin to Bitcoin (e.g., ETHBTC, SOLBTC), which is critical for determining how well an altcoin performs against the main cryptocurrency. This is especially important for investors who expect Bitcoin's price will continue to rise logarithmically and want to ensure that their altcoin holdings retain or expand in market capitalisation compared to Bitcoin.
The indicator computes the average price of the chosen cryptocurrency relative to Bitcoin over the viewable portion of the chart. This average acts as a benchmark, indicating the normal value around which the altcoin's price moves.
The primary objective of this indicator is to calculate and plot the divergence, which is the difference between the altcoin's current price relative to Bitcoin and its average value. This divergence can reveal probable overbought or oversold conditions, allowing traders to make better decisions about entry and exit points.
The divergence is represented as a histogram, with bars representing the magnitude of the difference between the current and average prices. Positive values indicate that the altcoin is trading above its average value in comparison to Bitcoin, whereas negative values indicate that it is trading below its average.
The indicator automatically adjusts to the chart's visible range, ensuring that the average price and divergence are always calculated using the most relevant data. This makes the indicator extremely sensitive to changes in the chart view and market conditions.
How to Use:
A significant positive divergence may imply that the cryptocurrency is overbought in comparison to Bitcoin and is headed for a correction. A significant negative divergence, on the other hand, may indicate that the cryptocurrency has been oversold and is cheap in comparison to Bitcoin.
Tracking how an altcoin's price deviates from its average relative to Bitcoin can provide insights about the market's opinion towards that altcoin. Persistent positive divergence may suggest high market confidence, whilst constant negative divergence may imply a lack of interest or eroding fundamentals.
Use divergence data to better time your trades, either by entering when a cryptocurrency is discounted in comparison to its average (negative divergence) or departing when it is overpriced (positive divergence). This allows you to capture value as the price returns to its mean.
Ideal For:
Cryptocurrency Traders who want to understand how altcoins are performing relative to Bitcoin rather than just against fiat currencies.
Long-term Investors looking to ensure their altcoin investments are maintaining or growing their value relative to Bitcoin.
Market Analysts interested in identifying potential reversals or continuations in altcoin prices based on divergence from their average value relative to Bitcoin.
Fear/Greed Zone Reversals [UAlgo]The "Fear/Greed Zone Reversals " indicator is a custom technical analysis tool designed for TradingView, aimed at identifying potential reversal points in the market based on sentiment zones characterized by fear and greed. This indicator utilizes a combination of moving averages, standard deviations, and price action to detect when the market transitions from extreme fear to greed or vice versa. By identifying these critical turning points, traders can gain insights into potential buy or sell opportunities.
🔶 Key Features
Customizable Moving Averages: The indicator allows users to select from various types of moving averages (SMA, EMA, WMA, VWMA, HMA) for both fear and greed zone calculations, enabling flexible adaptation to different trading strategies.
Fear Zone Settings:
Fear Source: Select the price data point (e.g., close, high, low) used for Fear Zone calculations.
Fear Period: This defines the lookback window for calculating the Fear Zone deviation.
Fear Stdev Period: This sets the period used to calculate the standard deviation of the Fear Zone deviation.
Greed Zone Settings:
Greed Source: Select the price data point (e.g., close, high, low) used for Greed Zone calculations.
Greed Period: This defines the lookback window for calculating the Greed Zone deviation.
Greed Stdev Period: This sets the period used to calculate the standard deviation of the Greed Zone deviation.
Alert Conditions: Integrated alert conditions notify traders in real-time when a reversal in the fear or greed zone is detected, allowing for timely decision-making.
🔶 Interpreting Indicator
Greed Zone: A Greed Zone is highlighted when the price deviates significantly above the chosen moving average. This suggests market sentiment might be leaning towards greed, potentially indicating a selling opportunity.
Fear Zone Reversal: A Fear Zone is highlighted when the price deviates significantly below the chosen moving average of the selected price source. This suggests market sentiment might be leaning towards fear, potentially indicating a buying opportunity. When the indicator identifies a reversal from a fear zone, it suggests that the market is transitioning from a period of intense selling pressure to a more neutral or potentially bullish state. This is typically indicated by an upward arrow (▲) on the chart, signaling a potential buy opportunity. The fear zone is characterized by high price volatility and overselling, making it a crucial point for traders to consider entering the market.
Greed Zone Reversal: Conversely, a Greed Zone is highlighted when the price deviates significantly above the chosen moving average. This suggests market sentiment might be leaning towards greed, potentially indicating a selling opportunity. When the indicator detects a reversal from a greed zone, it indicates that the market may be moving from an overbought condition back to a more neutral or bearish state. This is marked by a downward arrow (▼) on the chart, suggesting a potential sell opportunity. The greed zone is often associated with overconfidence and high buying activity, which can precede a market correction.
🔶 Why offer multiple moving average types?
By providing various moving average types (SMA, EMA, WMA, VWMA, HMA) , the indicator offers greater flexibility for traders to tailor the indicator to their specific trading strategies and market preferences. Different moving averages react differently to price data and can produce varying signals.
SMA (Simple Moving Average): Provides an equal weighting to all data points within the specified period.
EMA (Exponential Moving Average): Gives more weight to recent data points, making it more responsive to price changes.
WMA (Weighted Moving Average): Allows for custom weighting of data points, providing more flexibility in the calculation.
VWMA (Volume Weighted Moving Average): Considers both price and volume data, giving more weight to periods with higher trading volume.
HMA (Hull Moving Average): A combination of weighted moving averages designed to reduce lag and provide a smoother curve.
Offering multiple options allows traders to:
Experiment: Traders can try different moving averages to see which one produces the most accurate signals for their specific market.
Adapt to different market conditions: Different market conditions may require different moving average types. For example, a fast-moving market might benefit from a faster moving average like an EMA, while a slower-moving market might be better suited to a slower moving average like an SMA.
Personalize: Traders can choose the moving average that best aligns with their personal trading style and risk tolerance.
In essence, providing a variety of moving average types empowers traders to create a more personalized and effective trading experience.
🔶 Disclaimer
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
[TR] Engulf Patterns by SM
Engulf Pattern by SM
Overview:
The " Engulf Pattern by SM" script is designed to identify bullish and bearish engulfing candlestick patterns on TradingView charts. Engulfing patterns are significant in technical analysis as they often indicate potential reversals in market trends.
Features:
- Bullish Engulfing Pattern Detection: The script identifies bullish engulfing patterns, which occur when a larger bullish candle completely engulfs the body of the previous smaller bearish candle.
- Bearish Engulfing Pattern Detection: Similarly, it detects bearish engulfing patterns, where a larger bearish candle engulfs the body of the preceding smaller bullish candle.
- Body Size Filtering: The script includes a feature to filter patterns based on the size of the candle bodies, allowing for more precise marking of significant patterns.
- Visual Markers: The script plots visual markers on the chart to highlight the detected engulfing patterns, making it easy for traders to spot them.
How It Works:
1. Bullish Engulfing Pattern:
- The script checks for a smaller bearish candle followed by a larger bullish candle.
- The body of the bullish candle must completely cover the body of the bearish candle.
- The size of the bullish candle's body must meet a specified threshold to be considered significant.
2. Bearish Engulfing Pattern:
- The script looks for a smaller bullish candle followed by a larger bearish candle.
- The body of the bearish candle must completely engulf the body of the bullish candle.
- The size of the bearish candle's body must meet a specified threshold to be considered significant.
Usage:
- Add the Script: Apply the " Engulf Pattern by SM" script to your TradingView chart.
- Configure Settings: Customize the script settings to suit your trading strategy, including visual marker styles and body size thresholds.
- Monitor Visual Markers: Keep an eye on the visual markers to identify potential trading opportunities based on engulfing patterns.
Disclaimer:
This script is not intended to be used as a direct entry signal. It should be used as a confluence in your overall trading plan. Always conduct your own analysis and consider multiple factors before making any trading decisions.
Feel free to customize this writeup further to match your specific needs! If you have any other requests or need additional details, just let me know.
MACD with 1D Stochastic Confirmation Reversal StrategyOverview
The MACD with 1D Stochastic Confirmation Reversal Strategy utilizes MACD indicator in conjunction with 1 day timeframe Stochastic indicators to obtain the high probability short-term trend reversal signals. The main idea is to wait until MACD line crosses up it’s signal line, at the same time Stochastic indicator on 1D time frame shall show the uptrend (will be discussed in methodology) and not to be in the oversold territory. Strategy works on time frames from 30 min to 4 hours and opens only long trades.
Unique Features
Dynamic stop-loss system: Instead of fixed stop-loss level strategy utilizes average true range (ATR) multiplied by user given number subtracted from the position entry price as a dynamic stop loss level.
Configurable Trading Periods: Users can tailor the strategy to specific market windows, adapting to different market conditions.
Higher time frame confirmation: Strategy utilizes 1D Stochastic to establish the major trend and confirm the local reversals with the higher probability.
Trailing take profit level: After reaching the trailing profit activation level scrip activate the trailing of long trade using EMA. More information in methodology.
Methodology
The strategy opens long trade when the following price met the conditions:
MACD line of MACD indicator shall cross over the signal line of MACD indicator.
1D time frame Stochastic’s K line shall be above the D line.
1D time frame Stochastic’s K line value shall be below 80 (not overbought)
When long trade is executed, strategy set the stop-loss level at the price ATR multiplied by user-given value below the entry price. This level is recalculated on every next candle close, adjusting to the current market volatility.
At the same time strategy set up the trailing stop validation level. When the price crosses the level equals entry price plus ATR multiplied by user-given value script starts to trail the price with EMA. If price closes below EMA long trade is closed. When the trailing starts, script prints the label “Trailing Activated”.
Strategy settings
In the inputs window user can setup the following strategy settings:
ATR Stop Loss (by default = 3.25, value multiplied by ATR to be subtracted from position entry price to setup stop loss)
ATR Trailing Profit Activation Level (by default = 4.25, value multiplied by ATR to be added to position entry price to setup trailing profit activation level)
Trailing EMA Length (by default = 20, period for EMA, when price reached trailing profit activation level EMA will stop out of position if price closes below it)
User can choose the optimal parameters during backtesting on certain price chart, in our example we use default settings.
Justification of Methodology
This strategy leverages 2 time frames analysis to have the high probability reversal setups on lower time frame in the direction of the 1D time frame trend. That’s why it’s recommended to use this strategy on 30 min – 4 hours time frames.
To have an approximation of 1D time frame trend strategy utilizes classical Stochastic indicator. The Stochastic Indicator is a momentum oscillator that compares a security's closing price to its price range over a specific period. It's used to identify overbought and oversold conditions. The indicator ranges from 0 to 100, with readings above 80 indicating overbought conditions and readings below 20 indicating oversold conditions.
It consists of two lines:
%K: The main line, calculated using the formula (CurrentClose−LowestLow)/(HighestHigh−LowestLow)×100 . Highest and lowest price taken for 14 periods.
%D: A smoothed moving average of %K, often used as a signal line.
Strategy logic assumes that on 1D time frame it’s uptrend in %K line is above the %D line. Moreover, we can consider long trade only in %K line is below 80. It means that in overbought state the long trade will not be opened due to higher probability of pullback or even major trend reversal. If these conditions are met we are going to our working (lower) time frame.
On the chosen time frame, we remind you that for correct work of this strategy you shall use 30min – 4h time frames, MACD line shall cross over it’s signal line. The MACD (Moving Average Convergence Divergence) is a popular momentum and trend-following indicator used in technical analysis. It helps traders identify changes in the strength, direction, momentum, and duration of a trend in a stock's price.
The MACD consists of three components:
MACD Line: This is the difference between a short-term Exponential Moving Average (EMA) and a long-term EMA, typically calculated as: MACD Line=12-period EMA−26-period
Signal Line: This is a 9-period EMA of the MACD Line, which helps to identify buy or sell signals. When the MACD Line crosses above the Signal Line, it can be a bullish signal (suggesting a buy); when it crosses below, it can be a bearish signal (suggesting a sell).
Histogram: The histogram shows the difference between the MACD Line and the Signal Line, visually representing the momentum of the trend. Positive histogram values indicate increasing bullish momentum, while negative values indicate increasing bearish momentum.
In our script we are interested in only MACD and signal lines. When MACD line crosses signal line there is a high chance that short-term trend reversed to the upside. We use this strategy on 45 min time frame.
ATR is used to adjust the strategy risk management to the current market volatility. If volatility is low, we don’t need the large stop loss to understand the there is a high probability that we made a mistake opening the trade. User can setup the settings ATR Stop Loss and ATR Trailing Profit Activation Level to realize his own risk to reward preferences, but the unique feature of a strategy is that after reaching trailing profit activation level strategy is trying to follow the trend until it is likely to be finished instead of using fixed risk management settings. It allows sometimes to be involved in the large movements.
Backtest Results
Operating window: Date range of backtests is 2023.01.01 - 2024.08.01. It is chosen to let the strategy to close all opened positions.
Commission and Slippage: Includes a standard Binance commission of 0.1% and accounts for possible slippage over 5 ticks.
Initial capital: 10000 USDT
Percent of capital used in every trade: 30%
Maximum Single Position Loss: -4.79%
Maximum Single Profit: +20.14%
Net Profit: +2361.33 USDT (+44.72%)
Total Trades: 123 (44.72% win rate)
Profit Factor: 1.623
Maximum Accumulated Loss: 695.80 USDT (-5.48%)
Average Profit per Trade: 19.20 USDT (+0.59%)
Average Trade Duration: 30 hours
These results are obtained with realistic parameters representing trading conditions observed at major exchanges such as Binance and with realistic trading portfolio usage parameters.
How to Use
Add the script to favorites for easy access.
Apply to the desired timeframe between 30 min and 4 hours and chart (optimal performance observed on 45 min BTC/USDT).
Configure settings using the dropdown choice list in the built-in menu.
Set up alerts to automate strategy positions through web hook with the text: {{strategy.order.alert_message}}
Disclaimer:
Educational and informational tool reflecting Skyrex commitment to informed trading. Past performance does not guarantee future results. Test strategies in a simulated environment before live implementation
MACD Divergence StrategyStrategy Description: MACD Divergence with SMA Crossover Strategy
Overview:
The MACD Divergence with SMA Crossover Strategy is designed to identify high-probability trading opportunities based on the interaction of the MACD (Moving Average Convergence Divergence) indicator and key moving averages. This strategy focuses on detecting divergences between the MACD line and the signal line, combined with specific conditions related to the 50-period and 800-period SMAs. It ensures that the MACD and signal lines do not cross the zero line between the current and previous divergence points, thereby filtering out weaker signals and enhancing the accuracy of trade entries.
Key Components:
Simple Moving Averages (SMAs):
50-period SMA: A short-term trend indicator that helps identify the prevailing market direction.
800-period SMA: A long-term trend indicator used to gauge the overall market trend.
MACD Indicator:
MACD Line: Represents the difference between the 12-period EMA and the 26-period EMA.
Signal Line: A 9-period EMA of the MACD line.
Histogram: The difference between the MACD line and the signal line, used to visualize the strength of the signal.
Trade Conditions:
Long Position (Buy):
The 50 SMA is above the 800 SMA, indicating a bullish market trend.
The MACD line and signal line are both below zero, signifying a potential bullish reversal.
A bullish divergence is detected when the MACD line crosses above the signal line below zero, without either line crossing the zero level between the current and previous cross.
Short Position (Sell):
The 50 SMA is below the 800 SMA, indicating a bearish market trend.
The MACD line and signal line are both above zero, signaling a potential bearish reversal.
A bearish divergence is detected when the MACD line crosses below the signal line above zero, without either line crossing the zero level between the current and previous cross.
Signal Plotting:
Long Signals: Displayed when the conditions for a bullish divergence and SMA alignment are met, marked with a green upward arrow on the chart.
Short Signals: Displayed when the conditions for a bearish divergence and SMA alignment are met, marked with a red downward arrow on the chart.
SUPER EMA SMA 16x [GUSLM]█ Author's Note:
After extensively reviewing the EMA and SMA consolidation tools in the TradingView library, I found that none fully met my expectations or those of friends and colleagues. Some tools were too specific or not configurable enough, with varying sensitivities. Others lacked options or produced many invalid and incorrect ranges when viewed across different timeframes. Some were fixed in their options, others did not allow visualization on different timeframes or lacked crossover signals and customization options for turning each option on or off. Additionally, there was no custom function to view one or more configurable moving averages from different timeframes in the current view, serving as a time-saving shortcut to avoid switching between timeframes to record values. Consequently, I decided to develop my own tool. I hope that you, fellow traders, find it valuable and enjoy using it.
█ Description:
The GUSLM SUPER EMA SMA 16x allows traders to configure and visualize multiple labeled trendlines for various periods on a single chart, all at once. highlighting how prices move over time. It enables simultaneous display of trendlines for different timeframes, with customizable colors and thicknesses. Designed for traders who use moving averages in their strategies, it simplifies the analysis of key moving averages like the 200-period, 100 50 12 26 and 20-period etc, offering a clear, configurable tool to try to identify reactions, trends, supports, and resistances.. This indicator employs algorithms to detect and show signals where price movements are confined, all that can be usefull for helping traders spot potential breakout zones and make informed trading decisions.
█ Key Features:
► Customizable Timeframes: Display in one, multiple moving averages and exponential moving averages across various timeframes (weekly, daily, hourly, and 4-hour) to tailor analysis to your trading strategy.
► Adjustable Display Settings: Choose which moving averages to display and customize their visual characteristics, including color and line width, to match your chart preferences.
► Dynamic Alerts: Activate signals for different timeframes with customizable visual cues, including background color changes and shape indicators to highlight key trading signals.
► Clear Visual Indicators: Enhance chart readability with distinct colors and shapes for different types of moving averages and also crossover events, providing immediate visual feedback for trading decisions.
█ User-Defined Inputs:
► Moving Averages Display Options:
Weekly: MA 200, EMA 200, EMA 100, EMA 50, EMA 20, EMA 12, EMA 26
Daily: MA 200, EMA 200, EMA 100, EMA 50, EMA 20, EMA 12, EMA 26
Hourly: MA 200, EMA 200, EMA 100, EMA 50, EMA 20, EMA 12, EMA 26
4-Hour: MA 200, EMA 200, EMA 100, EMA 50, EMA 20, EMA 12, EMA 26
► Line Width Adjustments:
Hourly, Daily, Weekly, 4-Hour
► Color Options for each range and or individually
► Options for type and Signal; Weekly: On/Off Daily: On/Off Hourly: On/Off 4-Hour: On/Off
► Background color change and arrow shapes for crossover and crossunder signals
█ How It Works:
► Range Detection: The indicator scans the charts in different timeframes of the same asset, based on options, and plot them on the actual view, even if they are from another timeframe. And label it based on configuration, telling wich one is from where as H 4h W etc, and its lenght and range. also for collors widths etc. It calculates the average or exponential average price from other timeframes, and plot it in the current view.
► Visualization: Validated ranges and lines are highlighted on the chart with colored optimized lines, providing a clear visual cue of potential zones.
█ Usage Examples:
► Example 1:
You can configure the ranges you want and timeframes you want and see how it interact with the prices. and can expect eventual future reactions.
█ Practical Applications:
► Identify and Confirm Breakout Zones: Use the lines to identify potential breakout zones and limits, Ex: if is there a key level above your breakout, you may expect a reaction, maybe changing your plan to make an entrance above the initial resistance, you can see eventual resistance and support zones. helping to anticipate significant price movements.
► Identify Key Price Levels: The tool helps in pointing key price levels where there is a high probability of significant price reactions, providing crucial insights for trading strategies.
► Enhance Technical Analysis: Integrate the SUPER EMA SMA 16x into your existing technical analysis toolkits to improve the accuracy of your trading decisions.
█ Conclusion:
The SUPER EMA SMA 16x is a powerful tool, for traders looking to identify periods of price consolidation, support and resistance levels and potential confirmation for breakout zones. Serving as a time-saving shortcut with its customizable settings and algorithms, it provides a reliable and visual method to enhance your trading strategy. Whether you're a beginner or an experienced trader, this indicator can add significant value to your technical analysis.
█ Cautionary Note:
While the SUPER EMA SMA 16x is a powerful tool to see many relevant SMAS and EMAS and signals, it's important to combine it with other indicators and analysis methods for comprehensive trading decisions. Always consider market context and external factors when interpreting detected consolidation ranges.
SDMA (Slope Degree Moving Average)This Pine Script indicator is designed to provide traders with a comprehensive view of market conditions by combining moving averages, VWAP (Volume Weighted Average Price), and custom distance signals. It offers a clean and professional table interface to monitor trend strength, distance from moving averages, and potential trade signals.
Key Features
Moving Averages and VWAP:
The indicator calculates five moving averages (MAs) of user-defined lengths, providing a multi-faceted view of market trends.
VWAP is included to help identify overall market sentiment. VWAP is commonly used by institutional traders to measure the average price at which a security has traded throughout the day, taking into account both price and volume.
Slope Degree Calculation:
The indicator calculates the slope degree of each moving average. The slope is a measure of the moving average's angle, indicating the strength and direction of the trend.
Steeper slopes (positive or negative) indicate stronger trends, while flatter slopes suggest weaker or consolidating trends.
Trend Strength Analysis:
For each moving average, the indicator provides a trend strength rating based on the calculated slope. It categorizes trends as "Strong Bullish," "Moderate Bullish," "Flat," "Moderate Bearish," or "Strong Bearish."
The VWAP trend strength is shown as "Bullish" if the current price is above the VWAP and "Bearish" if below.
Distance Signal (DS):
The indicator includes a user-defined threshold for distance signals. This threshold determines whether the price is "Near" the moving average or significantly above/below it, indicated by "DS" (Distance Signal).
Traders can adjust the threshold to suit their trading strategy. For instance, a higher threshold might be used in volatile markets to identify meaningful deviations from the moving averages.
Table Display:
The indicator displays all relevant data in a clean, minimalistic table format, showing the moving average lengths, slope degrees, trend strengths, minutes since the last reversal, distance from the moving average, and distance signals.
The table also includes a row for VWAP, making it easy to compare the current price with this key level.
Trade Signal:
At the bottom of the table, a summary "Trade Signal" is displayed, showing either "Bullish Signal" or "Bearish Signal" based on the overall trend indications from the moving averages.
How to Use This Indicator
Identifying Trends: Use the slope degree and trend strength indicators to determine the direction and strength of the trend. Steeper slopes and stronger trend ratings suggest stronger trends, ideal for trend-following strategies.
VWAP Analysis: The VWAP row helps to identify whether the market is generally bullish or bearish. A price above VWAP typically suggests buying interest, while a price below suggests selling pressure.
Distance Signals: The DS column alerts traders when the price is significantly away from a moving average, which could signal potential overbought or oversold conditions, useful for mean reversion strategies.
Trade Signal: The final "Trade Signal" offers a quick summary of the overall market condition, combining the insights from all moving averages.
Customization
Moving Averages: Adjust the lengths of the five moving averages to match your trading strategy or the specific asset you're analyzing.
Distance Threshold: Set the distance threshold to control the sensitivity of the DS signals. A lower threshold will generate more signals, while a higher threshold will highlight only significant deviations.
This indicator is a versatile tool that can be used in various trading strategies, whether you're a trend follower, mean reversion trader, or someone looking to identify key levels like VWAP. Its clear, table-based interface ensures that all the critical data is available at a glance, allowing for quick decision-making in fast-moving markets.