Precision Entry Signals (RSI + MA12 Logic)Description:
This script provides precise entry signals based on a clean confluence of MA12 breakouts and RSI momentum, filtered by a VWMA (Volume-Weighted Moving Average) of the RSI.
-----------------------------------------------------------------------------------------------------------------
🔹 Long entry conditions:
- Candle opens below the 12-period MA and closes above it
- RSI crosses above its VWMA
- Previous candle is bearish (additional confirmation)
🔹 Short entry conditions:
- Candle opens above the 12-period MA and closes below it
- RSI crosses below its VWMA
- Previous candle is bullish
----------------------------------------------------------------------------------------------------------------
Once a signal is confirmed, the script automatically draws:
Entry line (at close price)
Stop Loss line (just below recent lows for long, or above highs for short)
Take Profit 1 (1R)
Take Profit 2 (2R)
Labels are attached to the lines for clarity: ENTRY, SL, TP1, and TP2.
⚠️ Note: This tool only provides entry signals and visual risk/reward guidance. It does not manage exits dynamically. Manual trade management is recommended.
This script is intended for active intraday traders, especially on lower timeframes like 3-minute, 5-minute or 15-minute charts.
---------------------------------------------------------------------------------------------------------------
🔧 Recommended companion indicator:
For better confirmation and visual tracking of the RSI/VWMA cross logic, it is strongly recommended to also use the companion script:
🔹 Relative Strength Index (with MA based cross signals)
→ Shows RSI and its moving average visually, with triangle plots on every valid cross.
→ Matches exactly the RSI/VWMA behavior used in this entry signal script.
📌 Important:
After adding the RSI script to your chart, make sure to set:
RSI Length = 14
MA Type = VWMA
MA Length = 20
This ensures it visually matches the logic used by the entry signal script.
Both indicators are fully open source and meant to be used together — especially when trading manually.
Medie mobili
Hammer + EMA Strategy with Tick-based SL/TPWhat This Script Does:
Detects Hammer (bullish reversal) and Inverted Hammer (bearish reversal) patterns
Requires a simple trend context (using 2 bars back)
Confirms price position relative to EMA 50
Applies tick-based SL and TP
Plots buy/sell signals on chart with emoji labels
Moving Average Deviation Rate with MA TypeJapanese below / 日本語説明は下記
This indicator displays moving average deviation rate with the ability to select moving average type with signals and alerts.
Price and moving average have the characteristics that when the price moves away from the moving average, it moves back to the moving average.
Example:
In the chart below, when the deviation rate increases to 2%(green circle), price momentum gradually decreases and it moves back to the moving average.
Taking advantage of this characteristic, traders can make decisions to take profit and/or take contrarian trades.
Signals can be displayed either on main chart or sub chart when the deviation rate crosses over/under upper/lower band.
Alert can be set with the same condition as the signals.
----------------------
移動平均線乖離率を表示することのできるインジケーターです。
移動平均線タイプを選択できる他、乖離率とアッパーバンド/ロワーバンドとのクロスでシグナルを表示することができます。
価格と移動平均線には、価格が移動平均線から乖離すると、再び移動平均線まで戻ってくるという特徴があります。
この特徴を利用することで、トレーダーは利益確定のタイミングや逆張りでポジションを取るタイミングを図ることができます。
例
以下のチャートでは乖離率が2%付近(黄緑の丸)まで上昇すると、価格の上昇の勢いが衰えて再び移動平均線まで戻っていることが確認できます。
乖離率とアッパーバンド/ロワーバンドがクロスした時に、メインチャートまたはサブチャートのいずれかにシグナルを表示することが可能です。
また、同じ条件でアラートを設定することもできます。
Enhanced TEMA with Decimal PeriodsImagine you have a special type of moving average line called a TEMA (Triple
Moving Average). A TEMA is designed to be even quicker to react to price changes than a regular EMA (Exponential Moving Average), helping traders spot trends faster.
What this script does:
Super-Precise TEMA Length:
Normally, when you set the "length" or "period" for a moving average, you use whole numbers (like 10 days, 20 days).
This script lets you be more precise and use decimal numbers for the TEMA's length (like 26.0 days, or even 26.7 days). This allows for very fine-tuning.
How it gets the "Decimal" EMA part (if you choose to use it):
If you want a TEMA with a length of, say, 26.7:
The script first needs to calculate EMAs with a length of 26.7.
To do this, it cleverly calculates two regular EMAs: one with a length of 26 and another with a length of 27 (the whole numbers just below and above 26.7).
Then, it blends these two EMAs. Since 26.7 is closer to 27, it takes more from the "27-period EMA" and a bit less from the "26-period EMA." This mix gives you an EMA that acts like it has a 26.7 period.
Building the TEMA:
A TEMA isn't just one EMA. It's made by taking an EMA of an EMA, and then an EMA of that. It's like smoothing the line multiple times, but in a special mathematical way to make it faster.
So, this script:
-Calculates the first "decimal EMA" (e.g., for 26.7).
-Calculates another "decimal EMA" of that first EMA line (again, using 26.7).
-Calculates a third "decimal EMA" of the second EMA line (still using 26.7).
Finally, it combines these three EMAs using a special TEMA formula to get the final, quick-reacting TEMA line.
Option to Switch Off Decimals:
There's a setting ("Use Decimal Periods"). If you turn this off, the script will just use regular whole-number EMAs to build the TEMA (it will round down your decimal input, so 26.7 would become 26).
Plotting:
The final "Enhanced TEMA" line is drawn on your price chart.
In Simple Terms:
This script gives you a TEMA (a fast-moving average) that you can set up with very precise decimal lengths (like 26.7 instead of just 26 or 27).
It does this "decimal magic" by smartly blending two regular EMAs. You can also choose to use it like a normal TEMA with whole numbers if you prefer. The goal is to give traders a very responsive trend-following line that can be fine-tuned to a high degree of precision.
magic wand STSM"Magic Wand STSM" Strategy: Trend-Following with Dynamic Risk Management
Overview:
The "Magic Wand STSM" (Supertrend & SMA Momentum) is an automated trading strategy designed to identify and capitalize on sustained trends in the market. It combines a multi-timeframe Supertrend for trend direction and potential reversal signals, along with a 200-period Simple Moving Average (SMA) for overall market bias. A key feature of this strategy is its dynamic position sizing based on a user-defined risk percentage per trade, and a built-in daily and monthly profit/loss tracking system to manage overall exposure and prevent overtrading.
How it Works (Underlying Concepts):
Multi-Timeframe Trend Confirmation (Supertrend):
The strategy uses two Supertrend indicators: one on the current chart timeframe and another on a higher timeframe (e.g., if your chart is 5-minute, the higher timeframe Supertrend might be 15-minute).
Trend Identification: The Supertrend's direction output is crucial. A negative direction indicates a bearish trend (price below Supertrend), while a positive direction indicates a bullish trend (price above Supertrend).
Confirmation: A core principle is that trades are only considered when the Supertrend on both the current and the higher timeframe align in the same direction. This helps to filter out noise and focus on stronger, more confirmed trends. For example, for a long trade, both Supertrends must be indicating a bearish trend (price below Supertrend line, implying an uptrend context where price is expected to stay above/rebound from Supertrend). Similarly, for short trades, both must be indicating a bullish trend (price above Supertrend line, implying a downtrend context where price is expected to stay below/retest Supertrend).
Trend "Readiness": The strategy specifically looks for situations where the Supertrend has been stable for a few bars (checking barssince the last direction change).
Long-Term Market Bias (200 SMA):
A 200-period Simple Moving Average is plotted on the chart.
Filter: For long trades, the price must be above the 200 SMA, confirming an overall bullish bias. For short trades, the price must be below the 200 SMA, confirming an overall bearish bias. This acts as a macro filter, ensuring trades are taken in alignment with the broader market direction.
"Lowest/Highest Value" Pullback Entries:
The strategy employs custom functions (LowestValueAndBar, HighestValueAndBar) to identify specific price action within the recent trend:
For Long Entries: It looks for a "buy ready" condition where the price has found a recent lowest point within a specific number of bars since the Supertrend turned bearish (indicating an uptrend). This suggests a potential pullback or consolidation before continuation. The entry trigger is a close above the open of this identified lowest bar, and also above the current bar's open.
For Short Entries: It looks for a "sell ready" condition where the price has found a recent highest point within a specific number of bars since the Supertrend turned bullish (indicating a downtrend). This suggests a potential rally or consolidation before continuation downwards. The entry trigger is a close below the open of this identified highest bar, and also below the current bar's open.
Candle Confirmation: The strategy also incorporates a check on the candle type at the "lowest/highest value" bar (e.g., closevalue_b < openvalue_b for buy signals, meaning a bearish candle at the low, suggesting a potential reversal before a buy).
Risk Management and Position Sizing:
Dynamic Lot Sizing: The lotsvalue function calculates the appropriate position size based on your Your Equity input, the Risk to Reward ratio, and your risk percentage for your balance % input. This ensures that the capital risked per trade remains consistent as a percentage of your equity, regardless of the instrument's volatility or price. The stop loss distance is directly used in this calculation.
Fixed Risk Reward: All trades are entered with a predefined Risk to Reward ratio (default 2.0). This means for every unit of risk (stop loss distance), the target profit is rr times that distance.
Daily and Monthly Performance Monitoring:
The strategy tracks todaysWins, todaysLosses, and res (daily net result) in real-time.
A "daily profit target" is implemented (day_profit): If the daily net result is very favorable (e.g., res >= 4 with todaysLosses >= 2 or todaysWins + todaysLosses >= 8), the strategy may temporarily halt trading for the remainder of the session to "lock in" profits and prevent overtrading during volatile periods.
A "monthly stop-out" (monthly_trade) is implemented: If the lres (overall net result from all closed trades) falls below a certain threshold (e.g., -12), the strategy will stop trading for a set period (one week in this case) to protect capital during prolonged drawdowns.
Trade Execution:
Entry Triggers: Trades are entered when all buy/sell conditions (Supertrend alignment, SMA filter, "buy/sell situation" candle confirmation, and risk management checks) are met, and there are no open positions.
Stop Loss and Take Profit:
Stop Loss: The stop loss is dynamically placed at the upTrendValue for long trades and downTrendValue for short trades. These values are derived from the Supertrend indicator, which naturally adjusts to market volatility.
Take Profit: The take profit is calculated based on the entry price, the stop loss, and the Risk to Reward ratio (rr).
Position Locks: lock_long and lock_short variables prevent immediate re-entry into the same direction once a trade is initiated, or after a trend reversal based on Supertrend changes.
Visual Elements:
The 200 SMA is plotted in yellow.
Entry, Stop Loss, and Take Profit lines are plotted in white, red, and green respectively when a trade is active, with shaded areas between them to visually represent risk and reward.
Diamond shapes are plotted at the bottom of the chart (green for potential buy signals, red for potential sell signals) to visually indicate when the buy_sit or sell_sit conditions are met, along with other key filters.
A comprehensive trade statistics table is displayed on the chart, showing daily wins/losses, daily profit, total deals, and overall profit/loss.
A background color indicates the active trading session.
Ideal Usage:
This strategy is best applied to instruments with clear trends and sufficient liquidity. Users should carefully adjust the Your Equity, Risk to Reward, and risk percentage inputs to align with their individual risk tolerance and capital. Experimentation with different ATR Length and Factor values for the Supertrend might be beneficial depending on the asset and timeframe.
BVB dominance bars
Hello everyone, this is my first indicator. these candles shows you who's in control. I like to think its some what close to heikin ashi candles as it shows you the Trend but doesn't average it out. also shows you when there is indecision. please read the instructions on how it works. its not a stand alone strategy. but adds value to your own strategy.
📖 How It Works
The BvB Dominance Bars indicator is a visual tool that colors candles based on market control—whether bulls or bears are in charge. It uses a custom metric comparing the price's relationship to a smoothed moving average (EMA), then normalizes that difference over time to express relative bullish or bearish pressure.
Here’s the breakdown:
Bulls vs Bears Logic:
A short-term EMA (default: 14-period) is used to establish a midpoint reference.
Bull Pressure is calculated as how far the high is above this EMA.
Bear Pressure is how far the low is below this EMA.
These are normalized over a lookback period (default: 120 bars) to produce percentile scores (0–100) for both bulls and bears.
Dominance & Color Coding:
The indicator compares normalized bull and bear scores.
Candles are color-coded based on:
Bright Lime: Strong Bull Dominance (with high confidence)
Soft Lime/Yellow: Moderate Bull Control
Bright Red: Strong Bear Dominance
Soft Red/Yellow: Moderate Bear Control
Gray: Neutral/Low conviction
Optional Live Label:
A small floating label shows who has control: “Bull Control,” “Bear Control,” or “Neutral.”
🧠 How to Use It (Example Strategy)
The BvB Dominance Bars indicator is not a standalone buy/sell signal but a market sentiment overlay. It’s most effective when combined with your own strategy, like price action or trend-following tools.
Here’s an example use case:
🧪 Reversal Confirmation Strategy
Objective: Catch high-probability reversals during key kill zones or supply/demand levels.
Setup:
Mark your key support/resistance zones using your standard method (e.g., FVGs, liquidity sweeps, or ICT PD arrays).
Wait for price to reach one of these zones.
Watch candle colors from the BvB Dominance Bars:
If you expect a bullish reversal, wait for a transition from red/gray candles to lime green or bright lime (bullish dominance taking over).
If you expect a bearish reversal, look for a change from green/gray to red or bright red.
Entry Filter:
Only enter if the dominant color holds for 2+ candles.
Avoid trades when candles are gray or yellow (indecision/neutral).
Exit Option:
Exit if dominance shifts against you (e.g., from lime to red), or use structure-based stops.
⚙️ Settings You Can Adjust:
BvB Period: Controls how fast EMA responds.
Bars Back: Determines how long the normalization looks back.
Thresholds: Influence how strong the dominance must be to change candle color.
✅ Best Used When:
You already have a bias and just want a confirmation of sentiment.
You're trading intraday and want a feel for shifting momentum without relying on noisy indicators.
You want a clean, color-coded overlay to help filter out fakeouts and indecision.
Trucker Doug Master Indicator for Making Money📈 Trucker Doug Master Indicator for Making Money™
This all-in-one indicator was built for speed, clarity, and dominance — designed by a trader, for traders who hate fluff and want to get paid.
🔥 What It Does:
TP/SL/R:R Overlay: Automatically plots entry, stop-loss, and 5 take-profit levels (including a "TP LAMBO" target) based on your custom ATR multiplier and risk percentage. Each TP level includes its R:R ratio, so you can instantly see if the trade is worth it.
Live Volume Analysis: Displays Relative Volume (RVOL) as a percentage, with color-coded states (red = weak, black = neutral, yellow = increasing, green = explosive). Also shows average volume for context.
ATR Value: Dynamically calculated and displayed so you always know your volatility baseline.
MACD & RSI Values: Shown in the overlay box for a quick read — no extra indicators cluttering your chart.
EMA/SMA Lines: Clean, adjustable moving averages (default: EMA 5, EMA 9, SMA 50) plotted directly on the chart.
Fuse Visual Explainer™: Marks EMA 5 crossing EMA 9 (colored dot) and EMA 5 crossing SMA 50 (black X) directly where they intersect. Helps you visually confirm momentum or momentum reversals in real time.
⚙️ Fully Customizable in Settings:
Toggle on/off: TP lines, the volume/ATR table, EMA/SMA lines, RSI/MACD display, Fuse visuals.
Adjust:
TP multipliers (TP1–TP4, Lambo)
Stop-loss offset %
ATR period
Volume average period
Line colors for each TP level, SL, entry, and even the R:R label
Table text size and position
TP/SL line length (how far it stretches left/right)
💡 Why It’s Awesome:
No more layering 5 indicators. No more eyeballing risk-to-reward. No more guessing if volume is legit. This is a precision tool for real traders.
Built for those who are tired of chart noise and want everything that matters — clean, calculated, and completely in your control.
ML: Lorentzian Classification Premium█ OVERVIEW
Lorentzian Classification Premium represents the culmination of two years of collaborative development with over 1,000 beta testers from the TradingView community. Building upon the foundation of the open-source version, this premium edition introduces powerful enhancements that transform how machine-learning classification can be applied to market analysis.
The premium version maintains the core Lorentzian distance-based classification algorithm while expanding its capabilities through triple the feature dimensionality (up to 15 features), sophisticated mean-reversion detection, first-pullback identification, and a comprehensive signal taxonomy that goes far beyond simple buy/sell signals. Whether you're building automated trading systems, conducting deep market research, or integrating proprietary indicators into ML workflows, this tool provides the advanced edge needed for professional-grade analysis.
█ BACKGROUND
Lorentzian Classification analyzes market structures, especially those exhibiting non-linear distortions under stress, by employing advanced distance metrics like the Lorentzian metric, prominent in fields such as relativity theory. Where traditional indicators assume flat space, we embrace the curve. The heart of this approach is the Lorentzian distance metric—a sophisticated mathematical tool. This framework adeptly navigates the complex curves and distortions of market space, aiming to provide insights that traditional analysis might miss, especially during moments of extreme volatility. It analyzes historical data from a multi-dimensional feature space consisting of various technical indicators of your choosing. Where traditional approaches fail, Lorentzian space reveals the true geometry of market dynamics.
Neighborhoods in Different Geometries: In the above figure, the Lorentzian metric creates distinctive cross-patterns aligned with feature axes (RSI, CCI, ADX), capturing both local similarity and dimensional extremes. This unique geometry allows the algorithm to recognize similar market conditions that Euclidean spheres and Manhattan diamonds would miss entirely. In LC Premium, users can have up to 15 features -- you are not limited to 3-dimensions.
Among the thousands of distance metrics discovered by mathematicians, each perceives data through its own geometric lens. The Lorentzian metric stands apart with its unique ability to capture market behavior during volatile events.
█ COMMUNITY-DRIVEN EVOLUTION
It has been profoundly humbling over the past 2 years to witness this indicator's evolution through the collaborative efforts of our incredible community. This journey has been shaped by thousands of user suggestions and validated through real-world application.
A particularly amazing milestone was the development of a complete community-driven Python port, which meticulously matched even the most minute PineScript quirks. Building on this solid foundation, a new command-line interface (CLI) has opened up exciting possibilities for chart-specific parameter optimization:
Early insights from parameter optimization research: Through grid-search testing across thousands of parameter combinations, the analysis identifies which parameters have the biggest effects on performance and maps regions of stability across different market regimes. This reveals that optimal neighbor counts vary significantly based on market conditions—opening up incredible potential for timeframe-specific optimization.
This is just one of the insights gleaned so far from this ongoing investigation. The potential for chart-specific optimization for any given timeframe could transform how traders approach parameter selection.
Demand from power users for extra capabilities—while keeping the open-source version simple—sparked this Premium release. The open-source branch remains maintained, but the premium tier adds unique features for those who need an analytical edge and to leverage their own custom indicators as feature series for the algorithm.
█ KEY PREMIUM FEATURES
📈 First Pullback Detection System
Automatically identifies high-probability trend-continuation entries after initial momentum moves.
Detects when price retraces to optimal entry zones following breakouts or trend initiations.
Green/red triangle signals often fire before main classification arrows.
Dedicated alerts for both bullish and bearish pullback opportunities.
Based on veryfid's extensive research into pullback mechanics and market structure.
🔄 Dynamic Kernel Regression Envelope
Powerful, zero-setup confluence layer that immediately communicates trend shifts.
Dual-kernel system creates a visual envelope between trend estimates.
Color gradient dynamically represents prediction strength and market conviction.
Crossovers provide additional confirmation without cluttering your chart.
Professional visualization that rivals institutional-grade analysis tools.
✨ Massively Expanded Dimensionality: 10 Custom Sources, 5 Built-In Sources
Transform the indicator from 5 built-in standard to 15 total total features—triple the analytical power.
Integrate ANY TradingView indicator as a machine learning feature.
Built-in normalization ensures all indicators contribute equally regardless of scale.
Create theme-based systems: pure volume analysis, multi-timeframe momentum, or hybrid approaches.
📊 Tiered Mean Reversion Signals with Scalping Alerts
Regular (🔄) and Strong (⬇️/⬆️) mean reversion signals based on statistical extremes.
Opportunities often arise before candle close—perfect for scalping entries.
Visual markers appear at high-probability reversal zones.
Four specialized alert types: upward/downward for both regular and strong reversals.
Pre-optimized probability thresholds, no fine-tuning required.
📅 Daily Kernel Trend Filter
Instantly cleans up noisy intraday charts by aligning with higher timeframe trends.
Swing traders report immediate signal quality improvement.
Automatically deactivates on daily+ timeframes (intelligent context awareness).
Reduces counter-trend signals by up to 60% on lower timeframes.
Simple toggle—no complex multi-timeframe setup required.
📋 Professional Backtesting Stream (-6 to +6)
Multiple distinct signal types (including pullbacks, mean reversions, and kernel deviations) vs. basic binary (buy/sell) output for nuanced analysis.
Enables detailed walk-forward analysis and ML model training.
Compatible with external backtesting frameworks via numeric stream.
Rare precision for TradingView indicators—usually only found in institutional tools.
Perfect for quants building sophisticated strategy layers.
⚡ Performance Optimizations
Faster distance calculations through algorithmic improvements.
Reduced indicator load time (measured via Pine Profiler).
Handles 15 active features without timeouts—critical for multi-chart setups.
Optimized for live auto-trading bots requiring minimal latency.
🎨 Full Visual Customization & Accessibility
Complete color control for all visual elements.
Colorblind-safe default palette with customization options.
Dark mode optimization for extended trading sessions.
Professional appearance matching your trading workspace.
Accessibility features meeting modern UI standards.
🛠️ Advanced Training Modes
Downsampling mode for training on diverse market conditions; Down-sampling and remote-fractals for exotic pattern discovery.
Remote fractals option extends analysis to deep historical patterns.
Reset factor control for fine-tuning neighbor diversity; Reset-factor tuning to control neighbor diversity.
Appeals to systematic traders exploring exotic data approaches.
Prevents temporal clustering bias in model training.
█ HOW TO USE
Understanding the Approach (Core Concept):
Lorentzian Classification uses a k-Nearest Neighbors (k-NN) algorithm. It searches for historical price action "neighborhoods" similar to the current market state. Instead of a simple straight-line (Euclidean) distance, it primarily uses a Lorentzian distance metric, which can account for market "warping" or distortions often seen during high volatility or significant events. Each historical neighbor "votes" on what happened next in its context, and these votes aggregate into a classification score for the current bar.
Interpreting Bar Scores & Signals (Interpreting the Chart):
Bar Prediction Values: Numbers over each candle (e.g., ranging from -8 to +8 if Neighbors Count is 8) represent the aggregated vote from the nearest neighbors. Strong positive scores (e.g., +7, +8) indicate a strong bullish consensus among historical analogs. Strong negative scores (e.g., -7, -8) indicate a strong bearish consensus. Scores near zero suggest neutrality or conflicting signals from neighbors. The intensity of bar colors (if Use Confidence Gradient is on) often reflects these scores.
Main Arrows (Main Buy/Sell Labels): Large ▲/▼ labels are the primary entry signals generated when the overall classification (after filters) is bullish or bearish.
Pullback Triangles: Small green/red ▲/▼ identify potential trend continuation entries. These signals often appear after an initial price move and a subsequent minor retracement, suggesting the trend might resume. This is based on recognizing patterns where a brief counter-movement is followed by a continued advance in the initial trend direction.
Mean-Reversion Symbols: 🔄 (Regular Reversion) appears when price has crossed the average band of the Dynamic Kernel Regression Envelope. ⬇️/⬆️ (Strong Reversion) means price has crossed the far band of the envelope, indicating a more extreme deviation and potentially a stronger reversion opportunity.
Custom Mean Reversion Deviation Markers (Deviation Dots): If Enable Custom Mean Reversion Alerts is on, these dots appear when price deviates from the main kernel regression line by a user-defined ATR multiple, signaling a custom-defined reversion opportunity.
Kernel Regression Lines & Envelope: The Main Kernel Estimate (thicker line) is an adaptive moving average that smooths price and helps identify trend direction. Its color indicates the current trend bias. The Envelope (outer bands and a midline) creates a channel around price, and its interaction with price generates mean reversion signals.
Key Input Groups & Their Purpose:
🔧 GENERAL SETTINGS:
Reduce Price-Time Warping : Toggles the distance metric. When enabled, it reduces the characteristic "warping" effect of the default Lorentzian metric, making the distance calculation more Euclidean in nature. This may be suited for periods exhibiting less pronounced price-time distortions.
Source : Price data for calculations (default: close ).
Neighbors Count : The 'k' in k-NN – number of historical analogs considered.
Max Bars Back : How far back the indicator looks for historical patterns.
Show Exits / Use Dynamic Exits : Controls visibility and logic for exit signals.
Include Full History (Use Remote Fractals) : Allows model to pick "exotic" fractals from deep chart history.
Use Downsampling / Reset Factor : Advanced training parameters affecting neighbor selection.
Show Trade Stats / Use Worst Case Estimates : Displays a real-time performance table (for calibration only).
🎛️ DEFINE CUSTOM SOURCES (OPTIONAL):
Integrate up to 10 external data series (e.g., from other indicators) as features. Each can be optionally normalized. Load the external indicator on your chart first for it to appear in the dropdown.
🧠 FEATURE ENGINEERING:
Configure up to 15 features for the k-NN algorithm. Select type (RSI, WT, CCI, ADX, Custom Sources), parameters, and enable/disable. Start simple (3-5 features) and add complexity gradually. Normalize features with vastly different scales.
🖥️ DISPLAY SETTINGS:
Controls visibility of chart elements: bar colors, prediction values/labels, envelope, etc.
Align Signal with Current Bar : If true, pullback signals appear on the current bar (calculated on closed data). If false (default), they appear on the next bar.
Use ATR Offset : Positions bar prediction values using ATR for visibility.
🧮 FILTERS SETTINGS:
Refine raw classification signals: Volatility, Regime, ADX, EMA/SMA, and Daily Kernel filters.
🌀 KERNEL SETTINGS (Main Kernel):
Adjust parameters for the primary Nadaraya-Watson Kernel Regression line. Lookback Window , Relative Weighting , Regression Level , Lag control sensitivity and smoothness.
✉️ ENVELOPE SETTINGS (for Mean Reversion):
Configure the dynamic Kernel Regression Envelope. ATR Length , Near/Far ATR Factor define band width.
🎨 COLOR SETTINGS (Colors):
Customize colors for all visual elements; override every palette element.
General Approach to Using the Indicator (Suggested Workflow):
Load defaults and observe behavior: Familiarize yourself with the indicator's behavior.
Feature Engineering: Experiment with features, considering momentum, trend, and volatility. Add/replace features gradually.
Apply Filters: Refine signals according to your trading style.
Contextualize: Use kernels and envelope to understand broader trend and potential overbought/oversold areas.
Observe Signals: Pay attention to the interplay of main signals, pullbacks, and mean reversions. Watch interplay of main, pullback & mean-reversion signals.
Calibrate (Not Backtest): Use the "Trade Stats" table for real-time feedback on current settings. This is for calibration, *not a substitute for rigorous backtesting.*
Iterate & refine: Adjust settings, observe outcomes, and refine your approach.
█ ACKNOWLEDGMENTS
This premium version wouldn't exist without the invaluable contributions of:
veryfid for his groundbreaking ideas on unifying pullback detection with Lorentzian Classification, but most of all for always believing in and encouraging me and so many others. For being a mentor and, most importantly, a friend. We all miss you.
RikkiTavi for his help in creating the settings optimization framework and for other invaluable theoretical discussions.
The 1,000+ beta testers worldwide who provided continuous feedback over two years.
The Python porting team who created the foundation for advanced optimization; for the cross-language clone.
The broader TradingView community for making this one of the platform's most popular indicators.
█ FUTURE DEVELOPMENT
The Premium version will continue to evolve based on community feedback. Planned enhancements include:
Specialized exit model trained independently from entry signals (ML-based exit model).
Feature hub with pre-normalized, commonly requested indicators (Pre-normalized feature hub).
Better risk-management options (Enhanced risk-management options).
Fully automated settings optimization (Auto-settings optimization tool).
5 DMA (Close Above) Buy5 DMA (Close Above) Buy
This indicator identifies momentum-based breakout signals when a green candle closes above the 5-day Simple Moving Average (5DMA) for the first time after price was previously below it.
🔹 Signal Logic:
The script plots a green arrow below the candle when a bullish candle (close > open) closes above the 5DMA
Signals are only shown once per trend leg
The signal resets only after price closes back below the 5DMA
🔔 Built-in Alerts:
Use the included alert condition: "Buy Alert" to be notified in real time whenever a valid signal occurs.
This tool is ideal for traders seeking simple price-action confirmations to catch early trend continuation after pullbacks.
Parabolic-Fibonacci MA ForecastThis indicator displays a series of projected price levels based on Fibonacci moving averages. For each selected Fibonacci period, it calculates a simple moving average (SMA) and mirrors the distance from the current price to that SMA in the opposite direction, creating a vertical forecast distance. These forecast distances are drawn forward into the future using geometric spacing (squared increments: 1², 2², 3², etc.), creating a fan-like or polyline visual structure.
Users can choose between three display modes:
Fan: Lines drawn from the current price to projected values at increasing intervals
Polyline: Forecast points connected to form a jagged projection path
Both: Displays both fan and polyline structures simultaneously
Options are provided to adjust the number of Fibonacci lines (up to 12), line width, and colors for lines above/below price or up/down slope.
This tool can help visualize directional price tendencies using multiple SMA-based forecasts in a spatially meaningful layout.
Leslie's EMA Ribbon: 5/9/21 + VWAPEMA + VWAP Crossover Indicator with Alerts
This script blends three Exponential Moving Averages (5, 9, 21) with VWAP to identify momentum shifts and volume-confirmed trend signals. It’s optimized for the Daily timeframe, but also adaptable to shorter-term trading.
🔍 Why this combination?
EMAs provide fast and reliable trend signals:
- 5/9 EMA crossover → short-term shifts (more frequent)
- 9/21 EMA crossover → swing confirmation (less noise)
- VWAP adds volume context used by institutions for fair value tracking.
- 9EMA crossing VWAP confirms price action supported by volume.
Together, these tools offer a multi-layered view of market momentum — combining speed, confirmation, and conviction.
⚙️ Features:
Clean plots with dynamic labels on latest bar
Adjustable line weights for clarity
Alerts included for all crossovers:
- 5EMA / 9EMA
- 9EMA / 21EMA
- 9EMA / VWAP
✅ How to Use:
- Best on the Daily timeframe
- Use 5/9 as early signals, 9/21 for trend filtering, and 9/VWAP for volume-backed setups
- Turn on alerts to stay informed of key shifts without staring at charts
Decimal EMAImagine you want a moving average line, but you want its "length" or "period" to be super precise, like 2.7 days instead of just 2 days or 3 days.
This script lets you do that. Here's the simple idea:
You Pick a Decimal Number: In the settings, you can type in a period with a decimal, say, 2.7.
The Script Does a Smart Blend:
It first calculates two regular EMAs: one for the whole number below your choice (EMA for 2 days) and one for the whole number above (EMA for 3 days).
Then, it cleverly mixes these two EMA lines. Since 2.7 is closer to 3 than to 2, it takes more from the "3-day EMA" and a bit less from the "2-day EMA." (Specifically, it takes 70% from the 3-day EMA and 30% from the 2-day EMA).
You Get a Decimal EMA Line: The result is a new EMA line that acts as if its period was exactly 2.7. This line is drawn on your chart.
Why do this?
It allows for very fine-tuned adjustments to how responsive your moving average is, giving a smoother change if you're testing slightly different period lengths.
In Short:
This script calculates an EMA for a period like "2.7" by intelligently blending the results of an EMA for "2" and an EMA for "3".
Hybrid Adaptive Momentum Average (HAMA)Hybrid Adaptive Momentum Average (HAMA)
Imagine you want a moving average line on your chart that's usually smooth but gets really quick to follow the price when the market suddenly makes a big, fast move. That's what HAMA tries to be.
Here's the simple breakdown:
Slightly Better Starting Price: Instead of just using the closing price, HAMA first creates a slightly "smarter" starting price by giving a bit more importance to the very latest prices (like a quick WMA).
Checks Market Speed (Momentum): It then looks at how fast this "smarter price" has been moving recently.
-If the price is shooting up or down quickly, HAMA knows there's strong momentum.
-If the price is just drifting sideways, momentum is low.
Adjusts Its Own Speed: Based on this momentum:
-Strong Momentum (Fast Market): HAMA makes itself "faster." This means its line will stick closer to the current price and react quickly to changes. (It uses a shorter "period" internally).
-Weak Momentum (Slow/Choppy Market): HAMA makes itself "slower." Its line will be smoother and less jumpy, ignoring minor wiggles. (It uses a longer "period" internally).
-Draws the Line: Finally, it calculates and draws the moving average line using this automatically adjusted speed.
Why "Hybrid"?
It's called "hybrid" because it takes bits and pieces of ideas from several standard moving averages:
-Like an EMA, it's built to be responsive.
-Like a WMA, it initially focuses on recent prices.
-Inspired by the HMA, it tries to be smart about detecting momentum to adjust itself.
In a Nutshell:
The HAMA is a custom moving average that tries to be the best of both worlds: smooth in calm markets and quick to react in fast-moving markets by automatically changing its own calculation speed based on price momentum.
Mad Trading Scientist - Guppy MMA with Bollinger Bands📘 Indicator Name:
Guppy MMA with Bollinger Bands
🔍 What This Indicator Does:
This TradingView indicator combines Guppy Multiple Moving Averages (GMMA) with Bollinger Bands to help you identify trend direction and volatility zones, ideal for spotting pullback entries within trending markets.
🔵 1. Guppy Multiple Moving Averages (GMMA):
✅ Short-Term EMAs (Blue) — represent trader sentiment:
EMA 3, 5, 8, 10, 12, 15
✅ Long-Term EMAs (Red) — represent investor sentiment:
EMA 30, 35, 40, 45, 50, 60
Usage:
When blue (short) EMAs are above red (long) EMAs and spreading → Strong uptrend
When blue EMAs cross below red EMAs → Potential downtrend
⚫ 2. Bollinger Bands (Volatility Envelopes):
Length: 300 (captures the longer-term price range)
Basis: 300-period SMA
Upper & Lower Bands:
±1 Standard Deviation (light gray zone)
±2 Standard Deviations (dark gray zone)
Fill Zones:
Highlights standard deviation ranges
Emphasizes extreme vs. normal price moves
Usage:
Price touching ±2 SD bands signals potential exhaustion
Price reverting to the mean suggests pullback or re-entry opportunity
💡 Important Note: Use With Momentum Filter
✅ For superior accuracy, this indicator should be combined with your invite-only momentum filter on TradingView.
This filter helps confirm whether the trend has underlying strength or is losing momentum, increasing the probability of successful entries and exits.
🕒 Recommended Timeframe:
📆 1-Hour Chart (60m)
This setup is optimized for short- to medium-term swing trading, where Guppy structures and Bollinger reversion work best.
🔧 Practical Strategy Example:
Long Trade Setup:
Short EMAs are above long EMAs (strong uptrend)
Price pulls back to the lower 1 or 2 SD band
Momentum filter confirms bullish strength
Short Trade Setup:
Short EMAs are below long EMAs (strong downtrend)
Price rises to the upper 1 or 2 SD band
Momentum filter confirms bearish strength
EWMA & EWVar + EWStd Expansion with MTF_V.5EWMA & EWVar + EWStd Expansion with MTF_V.5
This indicator combines adaptive trend smoothing (EWMA), variance estimation (EWVar) and dynamic volatility “bursts” (EWStd Expansion) with optional higher-timeframe confirmation. It’s designed both for visual chart analysis and for automated alerts on regime changes.
Key Features
EWMA (Exponential Smoothing):
• Computes an exponential moving average with either a custom α or a length-derived α = 2/(N+1).
• Option to recalculate only every N bars (reduces CPU load).
EWVar & EWStd (Variance & Standard Deviation):
• Exponentially weighted variance tracks recent price dispersion.
• EWStd (σ) is computed alongside the EWMA.
• Z-score (deviation in σ units) shows how far price has diverged from trend.
Multi-Timeframe Filter (MTF):
• Optionally require the same trend direction on a chosen higher timeframe (e.g. Daily, Weekly, H4).
• Real-time lookahead available (may repaint).
Gradient Around EWMA:
• A multi-layer “glow” zone of ±1σ, broken into up to 10 steps.
• Color interpolates between “upper” and “lower” shades for bullish, bearish and neutral regimes.
Instantaneous Trendline (ITL):
• Ultra-fast trend filter with slope-based coloring.
• Highlights micro-trends and short-lived accelerations.
Cross-Over Signals (ITL ↔ EWMA):
• Up/down triangles plotted when the ITL crosses the main EWMA.
EWStd Expansion (Volatility Bursts):
• Automatically detects σ expansions (σ growth above a set % threshold).
• Price filter: only when price moves beyond EWMA ± (multiplier·σ).
• Optional higher-timeframe confirmation.
Labels & Alerts:
• Text labels and circular markers on bars where a volatility burst occurs.
• Built-in alertcondition calls for both bullish and bearish expansions.
How to Use
Visual Analysis:
• The gradient around EWMA shows the width of the volatility channel expanding or contracting.
• ITL color changes instantly highlight short-term impulses.
• EWMA line color switches (bullish/bearish/neutral) indicate trend state.
Spotting Volatility Breakouts:
• “EWStd Expansion” labels and circles signal the onset of strong moves when σ spikes.
• Useful for entering at the start of new impulses.
Automated Alerts:
• Set alerts on the built-in conditions “Bullish EWStd Expansion Alert” or “Bearish EWStd Expansion Alert” to receive a popup or mobile push when a burst occurs.
This compact tool unifies trend, volatility and multi-timeframe analysis into a single indicator—ideal for traders who want to see trend direction, current dispersion, and timely volatility burst signals all at once.
Price/MA Deviation AngleThis indicator visualizes the angular deviation of price from a selected moving average (default: 21 EMA). It calculates the angle, in degrees, formed by the vertical distance between price and the moving average — assuming a one-bar horizontal distance.
Positive angles indicate upward deviation (bullish pressure).
Negative angles reflect downward deviation (bearish pressure).
0° represents perfect alignment between price and the MA.
±45° thresholds can be used as reference for strong momentum.
This tool offers a normalized, intuitive perspective on price momentum using geometric interpretation rather than price-to-price delta.
Multi-Timeframe MA Breakout/Breakdown Analysis📊 Overview
This sophisticated Pine Script indicator revolutionizes breakout/breakdown analysis by distinguishing between fake and genuine signals using a unique swing-level validation methodology. Unlike traditional moving average crossovers, this system validates price movements against historical swing points, providing traders with high-probability entry and exit signals across multiple timeframes.
🎯 Core Trading Methodology
The Swing Validation Concept:
Traditional MA breakouts often fail because they don't consider the context of previous price action. This indicator solves this by:
Recording swing levels when each MA is initially crossed
Validating subsequent crosses against these historical swing points
Classifying signals as fake or genuine based on this validation
Tracking signal evolution as price action develops
Signal Classification System:
🔻 Breakdown Analysis:
Fake Breakdown: Price cuts below MA but stays above the swing low from previous MA cut
Genuine Breakdown: Price cuts below MA and falls below the swing low from previous MA cut
Validation Chain: EMA 50 validates against EMA 20 swing low, EMA 100 against EMA 50 swing low, EMA 200 against EMA 100 swing low
🔺 Breakout Analysis:
Fake Breakout: Price crosses above MA but stays below the swing high from previous MA cross
Genuine Breakout: Price crosses above MA and exceeds the swing high from previous MA cross
Validation Chain: EMA 50 validates against EMA 20 swing high, EMA 100 against EMA 50 swing high, EMA 200 against EMA 100 swing high
📈 Signal Interpretation Guide
Visual Chart Signals:
Breakdown Signals:
🔻 Orange Triangle Down + "FAKE BREAKDOWN": Potential reversal opportunity - price likely to bounce
🔻 Red Triangle Down + "GENUINE BREAKDOWN": Trend continuation - expect further downside
🔺 Lime Triangle Up + "BULLISH REVERSAL": Strong buy signal after fake breakdown validation
Breakout Signals:
🔺 Orange Triangle Up + "FAKE BREAKOUT": Potential reversal opportunity - price likely to decline
🔺 Dark Red Triangle Up + "GENUINE BREAKOUT": Trend continuation - expect further upside
🔻 Fuchsia Triangle Down + "BEARISH REVERSAL": Strong sell signal after fake breakout validation
Multi-Timeframe Analysis Table:
Signal Column Interpretation:
"FAKE BD" (Orange): Fake breakdown detected - watch for bullish reversal
"GENUINE BD" (Red): Genuine breakdown - bearish continuation likely
"FAKE BO" (Orange): Fake breakout detected - watch for bearish reversal
"GENUINE BO" (Dark Red): Genuine breakout - bullish continuation likely
"BULLISH" (Lime): Bullish reversal confirmed - strong buy signal
"BEARISH" (Fuchsia): Bearish reversal confirmed - strong sell signal
Trend Column:
"BULL" (Green): EMAs in bullish sequence (20>50>100>200)
"BEAR" (Red): EMAs in bearish sequence (20<50<100<200)
"SIDE" (Gray): Sideways/mixed EMA alignment
Status Column:
"Above 200" (Green): Price above 200 EMA - bullish bias
"Below 200" (Red): Price below 200 EMA - bearish bias
"At 200" (Gray): Price at 200 EMA - neutral
💡 Trading Strategies
Strategy 1: Fake Signal Reversal Trading
For Long Entries (Fake Breakdown Reversal):
Wait for fake breakdown signal (orange triangle down)
Confirm bullish reversal (lime triangle up) when price reclaims EMAs
Enter long on bullish reversal confirmation
Stop loss below the swing low that validated the fake breakdown
Target next resistance level or previous swing high
For Short Entries (Fake Breakout Reversal):
Wait for fake breakout signal (orange triangle up)
Confirm bearish reversal (fuchsia triangle down) when price falls below EMAs
Enter short on bearish reversal confirmation
Stop loss above the swing high that validated the fake breakout
Target next support level or previous swing low
Strategy 2: Genuine Signal Trend Following
For Trend Continuation Longs:
Identify genuine breakout (dark red triangle up)
Confirm higher timeframe alignment (4H/1D showing bullish trend)
Enter on pullback to broken resistance (now support)
Stop loss below the validation swing high
Target measured move or next major resistance
For Trend Continuation Shorts:
Identify genuine breakdown (red triangle down)
Confirm higher timeframe alignment (4H/1D showing bearish trend)
Enter on pullback to broken support (now resistance)
Stop loss above the validation swing low
Target measured move or next major support
Strategy 3: Multi-Timeframe Confluence
High-Probability Setups:
Align signals across timeframes (15M signal + 4H trend confirmation)
Look for confluence (multiple timeframes showing same signal type)
Prioritize higher timeframe signals for swing/position trades
Use lower timeframes for precise entry timing
⚠️ Risk Management Rules
Position Sizing:
Fake signal trades: Reduce position size (higher risk, higher reward)
Genuine signal trades: Standard position size (trend following)
Multi-timeframe confluence: Increase position size (higher probability)
Stop Loss Guidelines:
Fake breakdown longs: Stop below validation swing low
Fake breakout shorts: Stop above validation swing high
Genuine signals: Stop beyond the MA that was broken
Reversals: Stop beyond the reversal invalidation level
Take Profit Strategies:
Scale out at key resistance/support levels
Trail stops using the 20 EMA for trend following
Take partial profits at 1:2 risk/reward ratio
Let winners run on strong trend continuation signals
🔧 Best Practices
Signal Validation:
Wait for candle close before acting on signals
Check volume confirmation on breakouts/breakdowns
Consider market context (news, earnings, etc.)
Avoid trading during low liquidity periods
Timeframe Selection:
Scalping: 15M signals with 4H trend filter
Day Trading: 4H signals with 1D trend filter
Swing Trading: 1D signals with 1W trend filter
Position Trading: 1W signals for major moves
Market Conditions:
Trending Markets: Focus on genuine signals for continuation
Range-Bound Markets: Focus on fake signals for reversals
High Volatility: Reduce position sizes and widen stops
Low Volatility: Look for breakout setups with volume
📋 Advanced Tips
Signal Evolution Monitoring:
Watch for signal transitions (fake becoming genuine or vice versa)
Adjust positions when signal classification changes
Use alerts to stay informed of signal updates
Monitor multiple timeframes for comprehensive analysis
Confluence Factors:
Support/Resistance levels at signal points
Volume spikes on genuine signals
RSI divergences with fake signals
Fibonacci retracements at reversal points
Common Pitfalls to Avoid:
Don't chase signals after significant moves
Don't ignore higher timeframe trends
Don't overtrade on every signal
Don't neglect risk management rules
🎯 Quick Reference
Bullish Signals Priority:
Bullish Reversal (Lime) - Highest priority
Fake Breakdown (Orange) - High probability reversal
Genuine Breakout (Dark Red) - Trend continuation
Bearish Signals Priority:
Bearish Reversal (Fuchsia) - Highest priority
Fake Breakout (Orange) - High probability reversal
Genuine Breakdown (Red) - Trend continuation
Multi-Timeframe Hierarchy:
1W: Major trend direction
1D: Intermediate trend and swing levels
4H: Short-term trend and entry timing
15M: Precise entry and exit points
⚡ Pro Tip: The most powerful signals occur when fake signals reverse into genuine signals in the opposite direction, creating high-momentum moves with excellent risk/reward ratios.
Disclaimer: This indicator is for educational purposes. Always combine with proper risk management, additional technical analysis, and fundamental research before making trading decisions. Past performance does not guarantee future results.
Multi-EnvelopeRMA Multi-Envelope Indicator
The RMA Multi-Envelope Indicator is a technical analysis tool designed for TradingView, utilizing Pine Script v6. It creates eight customizable envelope bands around a 200-period Running Moving Average (RMA) on a 5-minute timeframe, based on current market measurements. Each band has independent upper and lower percentage deviations, preset to: Band 1 (0.42%, 0.46%), Band 2 (0.78%, 0.69%), Band 3 (1.01%, 1.03%), Band 4 (1.36%, 1.39%), Band 5 (1.80%, 1.62%), Band 6 (2.15%, 2.13%), Band 7 (2.93%, 2.81%), and Band 8 (4.65%, 4.18%). Users can adjust the timeframe, moving average type (RMA, SMA, or EMA), length, and colors for the basis line and bands via hex codes (e.g., #FF6D00 for the basis and Band 8) with semi-transparent color.rgb fills. Ideal for identifying support/resistance, overbought/oversold conditions, or trend boundaries on a 5-minute chart.
Median True Range {Darkoexe}Simple and sweet, this is the median true range. It reviews the size of the previous period amount of candles, and displays the candle size value that is the median of those previous values.
//Darkoexe
MA Pullback Signal V1.1 [Tujac]This indicator will help you to find a MA Pullback Signal.
Features
Entry signals are generated under the following conditions:
Condition 1: When the 10, 20, and 50-period Moving Averages (MAs) are in either a bullish or bearish alignment , and their intervals narrow before expanding , a signal will appear.
Additionally , the Stochastic oscillator must be in an oversold/overbought zone , and the signal will only trigger if volume increases upon the 10-period MA breaking through the 20-period MA after a bounce.
Condition 2: When the 20, 50, and 100-period MAs are in either a bullish or bearish alignment , and their intervals narrow before expanding , a signal will appear.
Additionally , the Stochastic oscillator must be in an oversold/overbought zone , and the signal will only trigger if volume increases upon the 20-period MA breaking through the 50-period MA after a bounce.
Condition 3: If the 50-period MA and 200-period MA are in a bullish alignment , but the 10, 20, and 50-period MAs are in a bearish alignment , a signal will appear on a candle where a double bottom/double top forms, followed by an increase in volume .
Convergence Zone
Entry signals are hidden when the market is in a convergence zone .
Bollinger Bands, Keltner Channels, ADX, and Volume are used to determine if the market is in a convergence zone.
By default, entry signals will not appear in a convergence zone.
You can change the settings to allow signals to appear on candles that meet the entry conditions, even within a convergence zone.
Setting Options
Trend Type: Sets the type of Moving Average to determine pull-back entries.
MA F: Uses all four MAs (10/20/50/200) to determine pull-backs.
MA A/B/C: Uses only the 10/20/50 MAs to determine pull-backs.
MA F Trend: Sets which MA crossing the 200-period MA defines the base trend. The default is the 5-period MA.
MA Style: Sets the display style of the Moving Averages.
A: Displays the 200-period MA as a line and the 10/20-period MAs as a cloud.
B: Displays all 10/20/50/200-period MAs as lines.
C: Displays the 10/20-period MAs and the 90/100-period MAs as a cloud.
ADX Default: Sets the ADX value used to define the convergence zone.
Filter Squeeze: Enable this setting to hide entry signals during convergence zones.
Filter Over Sold/Bought: Enable this setting to hide entry signals when the market is in oversold/overbought zones.
Show Strong Signal: Displays signals with particularly high volume and price volatility.
Strength Level: Displays the strength of the signal.
Show All Signal: Displays both weak and strong signals.
Displays the 200-period MA as a line and the 10/20-period MAs as a cloud.
When the 10, 20, and 50-period Moving Averages (MAs) are in either a bullish or bearish alignment, and their intervals narrow before expanding, a signal will appear. Additionally, the Stochastic oscillator must be in an oversold/overbought zone, and the signal will only trigger if volume increases upon the 10-period MA breaking through the 20-period MA after a bounce.
Entry signals are hidden when the market is in a convergence zone.
The "Show All Signal" option allows you to display both weak and strong signals, providing a comprehensive view of all potential entry points identified by the system, regardless of their strength level.
If the 50-period MA and 200-period MA are in a bullish alignment, but the 10, 20, and 50-period MAs are in a bearish alignment, a signal will appear on a candle where a double bottom/double top forms, followed by an increase in volume.
MA OrderlinessMA Orderliness measures how well a series of simple moving averages (SMAs) are stacked in the expected order for a trending market and turns that measurement into a normalized oscillator. You choose how many MAs to include and the shortest and longest lengths. The script generates a family of evenly spaced SMAs between those lengths, then compares each pair: shorter MAs should lie above longer ones in an uptrend and below in a downtrend. When any pair is out of order, a “violation” score is accumulated, but violations between nearby MAs count more heavily than those between MAs that are far apart. All weights are summed, and the total weighted violations are converted into a score from –1 (completely reversed) to +1 (perfectly ordered).
This orderliness score is plotted as a line oscillator. A fixed horizontal line at +1 marks perfect order, and another at –1 marks perfect reversal. To smooth the raw oscillator and generate trading signals, the script also plots a simple moving average of the orderliness score over a user-defined period. When the unsmoothed score crosses above its moving average, a bullish crossover alert fires. When it crosses below, a bearish crossover alert fires.
Everything is calculated on each bar so you can see the oscillator evolve in real time. You can customize the number of MAs, their minimum and maximum lengths, and the length of the signal-line SMA to suit different timeframes or markets.
Color Vario Moving Average RibbonColor Vario Moving Average Ribbon – Smart Trend & Momentum Tool for Traders
The Color Vario Moving Average Ribbon is a powerful and customizable indicator that combines trend analysis, momentum detection, and volume confirmation — all in one clean and intuitive design.
🔍 Key Features:
✅ Dynamic Moving Averages (Up to 4)
• Choose from SMA, EMA, WMA, VWMA, or SMMA.
• Each MA line changes color based on price position (above = bullish, below = bearish).
• Great for spotting trend direction and momentum shifts at a glance.
📏 Distance from MAs (Table Display)
• Real-time display of how far price is from each MA (in % and points).
• Helps you assess extension, pullback depth, or reversion potential quickly.
📈 ADR% (Average Daily Range)
• Calculates average volatility using high-low ranges.
• Useful for setting realistic targets, stops, and risk assessments.
🔊 RVol (Relative Volume)
• Compares current volume to the average of recent days.
• Highlights whether volume is above or below normal (green = strong, red = weak).
• Perfect for volume confirmation during entries or breakouts.
⚡ Yellow Dot Signal (Momentum Spike)
• Appears when:
• Price moves more than a custom % from the previous candle.
• Volume is higher than your defined minimum.
• A visual cue for strong price + volume moves, helping you catch momentum trades early.
🎨 UI Customization
• Light/Dark mode compatibility.
• Adjust table size and position for your layout preference.
⸻
🚀 Who Should Use This?
This indicator is ideal for:
• Swing Traders looking for clean trend signals
• Intraday Traders who rely on momentum and volume
• Positional Traders tracking price behavior around key MAs
⸻
📌 Final Words
The Color Vario MA Ribbon is more than just a ribbon — it’s a compact trend, momentum, and volume dashboard built for traders who need clarity and precision.
Whether you’re looking for cleaner entries, stronger confirmations, or smarter exits, this tool adds serious edge to your trading chart.
💬 Don’t forget to give your feedback in the comments!
Momentum Long + Short Strategy (BTC 3H)Momentum Long + Short Strategy (BTC 3H)
🔍 How It Works, Step by Step
Detect the Trend (📈/📉)
Calculate two moving averages (100-period and 500-period), either EMA or SMA.
For longs, we require MA100 > MA500 (uptrend).
For shorts, we block entries if MA100 exceeds MA500 by more than a set percentage (to avoid fading a powerful uptrend).
Apply Momentum Filters (⚡️)
RSI Filter: Measures recent strength—only allow longs when RSI crosses above its smoothed average, and shorts when RSI dips below the oversold threshold.
ADX Filter: Gauges trend strength—ensures we only enter when a meaningful trend exists (optional).
ATR Filter: Confirms volatility—avoids choppy, low-volatility conditions by requiring ATR to exceed its smoothed value (optional).
Confirm Entry Conditions (✅)
Long Entry:
Price is above both MAs
Trend alignment & optional filters pass ✅
Short Entry:
Price is below both MAs and below the lower Bollinger Band
RSI is sufficiently oversold
Trend-blocker & ATR filter pass ✅
Position Sizing & Risk (💰)
Each trade uses 100 % of account equity by default.
One pyramid addition allowed, so you can scale in if the move continues.
Commission and slippage assumptions built in for realistic backtests.
Stops & Exits (🛑)
Long Stop-Loss: e.g. 3 % below entry.
Long Auto-Exit: If price falls back under the 500-period MA.
Short Stop-Loss: e.g. 3 % above entry.
Short Take-Profit: e.g. 4 % below entry.
🎨 Why It’s Powerful & Customizable
Modular Filters: Turn on/off RSI, ADX, ATR filters to suit different market regimes.
Adjustable Thresholds: Fine-tune stop-loss %, take-profit %, RSI lengths, MA gaps and more.
Multi-Timeframe Potential: Although coded for 3 h BTC, you can adapt it to stocks, forex or other cryptos—just recalibrate!
Backtest Fine-Tuned: Default settings were optimized via backtesting on historical BTC data—but they’re not guarantees of future performance.
⚠️ Warning & Disclaimer
This strategy is for educational purposes only and designed for a toy fund. Crypto markets are highly volatile—you can lose 100 % of your capital. It is not a predictive “holy grail” but a rules-based framework using past data. The parameters have been fine-tuned on historical data and are not valid for future trades without fresh calibration. Always practice with paper-trading first, use proper risk management, and do your own research before risking real money. 🚨🔒
Good luck exploring and experimenting! 🚀📊