Combined IndicatorSummary
This custom Pine Script combines three main indicators into one, each with its own functionalities and visual cues. It provides a comprehensive approach to trend analysis by integrating short-term, medium-term, and long-term indicators. Each part of the indicator can be toggled on or off independently to suit the trader’s needs.
Part 1: EMA 14 and EMA 200
Purpose: This part of the indicator is designed to identify short-term and long-term trends using Exponential Moving Averages (EMA). It helps traders spot potential entry and exit points based on the relationship between short-term and long-term moving averages.
Visuals:
• EMA 14: Plotted in blue (#2962ff)
• EMA 200: Plotted in red (#f23645)
Signals:
• Long Signal: Generated when EMA 14 crosses above EMA 200, indicating a potential upward trend.
• Short Signal: Generated when EMA 14 crosses below EMA 200, indicating a potential downward trend.
Usage: Toggle this part on or off using the checkbox input to focus on short-term vs. long-term trends.
Part 2: EMA 9 and SMA 20
Purpose: This part combines Exponential and Simple Moving Averages to provide a medium-term trend analysis. It helps smooth out price data and identify potential trend reversals and continuation patterns.
Visuals:
• EMA 9: Plotted in green
• SMA 20: Plotted in dark red
Usage: Toggle this part on or off using the checkbox input to focus on medium-term trends and price smoothing.
Part 3: Golden Cross and Death Cross
Purpose: This part identifies long-term bullish and bearish market conditions using the 50-day and 200-day Simple Moving Averages (SMA). It highlights major trend changes that can inform long-term investment decisions.
Visuals:
• 50-day SMA: Plotted in gold (#ffe600)
• 200-day SMA: Plotted in black
Signals:
• Golden Cross: Generated when the 50-day SMA crosses above the 200-day SMA, indicating a potential long-term upward trend.
• Death Cross: Generated when the 50-day SMA crosses below the 200-day SMA, indicating a potential long-term downward trend.
Usage: Toggle this part on or off using the checkbox input to focus on long-term trend changes.
How to Use
1. Enable/Disable Indicators: Use the checkboxes provided in the input settings to enable or disable each part of the indicator according to your analysis needs.
2. Interpret Signals: Look for crossover events to determine potential entry and exit points based on the relationship between the moving averages.
3. Visual Confirmation: Use the color-coded lines and shape markers on the chart to visually confirm signals and trends.
4. Customize Settings: Adjust the lengths of the EMAs and SMAs in the input settings to suit your trading strategy and the specific asset you are analyzing.
Practical Application
• Short-Term Trading: Use the EMA 14 and EMA 200 signals to identify quick trend changes.
• Medium-Term Trading: Use the EMA 9 and SMA 20 to capture medium-term trends and reversals.
• Long-Term Investing: Monitor the Golden Cross and Death Cross signals to make decisions based on long-term trend changes.
Example of Unique Features
• Integrated Toggle System: Allows users to enable or disable specific parts of the indicator to customize their analysis.
• Multi-Tier Trend Analysis: Combines short-term, medium-term, and long-term indicators to provide a comprehensive view of the market.
移动平均线
Guppy Wave [UkutaLabs]█ OVERVIEW
The Guppy Wave Indicator is a collection of Moving Averages that provide insight on current market strength. This is done by plotting a series of 12 Moving Averages and analysing where each one is positioned relative to the others.
In doing this, this script is able to identify short-term moves and give an idea of the current strength and direction of the market.
The aim of this script is to simplify the trading experience of users by automatically displaying a series of useful Moving Averages to provide insight into short-term market strength.
█ USAGE
The Guppy Wave is generated using a series of 12 total Moving Averages composed of 6 Small-Period Moving Averages and 6 Large Period Moving Averages. By measuring the position of each moving average relative to the others, this script provides unique insight into the current strength of the market.
Rather than simply plotting 12 Moving Averages, a color gradient is instead drawn between the Moving Averages to make it easier to visualise the distribution of the Guppy Wave. The color of this gradient changes depending on whether the Small-Period Averages are above or below the Large-Period Averages, allowing traders to see current short-term market strength at a glance.
When the gradient fans out, this indicates a rapid short-term move. When the gradient is thin, this indicates that there is no dominant power in the market.
█ SETTINGS
• Moving Average Type: Determines the type of Moving Average that get plotted (EMA, SMA, WMA, VWMA, HMA, RMA)
• Moving Average Source: Determines the source price used to calculate Moving Averages (open, high, low, close, hl2, hlc3, ohlc4, hlcc4)
• Bearish Color: Determines the color of the gradient when Small-Period MAs are above Large-Period MAs.
• Bullish Color: Determines the color of the gradient when Small-Period MAs are below Large-Period MAs.
Fibonacci Moving Averages [UkutaLabs]█ OVERVIEW
The Fibonacci Moving Averages are a toolkit which allows the user to configure different types of Moving Averages based on key Fibonacci numbers.
Moving Averages are used to visualise short-term and long-term support and resistance which can be used as a signal where price might continue or retrace. Moving Averages serve as a simple yet powerful tool that can help traders in their decision-making and help foster a sense of where the price might be moving next.
The aim of this script is to simplify the trading experience of users by automatically displaying a series of useful Moving Averages, allowing the user to easily configure multiple at once depending on their trading style.
█ USAGE
This script will automatically plot 5 Moving Averages, each with a period of a key Fibonacci Level (5, 8, 13, 21 and 34).
Both the Source and Type of the Moving Averages can be configured by the user (see all options below under SETTINGS), making this a versatile trading tool that can provide value in a wide variety of trading styles.
█ SETTINGS
Configuration
• MA Source: Determines the source of the Moving Averages (open, high, low, close, hl2, hlc3, ohlc4, hlcc4)
• MA Source: Determines the type of the Moving Averages (SMA, EMA, VWMA, WMA, HMA, RMA)
Colors
• 5: Determines the color of the 5 period Moving Average
• 8: Determines the color of the 8 period Moving Average
• 13: Determines the color of the 13 period Moving Average
• 21: Determines the color of the 21 period Moving Average
• 34: Determines the color of the 34 period Moving Average
High Probability OS/OB {DCAquant}DCAquant - High Probability OS/OB
The DCAquant - High Probability OS/OB Pine Script is a sophisticated indicator that provides insights into overbought (OB) and oversold (OS) conditions based on Hull Moving Averages (HMA) and Volume Weighted Moving Averages (VWMA). Here's a detailed breakdown of its functionality:
-------------------------------------------------------------------------------------
THIS INDICATOR IS ONLY WRITTEN FOR BTC, ETH and TOTAL!!!!!!!!!!!!!
-------------------------------------------------------------------------------------
Functionality
The script identifies high-probability OB and OS zones by combining multiple moving averages (MAs).
1. Volume Weighted Moving Average (VWMA)
The VWMA function computes the VWMA over a specified length, incorporating both the price and volume.
2. Hull Moving Average with Volume Weight (HMA-VW)
The hullma_vw function calculates the HMA using the VWMA. This involves:
Computing VWMAs over the full length and half-length.
Using these VWMAs to derive the HMA-VW through a weighted approach.
5. Standard Hull Moving Average (HMA)
The hull function computes the HMA using the standard weighted moving average (WMA).
4. Smoothed HMA-VW
This is an Exponential Moving Average (EMA) of the HMA-VW to smooth out short-term fluctuations.
How this works
First, the distance between the 2 MA's is calculated.
The distance is scored against the average price of the last 100 days.
By getting this score we can calculate extremes
The Extremes are categorized into 4 levels. The transparency of the background color distinguishes these 4 levels.
Only the MOST extremes are plotted ON THE CHART. Within the indicator, all 4 levels are plotted.
Usage
Extreme Buy zone: Consider entering the market when the indicator shows deep negative values (oversold). These are highlighted with a cyan background, with increasing opacity indicating stronger buy signals (Level 4 Zones).
Extreme Sell Zone: Consider exiting the market when the indicator shows high positive values (overbought). These are highlighted with a magenta background, with increasing opacity indicating stronger sell signals (Level 4 Zones).
Disclaimer
This indicator should not be used in isolation. It is recommended to use this as part of a systematic approach, incorporating other tools and analysis methods to confirm signals and make well-informed trading decisions.
Supertrend + BB + Consecutive Candles + QQE + EMA [Pineify]Overview
This indicator, developed by Pineify, is a comprehensive tool designed to assist traders in making informed decisions by combining multiple technical analysis methods. It integrates Supertrend, Bollinger Bands (BB), Consecutive Candles, Quantitative Qualitative Estimation (QQE), and Exponential Moving Averages (EMA) into a single, cohesive script. This multi-faceted approach allows traders to analyze market trends, volatility, and potential buy/sell signals with greater accuracy.
Key Features
1. Supertrend: Utilizes the Supertrend indicator to identify the prevailing market trend. It provides clear buy and sell signals based on the direction of the trend.
2. Bollinger Bands (BB): Measures market volatility and identifies overbought or oversold conditions. The script calculates the middle, upper, and lower bands, along with the Bollinger Band Width (BBW) and Bollinger Band %B (BBR).
3. Consecutive Candles: Detects sequences of consecutive bullish or bearish candles, providing signals when a specified number of consecutive candles are detected.
4. Quantitative Qualitative Estimation (QQE): Combines the Relative Strength Index (RSI) with a smoothing factor to generate buy and sell signals based on the QQE methodology.
5. Exponential Moving Averages (EMA): Includes both fast and slow EMAs to identify potential crossovers, which are used as buy and sell signals.
How It Works
- Supertrend: The Supertrend indicator is calculated using a factor and ATR length. It plots the trend direction and generates buy/sell signals when the trend changes.
- Bollinger Bands: The BB indicator calculates the middle band as a Simple Moving Average (SMA) of the closing prices. The upper and lower bands are derived by adding and subtracting a multiple of the standard deviation from the middle band.
- Consecutive Candles: This feature counts the number of consecutive candles that close higher or lower than the previous candle. When the count reaches a specified threshold, it generates a buy or sell signal.
- QQE: The QQE indicator smooths the RSI values and calculates the QQE Fast and QQE Slow lines. Buy and sell signals are generated based on the crossover of these lines.
- EMA: The script calculates fast and slow EMAs and generates buy/sell signals based on their crossovers.
How to Use
1. Inputs: Customize the indicator settings through the input parameters:
- Supertrend Factor and ATR Length
- BB Length
- Consecutive Candles Counting
- QQE RSI Length
- Fast and Slow EMA Lengths
- Enable/Disable Alerts for various signals
2. Alerts: Set up alerts for Supertrend, Consecutive Candles, and EMA crossovers. Alerts can be enabled or disabled based on user preference.
3. Visualization: The indicator plots the Supertrend, Bollinger Bands, and EMA lines on the chart. It also marks buy and sell signals with arrows and labels for easy identification.
Concepts Underlying Calculations
- Supertrend: Based on the Average True Range (ATR) to determine the trend direction and potential reversal points.
- Bollinger Bands: Utilizes standard deviation to measure market volatility and identify overbought/oversold conditions.
- Consecutive Candles: A method to detect momentum by counting consecutive bullish or bearish candles.
- QQE: Enhances the traditional RSI by smoothing it and using a dynamic threshold to generate signals.
- EMA: A widely used moving average that gives more weight to recent prices, making it responsive to market changes.
This indicator is a powerful tool for traders looking to combine multiple technical analysis methods into a single, easy-to-use script. By integrating these diverse techniques, it provides a comprehensive view of market conditions and potential trading opportunities.
stockexploderits just for identifying moving average crossover 20 and 50 to identify trend in stocks
easily without taking much time
Death Cross and Golden Cross HighlighterOverview
The script is designed to visually indicate the occurrence of Death Cross and Golden Cross events on a TradingView chart. It achieves this by calculating two moving averages (short-term and long-term) and plotting them on the chart. It then detects when these moving averages cross and highlights these points with labels and background colors.
Inputs
The script begins by defining input parameters:
- Short Moving Average Length: This is set to 50 by default, representing the short-term moving average period.
- Long Moving Average Length: This is set to 200 by default, representing the long-term moving average period.
These inputs allow users to customize the lengths of the moving averages according to their trading strategy.
Moving Averages Calculation
The script calculates two simple moving averages (SMAs) based on the closing prices:
- Short Moving Average (shortMA): Calculated over the short-term period specified by the user.
- Long Moving Average (longMA): Calculated over the long-term period specified by the user.
Plotting the Moving Averages
The moving averages are then plotted on the chart:
- The short-term moving average is plotted in blue.
- The long-term moving average is plotted in red.
These lines help users visually track the trends and potential crossover points.
Identifying Crossovers
The script identifies two key events:
- Golden Cross: Occurs when the short-term moving average crosses above the long-term moving average. This is typically considered a bullish signal, indicating a potential upward trend.
- Death Cross: Occurs when the short-term moving average crosses below the long-term moving average. This is typically considered a bearish signal, indicating a potential downward trend.
Highlighting Crossovers
To make the crossover events more noticeable, the script adds visual cues:
- Golden Cross: When a Golden Cross is detected, a green label with an upward arrow is plotted below the bar where the crossover occurs.
- Death Cross: When a Death Cross is detected, a red label with a downward arrow is plotted above the bar where the crossover occurs.
Background Coloring
Additionally, the script highlights the background of the chart:
- When a Golden Cross occurs, the background color is changed to a translucent green.
- When a Death Cross occurs, the background color is changed to a translucent red.
These background colors help emphasize the crossover events, making them easier to spot.
Usage
To use this script, a user would:
1. Copy the script and paste it into the Pine Script editor on TradingView.
2. Save the script and apply it to their chart.
By doing so, the user will see the moving averages plotted, and any Golden Cross or Death Cross events will be highlighted with labels and background colors. This visual aid helps traders quickly identify significant crossover events, which can inform their trading decisions.
Volume-Enhanced Momentum Moving Average (VEMMA)Volume-Enhanced Momentum Moving Average (VEMMA)
Overview:
The Volume-Enhanced Momentum Moving Average (VEMMA) helps you spot market trends by combining momentum and volume as a moving average. This unique moving average adjusts itself based on the strength and activity of the market, giving you a clearer picture of what’s happening.
How It Works:
1. Key Settings (all of these are adjustable in the settings panel of the indicator):
◦ Base Length: Looks back over the last 50 days by default.
◦ Momentum Length: Uses the past 14 days to measure market strength.
◦ Volume Length: Uses the past 30 days to average trading volume.
◦ High/Low Thresholds: Considers RSI values above 70 as high momentum and below 30 as low momentum.
2. Momentum and Volume:
◦ Momentum: Calculated using the Relative Strength Index (RSI) to see if the market is gaining or losing strength.
◦ Volume: Average trading volume is calculated over the last 30 days to gauge trading activity.
3. VEMMA Calculation:
◦ For each of the past 50 days:
▪ Check Momentum: If RSI > 70, it’s high momentum; if RSI < 30, it’s low.
▪ Weight by Volume: High momentum days with high volume get more weight; low momentum days get less.
▪ Combine: Multiply the closing price by this weight and sum it up.
◦ Average: Divide the total by 50 to get the VEMMA value.
4. Visuals:
◦ Lines: Two lines, VEMMA1 (blue) and VEMMA2 (orange), show the adjusted moving averages.
◦ Colours: Background colors help you quickly spot high (green) and low (red) momentum periods.
How to Use:
• Spot Trends: Rising VEMMA lines suggest an uptrend; falling lines suggest a downtrend.
• Confirm Signals: When both VEMMA1 and VEMMA2 move together, it indicates a strong trend.
• Identify Reversals: Watch for background color changes from green to red or vice versa to catch potential trend reversals.
If the market has been strong and active, the VEMMA line will rise more sharply. If the market is weak and quiet, the line will be smoother.
Benefits:
• Integrated View: Combines market strength and trading activity for a fuller picture.
• Responsive: Adapts to significant market changes, highlighting key movements.
• Easy to Read: Clear visuals with color-coded backgrounds make interpretation simple.
Remember, just like any other indicator, this is not supposed to be used alone. Use it as part of your greater trading strategy. I do however believe it works exceptionally well for finding longer term trends early. The default VEMMA settings work very well as replacement for the EMA 200. Try it and see how it goes. Play around with the settings. Feedback appreciated.
[EVI]EMA with Volume LevelsThe " EMA with Volume Levels" script calculates the Exponential Moving Average (EMA) of the closing prices over a specified period and dynamically changes the color of the EMA based on volume levels. This indicator helps traders easily identify the current volume conditions. As the volume increases or decreases, the color of the EMA changes, providing a visual cue that can assist in making better trading decisions.
Features
This script offers the following features:
EMA Calculation: Calculates the Exponential Moving Average of the closing prices over the user-defined period (default is 360).
Volume Threshold Calculation: Computes the Simple Moving Average (SMA) and standard deviation of the volume over the user-defined period (default is 500), classifying the volume levels into extreme, high, medium, and low.
Dynamic EMA Color: Changes the color of the EMA dynamically based on volume levels, displaying it visually on the chart.
Chart Interpretation
EMA Color and Volume:
If the EMA line is red, it indicates very high volume.
If the EMA line is green, it indicates high volume.
If the EMA line is light green, it indicates medium volume.
If the EMA line is gray, it indicates low volume.
If the EMA line is dark gray, it indicates very low volume.
Cross Analysis:
When the EMA line and the candles are about to cross, and the volume is high (causing the EMA line to turn red), the candles are more likely to break through the 360-day EMA line.
Conversely, if the volume is low and the EMA line turns dark, the EMA line will likely act as a resistance or support level, increasing the likelihood of a bounce.
Additional Indicator:
Using the 20-day moving average along with this script can be beneficial. Combining these two moving averages can provide a more comprehensive view of market volatility.
Notes
Clean Chart: Ensure your chart is clean when using this script. Avoid including other scripts or unnecessary elements.
Additional Explanation: If further explanation is needed on how to use or understand the script, you can use drawings or images on the chart to provide additional context.
Bayesian Trend Indicator [ChartPrime]Bayesian Trend Indicator
Overview:
In probability theory and statistics, Bayes' theorem (alternatively Bayes' law or Bayes' rule), named after Thomas Bayes, describes the probability of an event, based on prior knowledge of conditions that might be related to the event.
The "Bayesian Trend Indicator" is a sophisticated technical analysis tool designed to assess the direction of price trends in financial markets. It combines the principles of Bayesian probability theory with moving average analysis to provide traders with a comprehensive understanding of market sentiment and potential trend reversals.
At its core, the indicator utilizes multiple moving averages, including the Exponential Moving Average (EMA), Simple Moving Average (SMA), Double Exponential Moving Average (DEMA), and Volume Weighted Moving Average (VWMA) . These moving averages are calculated based on user-defined parameters such as length and gap length, allowing traders to customize the indicator to suit their trading strategies and preferences.
The indicator begins by calculating the trend for both fast and slow moving averages using a Smoothed Gradient Signal Function. This function assigns a numerical value to each data point based on its relationship with historical data, indicating the strength and direction of the trend.
// Smoothed Gradient Signal Function
sig(float src, gap)=>
ta.ema(source >= src ? 1 :
source >= src ? 0.9 :
source >= src ? 0.8 :
source >= src ? 0.7 :
source >= src ? 0.6 :
source >= src ? 0.5 :
source >= src ? 0.4 :
source >= src ? 0.3 :
source >= src ? 0.2 :
source >= src ? 0.1 :
0, 4)
Next, the indicator calculates prior probabilities using the trend information from the slow moving averages and likelihood probabilities using the trend information from the fast moving averages . These probabilities represent the likelihood of an uptrend or downtrend based on historical data.
// Define prior probabilities using moving averages
prior_up = (ema_trend + sma_trend + dema_trend + vwma_trend) / 4
prior_down = 1 - prior_up
// Define likelihoods using faster moving averages
likelihood_up = (ema_trend_fast + sma_trend_fast + dema_trend_fast + vwma_trend_fast) / 4
likelihood_down = 1 - likelihood_up
Using Bayes' theorem , the indicator then combines the prior and likelihood probabilities to calculate posterior probabilities, which reflect the updated probability of an uptrend or downtrend given the current market conditions. These posterior probabilities serve as a key signal for traders, informing them about the prevailing market sentiment and potential trend reversals.
// Calculate posterior probabilities using Bayes' theorem
posterior_up = prior_up * likelihood_up
/
(prior_up * likelihood_up + prior_down * likelihood_down)
Key Features:
◆ The trend direction:
To visually represent the trend direction , the indicator colors the bars on the chart based on the posterior probabilities. Bars are colored green to indicate an uptrend when the posterior probability is greater than 0.5 (>50%), while bars are colored red to indicate a downtrend when the posterior probability is less than 0.5 (<50%).
◆ Dashboard on the chart
Additionally, the indicator displays a dashboard on the chart , providing traders with detailed information about the probability of an uptrend , as well as the trends for each type of moving average. This dashboard serves as a valuable reference for traders to monitor trend strength and make informed trading decisions.
◆ Probability labels and signals:
Furthermore, the indicator includes probability labels and signals , which are displayed near the corresponding bars on the chart. These labels indicate the posterior probability of a trend, while small diamonds above or below bars indicate crossover or crossunder events when the posterior probability crosses the 0.5 threshold (50%).
The posterior probability of a trend
Crossover or Crossunder events
◆ User Inputs
Source:
Description: Defines the price source for the indicator's calculations. Users can select between different price values like close, open, high, low, etc.
MA's Length:
Description: Sets the length for the moving averages used in the trend calculations. A larger length will smooth out the moving averages, making the indicator less sensitive to short-term fluctuations.
Gap Length Between Fast and Slow MA's:
Description: Determines the difference in lengths between the slow and fast moving averages. A higher gap length will increase the difference, potentially identifying stronger trend signals.
Gap Signals:
Description: Defines the gap used for the smoothed gradient signal function. This parameter affects the sensitivity of the trend signals by setting the number of bars used in the signal calculations.
In summary, the "Bayesian Trend Indicator" is a powerful tool that leverages Bayesian probability theory and moving average analysis to help traders identify trend direction, assess market sentiment, and make informed trading decisions in various financial markets.
Iron Cortex: Volume AnalysisDescription:
This Volume Analysis indicator is designed to identify potential buying and selling pressures in the market by analysing volume and price changes in conjunction with dual Exponential Moving Averages (EMAs).
Signal Identification:
Buying Pressure: This signal is identified when:
i) Volume is rising and the price is increasing.
ii) The current volume is above both the fast and slow EMAs of the volume.
iii) The fast EMA is above the slow EMA.
Selling Pressure: This signal is identified when:
i) Volume is rising and the price is decreasing.
ii) The current volume is above both the fast and slow EMAs of the volume.
iii) The fast EMA is above the slow EMA.
Interpretation:
When the volume bars change to the specified colours, it indicates potential buying or selling pressure based on the underlying conditions. Teal is buying pressure, red is selling pressure.
Use this information in conjunction with other technical analysis tools to make informed trading decisions. As with all indicators, expect some false signals in choppy markets.
This indicator is useful for traders who want to incorporate volume analysis with price trends and EMA crossovers to identify strong market movements. Adjust the settings to fit your trading strategy and enhance your market analysis.
Advanced Fractal and Hurst IndicatorAdvanced Fractal and Hurst Indicator (AFHI)
Description:
The Advanced Fractal and Hurst Indicator (AFHI) is a custom technical analysis tool designed to identify market trends and potential reversals by leveraging the concepts of Fractal Dimension and the Hurst Exponent . These advanced mathematical concepts provide insights into the complexity and persistence of price movements, making this indicator a powerful addition to any trader's toolkit.
How It Works:
Fractal Dimension (FD) :
The Fractal Dimension measures the complexity of price movements. A higher Fractal Dimension indicates a more complex, choppy market, while a lower value suggests smoother trends.
The FD is calculated using the log difference of price movements over a specified length.
Hurst Exponent (HE) :
The Hurst Exponent indicates the tendency of a time series to either regress to the mean or cluster in a direction. Values below 0.5 indicate a tendency to revert to the mean (mean-reverting), while values above 0.5 suggest a trending market.
The HE is calculated using the rescaled range method, comparing the range of price movements to the standard deviation.
Composite Indicator :
The Composite Indicator combines the smoothed Fractal Dimension and Hurst Exponent to provide a single value indicating market conditions. This is done by normalizing the FD and HE values and combining them into one metric.
A positive Composite Indicator suggests an uptrend, while a negative value indicates a downtrend.
Smoothing :
Both FD and HE values are smoothed using a simple moving average to reduce noise and provide clearer signals.
Trend Confirmation :
A 50-period moving average (MA) is used to confirm the trend direction. The price being above the MA indicates an uptrend, while below the MA indicates a downtrend.
Background Shading :
The indicator pane is shaded green during uptrend conditions (positive Composite Indicator and price above MA) and red during downtrend conditions (negative Composite Indicator and price below MA).
How Traders Can Use It:
Identifying Trends :
Traders can use the AFHI to identify current market trends. The background shading in the indicator pane provides a visual cue for trend direction, with green indicating an uptrend and red indicating a downtrend.
Trend Confirmation :
The Composite Indicator line, plotted in purple, helps confirm the trend. Positive values suggest a strong uptrend, while negative values indicate a strong downtrend.
Entry and Exit Signals :
Traders can use the transitions of the Composite Indicator and the background shading to time their entry and exit points. For instance, a shift from red to green shading suggests a potential buy opportunity, while a shift from green to red suggests a potential sell opportunity.
Alerts :
The script includes alert conditions that can notify traders when the Composite Indicator signals a new trend direction. Alerts can be set up for both uptrends and downtrends, helping traders stay informed of key market changes.
Strategy Development :
By integrating AFHI into their trading strategies, traders can develop more robust systems that account for market complexity and persistence. The indicator can be used alongside other technical tools to enhance decision-making and improve trade accuracy.
Market Slayer (i)Market Slayer (i)
This script is designed to provide insights into market trends and generate trading signals based on a combination of moving average crossovers and trend confirmation. It aims to assist traders in identifying potential entry and exit points in the market.
Input Parameters:
Trend Timeframe: Allows the user to specify the timeframe for trend analysis. Default is set to W (weekly).
Trend Value: Defines the sensitivity of the trend detection algorithm.
Short SMA Length: Length of the short-term Simple Moving Average (SMA).
Long SMA Length: Length of the long-term Simple Moving Average (SMA).
Bullish Color: Color representation for bullish signals.
Bearish Color: Color representation for bearish signals.
Take Profit Color: Color representation for take profit events.
Simple Moving Average (SMA) Logic:
Two SMAs are calculated based on the provided lengths: one short-term and one long-term.
Short-term SMA values are plotted with a semi-transparent bearish color.
Long-term SMA values are plotted with a semi-transparent bullish color.
Trend Logic:
The script employs a modified SSL (Schaff Trend Cycle) indicator to determine the trend direction.
Trend direction is determined based on whether the closing price is above or below the SSL (Schaff Trend Cycle) indicator.
Trend changes are detected by comparing the current trend direction with the previous two trend directions.
Signal Logic:
Buy signals are generated when the short-term SMA crosses above the long-term SMA and the trend is bullish.
Sell signals are generated when the short-term SMA crosses below the long-term SMA and the trend is bearish.
Signals are confirmed only if there is no open position.
Take Profit Logic:
Take profit events are triggered when the trend changes direction after a position has been opened.
Take profit events are confirmed only if there is an open position.
Alerts:
Various alerts are included to notify traders of different events such as signal generation, take profit opportunities, and trend changes.
Usage of lookahead:
Within the script, the lookahead argument is utilized in the request.security() function to control how much historical data should be loaded for trend analysis.
Setting lookahead=barmerge.lookahead_on enables the script to consider future price movements when calculating trend conditions.
This functionality can enhance the accuracy of trend detection by incorporating future bars into the analysis.
Usage:
Traders can use this script on the TradingView platform to visualize market trends, identify potential entry and exit points, and receive timely alerts for trading opportunities.
Simplified MA Crossover indicatorThis is my first script, it is really simple logic and you probably saw something similar before. Is a crossover indicator between 2 Moving Average, one fast MA and the second slow MA.
Inputs you can adjust:
- 8 different source of MA's
- lenght of the MA's
- 7 different types of MA's ("EMA", "SMA", "RMA", "WMA", "DEMA", "TEMA", "HMA")
- 3 smoothing level of the fast MA
- plotting fast MA into the chart
- plotting crossover triangle shapes
I really enjoed the creation of this simple concept indicator, maybe not the fastest because of his nature but I liked work on it. I am sure is a good base to improve, study and try new idea.
Investify360 ICT IndicatorThe Investify360 ICT Indicator is designed to follow the ICT (Inner Circle Trader) strategy. It provides essential buy and sell signals based on price movements relative to a simple moving average (SMA). The indicator is built to be beginner-friendly with clear labels and color-coded signals.
Key Features
Simple Moving Average (SMA):
The script calculates a simple moving average based on a user-defined period (length), defaulting to 14 periods. This moving average helps smooth out price data and identify trends.
Buy and Sell Signals:
Buy Signal: A buy signal is generated when the current price (src, defaulting to the close price) crosses above the SMA. This event is typically interpreted as a potential upward trend.
Sell Signal: A sell signal is generated when the current price crosses below the SMA. This event is often interpreted as a potential downward trend.
These signals are visually represented on the chart with up and down labels respectively.
Labels and Colors:
Buy Signal: Displayed with an up label (BUY) in green color.
Sell Signal: Displayed with a down label (SELL) in red color.
The colors for these signals can be customized through the script inputs (buyColor and sellColor).
Beginner-Friendly Labels:
To assist beginners, the script includes a label at the start of the chart indicating the position of the moving average line (MA Line). This label is shown on the first bar to clarify the purpose of the plotted line.
Plotting the Moving Average:
The SMA is plotted on the chart with a yellow line, making it easily distinguishable. The moving average line helps traders visualize the trend direction.
Periodic Moving AveragesIndicator plots three simple moving averages (MA) that are reset at the beginning of period, specified by a user.
Red MA is based on highs
Blue MA is based on close
Green MA one is based on lows.
Moving averages often act as support /resistance levels. They can also help to identify intraday trend. It is important to realize that none of the moving averages is universal as price behavior changes from day to day. On the chart I’ve highlighted several occurrences when one of MAs (different ones) provided support for price.
Parameters:
PERIOD – period for which MAs are plotted. They are reset at the beginning of each period. Period cannot be lower than chart’s timeframe
LENGTH – length of moving averages. If set to 0 then parameter is ignored and MAs are calculated on all bars, available in the period
VWAP? – if checked then moving averages will be calculated as volume weighted price
Disclaimer
This indicator should not be used as a standalone tool to make trading decisions but only in conjunction with other technical analysis methods.
Moving Average Momentum SignalsBest for trade execution in lower timeframe (1m,5m,15m) with momentum confirmation in higher timeframes (2h,4h,1d)
This indicator relies on three key conditions to determine buy and sell signals: the price's deviation from a short-term moving average, the change in the moving average over time (past 10 candles), and the price's deviation from a historical price (40 candles). The strategy aims to target moments where the asset's price is likely to experience a reversal or momentum shift.
Conditions
Price deviation from short-term Moving Average (MA): Current candle close minus the 10-period MA (price action past 10 candles)
Change in Moving Average over time: Current 10-period MA minus the 10-period MA from 10 candles ago (price action past 20 candles)
Price deviation from historical price: Current close minus the close from 40 candles ago (price action past 40 candles)
Signal Generation Logic
Buy Signal: Triggered when all three conditions are positive. Confirmed if the previous signal was a sell or if there were no previous signals
Sell Signal: Triggered when all three conditions are negative. Confirmed if the previous signal was a buy or if there were no previous signals
Usage and Strategy
After back testing, I observed the higher timeframes were a good indication of momentum/sentiment that you can take note of while trading intraday on the lower time frames (time intervals stated above). Background highlights are also displayed for easier visualization of bullish/bearish skew in terms of the volume of signals generated.
Entry Fragger - Strategy
For basic instructions please visit my other script "Entry Fragger".
The Signal Logic is explained there.
v1.4:
- Added advanced backtesting with fully customizable entries.
- Fully automated Buy Signals (profitable).
- Adjustable timeframes for signal logic. (requested)
Every setting affects the accuracy and profitability greatly now, based on settings applied.
The strategy performs best on high timeframes with larger capital and no leverage.
Useless for Forex, but absolutely smashes stocks and crypto on mid to high timeframes.
Please read through my other scripts description.
Set values as preferred and try your assets.
It does NOT work on low timeframes and forex!
Hint: BTC 4H, Custom Timeframe 1h, Moon Mode and Show Sell Signals enabled, R2R: 2.
Weighted Moving Range with Trend Signals (WMR-TS)Weighted Moving Range with Trend Signals (WMR-TS)
Technical analysis involves analyzing statistical trends from trading activity , such as price movement and volume, to make trading decisions. Technical indicators are mathematical calculations based on the price, volume, or open interest of a security or contract. They are used by traders to analyze price movements and predict future market behavior. The WMR-TS indicator combines weighted moving averages and range calculations to identify key trading levels and generate buy/sell signals. It dynamically adjusts to market conditions, offering traders insights into potential support, resistance, and trend reversal points. Key levels are color-coded for quick interpretation. It utilizes weighted moving averages (WMA) and range calculations to determine these levels, making it a robust tool for both trending and ranging markets.
SUMMARY
Parameters :
WMA Length : Determines the length for the primary weighted moving average.
Highest High Length : Sets the period for calculating the highest high.
Lowest Low Length : Sets the period for calculating the lowest low.
Range Corrector : Adjusts the range calculation slightly for fine-tuning.
Top Level : Multiplier for determining the top level from the calculated range.
Bottom Level : Multiplier for determining the bottom level from the calculated range.
Levels Visibility : Sets how many recent bars will display the levels.
Trading Zones :
Short Area : Highlighted zone indicating potential shorting opportunities.
Long Area : Highlighted zone indicating potential buying opportunities.
The Levels :
Wave (Yellow): Midpoint of the calculated range, adjusted by WMA.
Top Level (Red): Calculated upper boundary of the trading range.
Sell Level (Pink): Intermediate sell level.
Resistance Level (Magenta): Immediate resistance level.
Support Level (Cyan): Immediate support level.
Buy Level (Light Green): Intermediate buy level.
Bottom Level (Dark Green): Calculated lower boundary of the trading range.
Interpreting the Signals :
Hammer Signal : Red circles above bars indicate potential sell signals.
Rocket Signal : Green circles below bars indicate potential buy signals.
KEY CONCEPTS
Highest High and Lowest Low :
These values represent the highest high ( HH ) and lowest low ( LL ) over a specified number of periods.
Support Level :
This is the lower boundary of the trading range. It is a price level where demand is strong enough to prevent the price from falling further. As the price approaches the support level, it is likely to bounce back up.
Resistance Level :
This is the upper boundary of the trading range. It is a price level where supply is strong enough to prevent the price from rising further. As the price approaches the resistance level, it is likely to pull back down.
THE USE OF MULTIPLIERS :
The script uses several multipliers to adjust and fine-tune the calculated support and resistance levels, as well as to control the range and sensitivity of these levels. Here is a detailed explanation of these multipliers and their purpose:
Range Corrector : This multiplier adjusts the calculated high ( H ) and low ( L ) levels, adding flexibility to how these levels are positioned relative to the highest high and lowest low. It ranges from -1 to 1 , with a default value of 0 . The use of positive values increase the range, making the calculated levels further apart. Thus, using negative values decrease the range, bringing the calculated levels closer together.
Top Level : This multiplier adjusts the distance of the top level from the calculated high H ) level. It fluctuates from 0 to 2 , with a default value of 0.382 . Higher values will push the top level further above the high level, while lower values will bring it closer.
Bottom Level : This multiplier adjusts the distance of the bottom support level from the calculated low support level. Ranging from 0 to 2, with a default value of 0.214, the higher values will push the bottom level further below the low level, while lower values will bring it closer.
The script plots the support and resistance levels on the chart, allowing traders to visualize the trading range. Color-coded zones are used to indicate areas where buying or selling opportunities may arise based on the current price relative to the trading range. A trading range refers to the area between a price's support and resistance levels over a specific period of time. Within this range, the price of the security fluctuates up and down but does not break out above the resistance or below the support. Support and resistance levels to make trading decisions. Buying near the support level and selling near the resistance level is a common strategy. When the price moves above the resistance level, it is called a breakout . A breakout often indicates that the price may start a new upward trend . Conversely, when the price moves below the support level, it is called a breakdown . A breakdown often indicates that the price may start a new downward trend . By understanding and utilizing trading ranges, traders can make more informed decisions, optimize their trading strategies, and manage risk more effectively.
Understanding Moving Averages
A moving average (MA) is a widely used technical indicator that helps smooth out price data by creating a constantly updated average price. The main purpose of using a moving average is to identify the direction of the trend and to reduce the "noise" of random price fluctuations. The Weighted Moving Average ( WMA ) assigns different weights to each period, with more recent periods typically given more weight. A 10-day WMA might give the most recent day a weight of 10, the second most recent day a weight of 9, and so on. It is useful for traders who want to emphasize recent price data more than older data. When the price is above the moving average, it suggests an Bullish trend . A Bearish Trend is expected to take place when the price is below the moving average. Understanding the price reactions around these levels can be used to make trading decisions.
APPLYING CONCEPTS
Support and Resistance Calculations in the Script :
The script calculates dynamic support and resistance levels using weighted moving averages ( WMA s) and the highest high and lowest low over specified periods. Buy ( Rocket ) and sell ( Hammer ) signals are generated based on the crossing of the price with calculated top and bottom levels.These signals help traders identify potential entry and exit points within the trading range .
Weighted Moving Average (WMA) Application in the Script
This script calculates a special trendWMA using the close price that helps in creating a more dynamic moving average that considers both high and low price actions. This modified WMA is used in conjunction with highest high and lowest low values over specified periods to calculate dynamic support and resistance levels.
Explanation of the Levels in the Script
By understanding these levels, traders can make more informed decisions about where to enter and exit trades, manage risk, and anticipate potential market movements. The script incorporates several key levels levels that traders can use to better anticipate price movements and make more informed trading decisions. Leveraging the principles of Fibonacci retracement ratios ( 23.6%, 38.2%, 50%, 61.8%, and 100% ) to identify key support and resistance zones can also serve for gauging the overall market sentiment.
Top Level and Sell Leve l: Used to identify potential resistance zones where the price may reverse or pause.
Support Level and Buy Level : Used to identify potential support zones where the price may bounce.
Upper and Lower Pivot Values : Serve as intermediate levels for possible price retracements or extensions within the trading range.
Wave Level : Indicates the central trend direction, which can be useful for gauging the overall market sentiment.
Alerts are a crucial part of the script as they notify traders of potential buy and sell signals based on predefined conditions. There are two main alerts: one for a " Hammer " signal (sell condition) and one for a " Rocket " signal (buy condition).
Adjust the input parameters to fit your trading style and the specific asset being analyzed. Shorter lengths may be more responsive to price changes but can produce more false signals , while longer lengths provide smoother signals but may lag . Always backtest the indicator on historical data to understand its behavior and performance. Also remember that different markets may require different parameter settings for optimal performance.
Keep in mind that by nature like all moving averages, WMAs lag behind price action. This means that signals may be delayed. The indicator performs differently in various market conditions. Always consider the overall market context when interpreting signals.
Adjusting parameters like the range corrector and visibility can help tailor the indicator to specific market conditions or trading strategies, improving its effectiveness. The script uses the calculated levels to plot lines and fill zones on the chart, helping traders visualize potential support, resistance, and trend reversal points. The use of multipliers allows for dynamic adjustment of these levels, making the indicator flexible and adaptable to different market conditions.
I think traders can make more informed decisions about where to enter and exit trades, manage risk, and anticipate potential market movements following this code. Stay safe and always remember that market is always changing. Use this tool if you want, please stay informed and plan safe trades,
D.
Multi-Timeframe MA Levels█ OVERVIEW
This Pine Script is an indicator for displaying multiple moving average (MA) levels from several timeframes on your TradingView charts. At the Realtime Bar (the right-most bar on your chart), it draws a line where the various moving averages currently are.
For example, it will show you where the 8 EMA on the 5 minute timeframe is on your 1-minute timeframe chart.
It derives its look and function from "Lepelle's Key Levels" and focuses on visualizing various moving averages to complement this indicator.
█ FEATURES
1 — Multi-Timeframe Analysis:
• The script allows traders to view moving averages from different timeframes on a single chart.
This multi-timeframe approach helps identify significant levels and trends that might not be apparent when looking at a single timeframe.
2 — Customization and Flexibility:
• Extensive input options for customizing the appearance of the lines (width, style, color) and labels (size, position, distance from price).
This ensures that the indicator can be tailored to individual preferences and charting styles.
3 — Multiple Moving Averages:
• Support for various types of moving averages (8 EMA, 21 EMA, 50 SMA, 100 SMA, 200 SMA).
Each moving average can be individually enabled or disabled for specific timeframes,
providing a flexible tool for technical analysis.
█ SETTINGS
Inputs for Styling:
• Controls the appearance of the lines and labels.
• Includes options for line width, line style, text size, distance from the candlesticks, label position,
and whether to hide prices or use shorthand notation.
Moving Averages Settings:
• Inputs to select different moving averages (8 EMA, 21 EMA, 50 SMA, 100 SMA, 200 SMA) and their corresponding colors.
• Boolean inputs to enable or disable these moving averages on various timeframes (2 min, 5 min, hourly, daily).
█ SUMMARY
In essence, this script provides a comprehensive tool for technical analysis by combining multi-timeframe moving averages into a single, customizable, and user-friendly indicator. It enhances traders' ability to make informed decisions by providing clear visual representations of key moving average levels across different timeframes.
═════════════════════════════════════════════════════════════
█ LIMITATIONS
This script is best used with a short timeframe such as 1-minute or lower because of the limitations of Multi-Timeframe scripts. Basically, the alternate timeframes in use should always be higher than the chart timeframe.
═════════════════════════════════════════════════════════════
█ NOTES
This indicator is intended to complement and be used with "Lepelle's Key Levels" indicator.
In that indictor settings, I recommend turning off the 5 Daily timeframe moving average levels in that script, if using this one.
═════════════════════════════════════════════════════════════
SMA DMA Crossing SignalSMA and DMA Crossing Buy Sell Signals
This script implements a Double Moving Average (DMA) strategy, a popular technical analysis technique used by traders to identify trends and potential buy/sell signals in financial markets.
**Description:**
The Double Moving Average strategy involves the calculation of two moving averages – a short-term moving average and a long-term moving average. In this script, we calculate these moving averages as follows:
1. **Short-term DMA (`dmaShort`):**
- Calculated using a 28-bar Simple Moving Average (SMA).
- Represents the shorter-term trend in the price movement.
2. **Long-term DMA (`dmaLong`):**
- Also calculated using a 28-bar SMA.
- Displaced backward by 14 bars (`dmaLong := request.security(syminfo.tickerid, "D", dmaLong )`), effectively creating a 28-bar SMA with a -14 bar displacement.
- Represents the longer-term trend in the price movement.
**Signals:**
Buy and sell signals are generated based on the crossing of the short-term DMA over or under the long-term DMA:
- **Buy Signal (`DMA BUY`):** Occurs when the short-term DMA crosses above the long-term DMA (`dmaBuySignal`).
- **Sell Signal (`DMA SELL`):** Occurs when the short-term DMA crosses below the long-term DMA (`dmaSellSignal`).
**How to Use:**
- **Buy Signal:** Consider entering a long position when the short-term DMA crosses above the long-term DMA, indicating a potential uptrend.
- **Sell Signal:** Consider exiting a long position or entering a short position when the short-term DMA crosses below the long-term DMA, indicating a potential downtrend.
This script provides a visual representation of the DMA crossover signals on the chart, helping traders identify potential entry and exit points in the market.
**Note:** It's important to combine DMA signals with other technical analysis tools and risk management strategies for informed trading decisions.
All comments are welcome..
Multi-Chart Widget [LuxAlgo]The Multi-Chart Widget tool is a comprehensive solution crafted for traders and investors looking to analyze multiple financial instruments simultaneously. With the capability to showcase up to three additional charts, users can customize each chart by selecting different financial instruments, and timeframes.
Users can add various widely used technical indicators to the charts such as the relative strength index, Supertrend, moving averages, Bollinger Bands...etc.
🔶 USAGE
The tool offers traders and investors a comprehensive view of multiple charts simultaneously. By displaying up to three additional charts alongside the primary chart, users can analyze assets across different timeframes, compare their performance, and make informed decisions.
Users have the flexibility to choose from various customizable chart types, including the recently added "Volume Candles" option.
This tool allows adding to the chart some of the most widely used technical indicators, such as the Supertrend, Bollinger Bands, and various moving averages.
In addition to the charting capabilities, the tool also features a dynamic statistic panel that provides essential metrics and key insights into the selected assets. Users can track performance indicators such as relative strength, trend, and volatility, enabling them to identify trends, patterns, and trading opportunities efficiently.
🔶 DETAILS
A brief overview of the indicators featured in the statistic panel is given in the sub-section below:
🔹Dual Supertrend
The Dual Supertrend is a modified version of the Supertrend indicator, which is based on the concept of trend following. It generates buy or sell signals by analyzing the asset's price movement. The Dual Supertrend incorporates two Supertrend indicators with different parameters to provide potentially more accurate signals. It helps traders identify trend reversals and establish trend direction in a more responsive manner compared to a single Supertrend.
🔹Relative Strength Index
The Relative Strength Index is a momentum oscillator that measures the speed and change of price movements. RSI oscillates between 0 and 100 and is typically used to identify overbought or oversold conditions in a market. Traditionally, RSI values above 70 are considered overbought, suggesting that the asset may be due for a reversal or correction, while RSI values below 30 are considered oversold, indicating potential buying opportunities.
🔹Volatility
Volatility in trading refers to the degree of variation or fluctuation in the price of a financial instrument, such as a stock, currency pair, or commodity, over a certain period of time. It is a measure of the speed and magnitude of price changes and reflects the level of uncertainty or risk in the market. High volatility implies that prices are experiencing rapid and significant movements, while low volatility suggests that prices are relatively stable and are not changing much. Traders often use volatility as an indicator to assess the potential risk and return of an investment and to make informed decisions about when to enter or exit trades.
🔹R-Squared (R²)
R-squared, also known as the coefficient of determination, is a statistical measure that indicates the proportion of the variance in the dependent variable that is predictable from the independent variable(s). In other words, it quantifies the goodness of fit of a regression model to the observed data. R-squared values range from %0 to %100, with higher values indicating a better fit of the model to the data. An R-squared of 100% means that all movements of a security are completely explained by movements in the index, while an R-squared value of %0 indicates that the model does not explain any of the variability in the dependent variable.
In simpler terms, in investing, a high R-squared, from 85% to 100%, indicates that the stock’s or fund’s performance moves relatively in line with the index. Conversely, a low R-squared (around 70% or less) indicates that the fund's performance tends to deviate significantly from the movements of the index.
🔶 SETTINGS
🔹Mini Chart(s) Generic Settings
Mini Charts Separator: This option toggles the visibility of the separator lines.
Number Of Bars: Specifies the number of bars to be displayed for each mini chart.
Horizontal Offset: Determines the distance at which the mini charts will be displayed from the primary chart.
🔹Mini Chart Settings: Top - Middle - Bottom
Mini Chart Top/Middle/Bottom: Toggle the visibility of the selected mini chart.
Symbol: Choose the financial instrument to be displayed in the mini chart. If left as an empty string, it will default to the current chart instrument.
Timeframe: This option determines the timeframe used for calculating the mini charts. If a timeframe lower than the chart's timeframe is selected, the calculations will be based on the chart's timeframe.
Chart Type: Selection from various chart types for the mini charts, including candles, volume candles, line, area, columns, high-low, and Heikin Ashi.
Chart Size: Determines the size of the mini chart.
Technical Indicator: Selection from various technical indicators to be displayed on top of the mini charts.
Note : Chart sizing is relative to other mini charts. For example, If all the mini charts are sized to x5 relative to each other, the result will be the same as if they were all sized as x1. This is because the relative proportions between the mini charts remain consistent regardless of their absolute sizes. Therefore, their positions and sizes relative to each other remain unchanged, resulting in the same visual representation despite the differences in absolute scale.
🔹Supertrend Settings
ATR Length: is the lookback length for the ATR calculation.
Factor: is what the ATR is multiplied by to offset the bands from price.
Color: color customization option.
🔹Moving Average Settings
Type: is the type of the moving average, available types of moving averages include SMA (Simple Moving Average), EMA (Exponential Moving Average), RMA (Root Mean Square Moving Average), HMA (Hull Moving Average), WMA (Weighted Moving Average), and VWMA (Volume Weighted Moving Average).
Source: Determines what data from each bar will be used in calculations.
Length: The time period to be used in calculating the Moving Average.
Color: Color customization option.
🔹Bollinger Bands Settings
Basis Type: Determines the type of Moving Average that is applied to the basis plot line.
Source: Determines what data from each bar will be used in calculations.
Length: The time period to be used in calculating the Moving Average which creates the base for the Upper and Lower Bands.
StdDev: The number of Standard Deviations away from the Moving Average that the Upper and Lower Bands should be.
Color: Color customization options for basis, upper and lower bands.
🔹Mini Chart(s) Panel Settings
Mini Chart(s) Panel: Controls the visibility of the panel containing the mini charts.
Dual Supertrend: Toggles the display of the evaluated dual super trend, based on the super trend settings provided below the option. The definitions for the options are the same as stated above for the super trend.
Relative Strength Index: Toggles the display of the evaluated RSI, based on the source and length settings provided below the option.
Volatility: Toggles the display of the calculated Volatility, based on the length settings provided below the option.
R-Squared: Toggles the display of the calculated R-Squared (R²), based on the length settings provided below the option.
🔶 LIMITATIONS
The tool allows users to display mini charts featuring various types of instruments alongside the primary chart instrument. However, there's a limitation: the selected primary chart instrument must have an ACTIVE market status. Alternatively, if the primary chart instrument is not active, the mini chart instruments must belong to the same exchange and have the same type as the primary chart instrument.
Tetuan SniperThe TEMA and EMA Crossover Alert with SL, TP, and Order Signal strategy combines the power of Triple Exponential Moving Average (TEMA) and Exponential Moving Average (EMA) to generate high-quality trading signals. This strategy is designed to provide clear entry and exit points, manage risk through dynamic Stop Loss (SL) and Take Profit (TP) levels, and optimize trade sizes based on account balance and risk tolerance.
Key Features:
EMA and TEMA Crossover:
The strategy identifies potential buy and sell signals based on the crossover of EMA and TEMA. A buy signal is generated when TEMA crosses above EMA, and a sell signal is generated when TEMA crosses below EMA.
Dynamic Stop Loss (SL) and Take Profit (TP):
Stop Loss levels are dynamically set based on a user-defined number of pips below (for buy orders) or above (for sell orders) the lowest or highest point since the crossover.
Take Profit levels are dynamically adjusted using another TEMA, providing a flexible exit strategy that adapts to market conditions.
Lot Size Calculation:
The strategy calculates the optimal lot size based on the account balance, risk percentage per trade, and the number of maximum open orders. For JPY pairs, the lot size is adjusted by dividing by 100 to account for the different pip value.
The lot size is rounded to two decimal places for better readability and precision.
Visual Alerts and Labels:
Clear visual alerts and labels are provided for each buy and sell signal, including the recommended SL, TP, and lot size. The labels are placed in a way to avoid overlapping important chart elements.
Trend Visualization:
The area between the TEMA and EMA is colored to indicate the trend, with green for bullish trends and red for bearish trends, making it easy to visualize the market direction.
Inputs:
SL Points: Number of pips for the Stop Loss.
EMA Period: Period for the Exponential Moving Average.
TEMA Period: Period for the Triple Exponential Moving Average.
Account Balance: The total account balance for calculating the lot size.
Risk Percentage: The percentage of the account balance to risk per trade.
Take Profit TEMA Period: Period for the TEMA used to set Take Profit levels.
Lot per Pip Value: The value of 1 pip per lot.
Maximum Open Orders: The maximum number of open orders to split the balance among.
Example Usage
This strategy is suitable for traders who want to automate their trading signals and manage risk effectively. By combining TEMA and EMA crossovers with dynamic SL and TP levels and precise lot size calculation, traders can achieve a disciplined and methodical approach to trading.