Dynamic Color EMAD.C.E. aka Dynamic Color EMA by @ChartSupreme
DCE is a very straightforward EMA that changes color based on whether price action is above or below the moving average to help you quickly and easily visually distinguish the direction of the trend.
Moving Averages
GuerrillaZ Reaper AlertsPrecision-Engineered Trading System
This trading indicator is designed mostly for volatile market conditions, helping traders capitalize on significant price movements while eliminating emotional decision-making. It achieves a consistent edge through advanced technical analysis and strict signal validation.
Inspired by the principles of Democratic Confederalism, a system emphasizing resilience, community self-organization, and autonomous decision-making, this trading system encourages a disciplined, systematic approach to volatile markets.
Key Features
Clear Entry Signals: Generates actionable signals for both long and short trades.
Volatility-Optimized Algorithm: Tailored for active, high-volume markets.
Trend Confirmation: Ensures alignment with prevailing market trends.
Automated Trade Management: Identifies optimal entry and exit points for consistent risk control.
Position Tracking: Helps prevent overtrading and encourages discipline.
Versatile Alerts: Clean, easy-to-read labels compatible with any timeframe.
Technical Design & Functionality
This indicator integrates:
EMAs (Exponential Moving Averages): To track trend direction and dynamic support/resistance.
RSI (Relative Strength Index): To measure market momentum and identify potential reversals.
Custom Envelope System: Filters market noise and pinpoints high-probability setups in volatile conditions.
By combining these elements, the system provides traders with a balanced and systematic approach to capturing significant price movements while filtering out false signals. Unlike traditional systems, this indicator emphasizes confluence between multiple metrics, improving signal reliability.
Who Is It For?
This tool is ideal for:
Traders aiming to profit from volatility with a structured methodology.
Those who struggle with emotional trading decisions and need clear, objective guidance.
Systematic traders seeking high-probability setups across various timeframes and assets.
Anyone looking to incorporate volatility-targeted setups into their strategy.
Performance
This indicator has demonstrated a consistent win rate of approximately 68-72% across many assets in back testing done using TradingViews own back testing features and also my own live testing. Note that past performance is not indicative of future results, and all trading carries risk. Proper risk management is essential.
Usage Guidelines
This indicator works best when paired with Fair Value Gaps and Order Blocks, but it remains profitable when used independently with disciplined risk management.
It does not guarantee success but provides a structured framework for informed trading decisions.
Meant to be used alongside the GuerrillaZ Profit Reaper Strategy, which is why it is shown in the image. Must have the blue or red arrows and also red or green labels for an entry to be considered as valid.
Important:
This system is not affiliated with any political organizations or ideologies. The reference to Democratic Confederalism serves as an inspiration for the principles of self-discipline and autonomy, integral to this system’s design.
For invite-only access, please follow the instructions in the "Author’s Instructions" section. This script is designed to provide traders with actionable insights while fostering a methodical and independent trading style.
Message author if you have any questions.
ArrayMovingAveragesLibrary "ArrayMovingAverages"
This library adds several moving average methods to arrays, so you can call, eg.:
myArray.ema(3)
method emaArray(id, length)
Calculate Exponential Moving Average (EMA) for Arrays
Namespace types: array
Parameters:
id (array) : (array) Input array
length (int) : (int) Length of the EMA
Returns: (array) Array of EMA values
method ema(id, length)
Get the last value of the EMA array
Namespace types: array
Parameters:
id (array) : (array) Input array
length (int) : (int) Length of the EMA
Returns: (float) Last EMA value or na if empty
method rmaArray(id, length)
Calculate Rolling Moving Average (RMA) for Arrays
Namespace types: array
Parameters:
id (array) : (array) Input array
length (int) : (int) Length of the RMA
Returns: (array) Array of RMA values
method rma(id, length)
Get the last value of the RMA array
Namespace types: array
Parameters:
id (array) : (array) Input array
length (int) : (int) Length of the RMA
Returns: (float) Last RMA value or na if empty
method smaArray(id, windowSize)
Calculate Simple Moving Average (SMA) for Arrays
Namespace types: array
Parameters:
id (array) : (array) Input array
windowSize (int) : (int) Window size for calculation, defaults to array size
Returns: (array) Array of SMA values
method sma(id, windowSize)
Get the last value of the SMA array
Namespace types: array
Parameters:
id (array) : (array) Input array
windowSize (int) : (int) Window size for calculation, defaults to array size
Returns: (float) Last SMA value or na if empty
method wmaArray(id, windowSize)
Calculate Weighted Moving Average (WMA) for Arrays
Namespace types: array
Parameters:
id (array) : (array) Input array
windowSize (int) : (int) Window size for calculation, defaults to array size
Returns: (array) Array of WMA values
method wma(id, windowSize)
Get the last value of the WMA array
Namespace types: array
Parameters:
id (array) : (array) Input array
windowSize (int) : (int) Window size for calculation, defaults to array size
Returns: (float) Last WMA value or na if empty
Super CCI By Baljit AujlaThe indicator you've shared is a custom CCI (Commodity Channel Index) with multiple types of Moving Averages (MA) and Divergence Detection. It is designed to help traders identify trends and reversals by combining the CCI with various MAs and detecting different types of divergences between the price and the CCI.
Key Components of the Indicator:
CCI (Commodity Channel Index):
The CCI is an oscillator that measures the deviation of the price from its average price over a specific period. It helps identify overbought and oversold conditions and the strength of a trend.
The CCI is calculated by subtracting a moving average (SMA) from the price and dividing by the average deviation from the SMA. The CCI values fluctuate above and below a zero centerline.
Multiple Moving Averages (MA):
The indicator allows you to choose from a variety of moving averages to smooth the CCI line and identify trend direction or support/resistance levels. The available types of MAs include:
SMA (Simple Moving Average)
EMA (Exponential Moving Average)
WMA (Weighted Moving Average)
HMA (Hull Moving Average)
RMA (Running Moving Average)
SMMA (Smoothed Moving Average)
TEMA (Triple Exponential Moving Average)
DEMA (Double Exponential Moving Average)
VWMA (Volume-Weighted Moving Average)
ZLEMA (Zero-Lag Exponential Moving Average)
You can select the type of MA to use with a specified length to help identify the trend direction or smooth out the CCI.
Divergence Detection:
The indicator includes a divergence detection mechanism to identify potential trend reversals. Divergences occur when the price and an oscillator like the CCI move in opposite directions, signaling a potential change in price momentum.
Four types of divergences are detected:
Bullish Divergence: Occurs when the price makes a lower low, but the CCI makes a higher low. This indicates a potential reversal to the upside.
Bearish Divergence: Occurs when the price makes a higher high, but the CCI makes a lower high. This indicates a potential reversal to the downside.
Hidden Bullish Divergence: Occurs when the price makes a higher low, but the CCI makes a lower low. This suggests a continuation of the uptrend.
Hidden Bearish Divergence: Occurs when the price makes a lower high, but the CCI makes a higher high. This suggests a continuation of the downtrend.
Each type of divergence is marked on the chart with arrows and labels to alert traders to potential trading opportunities. The labels include the divergence type (e.g., "Bull Div" for Bullish Divergence) and have customizable text colors.
Visual Representation:
The CCI and its associated moving average are plotted on the indicator panel below the price chart. The CCI is plotted as a line, and its color changes depending on whether it is above or below the moving average:
Green when the CCI is above the MA (indicating bullish momentum).
Red when the CCI is below the MA (indicating bearish momentum).
Horizontal lines are drawn at specific levels to help identify key CCI thresholds:
200 and -200 levels indicate extreme overbought or oversold conditions.
75 and -75 levels represent less extreme levels of overbought or oversold conditions.
The 0 level acts as a neutral or baseline level.
A background color fill between the 75 and -75 levels helps highlight the neutral zone.
Customization Options:
CCI Length: You can customize the length of the CCI, which determines the period over which the CCI is calculated.
MA Length: The length of the moving average applied to the CCI can also be adjusted.
MA Type: Choose from a variety of moving averages (SMA, EMA, WMA, etc.) to smooth the CCI.
Divergence Detection: The indicator automatically detects the four types of divergences (bullish, bearish, hidden bullish, hidden bearish) and visually marks them on the chart.
How to Use the Indicator:
Trend Identification: When the CCI is above the selected moving average, it suggests bullish momentum. When the CCI is below the moving average, it suggests bearish momentum.
Overbought/Oversold Conditions: The CCI values above 100 or below -100 indicate overbought and oversold conditions, respectively.
Divergence Analysis: The detection of bullish or bearish divergences can signal potential trend reversals. Hidden divergences may suggest trend continuation.
Trading Signals: You can use the divergence markers (arrows and labels) as potential buy or sell signals, depending on whether the divergence is bullish or bearish.
Practical Application:
This indicator is useful for traders who want to:
Combine the CCI with different moving averages for trend-following strategies.
Identify overbought and oversold conditions using the CCI.
Use divergence detection to anticipate potential trend reversals or continuations.
Have a highly customizable tool for various trading strategies, including trend trading, reversal trading, and divergence-based trading.
Overall, this is a comprehensive tool that combines multiple technical analysis techniques (CCI, moving averages, and divergence) in a single indicator, providing traders with a robust way to analyze price action and spot potential trading opportunities.
SMA Buy/Sell Strategy with Significant Slope and Dynamic TP/SLDescription:
This strategy uses a simple moving average (SMA) to detect trading opportunities based on the slope and proximity of price action. It ensures trades are only executed during significant trends, reducing false signals caused by sideways movements. The strategy incorporates dynamic risk management with an initial ambitious Take Profit (TP) and a Trailing Stop Loss (SL) to protect profits.
Key Features:
Trend Detection with SMA:
Two SMAs are calculated: one on High values and one on Low values.
Signals are generated when the price crosses these SMAs, ensuring:
Buy: Price closes above the SMA on High, with a significant upward slope.
Sell: Price closes below the SMA on Low, with a significant downward slope.
Slope Significance Check:
The slope of the SMA is calculated over a configurable period.
Only trends with a slope variation exceeding a user-defined percentage threshold are considered significant.
Dynamic Risk Management:
Ambitious Initial TP: Positions target a high percentage gain upon entry.
Trailing SL: Automatically adjusts as the price moves in favor of the trade, locking in profits.
Automatic Position Management:
Opposing signals close existing positions to avoid conflicting trades.
Configurable position size for risk control.
Parameters:
SMA Period: Number of candles for calculating the SMA.
Initial Take Profit (%): Percentage gain for the initial TP.
Trailing Stop Loss (%): Percentage for trailing SL based on the current price.
Slope Threshold (%): Minimum percentage change in SMA slope to confirm trend significance.
How It Works:
Buy Signal:
The price closes above the SMA on High values.
The slope of the SMA (on High) is positive and exceeds the slope threshold.
Sell Signal:
The price closes below the SMA on Low values.
The slope of the SMA (on Low) is negative and exceeds the slope threshold.
Exits:
A position closes at the Take Profit level, Trailing Stop Loss, or when an opposing signal is generated.
Use Case:
This strategy is ideal for trending markets where price action respects moving averages. It can be used on any timeframe or asset but is particularly effective in markets with clear directional movements.
Recommended Settings:
Timeframe: Works well on higher timeframes (e.g., 1H, 4H, Daily).
Slope Threshold (%): Default is 5%, adjust based on market volatility.
Initial TP and Trailing SL: Tailor to your risk/reward preferences.
By utilizing this strategy, traders can capitalize on significant market trends while dynamically managing risk. Test it on historical data to optimize the parameters for your preferred market!
Indicator DashboardThis script creates an 'Indicator Dashboard' designed to assist you in analyzing financial markets and making informed decisions. The indicator provides a summary of current market conditions by presenting various technical analysis indicators in a table format. The dashboard evaluates popular indicators such as Moving Averages, RSI, MACD, and Stochastic RSI. Below, we'll explain each part of this script in detail and its purpose:
### Overview of Indicators
1. **Moving Averages (MA)**:
- This indicator calculates Simple Moving Averages (“SMA”) for 5, 14, 20, 50, 100, and 200 periods. These averages provide a visual summary of price movements. Depending on whether the price is above or below the moving average, it determines the market direction as either “Bullish” or “Bearish.”
2. **RSI (Relative Strength Index)**:
- The RSI helps identify overbought or oversold market conditions. Here, the RSI is calculated for a 14-period window, and this value is displayed in the table. Additionally, the 14-period moving average of the RSI is also included.
3. **MACD (Moving Average Convergence Divergence)**:
- The MACD indicator is used to determine trend strength and potential reversals. This script calculates the MACD line, signal line, and histogram. The MACD condition (“Bullish,” “Bearish,” or “Neutral”) is displayed alongside the MACD and signal line values.
4. **Stochastic RSI**:
- Stochastic RSI is used to identify momentum changes in the market. The %K and %D lines are calculated to determine the market condition (“Bullish” or “Bearish”), which is displayed along with the calculated values for %K and %D.
### Table Layout and Presentation
The dashboard is presented in a vertical table format in the top-right corner of the chart. The table contains two columns: “Indicator” and “Status,” summarizing the condition of each technical indicator.
- **Indicator Column**: Lists each of the indicators being tracked, such as SMA values, RSI, MACD, etc.
- **Status Column**: Displays the current status of each indicator, such as “Bullish,” “Bearish,” or specific values like the RSI or MACD.
The table also includes rounded indicator values for easier interpretation. This helps traders quickly assess market conditions and make informed decisions based on multiple indicators presented in a single location.
### Detailed Indicator Status Calculations
1. **SMA Status**: For each moving average (5, 14, 20, 50, 100, 200), the script checks if the current price is above or below the SMA. The status is determined as “Bullish” if the price is above the SMA and “Bearish” if below, with the value of the SMA also displayed.
2. **RSI and RSI Average**: The RSI value for a 14-period is displayed along with its 14-period SMA, which provides an average reading of the RSI to smooth out volatility.
3. **MACD Indicator**: The MACD line, signal line, and histogram are calculated using standard parameters (12, 26, 9). The status is shown as “Bullish” when the MACD line is above the signal line, and “Bearish” when it is below. The exact values for the MACD line, signal line, and histogram are also included.
4. **Stochastic RSI**: The %K and %D lines of the Stochastic RSI are used to determine the trend condition. If %K is greater than %D, the condition is “Bullish,” otherwise it is “Bearish.” The actual values of %K and %D are also displayed.
### Conclusion
The 'Indicator Dashboard' provides a comprehensive overview of multiple technical indicators in a single, easy-to-read table. This allows traders to quickly gauge market conditions and make more informed decisions. By consolidating key indicators like Moving Averages, RSI, MACD, and Stochastic RSI into one dashboard, it saves time and enhances the efficiency of technical analysis.
This script is particularly useful for traders who prefer a clean and organized overview of their favorite indicators without needing to plot each one individually on the chart. Instead, all the crucial information is available at a glance in a consolidated format.
Azlan MA Silang PLUS++Overview
Azlan MA Silang PLUS++ is an advanced moving average crossover trading indicator designed for traders who want to jump back into the market when they missed their first opportunity to take a trade. It implements a sophisticated dual moving average system with customizable settings and re-entry signals, making it suitable for both trend following and swing trading strategies.
Key Features
• Dual Moving Average System with multiple MA types (EMA, SMA, WMA, LWMA)
• Customizable price sources for each moving average
• Smart re-entry system with configurable maximum re-entries
• Visual signals with background coloring and shape markers
• Comprehensive alert system for both initial and re-entry signals
• Flexible parameter customization through input options
Input Parameters
Moving Average Configuration
• MA1 Type: Choice between SMA, EMA, WMA, LWMA (default: EMA)
• MA2 Type: Choice between SMA, EMA, WMA, LWMA (default: EMA)
• MA1 Length: Minimum value 1 (default: 8)
• MA2 Length: Minimum value 1 (default: 15)
• MA1 & MA2 Shift: Offset values for moving averages
• Price Sources: Configurable for each MA (Open, High, Low, Close, HL/2, HLC/3, HLCC/4)
Re-entry System
• Enable/Disable re-entry signals
• Maximum re-entries allowed (default: 3)
Technical Implementation
Price Source Calculation
The script implements a flexible price source system through the price_source() function:
• Supports standard OHLC values
• Includes compound calculations (HL/2, HLC/3, HLCC/4)
• Defaults to close price if invalid source specified
Moving Average Types
Implements four MA calculations:
1. SMA (Simple Moving Average)
2. EMA (Exponential Moving Average)
3. WMA (Weighted Moving Average)
4. LWMA (Linear Weighted Moving Average)
Signal Generation Logic
Initial Signals
• Buy Signal: MA1 crosses above MA2 with price above both MAs
• Sell Signal: MA1 crosses below MA2 with price below both MAs
Re-entry Signals
Re-entry system activates when:
1. Price crosses under MA1 in buy mode (or over in sell mode)
2. Price returns to cross back over MA1 (or under for sells)
3. Position relative to MA2 confirms trend direction
4. Number of re-entries hasn't exceeded maximum allowed
Visual Components
• MA1: Blue line (width: 2)
• MA2: Red line (width: 2)
• Background Colors:
o Green (60% opacity): Bullish conditions
o Red (60% opacity): Bearish conditions
• Signal Markers:
o Initial Buy/Sell: Up/Down arrows with "BUY"/"SELL" labels
o Re-entry Buy/Sell: Up/Down arrows with "RE-BUY"/"RE-SELL" labels
Alert System
Generates alerts for:
• Initial buy/sell signals
• Re-entry opportunities
• Alerts include ticker and timeframe information
• Configured for once-per-bar-close frequency
Usage Tips
1. Moving Average Selection
o Shorter periods (MA1) capture faster moves
o Longer periods (MA2) identify overall trend
o EMA responds faster to price changes than SMA
2. Re-entry System
o Best used in strong trending markets
o Limit maximum re-entries based on market volatility
o Monitor price action around MA1 for potential re-entry points
3. Risk Management
o Use additional confirmation indicators
o Set appropriate stop-loss levels
o Consider market conditions when using re-entry signals
Code Structure
The script follows a modular design with distinct sections:
1. Input parameter definitions
2. Helper functions for price and MA calculations
3. Main signal generation logic
4. Visual elements and plotting
5. Alert system implementation
This organization makes the code maintainable and easy to modify for custom needs.
TMA Bands TMA (Triangular Moving Average):
Üçgen hareketli ortalamalar, fiyat verilerini yumuşatarak trendi daha net göstermek için kullanılır.
"Centered Asymmetric Bands" terimi, bu indikatörün merkezlenmiş bir yapıda çalıştığını ve farklı genişliklerde bantlar içerdiğini gösteriyor.
Trend Speed Analyzer (Zeiierman)█ Overview
The Trend Speed Analyzer by Zeiierman is designed to measure the strength and speed of market trends, providing traders with actionable insights into momentum dynamics. By combining a dynamic moving average with wave and speed analysis, it visually highlights shifts in trend direction, market strength, and potential reversals. This tool is ideal for identifying breakout opportunities, gauging trend consistency, and understanding the dominance of bullish or bearish forces over various timeframes.
█ How It Works
The indicator employs a Dynamic Moving Average (DMA) enhanced with an Accelerator Factor, allowing it to adapt dynamically to market conditions. The DMA is responsive to price changes, making it suitable for both long-term trends and short-term momentum analysis.
Key components include:
Trend Speed Analysis: Measures the speed of market movements, highlighting momentum shifts with visual cues.
Wave Analysis: Tracks bullish and bearish wave sizes to determine market strength and bias.
Normalized Speed Values: Ensures consistency across different market conditions by adjusting for volatility.
⚪ Average Wave and Max Wave
These metrics analyze the size of bullish and bearish waves over a specified Lookback Period:
Average Wave: This represents the mean size of bullish and bearish movements, helping traders gauge overall market strength.
Max Wave: Highlights the largest movements within the period, identifying peak momentum during trend surges.
⚪ Current Wave Ratio
This feature compares the current wave's size against historical data:
Average Wave Ratio: Indicates if the current momentum exceeds historical averages. A value above 1 suggests the trend is gaining strength.
Max Wave Ratio: Shows whether the current wave surpasses previous peak movements, signaling potential breakouts or trend accelerations.
⚪ Dominance
Dominance metrics reveal whether bulls or bears have controlled the market during the Lookback Period:
Average Dominance: Compares the net difference between average bullish and bearish wave sizes.
Max Dominance: Highlights which side had the stronger individual waves, indicating key power shifts in market dynamics.
Positive values suggest bullish dominance, while negative values point to bearish control. This helps traders confirm trend direction or anticipate reversals.
█ How to Use
Identify Trends: Leverage the color-coded candlesticks and dynamic trend line to assess the overall market direction with clarity.
Monitor Momentum: Use the Trend Speed histogram to track changes in momentum, identifying periods of acceleration or deceleration.
Analyze Waves: Compare the sizes of bullish and bearish waves to identify the prevailing market bias and detect potential shifts in sentiment. Additionally, fluctuations in Current Wave ratio values should be monitored as early indicators of possible trend reversals.
Evaluate Dominance: Utilize dominance metrics to confirm the strength and direction of the current trend.
█ Settings
Maximum Length: Sets the smoothing of the trend line.
Accelerator Multiplier: Adjusts sensitivity to price changes.
Lookback Period: Defines the range for wave calculations.
Enable Table: Displays statistical metrics for in-depth analysis.
Enable Candles: Activates color-coded candlesticks.
Collection Period: Normalizes trend speed values for better accuracy.
Start Date: Limits calculations to a specific timeframe.
Timer Option: Choose between using all available data or starting from a custom date.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
VAMA - Volume Adjusted Moving Average [jpkxyz]VAMA is a moving average that adapts to volume, giving more weight to price movements backed by higher relative volume. This VAMA (Volume Adjusted Moving Average) indicator implementation emphasizes visual clarity. It is based on the VAMA script by @allanster
Dual VAMA lines (Fast/Slow) with dynamic coloring:
Single-color scheme switches between green (bullish) and red (bearish)
Color changes on crossovers rather than relative position
Configurable line widths (set to 1 for clean appearance)
Visual enhancements:
Optional fill between VAMA lines (50% transparency)
Crossover dots can be toggled
Fills and dots match the current trend color
Customization parameters:
Independent source inputs for Fast/Slow lines
Adjustable VI Factor (volume influence)
Sample size control
Strict/non-strict calculation toggle
The code maintains efficient computation while prioritizing visual feedback for trend changes. It's designed for clear signal identification without visual clutter.
Notable style choices:
Consistent color theming throughout all visual elements
Simplified color transitions (only at crossovers)
Subtle transparency for fill areas
Minimal dot size for crossover markers
VAMA (Volume Adjusted Moving Average) Technical Analysis:
Core Calculation:
1. Volume Influence (v2i):
v2i = volume / ((total_volume/total_periods) * volume_factor)
- total_volume: Sum of volume over sample period
- total_periods: Either full history (nvb=0) or specified sample size
- volume_factor: Controls sensitivity to volume deviation
2. Price Weighting:
weighted_price = source_price * v2i
3. Accumulation Process:
- Iterates through length*10 periods
- Accumulates weighted prices and volume influence values
- Continues until volume influence sum >= specified length or strict rule triggers
4. Final VAMA Value:
vama = (weighted_sum - (volume_sum - length) * last_price) / length
Parameters:
- SampleN: Historical reference length (0=full history)
- Length: Base period for calculation
- VI Factor: Volume influence multiplier (>0.01)
- Strict: Forces exact length period completion when true
- Source: Input price data
Bitcoin Cycle High/Low with functional Alert [heswaikcrypt]Introduction
Just as machines are fine-tuned for maximum efficiency, trading indicators must evolve to meet the demands of ever-changing markets.
Credit goes to the initial author, @NoCreditsLeft I only improved the existing Pi-cycle indicator with a functional alert and included a bull mode indicator in the script. The alert can help you get a live alert at candle close when the cycle tops, bottoms, and the potential bull phase switch occurs.
Philip Swift’s Pi Cycle Top Indicator is a brilliant example of leveraging mathematical relationships to signal critical turning points in Bitcoin’s price cycles. Historically, it has identified market and local tops with some relative accuracy, often within three days, as demonstrated in all the previous bull run cycles.
At its core, the Pi Cycle Indicator derives its name from the mathematical constant π (pi), achieved by using simple moving averages (MAs) in a specific ratio: 𝜋 = Long MA/short MA
The Bull mode switch is calculated using a crossover of the short exponentia moving average and the long moving average.
.
.
.
Knowing when Bitcoin reaches its top—and receiving timely alerts about it—is crucial for successful trading. The indicator is designed to signal;
Potential Bitcoin tops: Purple label
Potential Bitcoin bottoms : green Label, and
Parabolic swing : Yellow diamond shape (relating to the market switching to a potential bull mode)
"Please note: This indicator is tailored for Bitcoin using historical data analysis and should not be considered definitive. However accurate it might be."
Setting alerts
To set the alert conditions, select any alert function call to get alert whenever the conditions are met. The script is configured on dialy TF; you can set it on 1D or weekly TF.
Enjoy and Trade smartly
Trend Flow Line (TFL)The Trend Flow Line (TFL) is a versatile moving average indicator that dynamically adjusts to trends using a combination of Hull and Weighted Moving Averages, with optional color coding for bullish and bearish trends.
Introduction
The Trend Flow Line (TFL) is a powerful indicator designed to help traders identify and follow market trends with precision. It combines multiple moving average techniques to create a responsive yet smooth trendline. Whether you're a beginner or an experienced trader, the TFL can enhance your chart analysis by highlighting key price movements and trends.
Detailed Description
The Trend Flow Line (TFL) goes beyond traditional moving averages by leveraging a hybrid approach to calculate trends.
Here's how it works:
.........
Combination of Hull and Weighted Moving Averages
The TFL integrates the Hull Moving Average (HMA), known for its fast responsiveness, and the Double Weighted Moving Average (DWMA), which offers smooth transitions.
The HMA is adjusted dynamically based on the user-defined length, ensuring adaptability to various trading styles and timeframes.
.....
Dynamic Smoothing
The TFL calculates its value by averaging the HMA and DWMA, creating a balanced line that responds to market fluctuations without excessive noise.
This balance makes it ideal for identifying both short-term reversals and long-term trends.
.....
Customizable Features
Timeframe: Analyze the indicator on custom timeframes, independent of the chart's current timeframe.
Color Coding: Optional color settings visually differentiate bullish (uptrend) and bearish (downtrend) phases.
Line Width: Adjust the line thickness to suit your chart preferences.
Color Smoothness: Fine-tune how quickly the color changes to reflect trend shifts, providing a visual cue for potential reversals.
The TFL's algorithm ensures a blend of precision and adaptability, making it suitable for any market or trading strategy.
.........
The Trend Flow Line (TFL) is an essential tool for traders looking to stay ahead of market trends while maintaining a clear and visually intuitive charting experience. It combines HMA and DWMA for trend sensitivity and smoothness.
TCSE24TCSE24 or Trendband Cycle Special Edition is designed to help create a simple trading plan by identifying potential Entry, Exit, Target Price, and Stop Loss. I use TCSE24 as a guide for short-term swing trading!
Please note, TCSE24 is not a directional indicator but fits better in Trend Following Strategy.
Only work with chart that have volume by default
Signals for Bullish Trade
1. Trendband Below Candlestick
Filled Red with a Purple Line.
2. Cycle Begin
Bar Color: Vivid Green.
Green Circle Above Candlestick: Target Price.
Green Circle Below Candlestick: Pullback Entry.
Red Circle Below Candlestick: Stop Loss.
3. Breakout
Bar Color: Lemon Green.
Green Circle Below Candlestick: Pullback Entry.
Red Circle Below Candlestick: Stop Loss.
4. Broken Minor Support
Bar Color: Yellow.
Price closes below the lowest low of the last 4 candles.
5. Volume Test
Green Triangle-Up below Candlestick.
Current bar shows 3 consecutive falling volumes.
6. Inside Bar
Orange Triangle-Up below Candlestick.
High and low are within the high and low of the previous candlestick.
7. Box Trading
Purple Diamond
8. Cycle End
Bar Color: Red.
Red Triangle-Up below Candlestick.
9. Info Panel
Background Green, turning Yellow after 20 bars from Cycle Begin.
Background Red when Cycle Ends.
Displays info such as Current Price, Target Price, Pullback Price, Stop Loss.
________________________________________
Signals for Bearish Trade
1. Trendband Above Candlestick
Filled with Blue.
2.Short Selling Begin
Bar Color: Blue.
Blue Circle Above Candlestick: Stop Loss.
Blue Circle Below Candlestick: Target Price.
3. Breakdown
Blue Circle Above Candlestick: Stop Loss.
4. Short Selling End
Bar Color: White.
Blue Triangle-Down above Candlestick.
5. Info Panel
Background Blue throughout the trade.
________________________________________
Bullish Trade Entry Suggestions
1. Ensure Cycle Begin is confirmed:
Buy near the closing price.
Use a Buy Stop 2 ticks higher than Cycle Begin's highest price.
Use a Buy Limit at the pullback price.
Wait for a signal candlestick, then Buy the next day if the price rises above the signal candlestick’s high.
2. Ensure Breakout is confirmed:
Buy near the closing price.
Use a Buy Stop 2 ticks higher than Breakout’s highest price.
Use a Buy Limit at the pullback price.
3. Box Trading:
Buy on the third day (T3).
Buy above the Box Trading line.
4. Candlestick Signal:
Ensure the signal candlestick is confirmed:
Look for Doji, Spinning Top, or Hammer patterns.
Buy the next day if the price rises above the signal candle's high.
________________________________________
Bullish Trade Exit Suggestions
1. Target Sell
Sell when the Target Price (TP) is reached or hold as long as Stop Loss isn’t hit.
Sell if the price doesn’t move, doesn’t reach the target, or doesn’t hit the Stop Loss after 20 candles from Cycle Begin.
Sell if the price closes below the Stop Loss.
2. Candlestick Signal
Look for Doji, Spinning Top, or Hammer patterns.
Sell the next day if the price drops below the signal candle's low.
________________________________________
Bearish Trade Suggestions
Ensure Short Selling Signal or Breakdown is confirmed:
Sell near the closing price.
Close the position at Target 1, Target 2, Target 3.
Close the position if Stop Loss is hit or when Short Selling End appears.
________________________________________
Any alert() function call freq
Once_per_bar_close
Cycle Begin, Inside Bar, Doji, Hammer, Spinning Top, Box Trading, Volume Test, Short Selling
Once_per_bar
Breakout, Cycle End
For educational purposes only and should not be taken as advice on how to invest your capital. Always speak with a professional financial planner or advisor before making any investment decisions.
Bollinger Bands Adjusted for VolatilityDescription:
The Bollinger Bands Adjusted for Volatility is an advanced technical indicator designed to combine the precision of smoothed Bollinger Bands with the adaptability of linear regression for volatility analysis. This tool offers traders a dynamic way to visualize market trends while accounting for recent price movements and fluctuations in volatility.
Core Functionality:
Exponential Moving Average (EMA):
The indicator begins by calculating an Exponential Moving Average (EMA) over a user-defined period. This serves as the foundational trendline, smoothing out short-term fluctuations to highlight the overall trend.
Linear Regression Smoothing:
To account for price trends with greater precision, a Linear Regression line is calculated over a specified period.
The linear regression output is further smoothed using an EMA, ensuring a responsive yet stable representation of the price trend.
Standard Deviation and Volatility:
The indicator computes the standard deviation of the closing prices over the EMA period, dynamically capturing market volatility.
This measure of volatility is then integrated into the calculation of the upper and lower bands.
Smoothed Bollinger Bands:
The upper and lower bands are constructed by adjusting the smoothed linear regression line with the standard deviation, scaled by a user-defined multiplier.
This approach adapts to changing market conditions, offering a more nuanced view compared to traditional Bollinger Bands.
Visual Components:
EMA Line (Blue): A stable trendline that reflects the underlying market direction.
Upper Band (Red): Represents the upper boundary, adjusted for volatility and smoothed by linear regression.
Lower Band (Green): Marks the lower boundary, providing a measure of support based on volatility.
Band Fill (Shaded Area): A dynamic fill between the upper and lower bands for enhanced visualization of the price range.
Advanced Concepts:
Volatility-Responsive Bands:
By integrating the standard deviation into the bands and smoothing with linear regression, the indicator reacts effectively to market dynamics, widening during high volatility and contracting during low volatility.
Trend Adaptation:
The smoothed linear regression ensures that the bands align closely with the prevailing market trend, reducing noise and improving accuracy.
Applications:
Trend Identification:
Use the EMA and the central smoothed linear regression to identify the primary trend.
Observe price interaction with the upper and lower bands for potential trend continuations or reversals.
Volatility-Based Strategies:
Monitor band expansions and contractions to gauge shifts in market volatility.
Trade breakouts or reversals when the price breaches the bands under extreme conditions.
Support and Resistance:
The upper and lower bands act as dynamic support and resistance levels, adapting to the current market environment.
Disclaimer:
This indicator is provided for informational and educational purposes only. It does not constitute financial advice. Users should exercise caution and perform their own analysis when making trading decisions.
Trend Confirmation IndicatorIn the “TCI”, a short “SMA” is divided by a longer “SMA”, regardless of whether it is “simple”, “exponential” or “weighted”, whereby the quotient is usually multiplied by 100 for better representation. The result is an oscillator with the center line at 100. An oscillator value above the center line shows that the short "SMA" is above the longer "SMA", similarly a value below the center line shows that the short "SMA" is below the longer " SMAs” noted.
Calculation:
Two “moving averages” are constructed, with the shorter “SMA” divided by the longer “SMA”. The result is multiplied by a factor of 100.
Formula:
TCI = (MAx / MAy ) * 100
MAx = “Moving Average” shorter period of time
MAy = “Moving Average” longer period
HMA Gaussian Volatility AdjustedOverview
The "HMA Gaussian Volatility Adjusted" indicator introduces a unique combination of HMA smoothing with a Gaussian filter and two components to measure volatility (Average True Range (ATR) and Standard Deviation (SD)). This tool provides traders with a stable and accurate measure of price trends by integrating a Gaussian Filter smoothed using HMA with a customized calculation of volatility. This innovative approach allows for enhanced sensitivity to market fluctuations while filtering out short-term price noise.
Technical Composition and Calculation
The "HMA Gaussian Volatility Adjusted" indicator incorporates HMA smoothing and dynamic standard deviation calculations to build upon traditional volatility measures.
HMA & Gaussian Smoothing:
HMA Calculation (HMA_Length): The script applies a Hull Moving Average (HMA) to smooth the price data over a user-defined period, reducing noise and helping focus on broader market trends.
Gaussian Filter Calculation (Length_Gaussian): The smoothed HMA data is further refined by putting it into a Gaussian filter to incorporate a normal distribution.
Volatility Measurement:
ATR Calculation (ATR_Length, ATR_Factor): The indicator incorporates the Average True Range (ATR) to measure market volatility. The user-defined ATR multiplier is applied to this value to calculate upper and lower trend bands around the Gaussian, providing a dynamic measure of potential price movement based on recent volatility.
Standard Deviation Calculation (SD_Length): The script calculates the standard deviation of the price over a user-defined length, providing another layer of volatility measurement. The upper and lower standard deviation bands (SDD, SDU) act as additional indicators of price extremes.
Momentum Calculation & Scoring
When the indicator signals SHORT:
Diff = Price - Upper Boundary of the Standard Deviation (calculated on a Gaussian filter).
When the indicator signals LONG:
Diff = Price - Upper Boundary of the ATR (calculated on a Gaussian filter).
The calculated Diff signals how close the indicator is to changing trends. An EMA is applied to the Diff to smooth the data. Positive momentum occurs when the Diff is above the EMA, and negative momentum occurs when the Diff is below the EMA.
Trend Detection
Trend Logic: The indicator uses the calculated bands to identify whether the price is moving within or outside the standard deviation and ATR bands. Crosses above or below these bands, combined with positive/negative momentum, signals potential uptrends or downtrends, offering traders a clear view of market direction.
Features and User Inputs
The "HMA Gaussian Volatility Adjusted" script offers a variety of user inputs to customize the indicator to suit traders' styles and market conditions:
HMA Length: Allows traders to adjust the sensitivity of the HMA smoothing to control the amount of noise filtered from the price data.
Gaussian Length: Users can define the length at which the Gaussian filter is applied.
ATR Length and Multiplier: These inputs let traders fine-tune the ATR calculation, affecting the size of the dynamic upper and lower bands to adjust for price volatility.
Standard Deviation Length: Controls how the standard deviation is calculated, allowing further customization in detecting price volatility.
EMA Confluence: This input lets traders determine the length of the EMA used to calculate price momentum.
Type of Plot Setting: Allows users to determine how the indicator signal is plotted on the chart (Background color, Trend Lines, BOTH (backgroung color and Trend Lines)).
Transparency: Provides users with customization of the background color's transparency.
Color Long/Short: Offers users the option to choose their preferred colors for both long and short signals.
Summary and Usage Tips
The "HMA Gaussian Volatility Adjusted" indicator is a powerful tool for traders looking to refine their analysis of market trends and volatility. Its combination of HMA smoothing, Gaussian filtering, and standard deviation analysis provides a nuanced view of market movements by incorporating various metrics to determine direction, momentum, and volatility. This helps traders make better-informed decisions. It's recommended to experiment with the various input parameters to optimize the indicator for specific needs.
M200 MultiplesThis script is designed to analyze price trends using moving averages and their multiples. Here's a brief description:
The script calculates and plots:
The 200-period Simple Moving Average (M200): A commonly used indicator to identify long-term trends.
Additionally, it generates multiple lines based on multipliers of the M200 to visualize potential support and resistance levels:
2x M200: Double the 200-period average.
1.5x M200, 1.68x M200, 2.236x M200, and 2.5x M200: Various multipliers to identify intermediate zones of interest.
Visualization
M200 is plotted in blue
Multipliers of M200 are plotted in gray with varying line widths for distinction.
Use Case
Identify key support and resistance levels derived from long-term moving averages.
Combine trend-following techniques with zone-based price action analysis.
This script works well on the daily time frame.
Stock_Cloud-EMA,VWAP,ST Indicator_V1Stock_Cloud V1 - EMA, VWAP, SuperTrend Strategy Indicator
This indicator combines three powerful technical indicators (EMA, VWAP, and SuperTrend) to create a comprehensive trading system that helps identify high-probability trading setups when all components align.
Strategy Components & Logic:
• EMA (Exponential Moving Average): Acts as a dynamic support/resistance and trend direction indicator
• VWAP (Volume Weighted Average Price): Provides important institutional price levels and volume-based trend strength
• SuperTrend: Offers trend direction and potential reversal points
Why These Components Work Together:
1. EMA filters out market noise while maintaining responsiveness to price changes
2. VWAP adds volume-based price validation, especially useful for intraday trading
3. SuperTrend confirms trend direction and potential reversal points
4. When all three indicators align, it creates a high-probability setup
Signal Generation:
• Bullish Signal: Generated when price crosses above all three indicators (EMA, VWAP, and SuperTrend turns bullish)
• Bearish Signal: Generated when price crosses below all three indicators (EMA, VWAP, and SuperTrend turns bearish)
• Background color changes help visualize the current market condition
Settings:
- EMA Length: 20 (default, adjustable)
- SuperTrend Period: 10 (default, adjustable)
- SuperTrend Multiplier: 3.0 (default, adjustable)
How to Use:
1. Look for potential entries when all three indicators align
2. Small triangles mark key entry points when alignment occurs
3. Use background color as additional confirmation
4. Monitor price action relative to all three indicators for exit signals
Best Timeframes:
Works well on all timeframes, but particularly effective on 5-minute to daily charts for stocks and indices.
Note: This indicator combines traditional technical analysis tools in a unique way to provide clear, actionable signals. Always use proper risk management and consider other factors like market conditions and support/resistance levels.
Created by Stock_Cloud
Version 2.0
simple swing indicator-KTRNSE:NIFTY
1. Pivot High/Low as Lines:
Purpose: Identifies local peaks (pivot highs) and troughs (pivot lows) in price and draws horizontal lines at these levels.
How it Works:
A pivot high occurs when the price is higher than the surrounding bars (based on the pivotLength parameter).
A pivot low occurs when the price is lower than the surrounding bars.
These pivots are drawn as horizontal lines at the price level of the pivot.
Visualization:
Pivot High: A red horizontal line is drawn at the price level of the pivot high.
Pivot Low: A green horizontal line is drawn at the price level of the pivot low.
Example:
Imagine the price is trending up, and at some point, it forms a peak. The script identifies this peak as a pivot high and draws a red line at the price of that peak. Similarly, if the price forms a trough, the script will draw a green line at the low point.
2. Moving Averages (20-day and 50-day):
Purpose: Plots the 20-day and 50-day simple moving averages (SMA) on the chart.
How it Works:
The 20-day SMA smooths the closing price over the last 20 days.
The 50-day SMA smooths the closing price over the last 50 days.
These lines provide an overview of short-term and long-term price trends.
Visualization:
20-day SMA: A blue line showing the 20-day moving average.
50-day SMA: An orange line showing the 50-day moving average.
Example:
When the price is above both moving averages, it indicates an uptrend. If the price crosses below these averages, it might signal a downtrend.
3. Supertrend:
Purpose: The Supertrend is an indicator based on the Average True Range (ATR) and is used to track the market trend.
How it Works:
When the market is in an uptrend, the Supertrend line will be green.
When the market is in a downtrend, the Supertrend line will be red.
Visualization:
Uptrend: The Supertrend line will be plotted in green.
Downtrend: The Supertrend line will be plotted in red.
Example:
If the price is above the Supertrend, the market is considered to be in an uptrend, and if the price is below the Supertrend, the market is in a downtrend.
4. Momentum (Rate of Change):
Purpose: Measures the rate at which the price changes over a set period, showing if the momentum is positive or negative.
How it Works:
The Rate of Change (ROC) measures how much the price has changed over a certain number of periods (e.g., 14).
Positive ROC indicates upward momentum, and negative ROC indicates downward momentum.
Visualization:
Positive ROC: A purple line is plotted above the zero line.
Negative ROC: A purple line is plotted below the zero line.
Example:
If the ROC line is above zero, it means the price is increasing, suggesting bullish momentum. If the ROC is below zero, it indicates bearish momentum.
5. Volume:
Purpose: Displays the volume of traded assets, giving insight into the strength of price movements.
How it Works:
The script will color the volume bars based on whether the price closed higher or lower than the previous bar.
Green bars indicate bullish volume (closing price higher than the previous bar), and red bars indicate bearish volume (closing price lower than the previous bar).
Visualization:
Bullish Volume: Green volume bars when the price closes higher.
Bearish Volume: Red volume bars when the price closes lower.
Example:
If you see a green volume bar, it suggests that the market is participating in an uptrend, and the price has closed higher than the previous period. Red bars indicate a downtrend or selling pressure.
6. MACD (Moving Average Convergence Divergence):
Purpose: The MACD is a trend-following momentum indicator that shows the relationship between two moving averages of the price.
How it Works:
The MACD Line is the difference between the 12-period EMA (Exponential Moving Average) and the 26-period EMA.
The Signal Line is the 9-period EMA of the MACD Line.
The MACD Histogram shows the difference between the MACD line and the Signal line.
Visualization:
MACD Line: A blue line representing the difference between the 12-period and 26-period EMAs.
Signal Line: An orange line representing the 9-period EMA of the MACD line.
MACD Histogram: A red or green histogram that shows the difference between the MACD line and the Signal line.
Example:
When the MACD line crosses above the Signal line, it’s considered a bullish signal. When the MACD line crosses below the Signal line, it’s considered a bearish signal.
Full Chart Example:
Imagine you're looking at a price chart with all the indicators:
Pivot High/Low Lines are drawn as red and green horizontal lines.
20-day and 50-day SMAs are plotted as blue and orange lines, respectively.
Supertrend shows a green or red line indicating the trend.
Momentum (ROC) is shown as a purple line oscillating around zero.
Volume bars are green or red based on whether the close is higher or lower.
MACD appears as a blue line and orange line, with a red or green histogram showing the MACD vs. Signal line difference.
How the Indicators Work Together:
Trend Confirmation: If the price is above the Supertrend line and both SMAs are trending up, it indicates a strong bullish trend.
Momentum: If the ROC is positive and the MACD line is above the Signal line, it further confirms bullish momentum.
Volume: Increasing volume, especially with green bars, suggests that the trend is being supported by active participation.
By using these combined indicators, you can get a comprehensive view of the market's trend, momentum, and potential reversal points (via pivot highs and lows).
Adaptive DEMA Momentum Oscillator (ADMO)Overview:
The Adaptive DEMA Momentum Oscillator (ADMO) is an open-source technical analysis tool developed to measure market momentum using a Double Exponential Moving Average (DEMA) and adaptive standard deviation. By dynamically combining price deviation from the moving average with normalized standard deviation, ADMO provides traders with a powerful way to interpret market conditions.
Key Features:
Double Exponential Moving Average (DEMA):
The core calculation of the indicator is based on DEMA, which is known for being more responsive to price changes compared to traditional moving averages. This makes the ADMO capable of capturing trend momentum effectively.
Standard Deviation Integration:
A normalized standard deviation is used to adaptively weight the oscillator. This makes the indicator more sensitive to market volatility, enhancing responsiveness during high volatility and reducing sensitivity during calmer periods.
Oscillator Representation:
The final oscillator value is derived from the combination of the DEMA-based Z-score and the normalized standard deviation. This final value is visualized as a color-coded histogram, reflecting bullish or bearish momentum.
Color-Coded Histogram:
Bullish Momentum: Values above zero are colored using a customizable bullish color (default: light green).
Bearish Momentum: Values below zero are colored using a customizable bearish color (default: red).
How It Works:
Inputs:
DEMA Length: Defines the period used for calculating the Double Exponential Moving Average. It can be adjusted from 1 to 200 to suit different trading styles.
Standard Deviation Length: Sets the lookback period for standard deviation calculations, which influences the responsiveness of the oscillator.
Standard Deviation Weight (StdDev Weight): Controls the weight given to the normalized standard deviation, allowing customization of the oscillator's sensitivity to volatility.
Calculation Steps:
Double Exponential Moving Average Calculation:
The DEMA is calculated using two exponential moving averages, which helps in reducing lag compared to a simple moving average.
Z-score Calculation:
The Z-score is derived by comparing the difference between the DEMA and its smoothed average (LSMA) to the standard deviation. This indicates how far the current value is from the mean in units of standard deviation.
Normalized Standard Deviation:
The standard deviation is normalized by subtracting the mean standard deviation and dividing by the standard deviation of the values. This helps to make the oscillator adaptive to recent changes in volatility.
Final Oscillator Value:
The final value is calculated by multiplying the Z-score with a factor based on the normalized standard deviation, resulting in a momentum indicator that adapts to different market conditions.
Visualization:
Histogram: The oscillator is plotted as a histogram, with color-coded bars showing the strength and direction of market momentum.
Positive (bullish) values are shown in green, indicating upward momentum.
Negative (bearish) values are shown in red, indicating downward momentum.
Zero Line: A zero line is plotted to provide a reference point, helping users quickly determine whether the current momentum is bullish or bearish.
Example Use Cases:
Momentum Identification:
ADMO helps identify the current market momentum by dynamically adapting to changes in market volatility. When the histogram is above zero and green, it indicates bullish conditions, whereas values below zero and red suggest bearish momentum.
Volatility-Adjusted Signals:
The normalized standard deviation weighting allows the ADMO to provide more reliable signals during different market conditions. This makes it particularly useful for traders who want to be responsive to market volatility while avoiding false signals.
Trend Confirmation and Divergence:
ADMO can be used to confirm the strength of a trend or identify potential divergences between price and momentum. This helps traders spot potential reversal points or continuation signals.
Summary:
The Adaptive DEMA Momentum Oscillator (ADMO) offers a unique approach by combining momentum analysis with adaptive standard deviation. The integration of DEMA makes it responsive to price changes, while the standard deviation adjustment helps it stay relevant in both high and low volatility environments. It's a versatile tool for traders who need an adaptive, momentum-based approach to technical analysis.
Feel free to explore the code and adapt it to your trading strategy. The open-source nature of this tool allows you to adjust the settings and visualize the output to fit your personal trading preferences.
Simple Moving Average with Regime Detection by iGrey.TradingThis indicator helps traders identify market regimes using the powerful combination of 50 and 200 SMAs. It provides clear visual signals and detailed metrics for trend-following strategies.
Key Features:
- Dual SMA System (50/200) for regime identification
- Colour-coded candles for easy trend visualisation
- Metrics dashboard
Core Signals:
- Bullish Regime: Price < 200 SMA
- Bearish Regime: Price > 200 SMA
- Additional confirmation: 50 SMA Cross-over or Cross-under (golden cross or death cross)
Metrics Dashboard:
- Current Regime Status (Bull/Bear)
- SMA Distance (% from price to 50 SMA)
- Regime Distance (% from price to 200 SMA)
- Regime Duration (bars in current regime)
Usage Instructions:
1. Apply the indicator to your chart
2. Configure the SMA lengths if desired (default: 50/200)
3. Monitor the color-coded candles:
- Green: Bullish regime
- Red: Bearish regime
4. Use the metrics dashboard for detailed analysis
Settings Guide:
- Length: Short-term SMA period (default: 50)
- Source: Price calculation source (default: close)
- Regime Filter Length: Long-term SMA period (default: 200)
- Regime Filter Source: Price source for regime calculation (default: close)
Trading Tips:
- Use bullish regimes for long positions
- Use bearish regimes for capital preservation or short positions
- Consider regime duration for trend strength
- Monitor distance metrics for potential reversals
- Combine with other systems for confluence
#trend-following #moving average #regime #sma #momentum
Risk Management:
- Not a standalone trading system
- Should be used with proper position sizing
- Consider market conditions and volatility
- Always use stop losses
Best Practices:
- Monitor multiple timeframes
- Use with other confirmation tools
- Consider fundamental factors
Version: 1.0
Created by: iGREY.Trading
Release Notes
// v1.1 Allows table overlay customisation
// v1.2 Update to v6 pinescript
Dual Strategy Selector V2 - CryptogyaniOverview:
This script provides traders with a dual-strategy system that they can toggle between using a simple dropdown menu in the input settings. It is designed to cater to different trading styles and needs, offering both simplicity and advanced filtering techniques. The strategies are built around moving average crossovers, enhanced by configurable risk management tools like take profit levels, trailing stops, and ATR-based stop-loss.
Key Features:
Two Strategies in One Script:
Strategy 1: A classic moving average crossover strategy for identifying entry signals based on trend reversals. Includes user-defined take profit and trailing stop-loss options for profit locking.
Strategy 2: An advanced trend-following system that incorporates:
A higher timeframe trend filter to confirm entry signals.
ATR-based stop-loss for dynamic risk management.
Configurable partial take profit to secure gains while letting the trade run.
Highly Customizable:
All key parameters such as SMA lengths, take profit levels, ATR multiplier, and timeframe for the trend filter are adjustable via the input settings.
Dynamic Toggle:
Traders can switch between Strategy 1 and Strategy 2 with a single dropdown, allowing them to adapt the strategy to market conditions.
How It Works:
Strategy 1:
Entry Logic: A long trade is triggered when the fast SMA crosses above the slow SMA.
Exit Logic: The trade exits at either a user-defined take profit level (percentage or pips) or via an optional trailing stop that dynamically adjusts based on price movement.
Strategy 2:
Entry Logic: Builds on the SMA crossover logic but adds a higher timeframe trend filter to align trades with the broader market direction.
Risk Management:
ATR-Based Stop-Loss: Protects against adverse moves with a volatility-adjusted stop-loss.
Partial Take Profit: Allows traders to secure a percentage of gains while keeping some exposure for extended trends.
How to Use:
Select Your Strategy:
Use the dropdown in the input settings to choose Strategy 1 or Strategy 2.
Configure Parameters:
Adjust SMA lengths, take profit, and risk management settings to align with your trading style.
For Strategy 2, specify the higher timeframe for trend filtering.
Deploy and Monitor:
Apply the script to your preferred asset and timeframe.
Use the backtest results to fine-tune settings for optimal performance.
Why Choose This Script?:
This script stands out due to its dual-strategy flexibility and enhanced features:
For beginners: Strategy 1 provides a simple yet effective trend-following system with minimal setup.
For advanced traders: Strategy 2 includes powerful tools like trend filters and ATR-based stop-loss, making it ideal for challenging market conditions.
By combining simplicity with advanced features, this script offers something for everyone while maintaining full transparency and user customization.
Default Settings:
Strategy 1:
Fast SMA: 21, Slow SMA: 49
Take Profit: 7% or 50 pips
Trailing Stop: Optional (disabled by default)
Strategy 2:
Fast SMA: 20, Slow SMA: 50
ATR Multiplier: 1.5
Partial Take Profit: 50%
Higher Timeframe: 1 Day (1D)
SMA200 & RSI [Tarun]The SMA200 & RSI Signal Indicator is a powerful tool designed for traders who want to identify potential entry zones based on a combination of price action and momentum. This indicator combines two essential trading components:
SMA200 (Simple Moving Average): A widely used trend-following tool that highlights the overall direction of the market.
RSI (Relative Strength Index): A momentum oscillator that measures the speed and change of price movements.
How It Works:
Price Above SMA200: Indicates bullish market conditions.
RSI Between 40 and 20: Suggests that the asset is in a potential oversold or pullback zone within a bullish trend.
When both conditions are met, the indicator triggers:
Background Highlight: The chart background turns green to indicate a potential signal zone.
Disclaimer:
This indicator is not a standalone trading strategy. Use it in conjunction with other analysis methods such as support and resistance, candlestick patterns, or volume analysis. Always practice proper risk management.