Supertrend + MACD CrossoverKey Elements of the Template:
Supertrend Settings:
supertrendFactor: Adjustable to control the sensitivity of the Supertrend.
supertrendATRLength: ATR length used for Supertrend calculation.
MACD Settings:
macdFastLength, macdSlowLength, macdSignalSmoothing: These settings allow you to fine-tune the MACD for better results.
Risk Management:
Stop-Loss: The stop-loss is based on the ATR (Average True Range), a volatility-based indicator.
Take-Profit: The take-profit is based on the risk-reward ratio (set to 3x by default).
Both stop-loss and take-profit are dynamic, based on ATR, which adjusts according to market volatility.
Buy and Sell Signals:
Buy Signal: Supertrend is bullish, and MACD line crosses above the Signal line.
Sell Signal: Supertrend is bearish, and MACD line crosses below the Signal line.
Visual Elements:
The Supertrend line is plotted in green (bullish) and red (bearish).
Buy and Sell signals are shown with green and red triangles on the chart.
Next Steps for Optimization:
Backtesting:
Run backtests on BTC in the 5-minute timeframe and adjust parameters (Supertrend factor, MACD settings, risk-reward ratio) to find the optimal configuration for the 60% win ratio.
Fine-Tuning Parameters:
Adjust supertrendFactor and macdFastLength to find more optimal values based on BTC's market behavior.
Tweak the risk-reward ratio to maximize profitability while maintaining a good win ratio.
Evaluate Market Conditions:
The performance of the strategy can vary based on market volatility. It may be helpful to evaluate performance in different market conditions or pair it with a filter like RSI or volume.
Let me know if you'd like further tweaks or explanations!
المتوسطات المتحركة
mala-MA crossoverPurpose
The "mala-MA Crossover" is a TradingView indicator designed to help traders identify potential buy and sell opportunities based on the interaction between two Exponential Moving Averages (EMAs). It solves a common problem for traders: determining optimal entry and exit points in a market by highlighting momentum shifts. Whether you're scalping short-term moves or riding longer trends, this indicator simplifies trend detection and trade timing.
How It Works
This indicator uses two EMAs—a fast EMA (shorter period) and a slow EMA (longer period)—to track price momentum. The core logic is straightforward: when the fast EMA crosses above the slow EMA, it suggests upward momentum (a buy signal); when it crosses below, it indicates downward momentum (a sell signal). The EMAs are calculated using closing prices over user-defined periods, smoothing out price noise to focus on meaningful trends. Visual signals (triangles) and optional alerts make it easy to act on these crossovers without constant chart monitoring.
How to Use It
Adding to TradingView: Open TradingView, click the "Indicators" button (the "+" icon), search for "mala-MA Crossover," and add it to your chart.
Configuring Settings:
Adjust the "Fast EMA Length" (default: 5) for sensitivity to short-term price changes.
Adjust the "Slow EMA Length" (default: 20) to capture broader trends.
Beginners can stick with defaults, while pros might experiment (e.g., 10 and 50 for swing trading).
Interpreting Signals:
A green triangle below the price bar signals a buy—time to consider entering a long position.
A red triangle above the bar signals a sell—time to consider exiting or shorting.
Watch the blue (fast) and red (slow) EMA lines to confirm trend direction visually.
Practical Tips:
Beginners: Pair this with a simple trend filter (e.g., price above a 200-period EMA) to avoid false signals in choppy markets.
Pros: Backtest custom lengths on your asset (e.g., crypto vs. stocks) and enable alerts for automated notifications via TradingView’s alert system (right-click the indicator, select "Add Alert").
Originality
While EMA crossovers aren’t new, "mala-MA Crossover" stands out with its clean, beginner-friendly design paired with practical features for all skill levels. The adjustable EMA lengths offer flexibility, and the overlay format—showing EMAs directly on the price chart—keeps your workspace uncluttered. The addition of clear visual signals (triangles) and built-in alerts saves time compared to manually plotting or coding similar setups. It’s a no-fuss, customizable tool that balances simplicity with actionable insights, making it a go-to for both casual traders and seasoned strategists.
EMA-VWAP-TWAP Kesişim Sistemi(ORKUN)Triple Indicator System:
Blue: EMA (Dynamic trend follower)
Red: VWAP (Volume-weighted price balance)
Yellow: TWAP (Time-weighted average price)
Crossover Types:
Symbol Description Signal
▲ Green Triangle EMA > VWAP Bullish momentum
▼ Red Triangle EMA < VWAP Bearish momentum
● Blue Circle EMA > TWAP Short-term strength
● Orange Circle EMA < TWAP Short-term weakness
◆ Purple Diamond VWAP > TWAP Volume-driven bias
◆ Gold Diamond VWAP < TWAP Time-driven bias
Smart Information Panel:
Real-time values for EMA, VWAP, and TWAP
Color-coded status for crossovers:
Green/Red: EMA vs. VWAP
Blue/Orange: EMA vs. TWAP
Purple/Gold: VWAP vs. TWAP
Instant updates for all three crossover pairs
Optimization Tips:
Strategy Recommended Period Use Case
Scalping 5-15 periods Intraday volatility
Swing Trading 20-50 periods 3-5 day trends
Trend Analysis 50-200 periods Long-term market cycles
How to Interpret?
Strong Trend Signal:
EMA > VWAP + EMA > TWAP = Double bullish confirmation
Example: EMA-20 crosses above both VWAP-20 and TWAP-20
Market Equilibrium:
VWAP ≈ TWAP = Low volatility phase
Tip: Watch for EMA direction to predict breakout
Volume Divergence:
VWAP-TWAP divergence + EMA alignment = Hidden trend reversal
Scenario: VWAP rising (volume support) while TWAP flat + EMA bullish
Open Close Cross Strategy R5.1 revised by JustUncleLThis revision is an open Public release, with just some minor changes. It is a revision of the Strategy "Open Close Cross Strategy R2" originally published by @JayRogers.
*** USE AT YOUR OWN RISK ***
JayRogers : "There are drawing/painting issues in pinescript when working across resolutions/timeframes that I simply cannot fix here.. I will not be putting any further effort into developing this until such a time when workarounds become available."
NOTE: Re-painting has not been observed with the default set up, nor with Alternate resolution multiplier up to 5.
Description:
Strategy based around Open-Close Moving Average Crossovers optionally from a higher time frame.
Setup:
I have generally found that setting the strategy resolution to 3-5x that of the chart you are viewing tends to yield the best results, regardless of which MA option you may choose (if any) BUT can cause a lot of false positives - be aware of this. JustUncleL: using one of the Smoothed MA helps reduce false positives.
Don't aim for perfection. Just aim to get a reasonably snug fit with the O-C band, with good runs of green and red. JustUncleL: using SMMA (8 to 10) gives a good fit.
Option to either use basic open and close series data, or pick your poison with a wide array of MA types.
Optional Stop Loss and Target Profit for damage mitigation if desired (can be toggled on/off)
Positions get taken automatically following a crossover - which is why it's better to set the resolution of the script greater than that of your chart, so that the trades get taken sooner rather than later.
If you make use of the stops/target profit, be sure to take your time tweaking the values. Cutting it too fine will cost you profits but keep you safer, while letting them loose could lead to more draw down than you can handle.
Revsion R5 Changes by JustUncleL
Corrected cross over calculations, sometimes gave false signals.
Corrected Alternate Time calculation to allow for Daily,Weekly and Monthly charts.
Open Public release.
Revision R4 By JustUncleL
Change the way the Alternate resolution in selected, use a Multiplier of the base Time Frame instead, this makes it easy to switch between base time frames.
Added TMA and SSMA moving average options. But DEMA is still giving the best results.
Using "calc_on_every_tick=false" ensures results between back testing and real time are similar.
Added Option to Disable the coloring of the bars.
Updated default settings.
R3 Changes by JustUncleL:
Returned a simplified version of the open/close channel, it shows strength of current trend.
Added Target Profit Option.
Added option to reduce the number of historical bars, overcomes the too many trades limit error.
Simplified the strategy code.
Removed Trailing Stop option, not required and in my option does not work well in Trading View, it also gives false and unrealistic performance results in back testing.
R2 Changes by JayRogers:
Simplified and cleaned up plotting, now just shows a Moving Average derived from the average of open/close.
Tried very hard to alleviate painting issues caused by referencing alternate resolution.
8 août 2017
Notes de version
R5.1 Changes by JustUncleL
Upgraded to Version 3 Pinescript compliance.
Added option to select Trade type (Long, Short, Both or None)
Added bar colouring work around patch.
Some code corrections and changes to improve efficiency.
NOTE: To enable non-Repainting mode set "Delay Open/Close MA" to 1 or more, but expect the reported performance to drop dramatically.
Quadruple Moving Average with Alerts [FitzTello]This indicator plots 4 Simple Moving Averages to your chart and alerts when price touches each. It also has the ability to be customized by timframe and the inputs.
NISHITThis strategy is equal to the very popular "ANN Strategy" coded by sirolf2009 but without the Artificial Neural Network (ANN// Main difference besides stripping out the ANN is that I use close prices instead of OHLC4 prices
Vulkan Profit
Overview
The Vulkan Profit indicator is a trend-following tool that identifies potential entry and exit points by monitoring the relationship between short-term and long-term moving averages. It generates clear buy and sell signals when specific moving average conditions align, making it useful for traders looking to confirm trend changes across multiple timeframes.
How It Works
The indicator utilizes four different moving averages:
Fast WMA (period 3) - A highly responsive weighted moving average
Medium WMA (period 8) - A less sensitive weighted moving average
Fast EMA (period 18) - A responsive exponential moving average
Slow EMA (period 28) - A slower exponential moving average
These moving averages are grouped into two categories:
Short-term MAs: Fast WMA and Medium WMA
Long-term MAs: Fast EMA and Slow EMA
Signal Generation Logic
The Vulkan Profit indicator generates signals based on the relative positions of these moving averages:
Buy Signal (Green Triangle)
A buy signal appears when the minimum value of the short-term MAs becomes greater than the maximum value of the long-term MAs. In other words, when both short-term MAs cross above both long-term MAs.
Sell Signal (Red Triangle)
A sell signal appears when the maximum value of the short-term MAs becomes less than the minimum value of the long-term MAs. In other words, when both short-term MAs cross below both long-term MAs.
Visual Components
Moving Averages - All four moving averages can be displayed or hidden
Signal Arrows - Green triangles for buy signals, red triangles for sell signals
Colored Line - A line that changes color based on the current market stance (green for bullish, red for bearish)
Customization Options
The indicator offers several customization settings:
Toggle the visibility of moving averages
Toggle the visibility of buy/sell signals
Adjust the color, width, and position of the signal line
Choose between different line styles (Line, Stepline, Histogram)
Practical Trading Applications
Trend Identification: The relative positioning of all moving averages helps identify the current market trend
Entry/Exit Points: The buy and sell signals can be used as potential entry and exit points
Trend Confirmation: The colored line provides ongoing confirmation of the trend direction
Filter: Can be used in conjunction with other indicators as a trend filter
Trading Strategy Suggestions
Trend Following: Enter long positions on buy signals and exit on sell signals during trending markets
Confirmation Tool: Use the signals to confirm trades identified by other indicators
Timeframe Analysis: Apply the indicator across multiple timeframes for stronger confirmation
Risk Management: Place stop-loss orders below recent swing lows for long positions and above recent swing highs for short positions
Tips for Best Results
The indicator performs best in trending markets and may generate false signals in ranging or highly volatile markets
Consider the broader market context before taking trades based solely on these signals
Use appropriate position sizing and risk management regardless of the indicator's signals
The longer timeframes generally produce more reliable signals with fewer false positives
The Vulkan Profit indicator combines the responsiveness of short-term averages with the stability of long-term averages to capture significant trend changes while filtering out minor price fluctuations.
First EMA Touch (Last N Bars)Okay, here's a description of the "First EMA Touch (Last N Bars)" TradingView indicator:
Indicator Name: First EMA Touch (Last N Bars)
Core Purpose:
This indicator is designed to visually highlight on the chart the exact moment when the price (specifically, the high/low range of a price bar) makes contact with a specified Exponential Moving Average (EMA) for the first time within a defined recent lookback period (e.g., the last 20 bars).
How it Works:
EMA Calculation: It first calculates a standard Exponential Moving Average (EMA) based on the user-defined EMA Length and EMA Source (e.g., close price). This EMA line is plotted on the chart, often serving as a dynamic level of potential support or resistance.
"Touch" Detection: For every price bar, the indicator checks if the bar's range (from its low to its high) overlaps with or crosses the calculated EMA value for that bar. If low <= EMA <= high, it's considered a "touch".
"First Touch" Logic: This is the key feature. The indicator looks back over a specified number of preceding bars (defined by the Lookback Period). If a "touch" occurs on the current bar, and no "touch" occurred on any of the bars within that preceding lookback window, then the current touch is marked as the "first touch".
Visual Signal: When a "first touch" condition is met, the indicator plots a distinct shape (by default, a small green triangle) below the corresponding price bar. This makes it easy to spot these specific events.
Key Components & Settings:
EMA Line: The calculated EMA itself is plotted (typically as an orange line) for visual reference.
First Touch Signal: A shape (e.g., green triangle) appears below bars meeting the "first touch" criteria.
EMA Length (Input): Determines the period used for the EMA calculation. Shorter lengths make the EMA more reactive to recent price changes; longer lengths make it smoother and slower.
Lookback Period (Input): Defines how many bars (including the current one) the indicator checks backwards to determine if the current touch is the first one. A lookback of 20 means it checks if there was a touch in the previous 19 bars before signalling the current one as the first.
EMA Source (Input): Specifies which price point (close, open, high, low, hl2, etc.) is used to calculate the EMA.
Interpretation & Potential Uses:
Identifying Re-tests: The signal highlights when price returns to test the EMA after having stayed away from it for the duration of the lookback period. This can be significant as the market re-evaluates the EMA level.
Potential Reversal/Continuation Points: A first touch might indicate:
A potential area where a trend might resume after a pullback (if price bounces off the EMA).
A potential area where a reversal might begin (if price strongly rejects the EMA).
A point of interest if price consolidates around the EMA after the first touch.
Filtering Noise: By focusing only on the first touch within a period, it can help filter out repeated touches that might occur during choppy or consolidating price action around the EMA.
Confluence: Traders might use this signal in conjunction with other forms of analysis (e.g., horizontal support/resistance, trendlines, candlestick patterns, other indicators) to strengthen trade setups.
Limitations:
Lagging: Like all moving averages, the EMA is a lagging indicator.
Not Predictive: The signal indicates a specific past event (the first touch) occurred; it doesn't guarantee a future price movement.
Parameter Dependent: The effectiveness and frequency of signals heavily depend on the chosen EMA Length and Lookback Period. These may need tuning for different assets and timeframes.
Requires Confirmation: It's generally recommended to use this indicator as part of a broader trading strategy and not rely solely on its signals for trade decisions.
In essence, the "First EMA Touch (Last N Bars)" indicator provides a specific, refined signal related to price interaction with a moving average, helping traders focus on potentially significant initial tests of the EMA after a period of separation.
Buy/Sell### Description of the Pine Script:
This script generates buy and sell signals using a combination of **Exponential Moving Averages (EMAs)**, the **MACD histogram**, and the **Relative Strength Index (RSI)**. It is designed to reduce the number of signals and improve the win rate by adding multiple conditions to filter out less reliable trades.
### Key Components:
1. **Exponential Moving Averages (EMAs):**
- **EMA 5** (Short-Term Trend) and **EMA 20** (Long-Term Trend).
- These moving averages are used to identify the overall trend direction. A buy signal is generated when the price is above both EMAs, indicating a bullish trend, and a sell signal occurs when the price is below both EMAs, indicating a bearish trend.
2. **MACD Histogram:**
- The **MACD** (Moving Average Convergence Divergence) is a momentum indicator, and the histogram represents the difference between the MACD line and its signal line.
- A positive MACD histogram indicates bullish momentum, while a negative histogram indicates bearish momentum.
- Buy signals are only generated when the MACD histogram is above zero, indicating positive momentum, and sell signals when the MACD histogram is below zero, indicating negative momentum.
3. **Relative Strength Index (RSI):**
- The **RSI** is used to measure the strength of a trend. The script uses a threshold to identify when the market is in a strong condition.
- **RSI Buy Threshold:** Only allows a buy signal when the RSI is above 60, indicating strong buying pressure.
- **RSI Sell Threshold:** Only allows a sell signal when the RSI is below 40, indicating strong selling pressure.
### Conditions for Buy and Sell Signals:
- **Buy Condition:**
- The **price** is above both the **EMA 5** and **EMA 20**, indicating a strong uptrend.
- The **RSI** is above 60, indicating strong buying pressure.
- The **MACD histogram** is positive, confirming bullish momentum.
- **Sell Condition:**
- The **price** is below both the **EMA 5** and **EMA 20**, indicating a strong downtrend.
- The **RSI** is below 40, indicating strong selling pressure.
- The **MACD histogram** is negative, confirming bearish momentum.
### Plotting Signals:
- **Buy Signal**: When all the buy conditions are met, a green "BUY" label is plotted below the bar.
- **Sell Signal**: When all the sell conditions are met, a red "SELL" label is plotted above the bar.
### Purpose:
- This strategy is designed to provide more reliable signals by ensuring that trades are only taken when multiple conditions are met, reducing false signals.
- By combining trend (EMA), momentum (MACD), and strength (RSI) indicators, the script aims to filter out low-probability trades and increase the win rate.
Let me know if you'd like further clarification or adjustments!
CRT with Trend FilterExplanation of Functionality
The CRT RED DOG with Trend Filter indicator is a tool used to identify buy and sell signals on a price chart. It filters signals based on the market trend to ensure higher accuracy.
Main Components of the Indicator
Moving Average (EMA) Settings
Users can set the moving average (EMA) length as desired, with a default value of 50 days.
This moving average is used to determine the market trend.
Determining Market Trend
Uptrend: Occurs when the closing price is above the moving average.
Downtrend: Occurs when the closing price is below the moving average.
Identifying Buy and Sell Signals
Buy Signal: Occurs when the current bar's low is lower than the previous bar's low, and the closing price is higher than the previous bar's close, during an uptrend.
Sell Signal: Occurs when the current bar's high is higher than the previous bar's high, and the closing price is lower than the previous bar's close, during a downtrend.
Displaying Signals on the Chart
Buy signals are displayed with a green arrow below the candlestick.
Sell signals are displayed with a red arrow above the candlestick.
Time frame Day >> 15M
EMA + RSI + MACD + Support & Resistance Combined StrategyThis Pine Script strategy combines **EMA, RSI, MACD, and Support/Resistance levels** to identify high-probability trading opportunities.
- **EMA (Exponential Moving Averages)**: Determines trend direction using EMAs (5, 20, 50, 100, 200).
- **RSI (Relative Strength Index)**: Filters trades, confirming bullish (above 50 but below 70) and bearish (below 50 but above 30) momentum.
- **MACD (Moving Average Convergence Divergence)**: Confirms momentum shifts using MACD line crossover with the signal line.
- **Support & Resistance**: Detects breakout and breakdown levels based on the highest high and lowest low over a set period.
- **Trade Execution**:
- **Buy**: When all bullish conditions align, and the price breaks above resistance.
- **Sell**: When all bearish conditions align, and the price breaks below support.
- **Risk Management**: Uses ATR (Average True Range) to set dynamic stop-loss and take-profit levels.
This strategy helps traders capitalize on strong trends while managing risks effectively. 🚀
Average True Range com Média MóvelUsing ATR and Moving Average: A Technical Analysis Strategy
The Average True Range (ATR) and the Moving Average are two important technical analysis tools that can be used together to identify trading opportunities in the market. In this article, we will explore how to use these two tools and how the crossover between them can indicate changes in the market.
What is ATR?
The Average True Range (ATR) is a measure of the volatility of an asset, which calculates the average true range of an asset over a period of time. The true range is the difference between the closing price and the opening price of an asset, or the difference between the closing price and the highest or lowest price of the day. ATR is an important measure of volatility, as it helps to identify the magnitude of price fluctuations of an asset.
What is Moving Average?
The Moving Average is a technical analysis tool that calculates the average price of an asset over a period of time. The Moving Average can be used to identify trends and price patterns, and is an important tool for traders. There are different types of Moving Averages, including the Simple Moving Average (SMA), the Exponential Moving Average (EMA), and the Weighted Moving Average (WMA).
Crossover between ATR and Moving Average
The crossover between ATR and Moving Average can be an important indicator of changes in the market. When ATR crosses above the Moving Average, it may indicate that the volatility of the asset is increasing and that the price may be about to rise. This occurs because ATR is increasing, which means that the true range of the asset is increasing, and the Moving Average is being surpassed, which means that the price is rising.
On the other hand, when ATR crosses below the Moving Average, it may indicate that the volatility of the asset is decreasing and that the price may be about to fall. This occurs because ATR is decreasing, which means that the true range of the asset is decreasing, and the Moving Average is being surpassed, which means that the price is falling.
Trading Strategies
There are several trading strategies that can be used with the crossover between ATR and Moving Average. Some of these strategies include:
Buying when ATR crosses above the Moving Average, with the expectation that the price will rise.
Selling when ATR crosses below the Moving Average, with the expectation that the price will fall.
Using the crossover between ATR and Moving Average as a filter for other trading strategies, such as trend analysis or pattern recognition.
In summary, the crossover between ATR and Moving Average can be an important indicator of changes in the market, and can be used as a technical analysis tool to identify trading opportunities. However, it is important to remember that no trading strategy is foolproof, and that it is always important to use a disciplined approach and manage risk adequately.
Triangular Hull Moving Average [BigBeluga X PineIndicators]This strategy is based on the original Triangular Hull Moving Average (THMA) + Volatility indicator by BigBeluga. Full credit for the concept and design goes to BigBeluga.
The strategy blends smoothed trend-following logic using a Triangular Hull Moving Average with dynamic volatility overlays, providing actionable trade signals with responsive visual feedback. It's designed for traders who want a non-lagging trend filter while also monitoring market volatility in real time.
How the Strategy Works
1. Triangular Hull Moving Average (THMA) Core
At its core, the strategy uses a Triangular Hull Moving Average (THMA) — a variation of the traditional Hull Moving Average with triple-smoothing logic:
It combines multiple weighted moving averages (WMAs) to create a faster and smoother trend line.
This reduces lag without compromising trend accuracy.
The THMA reacts more responsively to price movements than classic MAs.
THMA Formula:
thma(_src, _length) =>
ta.wma(ta.wma(_src,_length / 3) * 3 - ta.wma(_src, _length / 2) - ta.wma(_src, _length), _length)
This logic filters out short-term noise while still being sensitive to genuine trend shifts.
2. Volatility-Enhanced Candle Plotting
An optional volatility mode overlays the chart with custom candles that incorporate volatility bands:
Wicks expand and contract dynamically based on market volatility.
The volatility value is computed using a HMA of high-low range over a user-defined length.
The candle bodies reflect THMA values, while the wicks reflect the current volatility spread.
This feature allows traders to visually gauge the strength of price moves and anticipate possible breakouts or slowdowns.
3. Trend Reversal Signal Detection
The strategy identifies trend reversals when the THMA line crosses over/under its own past value:
A bullish signal is triggered when THMA crosses above its value from two bars ago.
A bearish signal is triggered when THMA crosses below its value from two bars ago.
These shifts are marked on the chart with triangle-shaped signals for clear visibility.
This logic helps detect momentum shifts early and enables reactive trade entries.
Trade Entry & Exit Logic
Trade Modes Supported
Users can choose between:
Only Long – Enters long trades only.
Only Short – Enters short trades only.
Long & Short – Enables both directions.
Entry Conditions
Long Entry:
Triggered when a bullish crossover is detected.
Active only if the strategy mode allows long trades.
Short Entry:
Triggered when a bearish crossover is detected.
Active only if the strategy mode allows short trades.
Exit Conditions
In Only Long mode, the strategy closes long positions when a bearish signal appears.
In Only Short mode, the strategy closes short positions when a bullish signal appears.
In Long & Short mode, the strategy does not auto-close positions — instead, it opens new positions on each confirmed signal.
Dashboard Visualization
In the bottom-right corner of the chart, a live dashboard displays:
The current trend direction (🢁 for bullish, 🢃 for bearish).
The current volatility level as a percentage.
This helps traders quickly assess market status and adjust their decisions accordingly.
Customization Options
THMA Length: Adjust how smooth or reactive the trend detection should be.
Volatility Toggle & Length: Enable or disable volatility visualization and set sensitivity.
Color Settings: Choose colors for up/down trend visualization.
Trade Direction Mode: Limit the strategy to long, short, or both types of trades.
Use Cases & Strategy Strengths
1. Trend Following
Use the THMA-based candles and triangle signals to enter with momentum. The indicator adapts quickly, reducing lag and improving trade timing.
2. Volatility Monitoring
Visualize the strength of the trend with volatility wicks. Use expanding bands to confirm breakouts and contracting ones to detect weakening moves.
3. Signal Confirmation
Combine this tool with other indicators or use the trend shift triangles as confirmations for manual entries.
Conclusion
The THMA + Volatility Strategy is a non-repainting trend-following system that integrates:
Triangular Hull MA for advanced trend detection.
Real-time volatility visualization.
Clear entry signals based on trend reversals.
Configurable trade direction settings.
It is ideal for traders who:
Prefer smoothed price analysis.
Want to follow trends with precision.
Value visual volatility feedback for breakout detection.
Full credit for the original concept and indicator goes to BigBeluga.
Litecoin Trailing-Stop StrategyAltcoins Trailing-Stop Strategy
This strategy is based on a momentum breakout approach using PKAMA (Powered Kaufman Adaptive Moving Average) as a trend filter, and a delayed trailing stop mechanism to manage risk effectively.
It has been designed and fine-tuned Altcoins, which historically shows consistent volatility patterns and clean trend structures, especially on intraday timeframes like 15m and 30m.
Strategy Logic:
Entry Conditions:
Long when PKAMA indicates an upward move
Short when PKAMA detects a downward trend
Minimum spacing of 30 bars between trades to avoid overtrading
Trailing Stop:
Activated only after a customizable delay (delayBars)
User can set trailing stop % and delay independently
Helps avoid premature exits due to short-term volatility
Customizable Parameters:
This strategy uses a custom implementation of PKAMA (Powered Kaufman Adaptive Moving Average), inspired by the work of alexgrover
PKAMA is a volatility-aware moving average that adjusts dynamically to market conditions, making it ideal for altcoins where trend strength and direction change frequently.
This script is for educational and experimental purposes only. It is not financial advice. Please test thoroughly before using it in live conditions, and always adapt parameters to your specific asset and time frame.
Feedback is welcome! Feel free to clone and adapt it for your own trading style.
Four MAs with Bands Pack by Rising Falcon# **Four MAs with Bands Pack by Rising Falcon**
## **Overview**
The **Four MAs with Bands Pack** is a dynamic multi-moving average indicator designed to enhance trend identification, momentum analysis, and volatility assessment. It allows traders to configure and visualize up to four different moving averages (MAs) with an optional **higher timeframe Hull MA (HMA)** for advanced trend confirmation. The indicator also incorporates **band structures** around each MA, providing additional insights into price volatility, breakout zones, and trend strength.
---
## **Fundamental Aspects**
Moving Averages (MAs) are a foundational tool in technical analysis, widely used to **smooth out price fluctuations** and identify directional bias over time. This indicator leverages four MAs of varying lengths to **capture different time horizons** of market trends, making it useful for:
- **Short-Term Analysis (Scalping):** Fast MAs (e.g., 20, 50) respond quickly to price action, allowing traders to catch early trend shifts.
- **Mid-Term Analysis (Swing Trading):** Medium-length MAs (e.g., 100) help validate trend continuation.
- **Long-Term Analysis (Position Trading):** Slow MAs (e.g., 200) provide macro trend direction and filter noise from short-term fluctuations.
By **color-coding** the MAs based on trend direction and incorporating a **band system**, the indicator helps traders identify price momentum shifts, consolidation zones, and potential breakout opportunities.
---
## **Technical Aspects**
### **1. Configurable Moving Averages**
Each of the four MAs can be customized using three calculation methods:
- **SMA (Simple Moving Average):** A traditional average of past prices, best for stable trend confirmation.
- **EMA (Exponential Moving Average):** Gives more weight to recent price action, making it more reactive to new trends.
- **WMA (Weighted Moving Average):** Assigns greater importance to more recent data, reducing lag while maintaining smoothness.
#### **Formulae:**
1. **SMA:**
\
2. **EMA:**
\
where \( k = \frac{2}{N+1} \)
3. **WMA:**
\
where \( W_i \) is the weight assigned to each period.
Each moving average has an optional **higher timeframe setting**, allowing traders to plot an MA from a larger timeframe on their current chart for **multi-timeframe analysis (MTA)**. This is useful for confirming trends and filtering noise from lower timeframes.
---
### **2. Dynamic Bands & Volatility Visualization**
Each moving average has an associated band, defined by:
- **Upper Band:** The MA value at the current bar.
- **Lower Band:** The MA value from two bars ago (**lagging component** for trend assessment).
- **Color Coding:**
- **Green:** Uptrend (price above the moving average).
- **Red:** Downtrend (price below the moving average).
- **Orange:** Neutral (no strong trend bias).
The band thickness and transparency are customizable, helping traders **visually assess market conditions**:
- **Expanding Bands:** Increased price volatility (potential breakout).
- **Contracting Bands:** Reduced volatility (possible consolidation).
Mathematically, the **band region is defined by**:
\
This concept is similar to **Keltner Channels** or **Bollinger Bands**, but instead of standard deviations, it uses historical MA differences to capture trend momentum.
---
### **3. Trend Alerts & Crossover Signals**
To assist traders in making timely decisions, the indicator generates alerts when **fast MAs cross slow MAs**:
- **Bullish Crossover (Uptrend Confirmation):**
\
- **Bearish Crossover (Downtrend Confirmation):**
\
- These alerts can be used to set up **automated notifications** for trade entries/exits.
---
## **How to Use This Indicator**
### **Scalping Strategy**
1. Use **shorter length MAs (20, 50)** with **higher timeframe Hull MA** enabled.
2. Look for **bullish crossovers** of fast MAs over slow MAs.
3. Ensure the band is **expanding** before entering a trade.
4. Exit when the opposite crossover occurs or when bands **contract**.
### **Swing Trading Strategy**
1. Use a combination of **medium and long MAs (50, 100, 200)** for trend confirmation.
2. Look for **price pullbacks** into the bands before **trend continuation**.
3. Set alerts for **crossovers** to validate trend direction.
### **Trend Reversal Strategy**
1. Look for **bearish crossovers** near resistance levels for short trades.
2. Wait for **bullish crossovers** at support levels for long trades.
3. Confirm with **higher timeframe MA direction** to reduce false signals.
---
## **Key Benefits**
✅ **Versatile:** Works for scalping, swing trading, and trend following.
✅ **Multi-Timeframe Support:** View higher timeframe MAs for broader trend validation.
✅ **Customizable:** Adjust MA type, length, color coding, and band visibility.
✅ **Alerts:** Automatic notifications for trend shifts and crossovers.
✅ **Clear Visualization:** Helps traders identify breakout zones, volatility spikes, and reversals.
---
## **Final Thoughts**
The **Four MAs with Bands Pack by Rising Falcon** is an advanced yet intuitive tool for traders looking to enhance their trend-following strategies. By combining **multiple moving averages, band structures, and trend color coding**, it provides a comprehensive view of price action, helping traders make **informed trading decisions** with greater confidence.
Hypersonic MAIN Intersection StrategyStrategy that shows the intersection point of two Items of Interest. Backtesting showed the best was Candle (close) & EMA 9.
1. I added 2 auxiliary EMA's that you can view or hide because I know some people like to see the EMA 200.
2. You select the First and Second Item of Interest and it'll plot it in the background. First EMA and Second EMA correspond to whether you select them or not. The BWMA stuff is near the bottom. And in the middle is how you can show/hide the data table in the top-right. If you choose "candle" then it'll use the close of the candle for plotting.
3. you can show/hide different lines in the Style section.
4. on the Style tab of Settings, you can turn off the whole table as well as the Trades, just the signal of the trade, or just the quantity of the trade.
3 EMAs with Price Action by Sap KarCombines three EMAs with Price Action. Price action visible as GREEN and RED ARROWS below and above bars.
Buy when bars start forming above 9,21 emas GREEN arrows starts forming below bars.
Sell when bars start forming below 9,21 emas RED arrows starts forming above bars.
Sap Kar 3 EMAs + PA; (P)This script plots 3 EMAs and also shows price action in the form of GREEN ARROWS at the bottom of the bars for LONG trades and RED ARROWS @ top of the bars for SHORT TRADE.
Will be useful for trend and momentum following. The input parameters for price action ae
1. No of Bars for price action calculation:- This should be ideally between 3 to 6.
2. Maximum Close % should preferably be above 75 and should always be above 50.
3. Minimum Close % should preferably be below 25 and should always be below 50.
Should buy when above EMAs and green arrows start forming below bars. Should sell when below EMAs and red arrows start forming above bars.
MA Distance (% and ATR) + Threshold CountMA Distance (% & ATR) + Threshold Count
This script visualizes how far price is extended from key moving averages using both percentage and ATR-based distance. It includes a dynamic threshold system that tracks how unusually extended price is, based on historical volatility.
🔍 Features:
Calculates distance from:
10 EMA, 20 SMA, 50 SMA, 100 SMA, 200 SMA
Measures both:
% distance from each MA
ATR-multiple distance from each MA
Automatically calculates dynamic upper/lower thresholds using a rolling standard deviation
Plots a colored dot when distance exceeds these thresholds
Dots appear above or below the bar depending on direction
Color-coded summary table displays:
% distance
ATR distance
Threshold extremes
Total number of threshold hits
🎯 Customization:
Toggle which MAs to display in the table
Set your own lookback window and threshold sensitivity (via stdev multiplier)
Show/hide dots based on how many thresholds are hit
Use this tool to identify when price is overextended from its moving averages and approaching historically significant levels of deviation. Great for spotting mean reversion setups, parabolic runs, or deep pullbacks.
EMA 5m Nightingale🔁 EMA 5m Nightingale Strategy — Smart Compounding Recovery
This strategy combines classic EMA cross entries with a disciplined Nightingale position sizing system to manage losses and enhance recovery.
📌 Features:
✅ EMA 20/50 crossover entries, confirmed by trend (EMA 200)
🔄 Fixed-step Nightingale logic:
Trade sizing steps: $200 → $200 → $250 → $400 → $800 → $1600 → $3200 → $6000
Automatically resets to $200 after a profitable trade
🛑 2% equity-based stop loss
📉 Trade size increases only after a loss — never on a win
🔔 Built-in buy/sell alerts for automation or notifications
Perfect for testing controlled risk escalation and recovery on volatile 3-minute or 5-minute charts.
TESTING NOW FOR XRP 5M
DAMA OSC - Directional Adaptive MA OscillatorOverview:
The DAMA OSC (Directional Adaptive MA Oscillator) is a highly customizable and versatile oscillator that analyzes the delta between two moving averages of your choice. It detects trend progression, regressions, rebound signals, MA cross and critical zone crossovers to provide highly contextual trading information.
Designed for trend-following, reversal timing, and volatility filtering, DAMA OSC adapts to market conditions and highlights actionable signals in real-time.
Features:
Support for 11 custom moving average types (EMA, DEMA, TEMA, ALMA, KAMA, etc.)
Customizable fast & slow MA periods and types
Histogram based on percentage delta between fast and slow MA
Trend direction coloring with “Green”, “Blue”, and “Red” zones
Rebound detection using close or shadow logic
Configurable thresholds: Overbought, Oversold, Underbought, Undersold
Optional filters: rebound validation by candle color or flat-zone filter
Full visual overlay: MA lines, crossover markers, rebound icons
Complete alert system with 16 preconfigured conditions
How It Works:
Histogram Logic:
The histogram measures the percentage difference between the fast and slow MA:
hist_value = ((FastMA - SlowMA) / SlowMA) * 100
Trend State Logic (Green / Blue / Red):
Green_Up = Bullish acceleration
Blue_Up (or Red_Up, depending the display settings) = Bullish deceleration
Blue_Down (or Green_Down, depending the display settings) = Bearish deceleration
Red_Down = Bearish acceleration
Rebound Logic:
A rebound is detected when price:
Crosses back over a selected MA (fast or slow)
After being away for X candles (rebound_backstep)
Optional: filtered by histogram zones or candle color
Inputs:
Display Options:
Show/hide MA lines
Show/hide MA crosses
Show/hide price rebounds
Enable/disable blue deceleration zones
DAMA Settings:
Fast/Slow MA type and length
Source input (close by default)
Overbought/Oversold levels
Underbought/Undersold levels
Rebound Settings:
Use Close and/or Shadow
Rebound MA (Fast/Slow)
Candle color validation
Flat zone filter rebounds (between UnderSold and UnderBought)
Available MA type:
SMA (Simple MA)
EMA (Exponential MA)
DEMA (Double EMA)
TEMA (Triple EMA)
WMA (Weighted MA)
HMA (Hull MA)
VWMA (Volume Weighted MA)
Kijun (Ichimoku Baseline)
ALMA (Arnaud Legoux MA)
KAMA (Kaufman Adaptive MA)
HULLMOD (Modified Hull MA, Same as HMA, tweaked for Pine v6 constraints)
Notes:
**DEMA/TEMA** reduce lag compared to EMA, useful for faster reaction in trending markets.
**KAMA/ALMA** are better suited to noisy or volatile environments (e.g., BTC).
**VWMA** reacts strongly to volume spikes.
**HMA/HULLMOD** are great for visual clarity in fast moves.
Alerts Included (Fully Configurable):
Golden Cross:
Fast MA crosses above Slow MA
Death Cross:
Fast MA crosses below Slow MA
Bullish Rebound:
Rebound from below MA in uptrend
Bearish Rebound:
Rebound from above MA in downtrend
Bull Progression:
Transition into Green_Up with positive delta
Bear Progression:
Transition into Red_Down with negative delta
Bull Regression:
Exit from Red_Down into Blue/Green with negative delta
Bear Regression:
Exit from Green_Up into Blue/Red with positive delta
Crossover Overbought:
Histogram crosses above Overbought
Crossunder Overbought:
Histogram crosses below Overbought
Crossover Oversold:
Histogram crosses above Oversold
Crossunder Oversold:
Histogram crosses below Oversold
Crossover Underbought:
Histogram crosses above Underbought
Crossunder Underbought:
Histogram crosses below Underbought
Crossover Undersold:
Histogram crosses above Undersold
Crossunder Undersold:
Histogram crosses below Undersold
Credits:
Created by Eff_Hash. This code is shared with the TradingView community and full free. do not hesitate to share your best settings and usage.
Moving Average x5 (EMA/SMA) + ATR5 EMA/SMA lines at your disposal. Set your own timeframe. Made this by ChatGPT.
Plus ATR.
All things can be customized.