Custom Supertrend Multi-Timeframe Indicator [Pineify]Supertrend Multi-Timeframe Indicator
Introduction
The Supertrend Multi-Timeframe Indicator is an advanced trading tool designed to help traders identify trend directions and potential buy/sell signals by combining Supertrend indicators from multiple timeframes. This script is original in its approach to integrating Supertrend calculations across different timeframes, providing a more comprehensive view of market trends.
Concepts and Calculations
The indicator utilizes the Supertrend algorithm, which is based on the Average True Range (ATR). The Supertrend is a popular tool for trend-following strategies, and this script enhances its capabilities by incorporating data from a larger timeframe.
Supertrend Factor: Determines the sensitivity of the Supertrend line.
ATR Length: Defines the period for calculating the Average True Range.
Larger Supertrend Factor and ATR Length: Applied to the larger timeframe for a broader trend perspective.
Larger Timeframe: The higher timeframe from which the secondary Supertrend data is sourced.
How It Works
The script calculates the Supertrend for the current timeframe using the specified factor and ATR length.
Simultaneously, it requests Supertrend data from a larger timeframe.
Buy and sell signals are generated based on crossovers and crossunders of the Supertrend lines from both timeframes.
Visual cues (up and down arrows) are plotted on the chart to indicate buy and sell signals.
Background colors change to reflect the trend direction: green for an uptrend and red for a downtrend.
Usage
Add the indicator to your TradingView chart.
Customize the Supertrend factors, ATR lengths, and larger timeframe according to your trading strategy.
Enable or disable buy and sell alerts as needed.
Monitor the chart for visual signals and background color changes to make informed trading decisions.
Note: The indicator is best used in conjunction with other technical analysis tools and should not be relied upon as the sole basis for trading decisions.
Conclusion
The Supertrend Multi-Timeframe Indicator offers a unique and powerful way to analyze market trends by leveraging the strengths of the Supertrend algorithm across multiple timeframes. Its customizable settings and clear visual signals make it a valuable addition to any trader's toolkit.
Centered Oscillators
Trend Strength with Volatility and Volume [ST]Trend Strength with Volatility and Volume
Description in English:
This indicator combines market volatility and trading volume to measure the current trend strength. It helps identify when the trend is gaining or losing momentum.
Detailed Explanation:
Configuration:
Length: This input defines the period over which the moving average is calculated. The default value is 14.
MA Type: This input allows you to choose between a Simple Moving Average (SMA) and an Exponential Moving Average (EMA).
Volatility Length: This input defines the period over which the ATR (Average True Range) is calculated. The default value is 14.
Volume Length: This input defines the period over which the moving average of volume is calculated. The default value is 14.
Trend Strength Calculation:
Moving Average (MA): The script calculates the moving average of the closing price based on the selected type (SMA or EMA) and period.
Volatility (ATR): The ATR is used to measure market volatility over the specified period.
Volume MA: The script calculates the moving average of the trading volume based on the selected type (SMA or EMA) and period.
Trend Strength: The trend strength is calculated as the difference between the closing price and the moving average, divided by the volatility, and multiplied by the volume normalized by its moving average.
Plotting:
The trend strength is plotted as a line chart. Positive values indicate a strong upward trend, while negative values indicate a strong downward trend.
A horizontal line is added at the zero level to help identify the neutral point.
Indicator Benefits:
Trend Identification: Helps traders identify the strength of the current trend by combining price, volatility, and volume.
Visual Cues: Provides clear visual signals for trend strength, aiding in making informed trading decisions.
Customizable Parameters: Allows traders to adjust the length of the moving averages, ATR, and volume to suit different trading strategies and market conditions.
Justification of Component Combination:
Combining price, volatility, and volume provides a comprehensive measure of trend strength. This combination enhances the trader's ability to make informed decisions based on multiple market factors.
How Components Work Together:
The script calculates the moving average of the closing price and trading volume.
It measures market volatility using the ATR.
The trend strength is calculated by combining these components, providing a robust measure of the current trend's strength.
Título: Força da Tendência com Volatilidade e Volume
Descrição em Português:
Este indicador combina a volatilidade do mercado, medida pelo ATR (Average True Range), e o volume de negociações para medir a força da tendência atual. Ele ajuda a identificar quando a tendência está ganhando ou perdendo força.
Explicação Detalhada:
Configuração:
Comprimento: Este parâmetro define o período para o cálculo da média móvel. O valor padrão é 14.
Tipo de MA: Este parâmetro permite escolher entre uma Média Móvel Simples (SMA) e uma Média Móvel Exponencial (EMA).
Comprimento da Volatilidade: Este parâmetro define o período para o cálculo do ATR (Average True Range). O valor padrão é 14.
Comprimento do Volume: Este parâmetro define o período para o cálculo da média móvel do volume. O valor padrão é 14.
Cálculo da Força da Tendência:
Média Móvel (MA): O indicador calcula a média móvel do preço de fechamento com base no tipo selecionado (SMA ou EMA) e período.
Volatilidade (ATR): O ATR é usado para medir a volatilidade do mercado ao longo do período especificado.
Média Móvel do Volume: O indicador calcula a média móvel do volume de negociação com base no tipo selecionado (SMA ou EMA) e período.
Força da Tendência: A força da tendência é calculada como a diferença entre o preço de fechamento e a média móvel, dividida pela volatilidade e multiplicada pelo volume normalizado pela sua média móvel.
Plotagem:
A força da tendência é plotada como um gráfico de linhas. Valores positivos indicam uma forte tendência de alta, enquanto valores negativos indicam uma forte tendência de baixa.
Uma linha horizontal é adicionada no nível zero para ajudar a identificar o ponto neutro.
Benefícios do Indicador:
Identificação de Tendências: Este indicador ajuda os traders a identificar a força da tendência atual, combinando preço, volatilidade e volume.
Sinais Visuais Claros: Fornece sinais visuais claros para a força da tendência, facilitando a tomada de decisões informadas.
Parâmetros Personalizáveis: Os traders podem ajustar o comprimento das médias móveis, ATR e volume para se adequar a diferentes estratégias de negociação e condições de mercado.
Justificação da Combinação de Componentes:
A combinação de preço, volatilidade e volume fornece uma medida abrangente da força da tendência.
Isso melhora a capacidade dos traders de tomar decisões informadas com base em múltiplos fatores do mercado.
Como os Componentes Funcionam Juntos:
O indicador calcula a média móvel do preço de fechamento e do volume de negociação.
Mede a volatilidade do mercado usando o ATR.
A força da tendência é calculada combinando esses componentes, fornecendo uma medida robusta da força da tendência atual.
Momentum & Squeeze Oscillator [UAlgo]The Momentum & Squeeze Oscillator is a technical analysis tool designed to help traders identify shifts in market momentum and potential squeeze conditions. This oscillator combines multiple timeframes and periods to provide a detailed view of market dynamics. It enhances the decision-making process for both short-term and long-term traders by visualizing momentum with customizable colors and alerts.
🔶 Key Features
Custom Timeframe Selection: Allows users to select a custom timeframe for oscillator calculations, providing flexibility in analyzing different market periods.
Recalculation Option: Enables or disables the recalculation of the indicator, offering more control over real-time data processing.
Squeeze Background Visualization: Highlights potential squeeze conditions with a background color, helping traders quickly spot consolidation periods.
Adjustable Squeeze Sensitivity: Users can modify the sensitivity of the squeeze detection, tailoring the indicator to their specific trading style and market conditions.
Bar Coloring Condition: Option to color the price bars based on momentum conditions, enhancing the visual representation of market trends.
Threshold Bands: Option to fill threshold bands for a clearer visualization of overbought and oversold levels.
Reference Lines: Display reference lines for overbought, oversold, and mid-levels, aiding in quick assessment of momentum extremes.
Multiple Output Modes: Offers different output visualization modes, including:
ALL: Displays all calculated momentum values (fast, medium, slow).
AVG: Shows the average momentum, providing a consolidated view.
STD: Displays the standard deviation of momentum, useful for understanding volatility.
Alerts: Configurable alerts for key momentum events such as crossovers and squeeze conditions, keeping traders informed of important market changes.
🔶 Usage
The Momentum & Squeeze Oscillator can be used for various trading purposes:
Trend Identification: Use the oscillator to determine the direction and strength of market trends. By analyzing the average, fast, medium, and slow momentum lines, traders can gain insights into short-term and long-term market movements.
Squeeze Detection: The indicator highlights periods of low volatility (squeeze conditions) which often precede significant price movements. Traders can use this information to anticipate and prepare for potential breakouts.
Overbought/Oversold Conditions: The oscillator helps identify overbought and oversold conditions, indicating potential reversal points. This is particularly useful for timing entry and exit points in the market.
Momentum Shifts: By monitoring the crossover of momentum lines with key levels (e.g., the 50 level), traders can spot shifts in market momentum, allowing them to adjust their positions accordingly.
🔶 Disclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Uptrick: MACD Slope Buy/Sell SignalsThe "Uptrick: MACD Slope Buy/Sell Signals" indicator is an advanced technical analysis tool meticulously crafted to provide traders with precise buy and sell signals derived from the slope changes of the Moving Average Convergence Divergence (MACD) signal line. This indicator integrates user-defined parameters for the MACD calculation, including the fast length, slow length, and signal smoothing period. These parameters allow traders to customize the indicator according to their specific trading strategies and timeframes, ensuring adaptability across various market conditions.
The primary function of this indicator is to monitor the slope of the MACD signal line and detect significant shifts that indicate potential changes in market momentum. The indicator calculates the slope by comparing the current value of the signal line to its previous value, and further determines the change in slope to identify acceleration or deceleration in the trend. A buy signal is generated when the slope of the signal line transitions from negative to positive, signaling an upward momentum, while a sell signal is triggered when the slope moves from positive to negative, indicating a downward trend. To enhance signal accuracy, the indicator distinguishes between regular and strong signals. A strong buy signal requires the slope change to be greater than the simple moving average (SMA) of recent slope changes, whereas a strong sell signal necessitates the slope change to be less than the negative SMA of recent slope changes.
A unique feature of this indicator is its dynamic and intuitive visualization. When a strong buy or sell signal is identified, it plots labels ('B' for buy and 'S' for sell) directly on the price chart. These labels are strategically positioned below or above the respective bars to ensure clear visibility and reduce chart clutter. The indicator also includes an option to connect consecutive signals with lines, which enhances the visual tracking of signal sequences and provides a coherent view of the trend's progression. The color intensity of the plotted signals varies based on the absolute value of the slope, offering an immediate visual cue on the strength of the detected trend changes. A steeper slope results in a darker color, signaling a stronger trend.
To facilitate comprehensive analysis, the indicator also plots the MACD and signal lines on the chart, providing traders with a reference to the underlying data that drives the buy and sell signals. These lines are color-coded for easy differentiation: the MACD line is typically blue, and the signal line is orange. This visual aid ensures that traders have a clear understanding of the indicator's basis and can cross-reference the generated signals with the MACD behavior.
The calculation of this indicator is grounded in well-established technical analysis principles. It employs the MACD function to derive the MACD line and signal line based on the user-defined parameters. The slope of the signal line is then computed, followed by the calculation of the slope change. The buy and sell signals are determined by comparing the current and previous slopes, and the strong signals are filtered through an additional layer of slope change analysis relative to its moving average.
The accuracy and reliability of the "Uptrick: MACD Slope Buy/Sell Signals" indicator stem from its thorough and methodical approach to signal generation. By combining user customization, detailed slope analysis, and robust visual elements, this indicator serves as a powerful tool for traders seeking precise entry and exit points in the market. Its ability to adapt to different trading styles and market conditions, coupled with its clear visual cues, makes it a valuable addition to any trader's toolkit, enhancing decision-making and improving trading outcomes.
Uptrick: Bullish/Bearish Signal DetectorDetailed Explanation of the "Uptrick: Bullish/Bearish Signal Detector" Script
The "Uptrick: Bullish/Bearish Signal Detector" script is a sophisticated tool designed for the TradingView platform, leveraging Pine Script version 5. This script is crafted to enhance traders' ability to identify bullish (buy) and bearish (sell) signals directly on their trading charts. By combining the power of the MACD (Moving Average Convergence Divergence) and RSI (Relative Strength Index) indicators, this script provides a unique and efficient method for detecting potential trading opportunities. Below is an in-depth exploration of its purpose, features, and functionality.
Purpose
The primary purpose of this script is to assist traders in identifying potential entry and exit points in the market by signaling bullish and bearish conditions. This automated detection helps traders make more informed decisions without the need to manually analyze complex indicators. By overlaying signals directly on the price chart, the script allows for quick visual identification of market trends and reversals.
Uniqueness
What sets this script apart is its dual use of MACD and RSI indicators. While many trading strategies might rely on a single indicator, combining MACD and RSI enhances the reliability of the signals by filtering out false positives. The script not only identifies trends but also adds a layer of confirmation through the RSI, which measures the speed and change of price movements.
Inputs and Features
Customizable Label Appearance:
The script allows users to customize the appearance of the labels that indicate bullish and bearish signals. Users can set their preferred colors for the labels and the text, ensuring that the signals are easily distinguishable and aesthetically pleasing on their charts.
MACD Calculation:
The script calculates the MACD line and signal line using user-defined input values for the fast length, slow length, and signal length. The MACD histogram, which is the difference between the MACD line and the signal line, is used to determine the momentum of the market.
RSI Calculation:
The RSI is calculated using a user-defined input length. The RSI helps in identifying overbought or oversold conditions, which are crucial for confirming the strength of the trend detected by the MACD.
Bullish and Bearish Conditions:
The script defines bullish conditions as those where the MACD histogram is positive and the RSI is above 50. Bearish conditions are defined where the MACD histogram is negative and the RSI is below 50. This combination of conditions ensures that signals are generated based on both momentum and relative strength, reducing the likelihood of false signals.
Label Plotting:
The script plots labels on the chart to indicate bullish and bearish signals. When a bullish condition is met, and the previous signal was not bullish, a "LONG" label is plotted. Similarly, when a bearish condition is met, and the previous signal was not bearish, a "SHORT" label is plotted. This feature helps in clearly marking the points of interest for traders, making it easier to spot potential trades.
Tracking Previous Signals:
To avoid repetitive signals, the script keeps track of the last signal. If the last signal was bullish, it avoids plotting another bullish signal immediately. The same logic applies to bearish signals. This tracking ensures that signals are spaced out and only significant changes in market conditions are highlighted.
How It Works
The script operates in a loop, processing each bar (or candlestick) on the chart as new data comes in. It calculates the MACD and RSI values for each bar and checks if the current conditions meet the criteria for a bullish or bearish signal. If a signal is detected and it is different from the last signal, a label is plotted on the chart at the current bar's price level. This real-time processing allows traders to see the signals as they form, providing timely insights into market movements.
Practical Application
For practical use, a trader would add this script to their TradingView chart. They can customize the input parameters for the MACD and RSI calculations to fit their trading strategy or preferred settings. Once added, the script will automatically analyze the price data and start plotting "LONG" and "SHORT" labels based on the detected signals. Traders can then use these labels to make decisions on entering or exiting trades, adjusting their strategy as necessary based on the signals provided.
Conclusion
The "Uptrick: Bullish/Bearish Signal Detector" script is a powerful tool for any trader looking to leverage technical indicators for better trading decisions. By combining MACD and RSI, it offers a robust method for detecting market trends and potential reversals. The customizable features and real-time signal plotting make it a versatile and user-friendly addition to any trading toolkit. This script not only simplifies the process of technical analysis but also enhances the accuracy of trading signals, thereby potentially increasing the trader's success rate in the market.
Moving Average Crossover Swing StrategyMoving Average Crossover Swing Strategy
**Overview:**
The basic concept of this strategy is to generate a signal when a faster/shorter length moving average crosses over (for Longs) or crosses under (for Shorts) a medium/longer length moving average. All of which are customizable. This strategy can work on any timeframe, however the daily is the timeframe used for the default settings and screenshots, as it was designed to be a multi-day swing strategy. Once a signal has been confirmed with a candle close, based on user options, the strategy will enter the trade on the open of the next candle.
The crossover strategy is nothing new to trading, but what can make this strategy unique and helpful, is the addition of further confirmation points, ATR based stop loss and take profit targets, optional early exit criteria, customizable to your needs and style, and just about everything visual can be toggled on/off. This strategy is based on a Trend (MA) indicator and a Momentum (MACD) indicator. While a Volume-based indicator is not shown here, one could consider using their favorite from that category to further compliment the signal idea.
It should be noted that depending on the time frame, direction(s) chosen, the signal options, confirmation options, and exit options selected, that a ticker may not produce more than 100 trades on the back test. Depending on your style and frequency, one could consider adjusting options and/or testing multiple tickers. It should also be noted that this strategy simply tests the underlying stock prices, not options contracts. And of course, testing this strategy against historical data does not assume that the same results will occur in future price action.
Shoutout given to Ripster's Clouds Indicator as pieces of that code were taken and modified to create both the Cloud visualization effects, and the Moving Average Pair Plots that are implemented in this strategy.
BASIC DEFAULTS
All can be changed as normal
Initial capital = 10,000
Order Sizing = 25% of equity (use the "Inputs" tab to modify this)
Pyramiding = 0
Commission = 0.65 USD per order
Price Verification = 1 tick
Slippage = 1 tick
RISK MANAGMENT
You will notice two different percentage options and ATR multipliers. This strategy will adjust position sizing by not exceeding either one of those % values based on the ATR (Average True Range) of the symbol and the multipliers selected, should the stock hit the stop loss price.
For Example, lets assume these values are true:
Account size = $10,000,
Max Risk = 1% of account size
Max Position Size = 25% of the account size
Stock Price = 23.45
ATR = 3.5
ATR Stop Loss Multiplier = 1.4
Then the formulas would be:
ACCT_SIZE * MaxRisk_% = 10000 * .01 = $100 (MaxCashRisk)
-----
MaxCashRisk / (ATR * ATR_SL_MULTIPLIER) = 100 / (3.5 * 1.4) = 20.4 Shares based on Max Cash Risk
-----
(ACCT_SIZE * MaxEquity_%) / STOCK_PRICE = (10000 * .25) / 23.45 = 106.61 Shares based on Max Equity Allocation
The minimum value of each of those options is then used, which in this case would be to purchase 20 shares so as not to exceed the max dollar risk should the stock reach the stop loss target. Likewise, if the ATR were to be much lower, say 0.48 cents, and all else the same, then the strategy would purchase the 106 shares based on Max Equity Allocation because the Max Cash Risk would require 149.25 shares.
MOVING AVERAGE OPTIONS
Select between and change the length & type of up to 5 pairs (10 total) of moving averages
The "Show Cloud-x" option will display a fill color between the "a" and "b" pairs
All moving averages lines can be toggled on/off in the "Style" tab, as well as adjusting their colors.
Visualization features do not affect calculations, meaning you could have all or nothing on the chart and the strategy will still produce results
SIGNAL CHOICES
Choose the fast/shorter length MA and the medium/longer length MA to determine the entry signal
CONFIRMATION OPTIONS
Both of these have customizable values and can be toggled on/off
A candle close over a slower/much longer length moving average
An additional cross-over (cross-under for Shorts) on the MACD indicator using default MACD values. While the MACD indicator is not necessary to have on the chart, it can help to add that for visualization. The calculations will perform whether the indicator is on the chart or not.
EARLY EXIT CRITERIA
Both can be toggled on/off with customizable values
MA Cross Exit will exit the trade early if the select moving averages cross-under (for longs) or cross-over (for shorts), indicating a potential reversal.
Max Bars in Trades will act as a last-resort exit by simply calculating the amount of full bars the trade has been open, and exiting on the opening of the next bar. For example: the default value is 8 bars, so after 8 full bars in the trade, if no other exit has been triggered (Stop Loss, Take Profit, or MA Cross(if enabled)), then the trade will exit at the opening of the 9th bar.
Finally, there is a table displaying the amount of trades taken for each side, and the amount & percent of both early exits. This table can be turned off in the "Style" tab
ADDITIONAL PLOTS
MACD (Moving Average Convergence/Divergence):
- The MACD is an optional confirmation indicator for this strategy.
- Plotting the indicator is not necessary for the strategy to work, but it can be helpful to visually see the status and position of the MACD if this feature is enabled in the strategy
- This helps to identify if there is also momentum behind the entry signal
Six PillarsGeneral Overview
The "Six Pillars" indicator is a comprehensive trading tool that combines six different technical analysis methods to provide a holistic view of market conditions.
These six pillars are:
Trend
Momentum
Directional Movement (DM)
Stochastic
Fractal
On-Balance Volume (OBV)
The indicator calculates the state of each pillar and presents them in an easy-to-read table format. It also compares the current timeframe with a user-defined comparison timeframe to offer a multi-timeframe analysis.
A key feature of this indicator is the Confluence Strength meter. This unique metric quantifies the overall agreement between the six pillars across both timeframes, providing a score out of 100. A higher score indicates stronger agreement among the pillars, suggesting a more reliable trading signal.
I also included a visual cue in the form of candle coloring. When all six pillars agree on a bullish or bearish direction, the candle is colored green or red, respectively. This feature allows traders to quickly identify potential high-probability trade setups.
The Six Pillars indicator is designed to work across multiple timeframes, offering a comparison between the current timeframe and a user-defined comparison timeframe. This multi-timeframe analysis provides traders with a more comprehensive understanding of market dynamics.
Origin and Inspiration
The Six Pillars indicator was inspired by the work of Dr. Barry Burns, author of "Trend Trading for Dummies" and his concept of "5 energies." (Trend, Momentum, Cycle, Support/Resistance, Scale) I was intrigued by Dr. Burns' approach to analyzing market dynamics and decided to put my own twist upon his ideas.
Comparing the Six Pillars to Dr. Burns' 5 energies, you'll notice I kept Trend and Momentum, but I swapped out Cycle, Support/Resistance, and Scale for Directional Movement, Stochastic, Fractal, and On-Balance Volume. These changes give you a more dynamic view of market strength, potential reversals, and volume confirmation all in one package.
What Makes This Indicator Unique
The standout feature of the Six Pillars indicator is its Confluence Strength meter. This feature calculates the overall agreement between the six pillars, providing traders with a clear, numerical representation of signal strength.
The strength is calculated by considering the state of each pillar in both the current and comparison timeframes, resulting in a score out of 100.
Here's how it calculates the strength:
It considers the state of each pillar in both the current timeframe and the comparison timeframe.
For each pillar, the absolute value of its state is taken. This means that both strongly bullish (2) and strongly bearish (-2) states contribute equally to the strength.
The absolute values for all six pillars are summed up for both timeframes, resulting in two sums: current_sum and alternate_sum.
These sums are then added together to get a total_sum.
The total_sum is divided by 24 (the maximum possible sum if all pillars were at their strongest states in both timeframes) and multiplied by 100 to get a percentage.
The result is rounded to the nearest integer and capped at a minimum of 1.
This calculation method ensures that the Confluence Strength meter takes into account not only the current timeframe but also the comparison timeframe, providing a more robust measure of overall market sentiment. The resulting score, ranging from 1 to 100, gives traders a clear and intuitive measure of how strongly the pillars agree, with higher scores indicating stronger potential signals.
This approach to measuring signal strength is unique in that it doesn't just rely on a single aspect of price action or volume. Instead, it takes into account multiple factors, providing a more robust and reliable indication of potential market moves. The higher the Confluence Strength score, the more confident traders can be in the signal.
The Confluence Strength meter helps traders in several ways:
It provides a quick and easy way to gauge the overall market sentiment.
It helps prioritize potential trades by identifying the strongest signals.
It can be used as a filter to avoid weaker setups and focus on high-probability trades.
It offers an additional layer of confirmation for other trading strategies or indicators.
By combining the Six Pillars analysis with the Confluence Strength meter, I've created a powerful tool that not only identifies potential trading opportunities but also quantifies their strength, giving traders a significant edge in their decision-making process.
How the Pillars Work (What Determines Bullish or Bearish)
While developing this indicator, I selected and configured six key components that work together to provide a comprehensive view of market conditions. Each pillar is set up to complement the others, creating a synergistic effect that offers traders a more nuanced understanding of price action and volume.
Trend Pillar: Based on two Exponential Moving Averages (EMAs) - a fast EMA (8 period) and a slow EMA (21 period). It determines the trend by comparing these EMAs, with stronger trends indicated when the fast EMA is significantly above or below the slow EMA.
Directional Movement (DM) Pillar: Utilizes the Average Directional Index (ADX) with a default period of 14. It measures trend strength, with values above 25 indicating a strong trend. It also considers the Positive and Negative Directional Indicators (DI+ and DI-) to determine trend direction.
Momentum Pillar: Uses the Moving Average Convergence Divergence (MACD) with customizable fast (12), slow (26), and signal (9) lengths. It compares the MACD line to the signal line to determine momentum strength and direction.
Stochastic Pillar: Employs the Stochastic oscillator with a default period of 13. It identifies overbought conditions (above 80) and oversold conditions (below 20), with intermediate zones between 60-80 and 20-40.
Fractal Pillar: Uses Williams' Fractal indicator with a default period of 3. It identifies potential reversal points by looking for specific high and low patterns over the given period.
On-Balance Volume (OBV) Pillar: Incorporates On-Balance Volume with three EMAs - short (3), medium (13), and long (21) periods. It assesses volume trends by comparing these EMAs.
Each pillar outputs a state ranging from -2 (strongly bearish) to 2 (strongly bullish), with 0 indicating a neutral state. This standardized output allows for easy comparison and aggregation of signals across all pillars.
Users can customize various parameters for each pillar, allowing them to fine-tune the indicator to their specific trading style and market conditions. The multi-timeframe comparison feature also allows users to compare pillar states between the current timeframe and a user-defined comparison timeframe, providing additional context for decision-making.
Design
From a design standpoint, I've put considerable effort into making the Six Pillars indicator visually appealing and user-friendly. The clean and minimalistic design is a key feature that sets this indicator apart.
I've implemented a sleek table layout that displays all the essential information in a compact and organized manner. The use of a dark background (#030712) for the table creates a sleek look that's easy on the eyes, especially during extended trading sessions.
The overall design philosophy focuses on presenting complex information in a simple, intuitive format, allowing traders to make informed decisions quickly and efficiently.
The color scheme is carefully chosen to provide clear visual cues:
White text for headers ensures readability
Green (#22C55E) for bullish signals
Blue (#3B82F6) for neutral states
Red (#EF4444) for bearish signals
This color coding extends to the candle coloring, making it easy to spot when all pillars agree on a bullish or bearish outlook.
I've also incorporated intuitive symbols (↑↑, ↑, →, ↓, ↓↓) to represent the different states of each pillar, allowing for quick interpretation at a glance.
The table layout is thoughtfully organized, with clear sections for the current and comparison timeframes. The Confluence Strength meter is prominently displayed, providing traders with an immediate sense of signal strength.
To enhance usability, I've added tooltips to various elements, offering additional information and explanations when users hover over different parts of the indicator.
How to Use This Indicator
The Six Pillars indicator is a versatile tool that can be used for various trading strategies. Here are some general usage guidelines and specific scenarios:
General Usage Guidelines:
Pay attention to the Confluence Strength meter. Higher values indicate stronger agreement among the pillars and potentially more reliable signals.
Use the multi-timeframe comparison to confirm signals across different time horizons.
Look for alignment between the current timeframe and comparison timeframe pillars for stronger signals.
One of the strengths of this indicator is it can let you know when markets are sideways – so in general you can know to avoid entering when the Confluence Strength is low, indicating disagreement among the pillars.
Customization Options
The Six Pillars indicator offers a wide range of customization options, allowing traders to tailor the tool to their specific needs and trading style. Here are the key customizable elements:
Comparison Timeframe:
Users can select any timeframe for comparison with the current timeframe, providing flexibility in multi-timeframe analysis.
Trend Pillar:
Fast EMA Period: Adjustable for quicker or slower trend identification
Slow EMA Period: Can be modified to capture longer-term trends
Momentum Pillar:
MACD Fast Length
MACD Slow Length
MACD Signal Length These can be adjusted to fine-tune momentum sensitivity
DM Pillar:
ADX Period: Customizable to change the lookback period for trend strength measurement
ADX Threshold: Adjustable to define what constitutes a strong trend
Stochastic Pillar:
Stochastic Period: Can be modified to change the sensitivity of overbought/oversold readings
Fractal Pillar:
Fractal Period: Adjustable to identify potential reversal points over different timeframes
OBV Pillar:
Short OBV EMA
Medium OBV EMA
Long OBV EMA These periods can be customized to analyze volume trends over different timeframes
These customization options allow traders to experiment with different settings to find the optimal configuration for their trading strategy and market conditions. The flexibility of the Six Pillars indicator makes it adaptable to various trading styles and market environments.
Fisher Transform on RSIOverview
The Fisher Transform on RSI indicator combines the Relative Strength Index (RSI) with the Fisher Transform to offer a refined tool for identifying market turning points and trends. By applying the Fisher Transform to the RSI, this indicator converts RSI values into a Gaussian normal distribution, enhancing the precision of detecting overbought and oversold conditions. This method provides a clearer and more accurate identification of potential market reversals than the standard RSI.
Key/Unique Features
Fisher Transform Applied to RSI : Transforms RSI values into a Gaussian normal distribution, improving the detection of overbought and oversold conditions.
Smoothing : Applies additional smoothing to the Fisher Transform, reducing noise and providing clearer signals.
Signal Line : Includes a signal line to identify crossover points, indicating potential buy or sell signals.
Custom Alerts : Built-in alert conditions for bullish and bearish crossovers, keeping traders informed of significant market movements.
Visual Enhancements : Background color changes based on crossover conditions, offering immediate visual cues for potential trading opportunities.
How It Works
RSI Calculation : The indicator calculates the Relative Strength Index (RSI) based on the selected source and period length.
Normalization : The RSI values are normalized to fit within a range of -1 to 1, which is essential for the Fisher Transform.
Fisher Transform : The normalized RSI values undergo the Fisher Transform, converting them into a Gaussian normal distribution.
Smoothing : The transformed values are smoothed using a simple moving average to reduce noise and provide more reliable signals.
Signal Line : A signal line, which is a simple moving average of the smoothed Fisher Transform, is plotted to identify crossover points.
Alerts and Visuals : Custom alert conditions are set for bullish and bearish crossovers, and the background color changes to indicate these conditions.
Usage Instructions
Trend Identification : Use the Fisher Transform on RSI to identify overbought and oversold conditions with enhanced precision, aiding in spotting potential trend reversals.
Trade Signals : Monitor the crossovers between the smoothed Fisher Transform and the signal line. A bullish crossover suggests a potential buying opportunity, while a bearish crossover indicates a potential selling opportunity.
Alerts : Set custom alerts based on the built-in conditions to receive notifications when important crossover events occur, ensuring you never miss a trading opportunity.
Visual Cues : Utilize the background color changes to quickly identify bullish (green) and bearish (red) conditions, providing immediate visual feedback on market sentiment.
Complementary Analysis : Combine this indicator with other technical analysis tools and indicators to enhance your overall trading strategy and make more informed decisions.
Daily Range + Asia Liquidity + FVG + silver Bullet sessionIndicator Description :
This indicator combines several trading concepts to provide an overall view of intraday selling opportunities. It includes the following elements:
Daily Range:
Measures the daily price range between the highest and lowest points of the day.
Helps understand daily volatility and identify potential support and resistance levels.
Asia Liquidity:
Analyzes price movements and volumes during the Asian session (usually from 00:00 to 08:00 GMT).
Identifies liquidity levels where the price has reacted during this period, providing clues on where significant orders are concentrated.
FVG (Fair Value Gap):
A trading concept that identifies areas where the price has moved quickly, creating a "gap" or empty space on the chart.
These areas are often revisited by the price, which can provide potential entry or exit points.
Silver Bullet Session:
Refers to a specific period of the day where a particular strategy or setup is expected to occur. For example, this could be a period where price movements are historically more predictable or volatile.
This session particularly targets price movements that attract sellers.
Using the Indicator
Identifying Selling Levels:
Combine the daily range levels with the liquidity zones identified during the Asian session to spot levels where sellers might be interested.
Use the fair value gaps (FVG) to identify areas where the price might return, providing entry or exit points for selling positions.
Silver Bullet Session:
Focus on this period to observe price movements and reactions to the levels identified earlier.
Look for selling signals (e.g., bearish reversal candlesticks or continuation patterns) during this session to maximize selling opportunities.
Objective :
The objective of this indicator is to provide a systematic approach to identifying selling opportunities based on multiple technical and temporal elements. By combining daily volatility, liquidity levels, value gaps, and specific trading periods, this indicator helps traders pinpoint potential selling points with greater accuracy.
Biquad MACDThis indicator reimagines the traditional MACD by incorporating a biquad band pass filter, offering a refined approach to identifying momentum and trend changes in price data. The standard MACD is essentially a band pass filter, but often it lacks precision. The biquad band pass filter addresses this limitation by providing a more focused frequency range, enhancing the quality of signals.
The MACD Length parameter determines the length of the band pass filter, influencing the frequency range that is isolated. Adjusting this length allows you to focus on different parts of the price movement spectrum.
The Bandwidth (BW) setting controls the width of the frequency band in octaves. It affects the smoothness of the MACD line. A larger bandwidth results in less smooth output, capturing a broader range of frequencies, while a smaller bandwidth focuses on a narrower range, providing a smoother signal.
The Signal Length parameter sets the period for the exponential moving average of the MACD line, which acts as a signal line to identify potential buy and sell points.
Key Features of the Biquad MACD
The MACD is a well-known momentum indicator used to identify changes in the strength, direction, momentum, and duration of a trend in a stock's price. By applying a biquad band pass filter, this version of the MACD provides a more refined and accurate representation of price movements.
The biquad filter offers smooth response and minimal phase distortion, making it ideal for technical analysis. The customizable MACD length and bandwidth allow for flexible adaptation to different trading strategies and market conditions. The signal line smooths the MACD values, providing clear crossover points to indicate potential market entry and exit signals.
The histogram visually represents the difference between the MACD and the signal line, changing colors to indicate rising or falling momentum, which helps in quickly identifying trend changes.
By incorporating the Biquad MACD into your trading toolkit, you can enhance your chart analysis with clearer insights into momentum and trend changes, leading to more informed trading decisions.
Coinbase Premium ($) Absolute Dollar Amount # Coinbase Dollar Premium Indicator
## Description
The Coinbase Dollar Premium Indicator is a powerful tool for cryptocurrency traders and analysts, providing real-time insight into the price differences between major exchanges. This indicator calculates and visualizes the dollar amount premium or discount of Bitcoin on Coinbase compared to the average price on Binance and Kraken.
## Key Features
1. **Dollar Value**: Unlike percentage-based indicators, this tool shows the actual dollar amount difference, giving traders a clear understanding of the magnitude of price disparities.
2. **Multi-Exchange Comparison**: By averaging the prices from Binance and Kraken, the indicator provides a more robust baseline for comparison, reducing the impact of single-exchange anomalies.
3. **Clear Visual Representation**: The indicator uses a color-coded histogram for easy interpretation:
- Green bars indicate a premium on Coinbase (Coinbase price is higher)
- Red bars indicate a discount on Coinbase (Coinbase price is lower)
- The height of each bar represents the dollar amount of the premium or discount
4. **Zero Line Reference**: A horizontal line at zero helps quickly distinguish between premium and discount states.
## Use Cases
- **Arbitrage Opportunities**: Identify potential arbitrage opportunities between exchanges.
- **Market Sentiment**: Gauge institutional and retail investor sentiment, as Coinbase is often associated with US institutional activity.
- **Price Prediction**: Use divergences between exchanges as a potential indicator of short-term price movements.
- **Risk Management**: Understand the pricing landscape across major exchanges to make more informed trading decisions.
This indicator is valuable for both short-term traders looking for quick opportunities and long-term investors wanting to understand market dynamics. By providing a clear, dollar-based view of inter-exchange price differences, the Coinbase Dollar Premium Indicator offers unique insights into the cryptocurrency market's microstructure.
*Note: This indicator is for informational purposes only and should not be considered financial advice. Always conduct your own research and consider your risk tolerance before trading.*
20-day High BreakoutOverview:
The 20-day High Breakout Indicator is a very simple yet powerful tool designed for traders seeking to capitalize on significant price movements in the stock market. This indicator identifies potential buy and sell signals based on a stock's 20-day high breakout levels, making it an essential addition to your trading strategy.
Key Features:
Swing Period Input: Customize the swing period to your preferred number of days, with a default of 20 days, allowing flexibility based on your trading style.
Trailing Stop Level: Automatically calculates the trailing stop level based on the highest high and lowest low within the defined swing period, helping to manage risk and lock in profits.
Buy and Sell Signals: Generates clear buy signals when the price crosses above the trailing stop level and sell signals when the price crosses below, enabling timely entries and exits.
Visual Indicators: Plots buy signals as green upward triangles below the bars and sell signals as red downward triangles above the bars, providing easy-to-interpret visual cues directly on the chart.
How It Works:
Resistance and Support Levels: The indicator calculates the highest high (resistance) and lowest low (support) over the defined swing period.
Swing Direction: It determines the market direction by comparing the current closing price to the previous resistance and support levels.
Trailing Stop Calculation: Depending on the market direction, the trailing stop level is set to either the support or resistance level.
Signal Generation: Buy and sell signals are generated based on the crossover of the closing price and the trailing stop level, filtered to ensure only valid signals are displayed.
Visual Representation: The trailing stop level is plotted as a line, and buy/sell signals are marked with respective shapes for easy identification.
Usage:
Trend Following: Ideal for traders looking to follow trends and catch significant breakouts in the stock price.
Risk Management: Helps in managing risk by providing a trailing stop level that adjusts with market movements.
Visual Clarity: The clear visual signals make it easy for traders to interpret and act upon the indicator's signals.
Add the 20-day High Breakout Indicator to your TradingView charts to enhance your trading strategy and gain an edge in identifying profitable trading opportunities.
Filtered MACD with Backtest [UAlgo]The "Filtered MACD with Backtest " indicator is an advanced trading tool designed for the TradingView platform. It combines the Moving Average Convergence Divergence (MACD) with additional filters such as Moving Average (MA) and Average Directional Index (ADX) to enhance trading signals. This indicator aims to provide more reliable entry and exit points by filtering out noise and confirming trends. Additionally, it includes a comprehensive backtesting module to simulate trading strategies and assess their performance based on historical data. The visual backtest module allows traders to see potential trades directly on the chart, making it easier to evaluate the effectiveness of the strategy.
🔶 Customizable Parameters :
Price Source Selection: Users can choose their preferred price source for calculations, providing flexibility in analysis.
Filter Parameters:
MA Filter: Option to use a Moving Average filter with types such as EMA, SMA, WMA, RMA, and VWMA, and a customizable length.
ADX Filter: Option to use an ADX filter with adjustable length and threshold to determine trend strength.
MACD Parameters: Customizable fast length, slow length, and signal smoothing for the MACD indicator.
Backtest Module:
Entry Type: Supports "Buy and Sell", "Buy", and "Sell" strategies.
Stop Loss Types: Choose from ATR-based, fixed point, or X bar high/low stop loss methods.
Reward to Risk Ratio: Set the desired take profit level relative to the stop loss.
Backtest Visuals: Display entry, stop loss, and take profit levels directly on the chart with
colored backgrounds.
Alerts: Configurable alerts for buy and sell signals.
🔶 Filtered MACD : Understanding How Filters Work with ADX and MA
ADX Filter:
The Average Directional Index (ADX) measures the strength of a trend. The script calculates ADX using the user-defined length and applies a threshold value.
Trading Signals with ADX Filter:
Buy Signal: A regular MACD buy signal (crossover of MACD line above the signal line) is only considered valid if the ADX is above the set threshold. This suggests a stronger uptrend to potentially capitalize on.
Sell Signal: Conversely, a regular MACD sell signal (crossunder of MACD line below the signal line) is only considered valid if the ADX is above the threshold, indicating a stronger downtrend for potential shorting opportunities.
Benefits: The ADX filter helps avoid whipsaws or false signals that might occur during choppy market conditions with weak trends.
MA Filter:
You can choose from various Moving Average (MA) types (EMA, SMA, WMA, RMA, VWMA) for the filter. The script calculates the chosen MA based on the user-defined length.
Trading Signals with MA Filter:
Buy Signal: A regular MACD buy signal is only considered valid if the closing price is above the MA value. This suggests a potential uptrend confirmed by the price action staying above the moving average.
Sell Signal: Conversely, a regular MACD sell signal is only considered valid if the closing price is below the MA value. This suggests a potential downtrend confirmed by the price action staying below the moving average.
Benefits: The MA filter helps identify potential trend continuation opportunities by ensuring the price aligns with the chosen moving average direction.
Combining Filters:
You can choose to use either the ADX filter, the MA filter, or both depending on your strategy preference. Using both filters adds an extra layer of confirmation for your signals.
🔶 Backtesting Module
The backtesting module in this script allows you to visually assess how the filtered MACD strategy would have performed on historical data. Here's a deeper dive into its features:
Backtesting Type: You can choose to backtest for buy signals only, sell signals only, or both. This allows you to analyze the strategy's effectiveness in different market conditions.
Stop-Loss Types: You can define how stop-loss orders are placed:
ATR (Average True Range): This uses a volatility measure (ATR) multiplied by a user-defined factor to set the stop-loss level.
Fixed Point: This allows you to specify a fixed dollar amount or percentage value as the stop-loss.
X bar High/Low: This sets the stop-loss at a certain number of bars (defined by the user) above/below the bar's high (for long positions) or low (for short positions).
Reward-to-Risk Ratio: Define the desired ratio between your potential profit and potential loss on each trade. The backtesting module will calculate take-profit levels based on this ratio and the stop-loss placement.
🔶 Disclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be indicative of future results.
Double MACD With Crossover AlertDouble MACD With Crossover Alert
Double MACD with Crossover Alert is based on 2 MACD Histograms with different length settings on top of each other. The first MACD histogram is plotted as a line while the second MACD is plotted as columns. The default MA type for MACD1 is ZEMA or Zero Lag Moving Average.
What is MACD?
Moving average convergence/divergence (MACD) is a technical indicator to help investors identify price trends, measure trend momentum, and identify market entry points for buying or selling. Moving average convergence/divergence (MACD) is a trend-following momentum indicator that shows the relationship between two exponential moving averages (EMAs) of a security’s price. MACD was developed in the 1970s by Gerald Appel.
What is Zero Lag?
Zero lag is a technical analysis tool that aims to reduce or eliminate lag in trend-following indicators that average price over time. Zero lag indicators are designed to provide signals with little or no delay, allowing traders to enter and exit trades quickly and potentially profit from small price movements. Zero-Lag Exponential Moving Average (ZEMA), uses a double-smoothing process to provide a smoother and more responsive moving average. ZEMA can help traders identify trends more quickly, adapt to changing market conditions, and make more informed decisions.
How To Use?
When the MACD1 crosses above the zero line and the MACD2 histogram color is dark green (up trend), then a buy alert (blue triangle) is plotted.
When the MACD1 crosses below the zero line and the MACD2 histogram color is dark red (down trend), then a sell alert (yellow triangle) is plotted.
All the MACD1 and MACD2 lengths are configurable. This indicator can be combined with other technical indicators to verify the idea behind this theory.
-----------------
Disclaimer
The information contained in this indicator does not constitute any financial advice or a solicitation to buy or sell any securities of any type. My scripts/indicators/ideas are for everyone to use and verify with other technical indicators.
Flush Percent RangeFans of Woodies CCI may recognize the approach to this one. This is my attempt at using the same methods but for taking the highs and lows into account without the standard deviation of the CCI. The smoothness of other oscillators may not be ideal however the Williams Percent Range is a fast stochastic that also operates within a channel. This provides an alternative yet still complex view for the virtuoso. A unique feature is total utilization of the weighted moving average, from the standard to the more complex. A fun fact is the Hull Moving Average is actually calculated using weighted moving averages.
How to use:
The base length is for accuracy, the fast length is for catching all the moves(even the wrong ones sometimes.)
The bars back option will not flip the histogram/base trend to its bullish/bearish alternative until the base plot remains on the latter half of the oscillator for a certain number of bars. This can be set to zero if desired.
The factor controls the chop on the various levels. A higher number will increase it.
The oscillator levels are measuring slope, price relative to the average, and a summation of percent changes between the two. Both the baseline/histogram and the levels have color coding for bullishness, bearishness, and indecision(depending on the factor.) The fast line matches the indecision color by default. This is all customizable.
There are many potential ways to trade with this indicator. From hooks back toward the trend and range line crossovers to divergence and reversals. It's important to note the current performance of the oscillator levels. Time cycles may come in handy along with other forecasting tools.
Lastly, there are optional linear regression lines plotted on the chart. They're synchronized to the lengths in the oscillator. This is an additional visual aid to provide context to the direction of the channel.
Overall the Flush Percent Range is for analyzing multiple regression models within a single price channel. No smoothing, fast averages, and specified timeframes of highs/lows. Credit to Larry Williams for the original calculation and Ken Woods for design/methodology inspiration.
2 MA Cross Cvg Dvg Slope Overview
This indicator combines the Moving Average Convergence Divergence (MACD) and two Moving Averages (MAs) to assess market momentum and trend direction. It aims to provide insights into the strength and direction of price movements by analyzing the MACD line, MAs slopes, and MA crossovers. Instead of eyeballing the exact MA crossovers and MAs slope steepness on the chart and MACD line changes on separate panes, this indicator pixelate the overloaded information or multiple indicators interpretation into a KISS "boolean" decision making.
Key Components
MACD Line
This line represents the difference between the fast MA and slow MA. It reflects short-term price momentum relative to the long-term trend.
Moving Averages (MAs)
Two types of MAs are utilized in this indicator:
Fast MA (short-term): Often a 9-period MA or similar, which reacts quickly to price changes.
Slow MA (long-term): Typically a 21-period MA or similar, which smooths out price fluctuations and identifies the longer-term trend.
Indicator Logic
MA Crossover: The crossover of the fast MA above the slow MA suggests a bullish trend, while a crossover below indicates a bearish trend.
MA Slope Analysis: The indicator also considers the slopes of both the fast and slow MAs to determine the direction:
Both MA Positive Slope: Indicates upward momentum or bullish trend.
Both MA Negative Slope: Indicates downward momentum or bearish trend.
One MA Positive Slope, the other Negative Slope: Indicates indecision.
MACD Line: MACD Line consecutively increase means increasing positive momentum, vice versa.
Interpretation
Uptrend: When fast MA cross over slow MA. Indicator show "+" symbol at top zone with value 0.5.
Additional Uptrend Confirmation: When both MAs have positive slope. Indicator show only green bar.
Uptrend Upward Momentum: MACD Line increase when fast MA above slow MA. Indicator show "." symbol value 0.75.
Uptrend Downward Momentum: MACD Line decrease when fast MA above slow MA. Indicator show "." symbol value 0.25.
Indecision: When one of the MA has positive slope, but another MA has negative slope. Indicator showing both red and green bar.
Downtrend: When fast MA cross under slow MA. Indicator show "+" symbol at bottom zone with value 0.5.
Additional Downtrend Confirmation: When both MAs have negative slope. Indicator show only red bar.
Downtrend Upward Momentum: MACD Line increase when fast MA below slow MA. Indicator show "." symbol value -0.25.
Uptrend Downward Momentum: MACD Line decrease when fast MA below slow MA. Indicator show "." symbol value -0.75.
Combination of above multiple interpretation can further derive different signal for Trend Starts, Trend Continuous, and Trend Reversals.
Usage
This indicator is valuable for traders seeking to:
Identify entry and exit points based on single or multiple combination of MAs and MACD Line signals.
Confirm trend direction using MAs cross over or cross under spotted easily with the "+" symbol above 0 or below 0.
Double confirm the trend based on two MAs align slope direction.
Understand momentum shifts and potential trend reversals with an easy 4 different dots at -0.75, -0.25, 0.25, and 0.75.
Conclusion
By combining MACD Line analysis with Moving Average slopes and crossovers, this indicator offers a comprehensive approach to assessing market momentum and trend direction. It provides clear signals for traders to make informed decisions on when to enter or exit positions, enhancing overall trading strategy effectiveness without the need of referring to multiple chart or zoom in and out of the price chart to identify the crossover and slope direction.
RSI DeviationAn oscillator which de-trends the Relative Strength Index. Rather, it takes a moving average of RSI and plots it's standard deviation from the MA, similar to a Bollinger %B oscillator. This seams to highlight short term peaks and troughs, Indicating oversold and overbought conditions respectively. It is intended to be used with a Dollar Cost Averaging strategy, but may also be useful for Swing Trading, or Scalping on lower timeframes.
When the line on the oscillator line crosses back into the channel, it signals a trade opportunity.
~ Crossing into the band from the bottom, indicates the end of an oversold condition, signaling a potential reversal. This would be a BUY signal.
~ Crossing into the band from the top, indicates the end of an overbought condition, signaling a potential reversal. This would be a SELL signal.
For ease of use, I've made the oscillator highlight the main chart when Overbought/Oversold conditions are occurring, and place fractals upon reversion to the Band. These repaint as they are calculated at close. The earliest trade would occur upon open of the following day.
I have set the default St. Deviation to be 2, but in my testing I have found 1.5 to be quite reliable. By decreasing the St. Deviation you will increase trade frequency, to a point, at the expense of efficiency.
Cheers
DJSnoWMan06
Non-Sinusoidal Multi-Layered Moving Average OscillatorThis indicator utilizes multiple moving averages (MAs) of different lengths their difference and its rate of change to provide a comprehensive view of both short-term and long-term market trends. The output signal is characterized by its non-sinusoidal nature, offering distinct advantages in trend analysis and market forecasting.
Combining the difference between two moving averages with the ROC allows to assess not only the direction and strength of the trend but also the momentum behind it. Transforming these signal in to non-sinusoidal output enhances its utility.
The indicator allows traders to select any one or more of seven moving average options. Larger timeframes (e.g., MA89/MA144) provide a broader identification of the overall trend, helping to understand the general market direction. Smaller timeframes (e.g., MA5/MA8) are more sensitive to price changes and can indicate better entry and exit points, aiding in the identification of retracements and pullbacks. By combining multiple timeframes, traders can get a comprehensive view of the market, enabling more precise and informed trading decisions.
Key Features:
Multiple Moving Averages:
The indicator calculates several exponential moving averages (EMAs) based on different lengths: MA5, MA8, MA13, MA21, MA34, MA55, MA89, and MA144.
These MAs are further smoothed using a secondary exponential moving average, with the smoothing length customizable by the user.
Percentage Differences:
The indicator computes the percentage differences between successive MAs (e.g., (MA5 - MA8) / MA8 * 100). These differences highlight the relative movement of prices over different periods, providing insights into market momentum and trend strength.
Short-term MA differences (e.g., MA5/MA8) are more sensitive to recent price changes, making them useful for detecting quick market movements.
Long-term MA differences (e.g., MA89/MA144) smooth out short-term fluctuations, helping to identify major trends.
Rate of Change (ROC):
The indicator applies the Rate of Change (ROC) to the percentage differences of the MAs. ROC measures the speed at which the percentage differences are changing over time, providing an additional layer of trend analysis.
ROC helps in understanding the acceleration or deceleration of market trends, indicating the strength and potential reversals.
Transformations:
The percentage differences undergo a series of mathematical transformations (either inverse hyperbolic sine transformation or inverse fisher transformation) to refine the signal and enhance its interpretability. These transformations include adjustments to stabilize the values and highlight significant movements.
checkbox allows users to select which mathematical transformations to use.
Non-Sinusoidal Nature:
The output signal of this indicator is non-sinusoidal, characterized by abrupt changes and distinct patterns rather than smooth, wave-like oscillations.
The non-sinusoidal signal provides clearer demarcations of trend changes and is more responsive to sudden market shifts.
This nature reduces the lag typically associated with sinusoidal indicators, allowing for more timely and accurate trading decisions.
Customizable Options:
Users can select which MA pairs to include in the analysis using checkboxes. This flexibility allows the indicator to adapt to different trading strategies, whether focused on short-term movements or long-term trends.
Visual Representation:
The indicator plots the transformed values on a separate panel, making it easy for traders to visualize the trends and potential entry or exit points.
Usage Scenarios:
Short-Term Trading: By focusing on shorter MAs (e.g., MA5/MA8), traders can capture quick market movements and identify short-term trends.
Long-Term Analysis: Utilizing longer MAs (e.g., MA89/MA144) helps in identifying major market trends.
Combination of MAs: The ability to mix different MA lengths provides a balanced view, helping traders make decisions based on both immediate price actions and overall market direction.
Practical Benefits:
Early Signal Detection: The sensitivity of short-term MAs provides early signals for potential trend changes, assisting traders in timely decision-making.
Trend Confirmation: Long-term MAs offer stable trend confirmation, reducing the likelihood of false signals in volatile markets.
Noise Reduction: The mathematical transformations and ROC applied to the percentage differences help in filtering out market noise, focusing on meaningful price movements.
Improved Responsiveness: The non-sinusoidal nature of the signal allows the indicator to react more quickly to market changes, providing more accurate and timely trading signals.
Clearer Trend Demarcations: Non-sinusoidal signals make it easier to identify distinct phases of market trends, aiding in better interpretation and decision-making.
CCI and MACD Auto Trading Strategy with Risk/RewardOverview:
This strategy combines the Commodity Channel Index (CCI) and the Moving Average Convergence Divergence (MACD) indicators to automate trading decisions. It dynamically sets stop-loss and take-profit levels based on recent lows and highs, ensuring a risk/reward ratio of 1:1.5. This script aims to leverage trend and momentum signals while maintaining effective risk management.
Originality and Usefulness:
This script is not just a simple mashup of CCI and MACD indicators; it incorporates dynamic risk management by setting stop-loss and take-profit levels based on recent price action. This approach helps traders to:
・Identify potential trend reversals using the combination of CCI and MACD signals.
・Manage trades effectively by setting realistic stop-loss and take-profit levels based on recent market data.
・Maintain a balanced risk/reward ratio, which is essential for sustainable trading.
Indicators Used:
・CCI (Commodity Channel Index):
・Measures the deviation of the price from its average over a specified period, typically ranging from -100 to +100.
・Helps identify overbought and oversold conditions.
・MACD (Moving Average Convergence Divergence):
・Utilizes the difference between short-term and long-term moving averages to indicate trend strength and direction.
・Provides momentum signals that can be used for timing entries and exits.
How It Works:
Entry Conditions:
Long Entry:
・The MACD histogram is above zero.
・The CCI crosses above the -100 line.
Short Entry:
・The MACD histogram is below zero.
・The CCI crosses below the +100 line.
Exit Conditions:
Long Positions:
・The stop-loss is set at the recent low.
・The take-profit is set at 1.5 times the distance between the entry price and the stop-loss.
Short Positions:
・The stop-loss is set at the recent high.
・The take-profit is set at 1.5 times the distance between the entry price and the stop-loss.
Risk Management:
・The script dynamically adjusts stop-loss and take-profit levels based on recent market data, ensuring that the risk/reward ratio is maintained at 1:1.5.
・This approach helps in managing the risk effectively while aiming for consistent profits.
Strategy Properties:
・Account Size: Configured for a realistic account size suitable for the average trader.
・Commission and Slippage: Includes settings for realistic commission and slippage to reflect real market conditions.
・Risk per Trade: Designed to risk no more than 5-10% of equity per trade, aligning with sustainable trading practices.
・Backtesting Results: Configured to generate a sufficient sample size (ideally more than 100 trades) for reliable backtesting results.
Revised Backtesting Settings
Ensure that your backtesting settings are realistic:
・Account Size: Set a realistic initial capital suitable for the average trader.
・Commission and Slippage: Include realistic commission fees and slippage.
・Risk Management: Ensure that each trade risks no more than 5-10% of the account equity.
・Sufficient Sample Size: Choose a dataset that will generate more than 100 trades to provide a robust sample size.
Glitch IndexGlitch Index is an oscillator from an unknown origin that is discovered in 2013 as a lua indicator taken from MetaStock days and we are not really sure how far back the original idea goes.
How it Works?
As I found this indicator and looking at it's code in different platform I can see it comes back from a basic idea of getting a price value, calculating it's smoothed average with a set multiplier and getting the difference then presenting it on a simplified scale. It appears to be another interpretation of figuring out price acceleration and velocity. The main logic is calculated as below:
price = priceSet(priceType)
_ma = getAverageName(price, MaMethod, MaPeriod)
rocma = ((_ma - _ma ) * 0.1) + 1
maMul = _ma * rocma
diff = price - maMul
gli_ind = (diff / price) * -10
How to Use?
Glitch Index can be used based on different implementations and along with your already existing trading system as a confirmation. Yoıu can use it as a Long signal when the histogram crosses inner levels or you can use it as an overbough and oversold signals when the histogram crosses above outter levels and gets back in the range between outter and inner levels.
You can customise the settings and set your prefered inner and outter levels in indicator settings along with gradient or static based coloring and modify the code as you see fit. The coloring code is set below:
gli_col = gli_ind > outterLevel ? color.green : gli_ind < -outterLevel ? color.red : gli_ind > innerLevel ? color.rgb(106, 185, 109, 57) : gli_ind < -innerLevel ? color.rgb(233, 111, 111, 40) : color.new(color.yellow, 60)
gradcol = color.from_gradient(gli_ind, -outterLevel, outterLevel, color.red, color.green)
colorSelect = colorType == "Gradient" ? gradcol : gli_col
KNN OscillatorOverview
The KNN Oscillator is an advanced technical analysis tool designed to help traders identify potential trend reversals and market momentum. Using the K-Nearest Neighbors (KNN) algorithm, this oscillator normalizes KNN values to create a dynamic and responsive indicator. The oscillator line changes color to reflect the market sentiment, providing clear visual cues for trading decisions.
Key Features
Dynamic Color Oscillator: The line changes color based on the oscillator value – green for positive, red for negative, and grey for neutral.
Advanced KNN Algorithm: Utilizes the K-Nearest Neighbors algorithm for precise trend detection.
Normalized Values: Ensures the oscillator values are normalized to align with the stock price range, making it applicable to various assets.
Easy Integration: Can be easily added to any TradingView chart for enhanced analysis.
How It Works
The KNN Oscillator leverages the K-Nearest Neighbors algorithm to calculate the average distance of the nearest neighbors over a specified period. These values are then normalized to match the stock price range, ensuring they are comparable across different assets. The oscillator value is derived by taking the difference between the normalized KNN values and the source price. The line's color changes dynamically to provide an immediate visual indication of the market's state:
Green: Positive values indicate upward momentum.
Red: Negative values indicate downward momentum.
Grey: Neutral values indicate a stable or consolidating market.
Usage Instructions
Trend Reversal Detection: Use the color changes to identify potential trend reversals. A shift from red to green suggests a bullish reversal, while a shift from green to red indicates a bearish reversal.
Momentum Analysis: The oscillator's value and color help gauge market momentum. Strong positive values (green) indicate strong upward momentum, while strong negative values (red) indicate strong downward momentum.
Market Sentiment: The dynamic color changes provide an easy-to-understand visual representation of market sentiment, helping traders make informed decisions quickly.
Confirmation Tool: Use the KNN Oscillator in conjunction with other technical indicators to confirm signals and improve the accuracy of your trades.
Scalability: Applicable to various timeframes and asset classes, making it a versatile tool for all types of traders.
Chande Momentum Oscillator (CMO) Buy Sell Strategy [TradeDots]The "Chande Momentum Oscillator (CMO) Buy Sell Strategy" leverages the CMO indicator to identify short-term buy and sell opportunities.
HOW DOES IT WORK
The standard CMO indicator measures the difference between recent gains and losses, divided by the total price movement over the same period. However, this version of the CMO has some limitations.
The primary disadvantage of the original CMO is its responsiveness to short-term volatility, making the signals less smooth and more erratic, especially in fluctuating markets. This instability can lead to misleading buy or sell signals.
To address this, we integrated the concept from the Moving Average Convergence Divergence (MACD) indicator. By applying a 9-period exponential moving average (EMA) to the CMO line, we obtained a smoothed signal line. This line acts as a filter, identifying confirmed overbought or oversold states, thereby reducing the number of false signals.
Similar to the MACD histogram, we generate columns representing the difference between the CMO and its signal line, reflecting market momentum. We use this momentum indicator as a criterion for entry and exit points. Trades are executed when there's a convergence of CMO and signal lines during an oversold state, and they are closed when the CMO line diverges from the signal line, indicating increased selling pressure.
APPLICATION
Since the 9-period EMA smooths the CMO line, it's less susceptible to extreme price fluctuations. However, this smoothing also makes it more challenging to breach the original +50 and -50 benchmarks.
To increase trading opportunities, we've tightened the boundary ranges. Users can customize the target benchmark lines in the settings to adjust for the volatility of the underlying asset.
The 'cool down period' is essentially the number of bars that await before the next signal generation. This feature is employed to dodge the occurrence of multiple signals in a short period.
DEFAULT SETUP
Commission: 0.01%
Initial Capital: $10,000
Equity per Trade: 80%
Signal Cool Down Period: 5
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.
MACD Highlight Zones for PrimetimeUse the MACD Highlight Zones to easily spot changes in market momentum and make more informed trading decisions.
The MACD Highlight Zones script visually enhances your chart by highlighting different zones based on the MACD's relationship to the zero line and its signal line. This script helps traders quickly identify the market's momentum and potential reversal points.
Features:
🟢 Green Background: Indicates the MACD line is above 0, signaling bullish momentum.
🟡 Yellow Background: Indicates the MACD line crosses the signal line, suggesting a potential momentum shift.
🔴 Red Background: Indicates the MACD line is below 0, signaling bearish momentum.