Darvas Box Strategy (No Repeat Signals)📈 Darvas Box Strategy – No Repeated Signals
This script implements the classic Darvas Box indicator on TradingView with a twist:
🚫 No repeated Buy/Sell signals in the same direction until a reversal occurs.
💡 How it works:
The Darvas Box identifies consolidation zones based on historical highs/lows.
A Buy signal triggers when the price breaks above the TopBox.
A Sell signal triggers when the price drops below the BottomBox.
✅ Signals are filtered: after a Buy, no more Buy signals are generated until a Sell appears (and vice versa).
📊 Use it for:
Detecting breakout zones
Preventing overtrading with smarter entries
Strategy building & backtesting
🔧 Customizable Box Length lets you fine-tune how reactive the box zones are.
💻 Now live on TradingView Pine Script v5
🧪 Ideal for strategy development or visual alerts.
🔁 Want it with stop loss, take profit, or alerts? Let me know!
@ coinciyiz
Moving Averages
RSI in pane and 3 EMAs on chartCustom indicator that displays RSI divergence along with bollinger bands on RSI and custom MA
TestMA Candle ColorTestMA Candle Color. To find MA breakouts.Once a green candle above MA - buy signal. Sell signal when the day green candle breaks down.
KAMA Stdev🚀 Trading View Alert! 🌟
Take your trading strategy to the next level with the KAMA Stdev Indicator! Designed with precision, this script combines the power of KAMA (Kaufman's Adaptive Moving Average) with Standard Deviation Bands for enhanced market insights 📈.
✨ Key Features:
💡 Perfect for traders seeking a dynamic tool for identifying market trends and volatility with ease.
💻 Code licensed under MPL 2.0 and developed by the QuantzTrader!
Check for Price hitting Standard Deviation 3, the price will generally come back to KAMA
EMA-Based Squeeze Dynamics (Gap Momentum & EWMA Projection)EMA-Based Squeeze Dynamics (Gap Momentum & EWMA Projection)
🚨 Main Utility: Early Squeeze Warning
The primary function of this indicator is to warn traders early when the market is approaching a "squeeze"—a tightening condition that often precedes significant moves or regime shifts. By visually highlighting areas of increasing tension, it helps traders anticipate potential volatility and prepare accordingly. This is intended to be a statistically and psychologically grounded replacement of so-called "fib-time-zones," which are overly-deterministic and subjective.
📌 Overview
The EMA-Based Squeeze Dynamics indicator projects future regime shifts (such as golden and death crosses) using exponential moving averages (EMAs). It employs historical interval data and current market conditions to dynamically forecast when the critical EMAs (50-period and 200-period) will reconverge, marking likely trend-change points.
This indicator leverages two core ideas:
Behavioral finance theory: Traders often collectively anticipate popular EMA crossovers, creating a self-fulfilling prophecy (normative social influence), similar to findings from Solomon Asch’s conformity experiments.
Bayesian-like updates: It utilizes historical crossover intervals as a prior, dynamically updating expectations based on evolving market data, ensuring its signals remain objectively grounded in actual market behavior.
⚙️ Technical & Mathematical Explanation
1. EMA Calculations and Regime Definitions
The indicator uses three EMAs:
Fast (9-period): Represents short-term price movement.
Medial (50-period): Indicates medium-term trend direction.
Slow (200-period): Defines long-term market sentiment.
Regime States:
Bullish: 50 EMA is above the 200 EMA.
Bearish: 50 EMA is below the 200 EMA.
A shift between these states triggers visual markers (arrows and labels) directly on the chart.
2. Gap Dynamics and Historical Intervals
At each crossover:
The indicator records the gap (distance) between the 50 and 200 EMAs.
It tracks the historical intervals between past crossovers.
An Exponentially Weighted Moving Average (EWMA) of these intervals is calculated, weighting recent intervals more heavily, dynamically updating expectations.
Important note:
After every regime shift, the projected crossover line resets its calculation. This reset is visually evident as the projection line appears to move further away after each regime change, temporarily "repelled" until the EMAs begin converging again. This ensures projections remain realistic, grounded in actual EMA convergence, and prevents overly optimistic forecasts immediately after a regime shift.
3. Gap Momentum & Adaptive Scaling
The indicator measures how quickly or slowly the gap between EMAs is changing ("gap momentum") and adjusts its forecast accordingly:
If the gap narrows rapidly, a crossover becomes more imminent.
If the gap widens, the next crossover is pushed further into the future.
The "gap factor" dynamically scales the projection based on recent gap momentum, bounded between reasonable limits (0.7–1.3).
4. Squeeze Ratio & Background Color (Visual Cues)
A "squeeze ratio" is computed when market conditions indicate tightening:
In a bullish regime, if the fast EMA is below the medial EMA (price pulling back towards long-term support), the squeeze ratio increases.
In a bearish regime, if the fast EMA rises above the medial EMA (price rallying into long-term resistance), the squeeze ratio increases.
What the Background Colors Mean:
Red Background: Indicates a bullish squeeze—price is compressing downward, hinting a bullish reversal or continuation breakout may occur soon.
Green Background: Indicates a bearish squeeze—price is compressing upward, suggesting a bearish reversal or continuation breakout could soon follow.
Opacity Explanation:
The transparency (opacity) of the background indicates the intensity of the squeeze:
High Opacity (solid color): Strong squeeze, high likelihood of imminent volatility or regime shift.
Low Opacity (faint color): Mild squeeze, signaling early stages of tightening.
Thus, more vivid colors serve as urgent visual warnings that a squeeze is rapidly intensifying.
5. Projected Next Crossover and Pseudo Crossover Mechanism
The indicator calculates an estimated future bar when a crossover (and thus, regime shift) is expected to occur. This calculation incorporates:
Historical EWMA interval.
Current squeeze intensity.
Gap momentum.
A dynamic penalty based on divergence from baseline conditions.
The "Pseudo Crossover" Explained:
A key adaptive feature is the pseudo crossover mechanism. If price action significantly deviates from the projected crossover (for example, if price stays beyond the projected line longer than expected), the indicator acknowledges the projection was incorrect and triggers a "pseudo crossover" event. Essentially, this acts as a reset, updating historical intervals with a weighted adjustment to recalibrate future predictions. In other words, if the indicator’s initial forecast proves inaccurate, it recognizes this quickly, resets itself, and tries again—ensuring it remains responsive and adaptive to actual market conditions.
🧠 Behavioral Theory: Normative Social Influence
This indicator is rooted in behavioral finance theory, specifically leveraging normative social influence (conformity). Traders commonly watch EMA signals (especially the 50 and 200 EMA crossovers). When traders collectively anticipate these signals, they begin trading ahead of actual crossovers, effectively creating self-fulfilling prophecies—similar to Solomon Asch’s famous conformity experiments, where individuals adopted group behaviors even against direct evidence.
This behavior means genuine regime shifts (actual EMA crossovers) rarely occur until EMAs visibly reconverge due to widespread anticipatory trading activity. The indicator quantifies these dynamics by objectively measuring EMA convergence and updating projections accordingly.
📊 How to Use This Indicator
Monitor the background color and opacity as primary visual cues.
A strongly colored background (solid red/green) is an early alert that a squeeze is intensifying—prepare for potential volatility or a regime shift.
Projected crossover lines give a dynamic target bar to watch for trend reversals or confirmations.
After each regime shift, expect a reset of the projection line. The line may seem initially repelled from price action, but it will recalibrate as EMAs converge again.
Trust the pseudo crossover mechanism to automatically recalibrate the indicator if its original projection misses.
🎯 Why Choose This Indicator?
Early Warning: Visual squeeze intensity helps anticipate market breakouts.
Behaviorally Grounded: Leverages real trader psychology (conformity and anticipation).
Objective & Adaptive: Uses real-time, data-driven updates rather than static levels or subjective analysis.
Easy to Interpret: Clear visual signals (arrows, labels, colors) simplify trading decisions.
Self-correcting (Pseudo Crossovers): Quickly adjusts when initial predictions miss, maintaining accuracy over time.
Summary:
The EMA-Based Squeeze Dynamics Indicator combines behavioral insights, dynamic Bayesian-like updates, intuitive visual cues, and a self-correcting pseudo crossover feature to offer traders a reliable early warning system for market squeezes and impending regime shifts. It transparently recalibrates after each regime shift and automatically resets whenever projections prove inaccurate—ensuring you always have an adaptive, realistic forecast.
Whether you're a discretionary trader or algorithmic strategist, this indicator provides a powerful tool to navigate market volatility effectively.
Happy Trading! 📈✨
MTF EMA CloudsThis indicator creates up to 3 configurable EMA clouds
Each cloud uses a fast ema and a slow ema.
Works as follows:
fast ema > slow ema : green
slow ema > fast ema : red
This also allows you to select a custom timeframe for each cloud (only higher timeframes work) and applies a multiplier to show the cloud from that timeframe on the current chart.
RSI + MA + Divergence + SnR + Price levelOverview
This indicator combines several technical analysis tools to give traders a comprehensive view based on the RSI indicator. Its main features include:
RSI & Moving Averages on RSI:
RSI: Calculates the RSI based on the closing price (or a user-selected source) with a configurable period (default is 14).
EMA and WMA: Computes and plots an Exponential Moving Average (EMA with a period of 9) and a Weighted Moving Average (WMA with a period of 45) on the RSI, helping to smooth out signals and better identify trends.
Price Ladder Based on RSI:
Draws horizontal lines at specified target RSI levels (from targetRSI1 to targetRSI7, default levels ranging from 20 to 80).
Calculates a target price based on the price change relative to the averaged gains and losses, providing an estimated price level when the RSI reaches those critical levels.
Divergence Detection:
Identifies divergence between price and RSI:
Bullish Divergence: Detected when the price forms a lower low but RSI fails to confirm with a corresponding lower low, with the RSI falling under a configurable threshold (d_below).
Bearish Divergence: Detected when the price forms a higher high while the RSI does not, with the RSI exceeding a configurable upper threshold (d_upper).
Optionally displays labels on the chart to alert the trader when divergence signals are detected.
Auto Support & Resistance on RSI:
Automatically calculates and plots support and resistance lines based on the RSI over different lookback periods (e.g., 34, 89, 200 bars).
Helps traders identify key RSI levels where price reversals or breakouts might occur.
Benefits for the Trader
This indicator is designed to assist traders in their decision-making process by integrating multiple technical analysis elements:
Identifying Market Trends:
By combining the RSI with its moving averages (EMA, WMA), traders can better assess market trends and the strength of these trends, thereby improving trade entry accuracy.
Early Reversal Signals via Divergence:
Divergence signals (both bullish and bearish) can help forecast potential reversals in the market, allowing traders to adjust their strategies timely.
Determining RSI-Based Support/Resistance Levels:
Automatic identification of support and resistance levels on the RSI provides key areas where a price reversal or breakout may occur, assisting traders in setting stop-loss and take-profit levels strategically.
Price Target Forecasting with the Price Ladder:
The target price labels calculated at important RSI levels provide insights into potential price objectives, aiding in risk management and profit planning.
Flexible Configuration:
Traders can customize key parameters such as the RSI period, lengths for EMA and WMA, target RSI levels, divergence conditions, and support/resistance settings. This flexibility allows the indicator to adapt to different trading styles and strategies.
How to read data
Some use-cases
Used to estimate price according to the RSI level.
When you trade using RSI, you want to set your stop-loss or take-profit levels based on RSI. By looking at the price ladder, you know the corresponding price level to enter a trade.
Used to determine the entry zone.
RSI often reacts to its own previously established support/resistance levels. Use the Auto SnR feature to identify those zones.
Used to determine the trend.
RSI and its moving averages help identify the price trend:
Uptrend: 3 lines separate and point upward.
Downtrend: 3 lines separate and point downward.
Use WMA45 to determine the trend:
Uptrend: WMA45 is moving upward or trading above the 50 level.
Downtrend: WMA45 is moving downward or trading below the 50 level.
Sideways: WMA45 is trading around the 50 level.
Use EMA9 to confirm the trend: A crossover of EMA9 through WMA45 confirms the formation of a new trend.
Configuration
The script allows users to configure a number of important parameters to suit their analytical preferences:
RSI Settings:
RSI Length (rsiLengthInput): The number of periods used to compute the RSI (default is 14, adjustable as needed).
RSI Source (rsiSourceInput): Select the price source (default is the closing price).
RSI Color (rsiClr): The color used to display the RSI line.
Moving Averages on RSI:
EMA Length (emaLength): The period for calculating the EMA on RSI (default is 9).
WMA Length (wmaLength): The period for calculating the WMA on RSI (default is 45).
EMA Color (emaClr) and WMA Color (wmaClr): Customize the colors of the EMA and WMA lines.
Price Ladder Settings:
Toggle Price Ladder (showPrice): Enable or disable the display of the price ladder.
Target RSI Levels: targetRSI1 through targetRSI7: RSI values at which target prices are calculated (default values range from 20, 30, 40, 50, 60, 70 to 80).
Price Label Color (priceColor): The text color for displaying the target price labels.
Divergence Settings:
Divergence Toggle (calculateDivergence): Option to enable or disable divergence calculation and display.
Divergence Conditions:
d_below: RSI level below which bullish divergence is considered.
d_upper: RSI level above which bearish divergence is considered.
Display Divergence Labels (showDivergenceLabel): Option to display labels on the chart when divergence is detected.
Auto Support & Resistance on RSI:
Toggle Auto S&R (enableAutoSnR): Enable or disable automatic plotting of support and resistance levels.
Lookback Periods for Support/Resistance:
L1_lookback: Lookback period for level 1 (e.g., 34 bars).
L2_lookback: Lookback period for level 2 (e.g., 89 bars).
L3_lookback: Lookback period for level 3 (e.g., 200 bars).
Support and Resistance Colors:
rsiSupportClr: Color for the support line.
rsiResistanceClr: Color for the resistance line.
Alerts:
Divergence Alerts: Alert conditions are set up to notify the trader when bullish or bearish divergence is detected, aiding in timely decision-making.
Global M2 Level + OffsetA simple Global M2 indicator with a configurable offset (default is 105 days) and a smoothing line.
If you like it, consider donating a few sats: talvasconcelos@nostr.com
MA ShiftMultiple Moving Averages combined which works on all time frames, Buy sell signal as per the change in the color of indicator, can be combined with RSI & MACD Leader
Pino Trend Pack (SMA/EMA + Bollinger)🔹 Pino Trend Pack is a compact trend-following and volatility indicator that includes:
📈 Moving Averages:
- SMA 10, SMA 30
- EMA 21, EMA 55, EMA 89
(All configured for short-term to mid-term trend analysis by default, but fully adjustable for user preference.)
📊 Bollinger Bands:
- Period: 20
- Standard Deviation: 2.0
- Includes Upper Band, Lower Band, and Basis (SMA 20)
This pack is designed for traders who want a clean visual of price dynamics across multiple short-term trend layers, combined with volatility tracking. It helps you identify compression, expansion, and trend shifts at a glance.
🧠 Ideal for swing trading, short- to mid-term setups, or as a supporting tool in any confluence-based strategy.
SMA_CROSSOVERDescription:
This script is a customizable Simple Moving Average (SMA) crossover indicator built with Pine Script® version 6. It helps traders identify potential trend changes and trading signals based on the crossover of two SMAs.
Features:
Fast SMA (default: 5-period) and Slow SMA (default: 50-period) — both lengths can be adjusted through input fields.
Fast SMA is plotted in blue, and Slow SMA is plotted in black directly on the price chart.
Crossover points (where the fast SMA crosses the slow SMA) are highlighted with red shapes.
Uses the closing price as the data source.
Designed to be displayed directly on the main chart (overlay = true).
This indicator is great for traders who use moving average crossover strategies to spot bullish or bearish momentum shifts.
MACD with SMI BandsThis script combines the MACD (Moving Average Convergence Divergence) indicator with a customized SMI (Stochastic Momentum Index) to provide a momentum-based view with visual enhancements such as bands and crossovers.
This indicator provides:
Traditional MACD histogram and signals.
Enhanced SMI-based momentum with visual gradient and cross markers.
Dynamic bands that adapt to the MACD’s range.
Clear cross signals between SMI lines using "X" shaped markers.
It’s useful for traders looking to combine MACD momentum with smoothed SMI dynamics for better crossover confirmations and visual cue enhancements.
DavidDias290 EMA StrategyNOT FINAL VERSION! Tested only for the GBPUSD pair, using the 1min chart.
We wait for the price to touch the EMA200 to enter a price rejection.
With a SL of 5Pips and a TP of 15pips, we have a Risk to Reward of 1:3, which gives us an incredible margin to profit in the long term. In all the tests I have developed, I strongly advise using it only in the hours from 00:00 to 2:00 and from 7:00 to 19:00.
EMA ChannelWhat This Indicator Shows:
EMA Center Line
Plots the Exponential Moving Average of the closing price over a user-defined period (length).
Reacts more quickly to price changes than a standard SMA.
Dynamic Channel Bands
Two bands are drawn above and below the EMA.
The distance from the EMA is based on the standard deviation of price over the same period, multiplied by a user-defined width multiplier (mult).
These bands adapt to market volatility — widening during high volatility, narrowing during calm periods.
Channel Fill Area
The space between the upper and lower bands is visually shaded.
Helps quickly identify when price is inside or breaking out of the channel.
Volatility Insights
Since the channel width is based on standard deviation, it indirectly shows market volatility.
Wide channel = high volatility; narrow channel = low volatility.
Potential Trading Zones
Price nearing the upper band may indicate overbought or strong upward pressure.
Price near the lower band might suggest oversold or downward pressure.
Useful for mean reversion or trend continuation strategies depending on your style.
SMA ChannelWhat this indicator does:
Uses a simple moving average (SMA) as the center line.
Calculates the standard deviation of the last N candles.
Builds a channel above and below the center line using the multiplier.
Fills the area between the upper and lower lines
200均线ema200均线指标
自动绘制30分钟、1小时、4小时、1天的均线,并在右下角显示目前均线价格。
EMA200 Moving Average Indicator
Automatically plot the moving averages for 30 - minute, 1 - hour, 4 - hour, and 1 - day timeframes, and display the current moving average prices in the bottom - right corner.
MemeSaurus Money Flow CipherThis is a starting point based on common elements in open-source clones and community discussions. Since I don’t have access to the proprietary Market Cipher code, you may need to tweak it further by comparing it to the original indicator’s behavior on a chart.
Pullback Entry Zone FinderPullback Entry Zone Finder
Overview:
This indicator is designed to help traders identify potential buying opportunities during short-term pullbacks, particularly when faster-moving averages show signs of converging back towards slower ones. It visually flags potential zones where price might find support and resume its upward movement, based on moving average dynamics and price proximity.
How It Works:
The indicator utilizes four customizable moving averages (Trigger, Short-term, Intermediate, and Long-term) and Average True Range (ATR) to pinpoint specific conditions:
Pullback Detection: It identifies when the fast 'Trigger MA' is below the 'Short-term MA', indicating a potential short-term pullback or consolidation phase.
MA Convergence: Crucially, it looks for signs that the pullback might be weakening by detecting when the gap between the Short-term MA and the Trigger MA is narrowing (maConverging). This suggests the faster average is starting to catch up, potentially preceding a move back up.
Base Buy Zone (Orange Diamond): This signal appears when both the Pullback and Convergence conditions are met simultaneously. It indicates the general area where conditions are becoming favourable for a potential entry.
Refined Entry Zones:
Prime Entry Zone (Green Diamond): This appears within a Base Buy Zone if the bar's low comes within a specified percentage (Max Distance %) of the Short-term MA. It suggests price has pulled back close to the dynamic support of the Short MA.
ATR Entry Zone (Purple Diamond): This appears within a Base Buy Zone if the bar's low comes within the specified percentage (Max Distance %) of an ATR-based target level. This target level (Buy ATR Target Level, plotted as a purple line when active) is calculated by adding a multiple (ATR Multiplier %) of the ATR to the Short-term MA, providing a volatility-adjusted potential entry area.
Visual Elements:
Moving Averages: Four lines representing the Trigger, Short-term, Intermediate, and Long-term MAs (colors and opacity are customizable). Use the Intermediate and Long-term MAs to gauge the broader market trend.
Orange Diamond (Below Bar): Indicates a 'Base Buy Zone' where a pullback and MA convergence are detected.
Green Diamond (Below Bar): Indicates a 'Prime Entry Zone' where price is close to the Short-term MA during a Base Buy Zone.
Purple Diamond (Below Bar): Indicates an 'ATR Entry Zone' where price is close to the ATR-based target level during a Base Buy Zone.
Purple Line: Plots the calculated 'Buy ATR Target Level' only when the Base Buy Zone condition is active.
Input Parameters:
Moving Averages: Customize the Length and Type (EMA, SMA, WMA, VWMA) for all four moving averages.
ATR Settings: Adjust the ATR Length, the ATR Multiplier % (for calculating the target level), and the Max Distance % (for triggering the Prime and ATR Entry Zones).
Visualization: Set the colors for the four Moving Average lines.
How to Use:
Look for the Orange Diamond as the initial signal that pullback/convergence conditions are met.
The Green and Purple Diamonds suggest price has reached potentially more optimal entry levels within that zone, based on proximity to the Short MA or the ATR target, respectively.
Always consider the signals within the context of the broader trend, indicated by the Intermediate and Long-term MAs. This indicator is generally more effective when used to find entries during pullbacks within an established uptrend (e.g., Intermediate MA > Long MA).
Combine these signals with other forms of analysis, such as chart patterns, support/resistance levels, volume analysis, or other indicators for confirmation.
Disclaimer:
You should always use proper risk management techniques and conduct your own analysis before making any trading decisions. This indicator, or any other, will be of no use if you don't have good risk management.
Enhanced Indicators### **Summary of the "Enhanced Indicators with Fib Levels" TradingView Script**
This script is a comprehensive trading tool designed for **Smart Money Concepts (SMC), Fibonacci retracement analysis, Fear Value Gaps (FVG), and trend-following indicators**. It combines multiple technical analysis approaches into a single overlay, helping traders identify key levels, breakouts, and potential reversals.
---
### **Key Features & Benefits**
#### **1. Fibonacci Retracement Levels (Daily)**
- Plots key Fib levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) based on the **previous day’s high and low**.
- Helps identify **support/resistance zones** for potential reversals or continuations.
#### **2. Smart Money Concepts (SMC) Structures**
- **Break of Structure (BOS) & Change of Character (CHoCH)** detection.
- Customizable colors, line styles, and widths for visual clarity.
- Tracks recent structural breaks, helping traders spot **trend shifts and liquidity sweeps**.
#### **3. Fear Value Gaps (FVG) Detection**
- Identifies **unfilled imbalances** (bullish/bearish FVGs).
- Highlights **mitigated FVGs** (filled gaps) in gray.
- Adjustable history length to avoid clutter.
#### **4. Chandelier Exit (Trend-Following Stop)**
- Uses **ATR-based trailing stops** for long/short positions.
- Plots **BUY/SELL signals** when trend direction changes.
#### **5. Technical Indicators (Optional)**
- **EMA 5, EMA 50, EMA 200, SMA 100, SMA 200** for trend confirmation.
- **RSI Overbought/Oversold** conditions with alerts.
- **MACD Crossovers** for momentum signals.
- **Volume spikes** highlighted for confirmation.
#### **6. Customization & User Controls**
- Toggle on/off different components (SMC, FVG, indicators).
- Adjust colors, line styles, and history lengths.
- Choose between **candle body or wick breaks** for structure validation.
---
### **Benefits for Traders**
✅ **Multi-Timeframe Analysis**: Combines **daily Fib levels** with **intraday SMC structures** for high-probability setups.
✅ **Clear Visuals**: Customizable colors and styles prevent chart clutter while highlighting key levels.
✅ **Trend Confirmation**: Chandelier Exit + Moving Averages help filter trades in the right direction.
✅ **Institutional Concepts**: Focuses on **order flow, liquidity, and imbalances** (SMC & FVG).
✅ **Flexible**: Works for **swing trading, day trading, and scalping** depending on settings.
---
### **Best For:**
- Traders using **Smart Money Concepts (ICT, SMC, Price Action)**.
- Those looking for **Fibonacci confluence with order flow**.
- Traders who need **ATR-based trailing stops** (Chandelier Exit).
- Anyone wanting a **clean, all-in-one indicator** for key levels and trend analysis.
This script is **highly adaptable** and can be fine-tuned for different trading styles. 🚀
EMA Break & Retest + Trend TableThis script, titled "EMA Break & Retest + Trend Table", is designed for use on the TradingView platform to help traders identify potential buy and sell signals based on the Exponential Moving Average (EMA), with an added focus on multi-timeframe analysis and a trend table for easy visualization.
Here's a breakdown of the script:
1. User Inputs:
EMA Length (emaLength): The period for calculating the Exponential Moving Average (EMA). By default, this is set to 21 periods.
Source (src): The data source for the EMA (by default, it uses the closing price of the candle).
Show Buy Signal (showBuy): A toggle to show buy signals on the chart.
Show Sell Signal (showSell): A toggle to show sell signals on the chart.
EMA Color (emaColor): The color for the EMA line on the chart.
EMA Line Thickness (emaWidth): The thickness of the EMA line for better visualization.
2. EMA Calculation:
The script calculates the EMA using the defined emaLength and plots it on the chart as a line. The EMA is a common indicator used to smooth out price data and identify trends.
Plot: The EMA is plotted in orange with a width defined by emaWidth.
3. Break & Retest Logic:
Broke Above (brokeAbove): This condition checks if the price has crossed above the EMA, then retested it and stayed above the EMA. This indicates a potential bullish trend.
Broke Below (brokeBelow): This condition checks if the price has crossed below the EMA, then retested it and stayed below the EMA. This indicates a potential bearish trend.
Buy Signal (buySignal): If the price has broken above the EMA and is currently above it, the script will generate a "BUY" signal.
Sell Signal (sellSignal): If the price has broken below the EMA and is currently below it, the script will generate a "SELL" signal.
4. Plot Buy/Sell Signals:
Buy Signal (plotshape for Buy): If the buySignal is true and the user has enabled it (showBuy), a green "BUY" label will appear below the bar.
Sell Signal (plotshape for Sell): If the sellSignal is true and the user has enabled it (showSell), a red "SELL" label will appear above the bar.
5. Alert Conditions:
Buy Alert: An alert is triggered when the buy signal is active. The message includes the context: "BUY: 21 EMA break and retest confirmed to the upside."
Sell Alert: An alert is triggered when the sell signal is active. The message includes the context: "SELL: 21 EMA break and retest confirmed to the downside."
6. Multi-Timeframe Trend Table:
The script also includes a trend table in the top-right corner of the chart, showing the trend on different timeframes (Daily, 4H, 1H, 15M, and 5M). The trend is determined by the following logic:
Bullish Trend: If the price has broken above the EMA and stayed above it, or if the price is currently above the EMA without any break below.
Bearish Trend: If the price has broken below the EMA and stayed below it, or if the price is currently below the EMA without any break above.
The trend table will show the trend for each timeframe with:
Bullish: The trend will be colored green.
Bearish: The trend will be colored red.
Neutral/No Break: If no break and retest is confirmed, it will default to the current price position relative to the EMA.
7. Trend Table Structure:
The table has columns for each timeframe (Daily, 4H, 1H, 15M, and 5M) and includes:
The name of the timeframe.
The trend for each timeframe (Bullish or Bearish), colored appropriately.
The current trend signal ("BUY", "SELL", or a dash for no signal).
Trend determination for each timeframe:
The script calculates the trend for each timeframe by requesting the security data for each timeframe (using request.security) and then checking whether the price is above or below the EMA, or if it has broken and retested the EMA.
8. How It Works:
The script provides both real-time signals (for buy and sell) based on the price breaking and retesting the EMA, and it also shows the current trend for various timeframes in a table.
If the price crosses the EMA, the script will check for a "break" and "retest" to confirm the trend before issuing a buy or sell signal.
The trend table helps the trader to quickly understand the trend on multiple timeframes, making it easier to trade based on both short-term and long-term trends.
Summary:
This script combines a break-and-retest strategy with multi-timeframe analysis and provides an easy-to-read trend table for multiple timeframes. It helps traders visualize where the market is trending across different timeframes and offers signals when a price breaks and retests the EMA 21. This script can be especially useful for traders who prefer to take advantage of trend reversals or pullbacks, using the EMA as a dynamic support/resistance level.
Dynamic EMA Ribbon🔹 Dynamic EMA Ribbon is a clean and powerful visual tool for analyzing market trends. This script creates a ribbon of exponential moving averages (EMAs) that stretches from a customizable starting length to an ending length.
🔸 The indicator highlights trend direction by comparing the first EMA (shortest) with the last EMA (longest):
If the first EMA is above the last → the color is green (bullish).
If the first EMA is below the last → the color is red (bearish).
🔸 Key features:
The intermediate EMAs are hidden but used to generate gradient fills, forming a ribbon-like visual structure.
The fill opacity increases progressively, helping users visually gauge trend strength.
The start EMA is plotted in blue or purple, and the end EMA is marked with green or red circles, depending on the trend.
🔹 Ideal for:
Spotting and confirming short- to medium-term trends.
Using as a visual layer underneath price action or alongside other indicators.
✏️ Customizable Inputs:
Starting EMA length
Ending EMA length
📌 Tip: Combine this ribbon with volume, support/resistance levels, or trend-following indicators for optimal setups.
TFT-Price-PluseTFT Price Pluse is a multi-purpose trend analysis and momentum confirmation indicator designed for intraday and swing traders. It combines well-known trading tools—EMAs, RSI, and a multi-timeframe dashboard—with a custom-built logarithmic regression channel that adapts to price behavior dynamically.
This tool helps traders quickly assess market conditions, spot trend reversals or continuation zones, and identify dynamic support/resistance using layered confluence — all in one visual system.
🔧 Main Components & Logic
📉 Trend Structure (EMAs & SMA)
8 EMA (short-term)
21 EMA (intermediate-term)
50 SMA (medium-term)
200 EMA (long-term baseline)
Triangle markers are plotted when the 8 EMA crosses the 21 EMA — commonly used as trend-change signals.
🔁 Multi-Timeframe RSI Table
Displays RSI(14) values across six timeframes:
1m, 3m, 5m, 10m, 15m, and 30m.
Color-coded cells:
Green = RSI > 50 (bullish momentum)
Red = RSI < 50 (bearish momentum)
This feature helps traders gauge market momentum across multiple granular timeframes at a glance.
📊 Custom Log Regression Channel (Original Component)
Uses a logarithmic transformation of price and time to fit a regression line.
Calculates standard deviation from the regression line to build dynamic upper and lower deviation bands.
Displays R-squared value, a statistical measure of trend strength.
This feature acts like an adaptive trend channel with built-in volatility measurement.
🔍 Unlike simple linear regression, this model tracks exponential behavior in trending markets, making it more suitable for crypto, futures, and other fast-moving instruments.
🎯 How to Use It
1. Spot Trends with EMA Crossovers
Bullish setup: 8 EMA crosses above 21 EMA while price is above 50 SMA and 200 EMA.
Bearish setup: opposite conditions.
2. Confirm with RSI Table
All RSI cells green = higher-probability long setup.
All red = potential short trend confirmation.
Mixed RSI = trend indecision or consolidation.
3. Use Log Regression Bands
Price bouncing from lower band with bullish EMA cross = potential long entry.
Price rejecting upper band with bearish cross = potential short entry.
R² above 0.8 = strong directional conviction.
4. Alerts (optional)
Alerts can be enabled for:
EMA crossovers
RSI overbought/oversold thresholds
🧩 Attribution & Open-Source Acknowledgement
This indicator includes adapted and integrated logic from several open-source scripts published on TradingView by the community.
Features such as the RSI table, moving average crossovers, and regression math were inspired by public scripts and documentation. These components were modified and enhanced to work together as a cohesive system.
The log regression channel is uniquely implemented, combining log(price) and log(time) transformations for a statistically calculated dynamic channel.
This version is published open-source to support learning, transparency, and community improvement. You are free to study, customize, and build upon it — just credit if reused.
🚀 Who This Is For
Intraday traders needing fast visual confirmation
Futures/crypto traders wanting trend/momentum filtering
Strategy builders looking for a reliable confluence tool
Coders studying advanced regression modeling in Pine Script
💬 Tips
Works best on 1m–15m charts for active setups.
Set alerts on RSI/EMA events for automation.
Use in combination with price action or volume tools if desired.
❤️ Final Note
If you find this script helpful, follow my profile for future updates and tools.
Feedback, forks, and enhancements are welcome — let's build better together.