Volume-Adjusted Schaff Trend Cycle (VASTC)Volume-Adjusted Schaff Trend Cycle (VASTC)
The VASTC is a fairly fast-moving oscillator designed to identify trends early and signal when trends may be nearing their end. While it can be used for both trend-following and mean-reversion strategies , it shines in trend-following setups. It’s particularly useful for catching the start of a trend and giving early warnings that a trend might end soon, making it a valuable addition to a multi-indicator system.
How It Works:
The VASTC adapts the traditional Schaff Trend Cycle by adjusting the MACD component with volume data. This volume-adjusted MACD is run through two stochastic processes , applying exponential smoothing to enhance responsiveness. Volume sensitivity allows the VASTC to adapt dynamically to periods of high or low trading activity, providing more reliable trend signals.
Recommended Use:
Use VASTC in confluence with other indicators to confirm trend entries and exits. It’s best for identifying early trend setups rather than sustaining prolonged trend trades. When used alongside other indicators, especially those with a longer-term outlook or momentum based trend indicators, you’ll gain a clearer signal for potential exits or entries. Always backtest the VASTC on your chosen assets to determine the most effective input parameters, as the defaults may not suit all markets or assets. Different assets behave differently, and adjustments in parameters can improve its ability to analyze the assets you're looking at.
Parameters:
Length : Sets the primary smoothing length.
Fast/Slow Length : Adjust the speed of the volume-adjusted MACD component.
Factor : Controls the final smoothing applied to the STC.
Overbought/Oversold Levels : Defines overbought/oversold levels.
Experiment with these settings to customize the VASTC to your trading strategy and asset.
Disclaimer : This indicator is a tool to complement your trading analysis and should not be used in isolation. Always backtest and use other confluence signals for best results. The assets I looked at when making this indicator are almost certainly different than what you're looking at.
STC
Adaptive Schaff Trend Cycle (STC) [AlgoAlpha]Introducing the Adaptive Schaff Trend Cycle by AlgoAlpha: Elevate Your Trading Strategies 🚀
Discover precision and adaptability with the Adaptive Schaff Trend Cycle 🎯, meticulously crafted for traders seeking an edge in the markets. This advanced tool integrates sophisticated algorithms to offer clear insights and real-time analytics 📈.
Key Features:
⚙️Adaptive Signal Processing: Utilizes evolving calculations to adjust to market changes, offering highly responsive signals.
🔍Enhanced MACD Analysis: Innovates on the traditional MACD, providing new insights into market dynamics through an adaptive lens.
🎨Customizable Visual Experience: Features customizable up and down colors for tailored chart analysis.
🔔Real-Time Alerts: Stay informed with instant alerts on indicator changes.
Quick Guide to Using the Adaptive STC Indicator
1. 🔧 Adding the Indicator: Search for "Adaptive Schaff Trend Cycle (STC) " within TradingView's Indicators & Strategies and apply it to your chart. Customize the settings according to your trading style for optimum results.
2.👀 Market Analysis: Monitor the STC and Histogram values closely. The indicator's color gradients provide a visual representation of momentum shifts, helping you to identify trends more clearly.
3. 🚨 Set Alerts: Enable alerts for specific conditions like significant moves up or down, or when the histogram crosses zero. This feature ensures you never miss a potential trading opportunity.
How It Works:
The Adaptive Schaff Trend Cycle by AlgoAlpha introduces a dynamic approach to market analysis, refining traditional indicators through adaptive logic to align with fluctuating market conditions. Here's a concise overview of its operation:
🔄 Adaptive MACD Adjustment: The foundation of the indicator is an enhanced MACD calculation, which dynamically adjusts its parameters based on real-time market trends and momentum. This algorithmic adjustment aims to ensure the MACD's responsiveness to market changes, adapting its sensitivity to offer timely insights .
🌟 Integration of Schaff Trend Cycle (STC): After adjusting the MACD, the indicator calculates STC values to provide a smoothed representation of market trends. By normalizing and smoothing the MACD values on a scale from 0 to 100, the STC method helps in identifying market phases with a clear visualization. The smoothing process is designed to mitigate noise and focus on significant market movements .
📊 Visualization and Alerts: To aid in the interpretation of these insights, the Adaptive Schaff Trend Cycle employs color gradients and customizable visual settings to indicate momentum shifts. These visual cues, combined with alert functionalities, are structured to assist traders in monitoring market developments, enabling them to make informed decisions based on the presented data .
🛠️The Adaptive Schaff Trend Cycle thus merges adaptive MACD adjustments with STC methodology, supported by visual and alert features, to create a tool aimed at enhancing market analysis. By focusing on adaptability and current market conditions, it provides a nuanced view of market trends, intended to support traders in their decision-making processes without promising predictive accuracy or reliability .
Trend Deviation strategy - BTC [IkkeOmar]Intro:
This is an example if anyone needs a push to get started with making strategies in pine script. This is an example on BTC, obviously it isn't a good strategy, and I wouldn't share my own good strategies because of alpha decay.
This strategy integrates several technical indicators to determine market trends and potential trade setups. These indicators include:
Directional Movement Index (DMI)
Bollinger Bands (BB)
Schaff Trend Cycle (STC)
Moving Average Convergence Divergence (MACD)
Momentum Indicator
Aroon Indicator
Supertrend Indicator
Relative Strength Index (RSI)
Exponential Moving Average (EMA)
Volume Weighted Average Price (VWAP)
It's crucial for you guys to understand the strengths and weaknesses of each indicator and identify synergies between them to improve the strategy's effectiveness.
Indicator Settings:
DMI (Directional Movement Index):
Length: This parameter determines the number of bars used in calculating the DMI. A higher length may provide smoother results but might lag behind the actual price action.
Bollinger Bands:
Length: This parameter specifies the number of bars used to calculate the moving average for the Bollinger Bands. A longer length results in a smoother average but might lag behind the price action.
Multiplier: The multiplier determines the width of the Bollinger Bands. It scales the standard deviation of the price data. A higher multiplier leads to wider bands, indicating increased volatility, while a lower multiplier results in narrower bands, suggesting decreased volatility.
Schaff Trend Cycle (STC):
Length: This parameter defines the length of the STC calculation. A longer length may result in smoother but slower-moving signals.
Fast Length: Specifies the length of the fast moving average component in the STC calculation.
Slow Length: Specifies the length of the slow moving average component in the STC calculation.
MACD (Moving Average Convergence Divergence):
Fast Length: Determines the number of bars used to calculate the fast EMA (Exponential Moving Average) in the MACD.
Slow Length: Specifies the number of bars used to calculate the slow EMA in the MACD.
Signal Length: Defines the number of bars used to calculate the signal line, which is typically an EMA of the MACD line.
Momentum Indicator:
Length: This parameter sets the number of bars over which momentum is calculated. A longer length may provide smoother momentum readings but might lag behind significant price changes.
Aroon Indicator:
Length: Specifies the number of bars over which the Aroon indicator calculates its values. A longer length may result in smoother Aroon readings but might lag behind significant market movements.
Supertrend Indicator:
Trendline Length: Determines the length of the period used in the Supertrend calculation. A longer length results in a smoother trendline but might lag behind recent price changes.
Trendline Factor: Specifies the multiplier used in calculating the trendline. It affects the sensitivity of the indicator to price changes.
RSI (Relative Strength Index):
Length: This parameter sets the number of bars over which RSI calculates its values. A longer length may result in smoother RSI readings but might lag behind significant price changes.
EMA (Exponential Moving Average):
Fast EMA: Specifies the number of bars used to calculate the fast EMA. A shorter period results in a more responsive EMA to recent price changes.
Slow EMA: Determines the number of bars used to calculate the slow EMA. A longer period results in a smoother EMA but might lag behind recent price changes.
VWAP (Volume Weighted Average Price):
Default settings are typically used for VWAP calculations, which consider the volume traded at each price level over a specific period. This indicator provides insights into the average price weighted by trading volume.
backtest range and rules:
You can specify the start date for backtesting purposes.
You can can select the desired trade direction: Long, Short, or Both.
Entry and Exit Conditions:
LONG:
DMI Cross Up: The Directional Movement Index (DMI) indicates a bullish trend when the positive directional movement (+DI) crosses above the negative directional movement (-DI).
Bollinger Bands (BB): The price is below the upper Bollinger Band, indicating a potential reversal from the upper band.
Momentum Indicator: Momentum is positive, suggesting increasing buying pressure.
MACD (Moving Average Convergence Divergence): The MACD line is above the signal line, indicating bullish momentum.
Supertrend Indicator: The Supertrend indicator signals an uptrend.
Schaff Trend Cycle (STC): The STC indicates a bullish trend.
Aroon Indicator: The Aroon indicator signals a bullish trend or crossover.
When all these conditions are met simultaneously, the strategy considers it a favorable opportunity to enter a long trade.
SHORT:
DMI Cross Down: The Directional Movement Index (DMI) indicates a bearish trend when the negative directional movement (-DI) crosses above the positive directional movement (+DI).
Bollinger Bands (BB): The price is above the lower Bollinger Band, suggesting a potential reversal from the lower band.
Momentum Indicator: Momentum is negative, indicating increasing selling pressure.
MACD (Moving Average Convergence Divergence): The MACD line is below the signal line, signaling bearish momentum.
Supertrend Indicator: The Supertrend indicator signals a downtrend.
Schaff Trend Cycle (STC): The STC indicates a bearish trend.
Aroon Indicator: The Aroon indicator signals a bearish trend or crossover.
When all these conditions align, the strategy considers it an opportune moment to enter a short trade.
Disclaimer:
THIS ISN'T AN OPTIMAL STRATEGY AT ALL! It was just an old project from when I started learning pine script!
The backtest doesn't promise the same results in the future, always do both in-sample and out-of-sample testing when backtesting a strategy. And make sure you forward test it as well before implementing it!
Furthermore this strategy uses both trend and mean-reversion systems, that is usually a no-go if you want to build robust trend systems .
Don't hesitate to comment if you have any questions or if you have some good notes for a beginner.
Moonhub Cycle IndexMoonhub Cycle Index is a composite index derived from three popular technical analysis indicators: Moving Average Convergence Divergence (MACD), Schaff Trend Cycle (STC), and Detrended Price Oscillator (DPO). The indicator is designed to help identify potential trends and market sentiment by combining the unique characteristics of each indicator.
Key components of the indicator include:
Input Parameters:
COEMA Length (len_DIema): The length of the Exponential Moving Average (EMA) applied to the Custom Index. Default is set to 9.
COSMA Length (len_DIsma): The length of the Simple Moving Average (SMA) applied to the Custom Index. Default is set to 30.
Indicators:
MACD: A momentum oscillator that shows the relationship between two moving averages of a security's price. It is calculated using the difference between the 12-period and 26-period EMA, and a 9-period EMA (signal line) of the MACD.
STC: A cyclic indicator that identifies cyclical trends in the market. It is calculated using the Stochastic oscillator formula applied to the close, high, and low prices over a 10-period lookback window.
DPO: A price oscillator that eliminates the trend from price data to focus on underlying cycles. It is calculated using a custom function that shifts the price by half the length and subtracts the SMA from the shifted price.
Custom Index: The composite index is calculated by taking the average of the MACD line, STC, and DPO.
COEMA and COSMA: Exponential and Simple Moving Averages applied to the Custom Index using the lengths specified by the input parameters (len_DIema and len_DIsma).
Plots: The Custom Index, COEMA, and COSMA are plotted with different colors and line widths to visualize their interaction and provide insights into potential market trends.
This Custom Index Indicator can be useful for traders who want to analyze the market using a combination of these indicators to make more informed decisions. It can also help identify potential trends and market sentiment by combining the unique characteristics of each indicator.
Strategy Myth-Busting #1 - UT Bot+STC+Hull [MYN]This is part of a new series we are calling "Strategy Myth-Busting" where we take open public manual trading strategies and automate them. The goal is to not only validate the authenticity of the claims but to provide an automated version for traders who wish to trade autonomously.
Our first one is an automated version of the " The ULTIMATE Scalping Trading Strategy for 2022 " strategy from " My Trading Journey " who claims to have achieved not only profits but a 98.3% win rate. As you can see from the backtest results below, I was unable to substantiate anything close to that that claim on the same symbol (NVDA), timeframe (5m) with identical instrument settings that " My Trading Journey " was demonstrating with. Strategy Busted.
If you know of or have a strategy you want to see myth-busted or just have an idea for one, please feel free to message me.
This strategy uses a combination of 3 open-source public indicators:
UT Bot Alerts by QuantNomad
STC Indicator - A Better MACD By shayankm
Basic Hull Ma Pack tinkered by InSilico
Trading Rules:
5 min candles
Long
New Buy Signal from UT Bot Alerts Strategy
STC is green and below 25 and rising
Hull Suite is green
Short
New Sell Signal from UT Bot Alerts Strategy
STC is red and above 75 and falling
Hull Suite is red
MM SIGMA STC+ADXThe Schaff Trend Cycle (STC) is a charting indicator that is commonly used to identify market trends and provide buy and sell signals to traders. Developed in 1999 by noted currency trader Doug Schaff, STC is a type of oscillator and is based on the assumption that, regardless of time frame, currency trends accelerate and decelerate in cyclical patterns.12
How STC Works
Many traders are familiar with the moving average convergence/divergence (MACD) charting tool, which is an indicator that is used to forecast price action and is notorious for lagging due to its slow responsive signal line . By contrast, STC’s signal line enables it to detect trends sooner. In fact, it typically identifies up and downtrends long before MACD indicator.
While STC is computed using the same exponential moving averages as MACD, it adds a novel cycle component to improve accuracy and reliability. While MACD is simply computed using a series of moving average, the cycle aspect of STC is based on time (e.g., number of days).
It should also be noted that, although STC was developed primarily for fast currency markets, it may be effectively employed across all markets, just like MACD. It can be applied to intraday charts, such as five minutes or one-hour charts, as well as daily, weekly, or monthly time frames.
Introduction to ADX
ADX is used to quantify trend strength. ADX calculations are based on a moving average of price range expansion over a given period of time. The default setting is 14 bars, although other time periods can be used.1 ADX can be used on any trading vehicle such as stocks, mutual funds, exchange-traded funds and futures.
ADX is plotted as a single line with values ranging from a low of zero to a high of 100. ADX is non-directional; it registers trend strength whether price is trending up or down.2 The indicator is usually plotted in the same window as the two directional movement indicator (DMI) lines, from which ADX is derived (shown below).Quantifying Trend Strength
ADX values help traders identify the strongest and most profitable trends to trade. The values are also important for distinguishing between trending and non-trending conditions. Many traders will use ADX readings above 25 to suggest that the trend is strong enough for trend-trading strategies. Conversely, when ADX is below 25, many will avoid trend-trading strategies.
ADX Value Trend Strength
0-25 Absent or Weak Trend
25-50 Strong Trend
50-75 Very Strong Trend
75-100 Extremely Strong Trend
Low ADX is usually a sign of accumulation or distribution. When ADX is below 25 for more than 30 bars, price enters range conditions, and price patterns are often easier to identify. Price then moves up and down between resistance and support to find selling and buying interest, respectively. From low ADX conditions, price will eventually break out into a trend. Below, the price moves from a low ADX price channel to an uptrend with strong ADX.
Added Buy/Sell alerts
ADX filters based on the threshold you put in the settings.
great for trend and trade confirmation
WOMBO COMBO: EMA & VWAP & MACD & BB & STCHello my fellow investors,
After hours of reading, backtesting, and YouTube video watching I discovered that EMA, VWAP, BB, MACD, and STC produce the most consistent results for investment planning. This strategy allows you to pick between the aforementioned indicators or layer them together.
It works on the pricipal of:
1) Always follow the market trend - buy/sell above/below 200EMA
2) Follow corporate investing trends - buy/sell above/below VWAP
3) Apply MACD check - buy--> MACD line above signal line and corssover below histogram \\ sell --> MACD line below signal line and crossover above histogram.
4) Check volitility with price against BB limits upper/Sell or lower/buy
5) When STC crosses about 10 buy and when it drops below 90 sell
6) Exit position when stop loss is triggered or profit target is hit. BB also provides a parameter to exit positions.
This code is the product of many hours of hard work on the part of the greater tradingview community. The credit goes to everyone in the community who has put code out there for the greater good.
STC Indicator - A Better MACD [SHK]The Schaff Trend Cycle indicator is the product of combining Slow Stochastics and the moving average convergence/divergence (MACD). The MACD has a reputation as a trend indicator, but it's also notorious for lagging due to its slow responsive signal line. The improved signal line gives the STC its relevance as an early warning sign to detect currency trends.
Read more on Investopedia:
Schaff Trend: A Faster And More Accurate Indicator