Long/Short EMA Premium [NL]1. EMA Calculation :
- The script calculates three Exponential Moving Averages (EMAs): EMA 1, EMA 2, and EMA 50.
- The lengths of EMA 1 and EMA 2 are customizable by the user inputs `ema1Length` and `ema2Length`, respectively.
- EMA 50 is fixed with a length of 50.
2. EMA Crossover Detection :
- The script detects crossovers between EMA 1 and EMA 2 using the `ta.crossover()` and `ta.crossunder()` functions, storing the crossover events in the `cross` variable.
3. Crossover Symbol :
- A triangle-up shape is plotted below the bars when there is a crossover between EMA 1 and EMA 2. This symbol visually indicates the crossover points.
4. Trade Signals :
- Long and short signals are generated based on the crossover events and the relationship between the closing price and EMA 1.
- For a long signal, EMA 1 must cross above EMA 2, and both the current and previous closing prices must be above EMA 1.
- For a short signal, EMA 1 must cross below EMA 2, and both the current and previous closing prices must be below EMA 1.
5. Stop Conditions :
- Stop conditions are used to exit long or short trades.
- If in a long trade, the script checks if the low of the previous candle crossed below EMA 1 and the high of the current candle is below EMA 1. If true, it triggers the "Stop Long" condition.
- If in a short trade, the script checks if the high of the previous candle crossed above EMA 1 and the low of the current candle is above EMA 1. If true, it triggers the "Stop Short" condition.
6. Plotting :
- The script plots EMA 1, EMA 2, and EMA 50 on the chart to visualize their movements.
7. Alerts :
- The script generates alerts for EMA crossovers, long and short signals, as well as stop long and stop short conditions, allowing traders to receive notifications when these events occur.
Overall, the script provides a comprehensive EMA crossover strategy with customizable parameters and clear trade signals and exit conditions.
Moyennes mobiles
Candle Price MovementThis Pine Script indicator calculates and visualizes the price movement for each candlestick on the chart.
- **Calculation**: The price movement for each candle is determined by subtracting the opening price from the closing price.
- **Visualization**: The price movement is plotted as a histogram, with positive values indicating upward movement (green bars) and negative values indicating downward movement (red bars).
- **Options**:
- The histogram bars are colored blue with zero opacity, providing a clear visual distinction from the background.
- A horizontal line at zero (the "Zero Line") is added for reference, helping to identify periods of no price movement.
---
This indicator provides traders with a quick visualization of the price movement for each candlestick, helping to identify trends and potential trading opportunities.
Golden Cross VWMA & EMA 4h PinescriptlabsThis strategy combines the 50-period Volume-Weighted Moving Average (VWMA) on the current timeframe with a 200-period Simple Moving Average (SMA) on the 4-hour timeframe. This combination of indicators with different characteristics and time horizons aims to identify strong and sustained trends across multiple timeframes.
The VWMA is a variant of the moving average that assigns greater weight to periods of higher volatility, helping to avoid misleading signals. On the other hand, the 4-hour SMA is used as an additional trend filter in a shorter-term horizon. By combining these two indicators, the strategy can leverage the strength of the VWMA to capture the main trend, but only when confirmed by the SMA in the lower timeframe.
Buy signals are generated when the VWMA crosses above the 4-hour SMA, indicating a potential bullish trend aligned in both timeframes. Sell signals occur on a bearish cross, suggesting a possible reversal of the main trend.
The default parameters are a 50-period VWMA and a 200-period 4-hour SMA. It is recommended to adjust these lengths according to the traded instrument and the desired timeframe. It is also crucial to use stop losses and profit targets to properly manage risk.
By combining indicators of different types and timeframes, this strategy aims to provide a more comprehensive view of trend strength.
Español:
Esta estrategia combina la Volume-Weighted Moving Average (VWMA) de 50 períodos en el timeframe actual con una Simple Moving Average (SMA) de 200 períodos en el timeframe de 4 horas. Esta combinación de indicadores de distinta naturaleza y horizontes temporales busca identificar tendencias fuertes y sostenidas en múltiples timeframes.
La VWMA es una variante de la media móvil que asigna mayor ponderación a los períodos de mayor volatilidad, lo que ayuda a evitar señales engañosas. Por otro lado, la SMA de 4 horas se utiliza como un filtro adicional de tendencia en un horizonte de corto plazo. Al combinar estos dos indicadores, la estrategia puede aprovechar la fortaleza de la VWMA para capturar la tendencia principal, pero sólo cuando es confirmada por la SMA en el timeframe menor.
Las señales de compra se generan cuando la VWMA cruza al alza la SMA de 4 horas, indicando una potencial tendencia alcista alineada en ambos horizontes temporales. Las señales de venta ocurren en el cruce bajista, sugiriendo una posible reversión de la tendencia principal.
Los parámetros predeterminados son: VWMA de 50 períodos y SMA de 4 horas de 200 períodos. Se recomienda ajustar estas longitudes según el instrumento operado y el horizonte temporal deseado. También es crucial utilizar stops y objetivos de ganancias para controlar adecuadamente el riesgo.
Al combinar indicadores de diferentes tipos y timeframes, esta estrategia busca brindar una visión más completa de la fuerza de la tendencia.
Trend Following Parabolic Buy Sell Strategy [TradeDots]The Trend Following Parabolic Buy-Sell Strategy leverages the Parabolic SAR in combination with moving average crossovers to deliver buy and sell signals within a trend-following framework.
This strategy synthesizes proven methodologies sourced from various trading tutorials available on platforms such as YouTube and blogs, enabling traders to conduct robust backtesting on their selected trading pairs to assess the strategy's effectiveness.
HOW IT WORKS
This strategy employs four key indicators to orchestrate its trading signals:
1. Trend Alignment: It first assesses the relationship between the price and the predominant trendline to determine the directional stance—taking long positions only when the price trends above the moving average, signaling an upward market trajectory.
2. Momentum Confirmation: Subsequent to trend alignment, the strategy looks for moving average crossovers as a confirmation that the price is gaining momentum in the direction of the intended trades.
3. Signal Finalization: Finally, buy or sell signals are validated using the Parabolic SAR indicator. A long order is validated when the closing price is above the Parabolic SAR dots, and similarly, conditions are reversed for short orders.
4. Risk Management: The strategy institutes a fixed stop-loss at the moving average trendline and a take-profit level determinable by a prefixed risk-reward ratio calculated from the moving average trendline. These parameters are customizable by the users within the strategy settings.
APPLICATION
Designed for assets exhibiting pronounced directional momentum, this strategy aims to capitalize on clear trend movements conducive to achieving set take-profit targets.
As a lagging strategy that waits for multiple confirmatory signals, entry into trades might occasionally lag beyond optimal timing.
Furthermore, in periods of consolidation or sideways movement, the strategy may generate several false signals, suggesting the potential need for additional market condition filters to enhance signal accuracy during volatile phases.
DEFAULT SETUP
Commission: 0.01%
Initial Capital: $10,000
Equity per Trade: 70%
Users are advised to adjust and personalize this trading strategy to better match their individual trading preferences and style.
RISK DISCLAIMER
Trading entails substantial risk, and most day traders incur losses. All content, tools, scripts, articles, and education provided by TradeDots serve purely informational and educational purposes. Past performances are not definitive predictors of future results.
[BKong] Filtered Adaptive Moving Average### Introduction
The Filtered Adaptive Moving Average (BKMA) indicator is a moving average based on adaptive algorithms. It combines a Kalman filter and volume-weighted smoothing methods, allowing it to more sensitively capture price trend changes in volatile markets while reducing noise interference. This indicator is highly flexible and adaptive due to its various parameter configurations.
### Indicator Parameters
- **AMA Period (ama_length):** This parameter determines the base period of the adaptive moving average. The default value is 3. The shorter the period, the more sensitive the indicator is to price changes.
- **Sensitivity (sensitivity):** This parameter adjusts the sensitivity of the Kalman filter, ranging from 0.1 to 2.0. The higher the sensitivity, the faster the indicator responds to price changes.
- **Noise Reduction (noise_reduction):** This parameter reduces the market noise interference on the indicator, ranging from 0.0 to 1.0. The higher the noise reduction value, the stronger the indicator's filtering effect on price fluctuations.
- **Source (src):** This parameter allows users to select the price data used to calculate the indicator, with the default value being the closing price.
- **Volume Weighted Smoothing Length (volume_weight_length):** This parameter defines the period length for volume-weighted smoothing, with a default value of 10. The longer the period, the more pronounced the smoothing effect.
- **Smoothing Factor (smooth_factor):** This parameter adjusts the sensitivity of the smoothed indicator, ranging from 0.0 to 1.0. The higher the smoothing factor, the smoother the indicator.
### Calculation Process
1. **Adaptive Period Adjustment:** The adaptive period is calculated using ATR (Average True Range) and HMA (Hull Moving Average) to allow the indicator to dynamically adapt to market volatility.
2. **Kalman Filter Parameters Calculation:**
- **Efficiency Ratio (efficiency_ratio):** This evaluates the effectiveness of the current price changes.
- **Kalman Filter Gain (kf_gain) and Noise Parameters (kf_noise):** These are adjusted based on the efficiency ratio.
3. **Kalman Filter Update:** The Kalman filter is used to update price data to reduce market noise.
4. **Volatility Calculation:** Market volatility is calculated using ATR values and Kalman filter parameters.
5. **Adaptive Moving Average (AMA) Calculation:** The adaptive moving average is calculated using the updated Kalman filter values and volatility.
6. **Volume Weighted Smoothing:** A custom volume-weighted smoothing function is used to smooth the changes in the adaptive moving average.
7. **Smoothed Plot Line:** WMA (Weighted Moving Average) is used to further smooth the adaptive moving average for a more consistent plot.
8. **Color Determination:** The color of the indicator line is determined based on the smoothed changes in the adaptive moving average. If the change is greater than zero, the line is green, indicating an upward trend. If the change is less than zero, the line is red, indicating a downward trend.
### Plotting and Application
1. **Plotting the Smoothed AAMA Line:** The adaptive moving average is further smoothed using WMA and plotted with the calculated color values. The line width is set to 2 for clear visibility on the chart.
2. **Application Scenarios:**
- **Trend Judgement:** Users can visually determine the market's upward or downward trend based on color changes.
- **Trading Decisions:** A transition from red to green may indicate a buy signal, while a transition from green to red may indicate a sell signal.
- **Noise Filtering:** By adjusting the noise reduction parameter, users can minimize the impact of short-term market fluctuations on trading decisions, improving the accuracy of trading signals.
Multiple MAs Signals with RSI MA Filter & Signal About the Script
The "Multiple Moving Averages Signals with RSI MA Filter and Golden Signals" script is a comprehensive trading tool designed to provide traders with detailed insights and actionable signals based on multiple moving averages and RSI (Relative Strength Index). This script combines traditional moving average crossovers with RSI filtering to enhance the accuracy of trading signals and includes "golden" signals to highlight significant long-term trend changes.
This script integrates several technical indicators and concepts to create a robust and versatile trading tool. Here's why this combination is both original and useful:
1. Multiple Moving Averages:
- Why Use Multiple MAs: Different types of moving averages (SMA, EMA, SMMA, WMA, VWMA, Hull) offer unique perspectives on price trends and volatility. Combining them allows traders to capture a more comprehensive view of the market.
- Purpose: Using multiple moving averages helps identify trend direction, support/resistance levels, and potential reversal points.
2. RSI MA Filter:
- Why Use RSI: RSI is a momentum oscillator that measures the speed and change of price movements. It is used to identify overbought or oversold conditions in a market.
- Purpose: Filtering signals with RSI moving averages ensures that trades are taken in line with the prevailing momentum, reducing the likelihood of false signals.
3. Golden Signals:
- Why Use Golden Crosses: A golden cross (50-period MA crossing above the 200-period MA) is a well-known bullish signal, while a death cross (50-period MA crossing below the 200-period MA) is bearish. These signals are widely followed by traders and institutions.
- Purpose: Highlighting these significant long-term signals helps traders identify major buy or sell opportunities and align with broader market trends.
How the Script Works
1. Moving Average Calculations:
- The script calculates multiple moving averages (MA1 to MA5) based on user-selected types (SMA, EMA, SMMA, WMA, VWMA, Hull) and periods (9, 21, 50, 100, 200).
- Golden Moving Averages: Separately calculates 50-period and 200-period moving averages for generating golden signals.
2. RSI and RSI MA Filter:
- RSI Calculation: Computes the RSI for the given period.
- RSI MA: Calculates a moving average of the RSI to smooth out the RSI values and reduce noise.
- RSI MA Filter: Traders can enable/disable RSI filtering and set custom thresholds to refine long and short signals based on RSI momentum.
3. Long & Short Signal Generation:
- Long Signal: Generated when the short-term moving average crosses above both the mid-term and long-term moving averages, and the RSI MA is below the specified threshold (if enabled).
- Short Signal: Generated when the short-term moving average crosses below both the mid-term and long-term moving averages, and the RSI MA is above the specified threshold (if enabled).
4. Golden Signals:
- Golden Long Signal: Triggered when the 50-period golden moving average crosses above the 200-period golden moving average.
- Golden Short Signal: Triggered when the 50-period golden moving average crosses below the 200-period golden moving average.
How to Use the Script
1. Customize Inputs:
- Moving Averages: Choose the type of moving averages and set the periods for up to five different moving averages.
- RSI Settings: Adjust the RSI period and its moving average period. Enable or disable RSI filtering and set custom thresholds for long and short signals.
- Signal Colors: Customize the colors for long, short, and golden signals.
- Enable/Disable Signals: Toggle the visibility of long, short, and golden signals.
2. Observe Plots and Signals:
- The script plots the selected moving averages on the chart.
- Long and short signals are marked with labels on the chart, with customizable colors for easy identification.
- Golden signals are highlighted with specific labels to indicate significant long-term trend changes.
3. Analyze and Trade:
- Use the generated signals as part of your trading strategy. The script provides visual cues to help you make informed decisions about entering or exiting trades based on multiple technical indicators.
Unique Features
1. Integration of Multiple Moving Averages: Combines various moving average types to provide a holistic view of market trends.
2. RSI MA Filtering: Enhances signal accuracy by incorporating RSI momentum, reducing the likelihood of false signals.
3. Golden Signals: Highlights significant long-term trend changes, aligning with broader market movements.
4. Customizability: Offers extensive customization options, allowing traders to tailor the script to their specific trading strategies and preferences.
feel free to comments.
Dynamic Auto Fibonacci Retracement + SMA
Explanation of the Script:
This script, "Dynamic Auto Fibonacci Retracement + SMA," combines Fibonacci retracement levels with Simple Moving Averages (SMA) to create a comprehensive tool for technical analysis. The purpose of this script is to help traders identify potential support and resistance levels, determine trend direction, and identify dynamic retracement points across multiple timeframes. By combining these indicators, traders gain a holistic view of market conditions, enabling them to make more informed trading decisions.
How Components Work Together:
Fibonacci Retracement Levels:
Automatically calculated based on user-defined lookback periods, these levels are plotted to help identify key areas where price might reverse or continue its trend. The script uses persistent arrays to manage and plot Fibonacci lines and labels, dynamically adjusting them as new data comes in. This ensures that traders always have up-to-date retracement levels on their charts.
Simple Moving Averages (SMA):
SMAs are overlaid on the chart to indicate the trend direction. Different SMA periods can be set for various timeframes, providing a multi-timeframe analysis that helps traders understand the broader market context. The SMA is calculated using the ta.sma function, and users can customize the lookback period to fit their trading strategy.
Trend Analysis:
The script incorporates additional indicators such as RSI, MACD, Bollinger Bands, and ADX to confirm trend direction. These indicators are used in conjunction to provide a robust framework for identifying whether the market is in an uptrend, downtrend, or moving sideways. This multi-indicator approach helps reduce false signals and improve trend detection accuracy.
Support and Resistance Detection:
The script highlights key support and resistance levels by identifying recent highs and lows. This feature provides traders with additional context for potential price reversals and helps them make more strategic trading decisions. Support and resistance levels are plotted using the ta.valuewhen function, which ensures that they are accurately identified and displayed on the chart.
Higher Timeframe Analysis:
By incorporating higher timeframe Fibonacci levels and SMAs, the script allows traders to consider broader market trends. This higher timeframe analysis helps traders align their short-term trades with the overall market direction, improving the likelihood of successful trades. The script uses the request.security function to fetch higher timeframe data, ensuring that the analysis is accurate and relevant.
Customizable Settings:
The script offers a wide range of customizable settings, allowing users to adjust colors, styles, and advanced features to tailor the script to their specific trading needs and preferences. This flexibility makes the script suitable for various trading strategies and styles, from scalping to long-term investing. Users can adjust settings such as the lookback period, SMA period, line colors, and more, ensuring that the script fits seamlessly into their existing trading setup.
How to Use the Script:
Set Lookback Periods: Adjust the lookback periods for Fibonacci levels and SMAs based on your trading strategy.
Customize Appearance: Use the color and style settings to match the script's appearance to your charting preferences.
Enable Advanced Features: Turn on features such as support/resistance detection and higher timeframe analysis to enhance your market analysis.
Monitor Trend Direction: Use the combined indicators to confirm trend direction and identify potential entry and exit points.
Adjust Settings: Fine-tune the script's settings to align with your specific trading needs and preferences.
By following these steps, traders can effectively use the "Dynamic Auto Fibonacci Retracement + SMA" script to improve their technical analysis and make more informed trading decisions. This script's unique combination of indicators and customizable features provides a powerful tool for traders looking to enhance their market analysis and trading strategies.
Total Death and Golden Crosses Calculator The Indicator calculates the total number of the death and golden crosses in the total chart which can help the moving average user to compare the number of signals generated by the moving average pair in the given timeframe.
All you need is to plot any two moving average then change the source of the indicator to get the total number of crosses.
If Indicator is not plotting anything then right click on the indicator's scale and click on "Auto(data fits the screen" option.
IsAlgo - AI Trend Strategy► Overview:
The AI Trend Strategy employs a combination of technical indicators to guide trading decisions across various markets and timeframes. It uses a custom Super Trend indicator and an Exponential Moving Average (EMA) to analyze market trends and executes trades based on specific candlestick patterns. This strategy includes options for setting stop losses, take profit levels, and features an alert system for trade notifications.
► Description:
This strategy focuses on identifying the optimal "entry candle," which signals either a potential correction within the ongoing trend or the emergence of a new trend. The entry criteria for this candle are highly customizable, allowing traders to specify dimensions such as the candle's minimum and maximum size and body ratio. Additional settings include whether this candle should be the highest or lowest compared to recent candles and if a confirmation candle is necessary to validate the entry.
The Super Trend indicator is central to the strategy’s operation, dictating the direction of trades by identifying bullish or bearish trends. Traders have the option to configure trades to align with the direction of the trend identified by this indicator, or alternatively, to take positions counter to the trend for potential reversal strategies. This flexibility can be crucial during varying market conditions.
Additionally, the strategy incorporates an EMA alongside the Super Trend indicator to further analyze trend directions. This combined approach aims to reduce the occurrence of false signals and improve the strategy's overall trend analysis.
The learning algorithm is a standout feature of the AI Trend Strategy. After accumulating data from a predefined number of trades (e.g., after the first 100 trades), the algorithm begins to analyze past performances to identify patterns in wins and losses. It considers variables such as the distance from the current price to the trend line, the range between the highest and lowest prices during the trend, and the duration of the trend. This data informs the algorithm's predictions for future trades, aiming to improve accuracy and reduce losses by adapting to the evolving market conditions.
► Examples of Trade Execution:
1. In an Uptrend: The strategy might detect a suitable entry candle during a correction phase, which aligns with the continuing uptrend for a potential long trade.
2. In a Downtrend: Alternatively, the strategy might identify an entry candle at the end of a downtrend, suggesting a potential reversal or correction where a long trade could be initiated.
3. In an Uptrend: The strategy may also spot an entry candle at the end of an uptrend and execute a short trade, anticipating a reversal or significant pullback.
4. In a Downtrend: The strategy might find a suitable entry candle during a correction phase, indicating a continuation of the downtrend for a potential short trade.
These examples illustrate how the strategy identifies potential trading opportunities based on trend behavior and candlestick patterns.
► Features and Settings:
⚙︎ Trend: Utilizes a custom Super Trend indicator to identify the direction of the market trend. Users can configure the strategy to execute trades in alignment with this trend, take positions contrary to the trend, or completely ignore the trend information for their trading decisions.
⚙︎ Moving average: Employs an Exponential Moving Average (EMA) to further confirm the trend direction indicated by the Super Trend indicator. This setting can be used in conjunction with the Super Trend or disabled if preferred.
⚙︎ Entry candle: Defines the criteria for the candle that triggers a trade. Users can customize aspects such as the candle's size, body, and its relative position to previous candles to ensure it meets specific trading requirements before initiating a trade.
⚙︎ Learning algorithm: This component uses historical trade data to refine the strategy. It assesses various aspects of past trades, such as price trends and market conditions, to make more informed trading decisions in the future.
⚙︎ Trading session: Users can define specific trading hours during which the strategy should operate, allowing trades to be executed only during preferred market periods.
⚙︎ Trading days: This option enables users to specify which days the strategy should be active, providing the flexibility to avoid trading on certain days of the week if desired.
⚙︎ Backtesting: Enables a period during which the strategy can be tested over a selected start and end date, with an option to deactivate this feature if not needed.
⚙︎ Trades: Detailed configuration options include the direction of trades (long, short, or both), position sizing (fixed or percentage-based), the maximum number of open trades, and limitations on the number of trades per day or based on trend changes.
⚙︎ Trades Exit: Offers various strategies for exiting trades, such as setting limits on profits or losses, specifying the duration a trade should remain open, or closing trades based on trend reversal signals.
⚙︎ Stop loss: Various methods for setting stop losses are available, including fixed pips, based on Average True Range (ATR), or utilizing the highest or lowest price points within a designated number of previous candles. Another option allows for closing the trade after a specific number of candles moving in the opposite direction.
⚙︎ Break even: This feature adjusts the stop loss to a break-even point under certain conditions, such as reaching predefined profit levels, to protect gains.
⚙︎ Trailing stop: The trailing stop feature adjusts the stop loss as the trade moves into profit, aiming to secure gains while potentially capturing further upside.
⚙︎ Take profit: Up to three take profit levels can be established using various methods, such as a fixed amount of pips, risk-to-reward ratios based on the stop loss, ATR, or after a set number of candles that move in the direction of the trade.
⚙︎ Alerts: Includes a comprehensive alert system that informs the user of all significant actions taken by the strategy, such as trade openings and closings. It supports placeholders for dynamic values like take profit levels, stop loss prices, and more.
⚙︎ Dashboard: Provides a visual display of detailed information about ongoing and past trades on the chart, helping users monitor the strategy’s performance and make informed decisions.
► Backtesting Details:
Timeframe: 15-minute BTCUSD chart.
Initial Balance: $10,000.
Order Size: 4% of equity per trade.
Commission: 0.01%.
Slippage: 5 ticks.
Risk Management: Strategic stop loss settings are applied based on the most extreme price points within the last 18 candles.
20,200SMA,PDHL,15 minute ORBSimple Moving Averages (SMAs):
The script calculates three SMAs: SMA 20 High, SMA 20 Low, and SMA 200 Close. These moving averages are widely used in technical analysis to smooth out price data and identify trends.
The SMA for the high price (SMA 20 High) is calculated based on the 20-period moving average of the high prices.
Similarly, the SMA for the low price (SMA 20 Low) is calculated based on the 20-period moving average of the low prices.
The SMA for the close price (SMA 200 Close) is calculated based on the 200-period moving average of the closing prices.
Each SMA is plotted on the chart, and their colors are determined based on whether the current close price is above or below each respective SMA.
Conditional Coloring:
The script employs conditional coloring to visually highlight whether the close price is above or below each SMA.
If the close price is below the SMA 20 High, it's plotted in red; otherwise, it's plotted in green.
Similarly, the SMA 20 Low and SMA 200 Close are plotted with conditional colors based on the relationship between the close price and each respective SMA.
Previous Day's Data:
The script retrieves and plots the high, low, and close prices of the previous trading day.
This provides traders with valuable information about the previous day's market behavior, which can influence trading decisions.
Opening 15-minute Range Breakout:
The script calculates the high and low prices during the first 15 minutes of each trading day.
These prices represent the opening range for the day.
It then determines whether the current close price is above or below this opening range and plots it accordingly.
This breakout strategy helps traders identify potential trading opportunities based on early price movements.
By integrating these components, the script offers traders a comprehensive analysis of market trends, previous day's performance, and potential breakout opportunities. Its originality lies in the combination of these features into a single, easy-to-use indicator, providing valuable insights for trading decisions.
Papercuts Recency CandlesPapercuts Recency Candles
V0.8 by Joel Eckert @PapercutsTrading
***This is currently an experimental visual exploratory concept.***
*** Experimental tools should only be explored by fellow coders and experienced traders.***
DESCRIPTION:
As coders, how can we seamlessly transition between actual and smoothed price data sets as data ages?
This is a visual experiment to see if and how data can be smoothly transitioned from one value to another over a set number of candles. If we visualize a chart in 3 zones, a head, a body, and a tail we can start to understand how this could work. The head zone would represent the first data set of actual asset prices. The body zone would represent the transition period from the first to the to the second data set. Last, the tail zone would represent the second data set made of a Hull Moving Average of the asset.
CONCEPT:
It is conceived that data and position precision constantly shift as they decay or age, therefore making older price levels act more like price regions or zones vs exact price points. This is what I am calling Recency.
This indicator utilizes the concept of "Recency" to explore the possibility of a new style of candle. It aims to maintain accurately on recent prices action but loosen up accuracy on older price action. The very nature of this requires ALTERING HISTORICAL DATA within the body zone or transition candles to achieve the effect. It is similar to trying to merge a line chart type with a candle chart type.
This experiment of using recency for candles was to create candles that stay more accurate near current price but fade away into a simple line as they age out, resulting in a simplified view of the big picture which consists of older price action.
This experimental design theoretically will help you stay focused only on what is currently unfolding and to minimize distractions from older price nuances.
USAGE:
WHO:
This is not recommended for new traders or novices that are unfamiliar with standard tools. Standardized tools should always be used to get grounded and build a foundation.
Active traders who are familiar with trading comfortably should experiment with this to see if they find it interesting or usable.
Pine coders may find this concept interesting enough, and may adapt the idea to other elements of their own scripts if they find it interesting… I just ask they give credit where credit is due.
HOW:
The best way to visualize how this works is to do the following:
Load it on a chart.
Turn off Standard candles in Chart Setting of the current window. I actually just turn off the bodies and borders, and dim the old wicks as I like the way the old wicks look when left alone with these new candles.
Enable chart replay at a faster speed, like 3x, and play back the chart to watch the behavior of the candles.
You’ll be able to see how the head of the candle type preserves OHLC, and indicates direction but as the candle starts to age it progressively flowers into the HMA
While it plays back try adjusting settings to see how they affect behavior.
You can see the data average in real-time which often reveals how unstable actual price noise really is.
The head candle diagonals indicate the candle body direction.
SETTINGS:
Coloring: You can choose your own bullish or bearish colors to match your scheme.
Price Line: The price line is colored according to the trend and
Head Length: These candles are true to the source high and low. They remain slightly brighter than transition candles. We have a max of 50 to keep things responsive.
Time Decay Length: This is the amount of candles it takes to transition to the tail. Max is 300 to keep things responsive.
Decay Continuity: This forces transition candles to complete the HMA curve instead of creating gaps when conforming to it. The best way to visualize this feature is to run a 3x replay of an asset, and toggle the result on and off. On is preferred.
Tail HMA Length: This is the smoothing amount for the resulting HMA stepline that calculates every close, but has a delayed draw until after the transition candles. You can optionally turn off the delayed visibility to help with comprehension.
Tail HMA Weight: This is simply an option to make the tail thicker or thinner. This also adjusts the border on the head candles to help them stand out.
Show Side Bias Dots: Default true: Draws a dot when bias to one side changes to help keep you on the right side of trade. Side bias is simply the alignment of 3 moving averages in one direction.
IMPORTANT NOTES:
You'll have to turn off or dim the standard candles in your view "Chart Settings" to see this properly.
Be aware that since the candles are based on boxes and utilize the “recency concept”, which means their data decays and changes as it ages. This results in a cleaner chart overall, but exact highs and lows will be averaged out as the data decays, forming a Hull Moving Average stepline of your defined length once decay has finished.
SUMMARY OF HOW IT WORKS:
First it takes candle information and creates unique boxes that represent each candle based on the high and low. It utilizes boxes because standard candles once written, cannot be later altered or removed… which is a key element for this effect to work.
Next it creates a second box and line from open to close for the body of the Head candles. This indicates direction at a glance.
As candles age beyond the defined distance of the “Head” they enter the "Body" aka "Time Decay" zone. Here the accuracy of the high and low will be averaged down using an incremental factor of the HMA, defined by "Time Decay Length" amount of candles.
The resulting tail is an HMA of Tail HMA Length. This tail is always calculate at close, but is not drawn instantly. The draw is delayed so that there is not overlapping data, and this makes the effect look more elegant.
There are also two EMAs within the script that do nothing but help candle coloring and help provide a trade side bias. When both EMA's and the HMA align, a side bias is defined. Only when the side bias changes will a new dot is formed.
Head candles have been simplified from previous versions to be easier to read at a a glance.
Price Ratio Indicator [ChartPrime]The Price Ratio Indicator is a versatile tool designed to analyze the relationship between the price of an asset and its moving average. It helps traders identify overbought and oversold conditions in the market, as well as potential trend reversals.
◈ User Inputs:
MA Length: Specifies the length of the moving average used in the calculation.
MA Type Fast: Allows users to choose from various types of moving averages such as Exponential Moving Average (EMA), Simple Moving Average (SMA), Weighted Moving Average (WMA), Volume Weighted Moving Average (VWMA), Relative Moving Average (RMA), Double Exponential Moving Average (DEMA), Triple Exponential Moving Average (TEMA), Zero-Lag Exponential Moving Average (ZLEMA), and Hull Moving Average (HMA).
Upper Level and Lower Level: Define the threshold levels for identifying overbought and oversold conditions.
Signal Line Length: Determines the length of the signal line used for smoothing the indicator's values.
◈ Indicator Calculation:
The indicator calculates the ratio between the price of the asset and the selected moving average, subtracts 1 from the ratio, and then smooths the result using the chosen signal line length.
// 𝙄𝙉𝘿𝙄𝘾𝘼𝙏𝙊𝙍 𝘾𝘼𝙇𝘾𝙐𝙇𝘼𝙏𝙄𝙊𝙉𝙎
//@ Moving Average's Function
ma(src, ma_period, ma_type) =>
ma =
ma_type == 'EMA' ? ta.ema(src, ma_period) :
ma_type == 'SMA' ? ta.sma(src, ma_period) :
ma_type == 'WMA' ? ta.wma(src, ma_period) :
ma_type == 'VWMA' ? ta.vwma(src, ma_period) :
ma_type == 'RMA' ? ta.rma(src, ma_period) :
ma_type == 'DEMA' ? ta.ema(ta.ema(src, ma_period), ma_period) :
ma_type == 'TEMA' ? ta.ema(ta.ema(ta.ema(src, ma_period), ma_period), ma_period) :
ma_type == 'ZLEMA' ? ta.ema(src + src - src , ma_period) :
ma_type == 'HMA' ? ta.hma(src, ma_period)
: na
ma
//@ Smooth of Source
src = math.sum(source, 5)/5
//@ Ratio Price / MA's
p_ratio = src / ma(src, ma_period, ma_type) - 1
◈ Visualization:
The main plot displays the price ratio, with color gradients indicating the strength and direction of the ratio.
The bar color changes dynamically based on the ratio, providing a visual representation of market conditions.
Invisible Horizontal lines indicate the upper and lower threshold levels for overbought and oversold conditions.
A signal line, smoothed using the specified length, helps identify trends and potential reversal points.
High and low value regions are filled with color gradients, enhancing visualization of extreme price movements.
MA type HMA gives faster changes of the indicator (Each MA has its own specifics):
MA type TEMA:
◈ Additional Features:
A symbol displayed at the bottom right corner of the chart provides a quick visual reference to the current state of the indicator, with color intensity indicating the strength of the ratio.
Overall, the Price Ratio Indicator offers traders valuable insights into price dynamics and helps them make informed trading decisions based on the relationship between price and moving averages. Adjusting the input parameters allows for customization according to individual trading preferences and market conditions.
Fourier Adjusted Average True Range [BackQuant]Fourier Adjusted Average True Range
1. Conceptual Foundation and Innovation
The FA-ATR leverages the principles of Fourier analysis to dissect market prices into their constituent cyclical components. By applying Fourier Transform to the price data, the FA-ATR captures the dominant cycles and trends which are often obscured in noisy market data. This integration allows the FA-ATR to adapt its readings based on underlying market dynamics, offering a refined view of volatility that is sensitive to both market direction and momentum.
2. Technical Composition and Calculation
The core of the FA-ATR involves calculating the traditional ATR, which measures market volatility by decomposing the entire range of price movements. The FA-ATR extends this by incorporating a Fourier Transform of price data to assess cyclical patterns over a user-defined period 'N'. This process synthesizes both the magnitude of price changes and their rhythmic occurrences, resulting in a more comprehensive volatility indicator.
Fourier Transform Application: The Fourier series is calculated using price data to identify the fundamental frequency of market movements. This frequency helps in adjusting the ATR to reflect more accurately the current market conditions.
Dynamic Adjustment: The ATR is then adjusted by the magnitude of the dominant cycle from the Fourier analysis, enhancing or reducing the ATR value based on the intensity and phase of market cycles.
3. Features and User Inputs
Customizability: Traders can modify the Fourier period, ATR period, and the multiplication factor to suit different trading styles and market environments.
Visualization : The FA-ATR can be plotted directly on the chart, providing a visual representation of volatility. Additionally, the option to paint candles according to the trend direction enhances the usability and interpretative ease of the indicator.
Confluence with Moving Averages: Optionally, a moving average of the FA-ATR can be displayed, serving as a confluence factor for confirming trends or potential reversals.
4. Practical Applications
The FA-ATR is particularly useful in markets characterized by periodic fluctuations or those that exhibit strong cyclical trends. Traders can utilize this indicator to:
Adjust Stop-Loss Orders: More accurately set stop-loss orders based on a volatility measure that accounts for cyclical market changes.
Trend Confirmation: Use the FA-ATR to confirm trend strength and sustainability, helping to avoid false signals often encountered in volatile markets.
Strategic Entry and Exit: The indicator's responsiveness to changing market dynamics makes it an excellent tool for planning entries and exits in a trend-following or a breakout trading strategy.
5. Advantages and Strategic Value
By integrating Fourier analysis, the FA-ATR provides a volatility measure that is both adaptive and anticipatory, giving traders a forward-looking tool that adjusts to changes before they become apparent through traditional indicators. This anticipatory feature makes it an invaluable asset for traders looking to gain an edge in fast-paced and rapidly changing market conditions.
6. Summary and Usage Tips
The Fourier Adjusted Average True Range is a cutting-edge development in technical analysis, offering traders an enhanced tool for assessing market volatility with increased accuracy and responsiveness. Its ability to adapt to the market's cyclical nature makes it particularly useful for those trading in highly volatile or cyclically influenced markets.
Traders are encouraged to integrate the FA-ATR into their trading systems as a supplementary tool to improve risk management and decision-making accuracy, thereby potentially increasing the effectiveness of their trading strategies.
INDEX:BTCUSD
INDEX:ETHUSD
BINANCE:SOLUSD
Normalised T3 Oscillator [BackQuant]Normalised T3 Oscillator
The Normalised T3 Oscillator is an technical indicator designed to provide traders with a refined measure of market momentum by normalizing the T3 Moving Average. This tool was developed to enhance trading decisions by smoothing price data and reducing market noise, allowing for clearer trend recognition and potential signal generation. Below is a detailed breakdown of the Normalised T3 Oscillator, its methodology, and its application in trading scenarios.
1. Conceptual Foundation and Definition of T3
The T3 Moving Average, originally proposed by Tim Tillson, is renowned for its smoothness and responsiveness, achieved through a combination of multiple Exponential Moving Averages and a volume factor. The Normalised T3 Oscillator extends this concept by normalizing these values to oscillate around a central zero line, which aids in highlighting overbought and oversold conditions.
2. Normalization Process
Normalization in this context refers to the adjustment of the T3 values to ensure that the oscillator provides a standard range of output. This is accomplished by calculating the lowest and highest values of the T3 over a user-defined period and scaling the output between -0.5 to +0.5. This process not only aids in standardizing the indicator across different securities and time frames but also enhances comparative analysis.
3. Integration of the Oscillator and Moving Average
A unique feature of the Normalised T3 Oscillator is the inclusion of a secondary smoothing mechanism via a moving average of the oscillator itself, selectable from various types such as SMA, EMA, and more. This moving average acts as a signal line, providing potential buy or sell triggers when the oscillator crosses this line, thus offering dual layers of analysis—momentum and trend confirmation.
4. Visualization and User Interaction
The indicator is designed with user interaction in mind, featuring customizable parameters such as the length of the T3, normalization period, and type of moving average used for signals. Additionally, the oscillator is plotted with a color-coded scheme that visually represents different strength levels of the market conditions, enhancing readability and quick decision-making.
5. Practical Applications and Strategy Integration
Traders can leverage the Normalised T3 Oscillator in various trading strategies, including trend following, counter-trend plays, and as a component of a broader trading system. It is particularly useful in identifying turning points in the market or confirming ongoing trends. The clear visualization and customizable nature of the oscillator facilitate its adaptation to different trading styles and market environments.
6. Advanced Features and Customization
Further enhancing its utility, the indicator includes options such as painting candles according to the trend, showing static levels for quick reference, and alerts for crossover and crossunder events, which can be integrated into automated trading systems. These features allow for a high degree of personalization, enabling traders to mold the tool according to their specific trading preferences and risk management requirements.
7. Theoretical Justification and Empirical Usage
The use of the T3 smoothing mechanism combined with normalization is theoretically sound, aiming to reduce lag and false signals often associated with traditional moving averages. The practical effectiveness of the Normalised T3 Oscillator should be validated through rigorous backtesting and adjustment of parameters to match historical market conditions and volatility.
8. Conclusion and Utility in Market Analysis
Overall, the Normalised T3 Oscillator by BackQuant stands as a sophisticated tool for market analysis, providing traders with a dynamic and adaptable approach to gauging market momentum. Its development is rooted in the understanding of technical nuances and the demand for a more stable, responsive, and customizable trading indicator.
Thus following all of the key points here are some sample backtests on the 1D Chart
Disclaimer: Backtests are based off past results, and are not indicative of the future.
INDEX:BTCUSD
INDEX:ETHUSD
BINANCE:SOLUSD
MarketRangerThis indicator puts a selection of elements together providing traders with insights into price dynamics, trend changes, and potential trading opportunities within the specified timeframe.
Trading Range Defined by Support and Resistance :
Support and resistance levels are calculated using the lowest low and highest high over specified periods.
These
levels define the boundaries of the trading range within which the price moves.
WMA Color Changing based on Slope :
The script uses three Weighted Moving Averages (WMAs) with different lengths.
The color of the main WMA changes based on its slope.
When the slope of the WMA is positive (indicating an uptrend), it's displayed in blue. When it's
negative (indicating a downtrend), it's displayed in pink.
New High/Low Detection :
The script detects new highs and lows in the price action.
A new high is detected when the current high crosses under the previous resistance level, and a new low is detected when the current low crosses over the previous support level.
These
detections are marked by triangle shapes above or below the bars.
WMA Crosses :
The script calculates the difference between the two WMAs.
When the faster WMA crosses above the slower WMA, indicating a potential bullish signal, a blue cross shape is plotted below the bar.
When the faster WMA crosses below the slower WMA, indicating a potential bearish signal, a
pink cross shape is plotted above the bar.
Slope Changes :
The script calculates the slope of the main WMA and tracks changes in slope.
A positive slope indicates an upward trend, while a negative slope indicates a downward trend.
Slope changes from negative to positive indicate potential bullish momentum, and from
positive to negative indicate potential bearish momentum.
Customizable Pivot Levels :
Pivot levels are calculated based on user-defined percentages of the range between support and resistance.
Pivot Level 1 and Pivot Level 2 provide additional reference points for potential reversals or trend continuation.
Usage :
The indicator provides support and resistance levels, new high/low alerts, and WMA crosses.
The midpoint and customizable pivot levels offer potential trading zones.
Slope change points indicate potential shifts in market sentiment.
Customize the pivot levels according to your trading strategy.
Parameters :
Adjust the WMA lengths and support/resistance lengths to suit your trading style.
Modify the visibility settings to control how many periods of support and resistance are displayed.
Customize the pivot levels to fit your preferred trading strategy.
Alerts :
Alerts are triggered for new high/low points and WMA crosses.
Use alerts to stay informed about potential trading opportunities.
Interpretation :
Watch for new high/low points for potential trend reversals or continuations.
Monitor WMA crosses and slope changes for signals of market direction.
Consider trading near support/resistance levels and pivot points.
Additional Notes :
Experiment with different settings to find the configuration that best suits your trading preferences.
Backtest the indicator on historical data to validate its effectiveness before using it in live trading.
Daniels Script v2 EMA 4h y DTitle:
"EMA 200 Dynamic Projection on 4H and Daily Charts"
Description:
"This script is designed to provide traders with a comprehensive view of market trends by displaying the 200-period Exponential Moving Average (EMA) on both 4-hour and daily charts simultaneously. Unlike typical EMA representations, this script enhances user decision-making by projecting the potential future path of these EMAs using a dynamic slope calculation.
The dynamic projection feature calculates the slope based on recent changes in the EMA, allowing traders to visualize potential future trends more accurately. This innovative approach helps in identifying potential areas of support and resistance before they are fully formed, offering traders a strategic advantage in planning their entries and exits.
Key Features:
Dual Time Frame Analysis: View 200-period EMAs for both 4-hour and daily charts on a single graph.
Dynamic EMA Projections: Projected using a calculated slope from recent EMA changes, presented as dotted lines for clear distinction.
Enhanced Trend Visualization: Helps in recognizing trend continuations or reversals early, aiding in risk management and decision-making processes.
Usage:
Simply add the script to your chart, and the EMAs along with their projections will automatically be displayed. The 4-hour EMA is shown in green, while the daily EMA is in red. Projections extend from the last known data point, providing a visual guide to potential future movements.
This script is unique in its approach to combining real-time EMA analysis with predictive modeling, making it a valuable tool for traders looking to enhance their technical analysis capabilities."
## SPANISH
Título del Script:
"Proyección Dinámica de la EMA 200 en Gráficos de 4H y Diarios"
Descripción del Script:
"Este script está diseñado para proporcionar a los traders una visión integral de las tendencias del mercado al mostrar la Media Móvil Exponencial (EMA) de 200 periodos tanto en los gráficos de 4 horas como diarios simultáneamente. A diferencia de las representaciones típicas de la EMA, este script mejora la toma de decisiones del usuario al proyectar el posible camino futuro de estas EMAs utilizando un cálculo de pendiente dinámico.
La función de proyección dinámica calcula la pendiente basada en cambios recientes en la EMA, permitiendo a los traders visualizar tendencias futuras potenciales con mayor precisión. Este enfoque innovador ayuda a identificar áreas potenciales de soporte y resistencia antes de que se formen completamente, ofreciendo a los traders una ventaja estratégica en la planificación de sus entradas y salidas.
Características Clave:
Análisis de Doble Marco Temporal: Visualiza las EMAs de 200 periodos para los gráficos de 4 horas y diarios en un solo gráfico.
Proyecciones Dinámicas de la EMA: Proyectadas utilizando una pendiente calculada a partir de cambios recientes en la EMA, presentadas como líneas punteadas para una clara distinción.
Visualización Mejorada de Tendencias: Ayuda en el reconocimiento temprano de continuaciones o reversos de tendencias, asistiendo en la gestión de riesgos y en los procesos de toma de decisiones.
Uso:
Simplemente añade el script a tu gráfico, y las EMAs junto con sus proyecciones se mostrarán automáticamente. La EMA de 4 horas se muestra en verde, mientras que la EMA diaria está en rojo. Las proyecciones se extienden desde el último punto de datos conocido, proporcionando una guía visual hacia movimientos futuros potenciales.
Este script es único en su enfoque de combinar análisis de EMA en tiempo real con modelado predictivo, convirtiéndolo en una herramienta valiosa para traders que buscan mejorar sus capacidades de análisis técnico."
Sniper BreakoutThis indicator is based on 3 indicator :=
1) Forex Market Session 2) Ema 200 3) Volume
This indicator is for Forex market ..in Forex market (ex- Eur/Usd ) price often (67%) do rotation in every session means example :let suppose a trade take trade in asian session and have 30 pips stop loss 67 % chance price will come back to entry price after London session or New York session so trade have less chance to make trade without hitting stop loss
in this indicator we are using Forex market session indicator to get session range start to end ..this indicator will only search opportunity in London And New York Session range and that can be customize from input section . user can select time zone and time of session from input section indicator and color of session .
next indicator using 200 length Exponential Moving Average for trend identification .if close price is above 200 Ema means trend is upside moving & if close price is below 200 Ema means price is moving downside .user can change length and source of Ema from input section .
Third and most important part is volume indicator when a session start (Example-London session it keep Look back 6 previous candle and compare volume imbalance between look back candle .look back candle can be customize from input section default look back candle input is (6).
next we are using trade range time to only show trade on certain time because often market convert into trading range so given specific input time it only take trade when volume and price is rising or falling .time range can be selected from input section .
Trade Entry Buy Signal -if price is either London or New York session and price is above 200 Ema and volume not in imbalance last number of candle it give Feb (first entry buy ) we keep save high price of every candle after Feb (label ) signal .if any candle break above Feb label it show a confirm buy signal ..Below in example as we can see
Example Image Buy Signal -
in this above example step -1 we searching imbalance of volume and price as we can see imbalance of volume and price on green candle .next we look price is above 200 ema .next step(2) we got Feb (first entry buy ) signal this is not a confirm buy signal .we save high of candle next candle high close above previous candle high we got confirm buy signal .
Trade Entry Sell Signal - if price is either London or New York session and price is below 200 Ema and volume not in imbalance last number of candle it give Feb (first entry Sell ) we keep save low price of every candle after Fes (label ) signal .if any candle break below Fes label it show a confirm sell signal ..Below in example as we can see
step-1 starting of london session we start getting imbalance between price and volume .price is getting rejected but volume is rising on green candle we got fes (first entry sell signal ).next we save low of fes candle but price close above that low of candle we dont get confirm sell entry next price break below low of previous candle so open a new sell signal ..
Example 3 - No Confirm buy/sell Signal
In this above Image example we did not get any confirm signal...we got first entry buy signal but price did not close high of candle in london session .so that day chance price can go any side ..
Example 4 -Feb signal and later confirm buy entry
in this above example we got imbalance of volume and feb(first entry buy signal) but we dont get any confirm buy signal price is just going high then previous candle ..later we see price crossover high of previous candle we got confirm buy signal
Use Of Indicator - This indicator helps traders identify potential trade setups by signaling the first entry points and confirming them later. It's particularly useful for avoiding getting caught in price rotations and aligning trades with significant volume and price movements. Traders should analyze price action and news before confirming a trade.
Wilder's ChannelThe Wilder’s channel is a typical channel indicator made of 2 Wilder’s average from the high and low price over a “p” period, factorized by the Average True Range value over “atx” period.
Indicator from Kevin Britain library.
"Wilder's Channel," which is plotted on the chart overlay to assist traders in visualizing potential support and resistance levels. This script uses a combination of Wilder's Moving Average and the Average True Range (ATR) to create a channel around price movements. Here's a breakdown of how it works and its benefits:
Trend Confirmation: The channel helps confirm the current trend direction. If prices are consistently near the upper boundary, it suggests an uptrend, and vice versa for a downtrend.
Support and Resistance Levels: The Upper and Lower lines serve as dynamic support and resistance levels, which can help traders identify potential entry and exit points.
Volatility Insight: The width of the channel gives insight into market volatility. A wider channel indicates higher volatility, while a narrower channel suggests less volatility.
Trade Management: The buffer zones can be used for additional decision-making points, such as tightening stop-loss orders or preparing for potential breakouts or pullbacks.
Ratio Chart of Two AssetsThis custom Pine Script indicator allows traders and analysts to compare the performance of two distinct assets by visualizing their price ratio over time. The "Ratio Chart" indicator plots the ratio of the closing prices of any two selected assets, making it easier to observe how one asset performs relative to another within the same chart.
Features:
1. Customizable Symbols: Users can input any two ticker symbols for comparison. The default comparative symbol is set as 'NSE:NIFTY'.
2. Ratio Visualization: The main plot displays the ratio of the two asset prices, providing a straightforward view of their relative price movements.
3. Moving Average: An optional moving average can be added to the ratio plot. This helps in identifying the trend direction and smoothens out short-term fluctuations. The period of the moving average is customizable, with a default setting of 50.
Use Cases:
1. Market Analysis: Ideal for traders who wish to analyze the strength of one market relative to another, such as comparing a sector index against a broader market index.
2. Strategic Trading: Useful for pairs trading strategies, allowing traders to identify potential convergence and divergence opportunities between two correlated assets.
How to Use:
1. Add the indicator to your chart from the Indicators menu.
2. Customize the comparative symbol as required.
3. Adjust the moving average period to suit your analysis timeframe.
By providing a clear, comparative visualization of asset prices, this indicator is an invaluable tool for market analysis and trading strategy development.
Moving Average Crossover Strategy by AI and Anton ThomasDescription:
Indicator Name: Moving Average Crossover Strategy
Overview:
The "Moving Average Crossover Strategy" is a technical analysis indicator that combines moving averages and the Relative Strength Index (RSI) to identify potential buy and sell signals. It aims to capture trend reversals and momentum shifts in the market.
Key Components:
Moving Averages:
The indicator calculates two moving averages:
Fast Moving Average (10-period SMA): This average reacts more quickly to price changes.
Slow Moving Average (30-period SMA): This average provides a smoother trend indication.
A bullish signal occurs when the fast moving average crosses above the slow moving average (golden cross), indicating a potential uptrend.
A bearish signal occurs when the fast moving average crosses below the slow moving average (death cross), indicating a potential downtrend.
Relative Strength Index (RSI):
The RSI measures the strength and momentum of price movements on a scale of 0 to 100.
A reading above 70 indicates overbought conditions, suggesting a potential reversal to the downside.
A reading below 30 indicates oversold conditions, suggesting a potential reversal to the upside.
Trading Signals:
Buy Signal:
Generated when the fast moving average crosses above the slow moving average (longCondition).
Additionally, a buy signal is identified when the RSI is oversold (below 30) and then crosses above the oversold threshold.
The indicator plots a green triangle above the bar to indicate the buy signal.
Sell Signal:
Generated when the fast moving average crosses below the slow moving average (shortCondition).
Additionally, a sell signal is identified when the RSI is overbought (above 70) and then crosses below the overbought threshold.
The indicator plots a red triangle below the bar to indicate the sell signal.
Additional Features:
Bullish Engulfing Pattern:
Detects bullish engulfing candlestick patterns, indicating potential bullish reversals.
Plots a green triangle below the bar to highlight the bullish engulfing pattern.
Bearish Engulfing Pattern:
Detects bearish engulfing candlestick patterns, indicating potential bearish reversals.
Plots a red triangle above the bar to highlight the bearish engulfing pattern.
Oversold and Overbought Levels:
Plots horizontal dashed lines at 30 (oversold) and 70 (overbought) on the RSI indicator.
Usage:
Traders can use this indicator to identify potential entry and exit points in the market based on moving average crossovers, RSI conditions, and candlestick patterns. It provides a comprehensive view of trend direction and momentum.
Considerations:
Always confirm signals with other technical analysis tools and market conditions.
Implement proper risk management strategies to minimize potential losses.
Example:
A buy signal is generated when the fast moving average crosses above the slow moving average, and the RSI is below 30 but crosses above it.
A sell signal is generated when the fast moving average crosses below the slow moving average, and the RSI is above 70 but crosses below it.
If you find this indicator profitable, please support by gifting some USDT (BSC NETWORK): 0x2c5c2dd39bbcc9453dd1428d881da37dacd9bf47
or just a thank you email at antonthomasfull(at)gmail.com
Support Resistance & Ema
The "Support Resistance & Ema" indicator combines various strategies to assist traders in identifying significant support and resistance levels on the chart and in following trends through exponential moving averages (EMA). This script is designed to be versatile and useful in different trading strategies.
Key Features:
Support and Resistance: It utilizes pivot highs and lows to pinpoint support and resistance levels. These levels are plotted on the chart with lines that change color based on trend reversals.
Trend Identification: The indicator follows trends using four conditions:
_hh: Higher highs and higher lows, indicating an uptrend.
_ll: Lower highs and lower lows, indicating a downtrend.
_hl: Higher highs and lower lows, indicating weakening uptrend or an impending reversal.
_lh: Lower highs and higher lows, indicating weakening downtrend or an impending reversal.
Exponential Moving Averages (EMA): It also displays various EMAs (9, 21, 50, 100, 200) on the chart to provide further insights into the trend direction.
Usage:
Support and Resistance: Support and resistance lines are automatically plotted on the chart. Trend reversals are highlighted by changing the color of the lines.
Trend Identification: The _hh, _ll, _hl, _lh conditions help identify trend changes. When one of these conditions is met, it indicates a particular configuration of highs and lows that might suggest a trading opportunity.
Exponential Moving Averages (EMA): The EMAs are plotted on the chart and can be used to confirm trends identified by the main indicator.
To use this script, you need to add it as an indicator to your trading chart. Once applied, the support, resistance lines, and EMAs will be visible on the chart, providing traders with valuable information to make informed trading decisions.
In summary, this script offers a comprehensive way to identify significant support and resistance levels, spot market trends, and confirm those trends through the use of exponential moving averages.
Moving average strategyNAME : Moving average strategy
SUMMARY
Long when Short MA period > Long MA period
Exit when Short MA period < Long MA period
Long only strategy, but you can modify this script.
==============================
This strategy uses a moving average line.
It buys when the short-term moving average crosses the long-term moving average and sells when the long-term moving average crosses the short-term moving average.
You can use different moving average lines by setting the MA type.
You can use SMA, EMA, DEMA, TEMA, WMA, and VWMA.
You can also adjust the period of the moving average line.
Price Type sets the type of price that will be used for the moving average line. The options are Close price, Open price, High price, Low price, Typical price, and center price.
High MDD and long periods of sideways movement make it difficult to use in practice, even though the returns may seem high.
Hopefully, you can combine it with other indicators to create a good strategy.
Thank you.
MTF Bullish & Bearish Crosses of Moving Averages with AlertsIn the Table from the right center are displayed moving averages values from 4 different timeframes choosed by the user input and the moving averages crosses bullish or bearish, default timeframes values are 15 min, 60 min, 4h and Daily, users can change the values from 1 second to the values they want.
The indicator display current timeframes moving averages, default lengths are 50 ema and 200 ema and Golden and Death crosses, this can be hidden from style if the users do not want to display them.
The script comes with 7 types of moving averages that can users can chose: ALMA, DEMA, EMA, HMA, SMA, VWMA and WMA and also users are able to change the legth of the moving averages from dashboard to fit their trading style.
Users are able to set alerts for the moving averages crosses for all 4 custom timeframes, 8 alerts, one for bullish and one for bearish crosses at each timeframe.