EMA BY C4RLOZ📈 Example:
A 150 EMA is the average price of the last 150 candles, but the most recent prices influence it more.
Traders often use EMAs to identify trend direction and crossovers for buy/sell signals.
👉 In practice:
If price is above the EMA → uptrend bias.
If price is below the EMA → downtrend bias.
Rata-Rata Pergerakan / Moving Averages
EMA ± ATR Channel (True Range)EMA ± ATR Channel (True Range)
Tagline: Adaptive EMA channel with ATR-based volatility bands — perfect for swing trading, intraday setups, and managing risk on high-volatility stocks.
This script plots a dynamic price channel around a configurable EMA using the Average True Range (ATR, Wilder’s True Range) as a volatility buffer.
Upper band = EMA + (ATR × multiplier)
Lower band = EMA – (ATR × multiplier)
📊 Features:
Adjustable EMA length, ATR length, and ATR multiplier
Visual channel fill between upper and lower bands
Optional on-chart help panel with practical combos
⚡ Practical Combos for Volatile Stocks:
EMA 20 + ATR 14 × 2.0 → most common swing trading setup
EMA 10 + ATR 14 × 1.5 → very responsive, good for intraday/high-beta names
EMA 20 + ATR 20 × 2.5 → smoother, wider channel, avoids whipsaws in chaotic stocks
✅ Use cases:
Identify dynamic support/resistance zones
Volatility-based stop-loss & take-profit placement
Spot overextensions from the trend midline
🔖 Tags:
ema, atr, channel, volatility, trend, support resistance, stop loss, swing trading, intraday, risk management, indicator
主力资金进出监控器Main Capital Flow Monitor-MEWINSIGHTMain Capital Flow Monitor Indicator
Indicator Description
This indicator utilizes a multi-cycle composite weighting algorithm to accurately capture the movement of main capital in and out of key price zones. The core logic is built upon three dimensions:
Multi-Cycle Pressure/Support System
Using triple timeframes (500-day/250-day/90-day) to calculate:
Long-term resistance lines (VAR1-3): Monitoring historical high resistance zones
Long-term support lines (VAR4-6): Identifying historical low support zones
EMA21 smoothing is applied to eliminate short-term fluctuations
Dynamic Capital Activity Engine
Proprietary VARD volatility algorithm:
VARD = EMA
Automatically amplifies volatility sensitivity by 10x when price approaches the safety margin (VARA×1.35), precisely capturing abnormal main capital movements
Capital Inflow Trigger Mechanism
Capital entry signals require simultaneous fulfillment of:
Price touching 30-day low zone (VARE)
Capital activity breaking recent peaks (VARF)
Weighted capital flow verified through triple EMA:
Capital Entry = EMA / 618
Visualization:
Green histogram: Continuous main capital inflow
Red histogram: Abnormal daily capital movement intensity
Column height intuitively displays capital strength
Application Scenarios:
Consecutive green columns → Main capital accumulation at bottom
Sudden expansion of red columns → Abnormal main capital rush
Continuous fluctuations near zero axis → Main capital washing phase
Core Value:
Provides 1-3 trading days early warning of main capital movements, suitable for:
Medium/long-term investors identifying main capital accumulation zones
Short-term traders capturing abnormal main capital breakouts
Risk control avoiding main capital distribution phases
Parameter Notes: Default parameters are optimized through historical A-share market backtesting. Users can adjust cycle parameters according to different market characteristics (suggest extending cycles by 20% for European/American markets).
Formula Features:
Multi-timeframe weighted synthesis technology
Dynamic sensitivity adjustment mechanism
Main capital activity intensity quantification
Early warning function for capital movements
Suitable Markets:
Stocks, futures, cryptocurrencies and other financial markets with obvious main capital characteristics.
指标名称:主力资金进出监控器
指标描述:
本指标通过多周期复合加权算法,精准捕捉主力资金在关键价格区域的进出动向。核心逻辑基于三大维度构建:
多周期压力/支撑体系
通过500日/250日/90日三重时间框架,分别计算:
长期压力线(VAR1-3):监控历史高位阻力区
长期支撑线(VAR4-6):识别历史低位承接区
采用EMA21平滑处理,消除短期波动干扰
动态资金活跃度引擎
独创VARD波动率算法:
当价格接近安全边际(VARA×1.35)时自动放大波动敏感度10倍,精准捕捉主力异动
资金进场触发机制
资金入场信号需同时满足:
价格触及30日最低区域(VARE)
资金活跃度突破近期峰值(VARF)
通过三重EMA验证的加权资金流:
资金入场 = EMA / 618
可视化呈现:
绿色柱状图:主力资金持续流入
红色柱状图:当日资金异动量级
柱体高度直观显示资金强度
使用场景:
绿色柱体连续出现 → 主力底部吸筹
红色柱体突然放大 → 主力异动抢筹
零轴附近持续波动 → 主力洗盘阶段
核心价值:
提前1-3个交易日预警主力资金动向,适用于:
中长线投资者识别主力建仓区间
短线交易者捕捉主力异动突破
风险控制规避主力出货阶段
参数说明:默认参数经A股历史数据回测优化,用户可根据不同市场特性调整周期参数(建议欧美市场延长周期20%)
Trinity Multi-Timeframe MA TrendOriginal script can be found here: {Multi-Timeframe Trend Analysis } www.tradingview.com
1. all credit the original author www.tradingview.com
2. why change this script:
- added full transparency function to each EMA
- changed to up and down arrows
- change the dashboard to be able to resize and reposition
How to Use This Indicator
This indicator, "Trinity Multi-Timeframe MA Trend," is designed for TradingView and helps visualize Exponential Moving Average (EMA) trends across multiple timeframes. It plots EMAs on your chart, fills areas between them with directional colors (up or down), shows crossover/crossunder labels, and displays a dashboard table summarizing EMA directions (bullish ↑ or bearish ↓) for selected timeframes. It's useful for multi-timeframe analysis in trading strategies, like confirming trends before entries.
Configure Settings (via the Gear Icon on the Indicator Title):
Timeframes Group: Set up to 5 custom timeframes (e.g., "5" for 5 minutes, "60" for 1 hour). These determine the multi-timeframe analysis in the dashboard. Defaults: 5m, 15m, 1h, 4h, 5h.
EMA Group: Adjust the lengths of the 5 EMAs (defaults: 5, 10, 20, 50, 200). These are the moving averages plotted on the chart.
Colors (Inline "c"): Choose uptrend color (default: lime/green) and downtrend color (default: purple). These apply to plots, fills, labels, and dashboard cells.
Transparencies Group: Set transparency levels (0-100) for each EMA's plot and fill (0 = opaque, 100 = fully transparent). Defaults decrease from EMA1 (80) to EMA5 (0) for a gradient effect.
Dashboard Settings Group (newly added):
Dashboard Position: Select where the table appears (Top Right, Top Left, Bottom Right, Bottom Left).
Dashboard Size: Choose text size (Tiny, Small, Normal, Large, Huge) to scale the table for better visibility on crowded charts.
Understanding the Visuals:
EMA Plots: Five colored lines on the chart (EMA1 shortest, EMA5 longest). Color changes based on direction: uptrend (your selected up color) if rising, downtrend (down color) if falling.
Fills Between EMAs: Shaded areas between consecutive EMAs, colored and transparent based on the faster EMA's direction and your transparency settings.
Crossover Labels: Arrow labels (↑ for crossover/uptrend start, ↓ for crossunder/downtrend start) appear on the chart at EMA direction changes, with tooltips like "EMA1".
Dashboard Table (top-right by default):
Rows: EMA1 to EMA5 (with lengths shown).
Columns: Selected timeframes (converted to readable format, e.g., "5m", "1h").
Cells: ↑ (bullish/up) or ↓ (bearish/down) arrows, colored green/lime or purple based on trend, with fading transparency for visual hierarchy.
Use this to quickly check alignment across timeframes (e.g., all ↑ in multiple TFs might signal a strong uptrend).
Trading Tips:
Trend Confirmation: Look for alignment where most EMAs in higher timeframes are ↑ (bullish) or ↓ (bearish).
Entries/Exits: Use crossovers on the chart EMAs as signals, confirmed by the dashboard (e.g., enter long if lower TF EMA crosses up and higher TFs are aligned).
Customization: On lower timeframe charts, set dashboard timeframes to higher ones for top-down analysis. Adjust transparencies to avoid chart clutter.
Limitations: This is a trend-following tool; combine with volume, support/resistance, or other indicators. Backtest on historical data before live use.
Performance: Works best on trending markets; may whipsaw in sideways conditions.
EMA & VWAP Precision Overlay📢WELCOME TO FUTURE YOU!
📈 This isn’t your grandma’s moving average script.
This is pure alpha visualization. We're talking 9, 21, 50, and 200 EMAs. Plus VWAP Session AND Anchored VWAP — all dynamically labeled so you know exactly where price is cooking.
🚀 Features:
Toggle lines like a boss
Label everything (or nothing, if you’re into minimalist flexing)
Anchored VWAP for sniper entries (you pick the start)
Labels shift forward so your candles don’t cry
Built for traders who actually care about levels and not just vibes. Whether you’re scalping dog coins or trend-riding BTC, this thing keeps your chart clean, informative, and slightly intimidating.
I use it. It works. You should probably use it too.
If it gives you psychic powers — you're welcome.
If it doesn't — still looks cool.
Average Directional Index + MA (with Fill trend color)Description
This indicator combines the Average Directional Index (ADX) with a configurable moving average (SMA, EMA, RMA, or WMA) and visual fill. It helps traders assess the strength of a trend by highlighting when ADX is above or below its moving average.
When ADX is rising above the MA, it suggests strengthening momentum; when falling below, it indicates weakening momentum. The dynamic green/red fill makes these transitions easy to spot.
Horizontal threshold levels at 20 and 25 are included as key references:
Below 20 → often signals ranging or sideways/consolidation markets.
Crossing above 20 or 25 → may suggest the beginning of a breakout or trend, useful for trend-following strategies.
How to use
Filter out sideways/consolidation phases and focus on breakout or trend-following opportunities when price action coincides with ADX crossing above the 20/25 thresholds.
Customization
ADX length & smoothing.
Moving average type and length.
Adjustable fill transparency.
Optional threshold lines at 20 and 25.
The Best Strategy Template[LuciTech]Hello Traders,
This is a powerful and flexible strategy template designed to help you create, backtest, and deploy your own custom trading strategies. This template is not a ready-to-use strategy but a framework that simplifies the development process by providing a wide range of pre-built features and functionalities.
What It Does
The LuciTech Strategy Template provides a robust foundation for building your own automated trading strategies. It includes a comprehensive set of features that are essential for any serious trading strategy, allowing you to focus on your unique trading logic without having to code everything from scratch.
Key Features
The LuciTech Strategy Template integrates several powerful features to enhance your strategy development:
•
Advanced Risk Management: This includes robust controls for defining your Risk Percentage per Trade, setting a precise Risk-to-Reward Ratio, and implementing an intelligent Breakeven Stop-Loss mechanism that automatically adjusts your stop to the entry price once a specified profit threshold is reached. These elements are crucial for capital preservation and consistent profitability.
•
Flexible Stop-Loss Options: The template offers adaptable stop-loss calculation methods, allowing you to choose between ATR-Based Stop-Loss, which dynamically adjusts to market volatility, and Candle-Based Stop-Loss, which uses structural price points from previous candles. This flexibility ensures the stop-loss strategy aligns with diverse trading styles.
•
Time-Based Filtering: Optimize your strategy's performance by restricting trading activity to specific hours of the day. This feature allows you to avoid unfavorable market conditions or focus on periods of higher liquidity and volatility relevant to your strategy.
•
Customizable Webhook Alerts: Stay informed with advanced notification capabilities. The template supports sending detailed webhook alerts in various JSON formats (Standard, Telegram, Concise Telegram) to external platforms, facilitating real-time monitoring and potential integration with automated trading systems.
•
Comprehensive Visual Customization: Enhance your analytical clarity with extensive visual options. You can customize the colors of entry, stop-loss, and take-profit lines, and effectively visualize market inefficiencies by displaying and customizing Fair Value Gap (FVG) boxes directly on your chart.
How It Does It
The LuciTech Strategy Template is meticulously crafted using Pine Script, TradingView's powerful and expressive programming language. The underlying architecture is designed for clarity and modularity, allowing for straightforward integration of your unique trading signals. At its core, the template operates by taking user-defined entry and exit conditions and then applying a sophisticated layer of risk management, position sizing, and trade execution logic.
For instance, when a longCondition or shortCondition is met, the template dynamically calculates the appropriate position size. This calculation is based on your specified risk_percent of equity and the stop_distance (the distance between your entry price and the calculated stop-loss level). This ensures that each trade adheres to your predefined risk parameters, a critical component of disciplined trading.
The flexibility in stop-loss calculation is achieved through a switch statement that evaluates the sl_type input. Whether you choose an ATR-based stop, which adapts to market volatility, or a candle-based stop, which uses structural price points, the template seamlessly integrates these methods. The ATR calculation itself is further refined by allowing various smoothing methods (RMA, SMA, EMA, WMA), providing granular control over how volatility is measured.
Time-based filtering is implemented by comparing the current bar's time with user-defined start_hour, start_minute, end_hour, and end_minute inputs. This allows the strategy to activate or deactivate trading during specific market sessions or periods of the day, a valuable tool for optimizing performance and avoiding unfavorable conditions.
Furthermore, the template incorporates advanced webhook alert functionality. When a trade is executed, a customizable JSON message is formatted based on your webhook_format selection (Standard, Telegram, or Concise Telegram) and sent via alert function. This enables seamless integration with external services for real-time notifications or even automated trade execution through third-party platforms.
Visual feedback is paramount for understanding strategy behavior. The template utilizes plot and fill functions to clearly display entry prices, stop-loss levels, and take-profit targets directly on the chart. Customizable colors for these elements, along with dedicated options for Fair Value Gap (FVG) boxes, enhance the visual analysis during backtesting and live trading, making it easier to interpret the strategy's actions.
How It's Original
The LuciTech Strategy Template distinguishes itself in the crowded landscape of TradingView scripts through its unique combination of integrated, advanced risk management features, highly flexible stop-loss methodologies, and sophisticated alerting capabilities, all within a user-friendly and modular framework. While many templates offer basic entry/exit signal integration, LuciTech goes several steps further by providing a robust, ready-to-use infrastructure for managing the entire trade lifecycle once a signal is generated.
Unlike templates that might require users to piece together various risk management components or code complex stop-loss logic from scratch, LuciTech offers these critical functionalities out-of-the-box. The inclusion of dynamic position sizing based on a user-defined risk percentage, a configurable risk-to-reward ratio, and an intelligent breakeven mechanism significantly elevates its utility. This comprehensive approach to capital preservation and profit targeting is a cornerstone of professional trading and is often overlooked or simplified in generic templates.
Furthermore, the template's provision for multiple stop-loss calculation types—ATR-based for volatility adaptation, and candle-based for structural support/resistance—demonstrates a deep understanding of diverse trading strategies. The underlying code for these calculations is already implemented, saving developers considerable time and effort. The subtle yet powerful inclusion of FVG (Fair Value Gap) related inputs also hints at advanced price action concepts, offering a sophisticated layer of analysis and execution that is not commonly found in general-purpose templates.
The advanced webhook alerting system, with its support for various JSON formats tailored for platforms like Telegram, showcases an originality in catering to the needs of modern, automated trading setups. This moves beyond simple TradingView pop-up alerts, enabling seamless integration with external systems for real-time trade monitoring and execution. This level of external connectivity and customizable data output is a significant differentiator.
In essence, the LuciTech Strategy Template is original not just in its individual features, but in how these features are cohesively integrated to form a powerful, opinionated, yet highly adaptable system. It empowers traders to focus their creative energy on developing their core entry/exit signals, confident that the underlying framework will handle the complexities of risk management, trade execution, and external communication with precision and flexibility. It's a comprehensive solution designed to accelerate the development of robust and professional trading strategies.
How to Modify the Logic to Apply Your Strategy
The LuciTech Strategy Template is designed with modularity in mind, making it exceptionally straightforward to integrate your unique trading strategy logic. The template provides a clear separation between the core strategy management (risk, position sizing, exits) and the entry signal generation. This allows you to easily plug in your own buy and sell conditions without altering the robust underlying framework.
Here’s a step-by-step guide on how to adapt the template to your specific trading strategy:
1.
Locate the Strategy Logic Section:
Open the Pine Script editor in TradingView and navigate to the section clearly marked with the comment //Strategy Logic Example:. This is where the template’s placeholder entry conditions (a simple moving average crossover) are defined.
2.
Define Your Custom Entry Conditions:
Within this section, you will find variables such as longCondition and shortCondition. These are boolean variables that determine when a long or short trade should be initiated. Replace the existing example logic with your own custom buy and sell conditions. Your conditions can be based on any combination of indicators, price action patterns, candlestick formations, or other market analysis techniques. For example, if your strategy involves a combination of RSI and MACD, you would define longCondition as (rsi > 50 and macd_line > signal_line) and shortCondition as (rsi < 50 and macd_line < signal_line).
3.
Leverage the Template’s Built-in Features:
Once your longCondition and shortCondition are defined, the rest of the template automatically takes over. The integrated risk management module will calculate the appropriate position size based on your Risk % input and the chosen Stop Loss Type. The Risk:Reward ratio will determine your take-profit levels, and the Breakeven at R feature will manage your stop-loss dynamically. The time filter (Use Time Filter) will ensure your trades only occur within your specified hours, and the webhook alerts will notify you of trade executions.
Inside Bar Breakout Indicator V2 by Tek Tek Teknik AnalizThis indicator contains 7 parameter RSIs (relative power index). (It can be changed from the code because it is open source.)
Inside follows the formation of the bar and the price is under the EMA line, if the RSI rises above 70, it starts to produce a signal for sales with a red colored label. (Not every signal does not represent net sales. It is only for aid purposes!)
If the price is above the EMA line and the RSI goes below the value of 30, the green colored label starts to produce purchase signals. (Not every signal does not represent clearly. It is only for help!)
Youtube channel: Tek Tek Teknik Analiz
X : @TTTeknikanaliz
Turtle Trading by the Nato FinancialsFor the Turtle-style breakout system (with ATR stop, 20-day breakout, 10-day exit, and filters like ADX/volume), I will share the win rates once testing is done.
SATHYA SMA SignalThis indicator overlays 20, 50, and 200 Simple Moving Averages (SMAs) on the chart. It generates bullish signals when the 20 SMA crosses above the 200 SMA before the 50 SMA, with both above 200 SMA. Bearish signals occur when the 20 SMA crosses below the 200 SMA before the 50 SMA, with both below 200 SMA. Signals appear as distinct triangles on the chart, helping traders identify trend reversals based on systematic SMA crossovers and order of crossing.
SATHYA SMA Signal)This indicator overlays 20, 50, and 200 Simple Moving Averages (SMAs) on the chart. It generates bullish signals when the 20 SMA crosses above the 200 SMA before the 50 SMA, with both above 200 SMA. Bearish signals occur when the 20 SMA crosses below the 200 SMA before the 50 SMA, with both below 200 SMA. Signals appear as distinct triangles on the chart, helping traders identify trend reversals based on systematic SMA crossovers and order of crossing.
Flux Power Dashboard (Updated and Renamed)Flux Power Dashboard is a compact market-state heads-up display for TradingView. It blends trend, momentum, and volume-flow into a single on-chart panel with color-coded cues and minimal lag. You get:
Clean visual trend via fast/slow MA with slope/debounce filters
MACD state and most recent cross (with “freshness” tint)
OBV confirmation and gating to reduce noise
Session awareness (Asia/London/New York + pre-sessions + overlap)
Optional HTF Regime row and regime gate to align signals to higher-timeframe bias
Context from VIX/VXN (volatility regime)
A single Flux Score (0–100) as a top-level read
It is deliberately “dashboard-first”: fast to read, consistent between symbols/timeframes, and designed to limit overtrading in chop.
What it can do (capabilities)
Signal gating: You can require multiple pillars to agree (Trend, MACD, OBV) before a “strong” bias is shown.
Debounced trend: Uses slope + confirmation bars to avoid flip-flopping.
Session presets: Auto-adjust the minimum confirmation bars by session (e.g., NY vs London vs Asia) to better match liquidity/volatility.
MACD presets: Quick switch between Scalp / Classic / Slow or roll your own custom speeds.
OBV confirmation: Volume flow must agree for trend/entries to “count” (optional).
HTF Regime awareness: Shows the higher-timeframe backdrop and (optionally) gates signals so you don’t fight the dominant trend.
Volatility context: VIX/VXN auto-colored cells based on your thresholds.
Top-center Session Title: Broadcasts the active session (or Overlap) with a matched background color.
Customizable UI: Column fonts, params font, transparency, dashboard corner, marker styles, colors, widths—tune it to your chart.
Practical use: Start with Flux Score + Summary for a snapshot, confirm with Trend & MACD, check OBV agreement (implicit in signal strength), glance at Regime to avoid counter-trend trades, and use Session + VIX/VXN for timing and risk context.
How it avoids common pitfalls
Repaint-aware: “Confirm on Close” can be enabled to read prior bar states, reducing intrabar noise.
Auto MA sanity: If fast ≥ slow length, it auto-swaps under the hood to keep calculations valid.
Debounce & confirm: Trend flips only after X bars satisfy conditions, cutting false flips in chop.
Freshness tint: New Cross/Signal rows tint slightly brighter for a few bars, so you can spot recency at a glance.
Every line of the dashboard (what it shows, how it’s colored)
Flux Score
What: Composite 0–100 built from three pillars: Trend (40%), MACD (30%), OBV (30%).
Read: ≥70 Bullish, ≤30 Bearish, else Neutral.
Use: Quick “state of play” gauge—stronger alignment pushes the score toward extremes.
Regime (optional row)
What: Higher-timeframe (your Regime TF) backdrop using the same MA pair with HTF slope/ATR buffer.
Values: Bull / Bear / Range.
Gate (optional): If Regime Gate is ON, Trend/Signals only go directional when HTF agrees.
Summary
What: One-line narrative combining the three pillars: MACD (up/down/flat), OBV (up/down/flat), Trend (up/down/flat).
Use: Human-readable cross-check; should rhyme with Flux Score.
Trend
What: Debounced MA relationship on the current chart.
Strict: needs fast > slow and slow rising (mirror for down) + slope debounce + confirmation bars.
Lenient: allows fast > slow or slow rising (mirror for down) with the same debounce/confirm.
Color: Green = UP, Red = DOWN, Gray = FLAT.
Use: Your structural bias on the trading timeframe.
MACD
What: Current MACD line vs signal, using your selected preset (or custom).
Values: Bull (line above), Bear (below), Flat (equal/indeterminate).
Color: Green/Red/Gray.
Cross
What: Most recent MACD cross and how many bars ago it occurred (e.g., “MACD XUP | 3 bars”).
Freshness: If the cross happened within Fresh Signal Tint bars, the cell brightens slightly.
Use: Timing helper for inflection points.
Signal
What: Latest directional shift (from short-bias to long-bias or vice versa) and age in bars.
Strength:
Strong = Trend + MACD + OBV all align
Weak = partial alignment (e.g., Trend + MACD, or Trend + OBV)
Color: Green for long bias, Red for short bias; fresh signals tint brighter.
Use: Action cue—treat Strong as higher quality; Weak as situational.
MA
What: Your slow MA type and length, plus slope direction (“up”/“down”).
Use: Context even when Trend is FLAT; slope often turns before full trend flips.
Session
What: Current market session by Eastern Time: New York / London / Asia, Pre- windows, Overlap, or Off-hours.
Logic: If ≥2 main sessions are active, shows Overlap (and grays the top title background).
Use: Timing and expectations for liquidity/volatility; also drives session-based confirmation presets if enabled.
VIX
What: Real-time CBOE:VIX on your chosen TF.
Auto-color (if on):
Calm (< Calm) → Green
Watch (< Watch) → Yellow
Elevated (< Elevated) → Orange
Very High (≥ Elevated) → Red
Use: Equity market–wide risk mood; higher = bigger moves, lower = quieter.
VXN
What: CBOE:VXN (Nasdaq volatility index) on your chosen TF.
Auto-color thresholds like VIX.
Use: Tech-heavy risk mood; helpful for growth/QQQ/NDX names.
Footer (params row, bottom-right)
What: Key live settings so you always know the context:
P= Trend Confirmation Bars
O= OBV Confirmation Bars
Strict/Lenient (trend mode)
MACD preset (or “Custom”)
swap if MA lengths were auto-swapped for validity
Regime gate if enabled
Candles for clarity
Use: Quick integrity check when comparing charts/screenshots or changing presets.
Recommended workflow
Start at Flux Score & Summary → snapshot of alignment.
Check Trend (color) and MACD (Bull/Bear).
Look at Signal (Strong vs Weak, and age).
Glance at Regime (and use gate if you’re trend-following).
Use Session + VIX/VXN to adjust expectations (breakout vs mean-revert, risk sizing, patience).
Keep Confirm on Close ON when you want stability; turn it OFF for faster (but noisier) reads.
Notes & limitations
Not advice: This is an informational tool; always combine with your own risk rules.
Repaint vs responsiveness: With “Confirm on Close” OFF you’ll see faster state changes but may get more churn intrabar.
Presets matter: Scalp MACD reacts fastest; Slow reduces whipsaw. Choose for your timeframe.
Session windows depend on the strings you set; adjust if your broker’s feed or DST handling needs tweaks.
Relative Strength vs. Benchmark (相對強度)This "Relative Strength vs. Benchmark" indicator helps you see a stock's true performance against a benchmark (like the S&P 500) at a glance. By calculating the price ratio between the two, it strips away the overall market noise, allowing you to focus on identifying true market leaders and underperforming laggards.
How It Works
Core Formula: Relative Strength = Stock Price / Benchmark Index Price
A Rising Line: Means the stock is outperforming the benchmark.
A Falling Line: Means the stock is underperforming the benchmark.
The indicator also includes a Moving Average (MA) of the Relative Strength line itself. This MA helps to confirm the trend of relative strength and filter out short-term noise.
How to Use
Find Market Leaders: When the market is in an uptrend or consolidating, look for stocks whose RS line is breaking out to new highs.
Avoid Laggards: If the RS line is consistently below its moving average or making new lows, the stock is significantly underperforming the market and should be treated with caution.
Trend Change Signals: A cross of the RS line above its MA can be seen as a signal that a new trend of relative outperformance is beginning. A cross below suggests the trend is weakening.
Features & Settings
Customizable Benchmark: You can change the default benchmark from TWSE:TSE to any symbol you need, such as SP:SPX for the S&P 500 or NASDAQ:NDX for the Nasdaq 100.
Adjustable MA Length: Customize the period for the RS Moving Average to fit your trading style (short-term or long-term).
Visual Toggle: Easily turn the colored background fill on or off according to your preference.
Hope you find this tool helpful in your analysis!
Hybrid Trend MAHybrid Trend MA (Pine Script v6)
This indicator combines Exponential Moving Averages (EMA) and Arnaud Legoux Moving Averages (ALMA) into a single hybrid trend-following tool. It is designed to help traders visualize medium- and long-term trend directions while also capturing smoother short-term signals.
Key Features:
EMA Trend Structure
Three EMAs are plotted (lengths: 38, 62, 200).
Each EMA line changes color depending on whether it is rising or falling relative to the others:
Red → Strong uptrend alignment.
Lime → Strong downtrend alignment.
Aqua → Neutral or transition.
The indicator also fills the space between EMA zones with silver shading to highlight trend channels.
ALMA Trend Confirmation
Two ALMA curves are plotted (lengths: 13, 50).
Similar rising/falling logic is applied to color them:
Red → Bullish alignment and rising.
Green → Bearish alignment and falling.
Cyan → Neutral or uncertain trend.
A cross marker is plotted whenever the fast and slow ALMA lines cross, which may serve as an entry/exit confirmation.
Customizable Smoothing
The smoothe setting controls how many bars are checked to confirm whether an EMA or ALMA is rising/falling, helping reduce noise.
How to Use:
Trend Identification: The EMA set shows the larger market structure. When all EMAs align in direction and color, the trend is stronger.
Entry & Exit Confirmation: The ALMA cross signals can be used to refine entries and exits within the broader EMA trend.
Dynamic Visuals: Colored EMAs + ALMAs make it easy to distinguish bullish, bearish, and ranging conditions at a glance.
QTrade Golden, Bronze & Death, Bubonic Cross AlertsThis indicator highlights key EMA regime shifts with simple, color-coded triangles:
- Golden / Death Cross — 50 EMA crossing above/below the 200 EMA.
- Bronze / Bubonic Cross — 50 EMA crossing above/below the 100 EMA.
- Early-Warning Proxy — tiny triangles for the 4 EMA vs. 200 EMA (4↑200 and 4↓200). These often fire before the 50/100 and 50/200 crosses.
No text clutter on the chart—just triangles. Colors: gold (50↑200), red (50↓200), darker-yellow bronze (50↑100), burgundy (50↓100), turquoise (4↑200), purple (4↓200).
What it tells you (in order of warning → confirmation)
- First warning: 4 EMA crosses the 200 EMA (proxy for price shifting around the 200 line).
- Second warning: 50 EMA crosses the 100 EMA (Bronze/Bubonic).
- Confirmation: 50 EMA crosses the 200 EMA (Golden/Death).
Alerts included
- Golden Cross (50↑200) and Death Cross (50↓200)
- Bronze Cross (50↑100) and Bubonic Cross (50↓100)
- 4 EMA vs. 200 EMA crosses (up & down) — early-warning proxy
- Price–100 EMA events (touch/cross, if enabled in settings)
EMRVA//@version=5
indicator("EMRVA", overlay=true)
// === الإعدادات ===
emaLength = input.int(200, "EMA Length")
rsiLength = input.int(14, "RSI Length")
volLength = input.int(20, "Volume MA Length")
adxLength = input.int(14, "ADX Length")
adxFilter = input.int(20, "ADX Minimum Value") // فلتر الاتجاه
// === EMA200 ===
ema200 = ta.ema(close, emaLength)
plot(ema200, color=color.orange, linewidth=2, title="EMA 200")
// === MACD ===
macdLine = ta.ema(close, 12) - ta.ema(close, 26)
signalLine = ta.ema(macdLine, 9)
// === RSI ===
rsi = ta.rsi(close, rsiLength)
// === Volume Confirmation ===
volMA = ta.sma(volume, volLength)
volCond = volume > volMA
// === ADX Manual Calculation ===
upMove = high - high
downMove = low - low
plusDM = na(upMove) ? na : (upMove > downMove and upMove > 0 ? upMove : 0)
minusDM = na(downMove) ? na : (downMove > upMove and downMove > 0 ? downMove : 0)
tr = ta.rma(ta.tr, adxLength)
plusDI = 100 * ta.rma(plusDM, adxLength) / tr
minusDI = 100 * ta.rma(minusDM, adxLength) / tr
dx = 100 * math.abs(plusDI - minusDI) / (plusDI + minusDI)
adx = ta.rma(dx, adxLength)
adxCond = adx > adxFilter
// === شروط الدخول والخروج ===
longCond = close > ema200 and macdLine > signalLine and rsi > 50 and volCond and adxCond
shortCond = close < ema200 and macdLine < signalLine and rsi < 50 and volCond and adxCond
// === منطق الإشارة عند بداية الاتجاه فقط ===
var inLong = false
var inShort = false
buySignal = longCond and not inLong
sellSignal = shortCond and not inShort
if buySignal
inLong := true
inShort := false
if sellSignal
inShort := true
inLong := false
// === إشارات ثابتة ===
plotshape(buySignal, title="Buy Signal", location=location.belowbar,
color=color.green, style=shape.labelup, text="BUY")
plotshape(sellSignal, title="Sell Signal", location=location.abovebar,
color=color.red, style=shape.labeldown, text="SELL")
// === تنبيهات ===
alertcondition(buySignal, title="Buy Alert", message="📈 إشارة شراء مؤكدة مع فلتر ADX")
alertcondition(sellSignal, title="Sell Alert", message="📉 إشارة بيع مؤكدة مع فلتر ADX")
// === رسم ADX للتأكيد ===
plot(adx, title="ADX", color=color.blue)
hline(adxFilter, "ADX Filter", color=color.red)
DrFX Reversal Algo - MACD-RSI System with Dynamic Zone Filtering**DrFX Reversal Algo** is a sophisticated reversal detection system that combines MACD momentum analysis with RSI confirmation and dynamic support/resistance zone filtering. This indicator employs advanced mathematical filtering techniques to identify high-probability reversal points while minimizing false signals through intelligent zone-based filtering.
**Core Innovation & Originality**
This system uniquely integrates four key analytical components:
1. **Enhanced MACD Engine** - Customizable fast (20), slow (50), and signal (12) lengths with crossover/crossunder detection optimized for reversal identification
2. **RSI Power Classification** - 14-period RSI used to classify signal strength and trend bias, distinguishing between "Strong" and regular signals
3. **Kalman-Filtered Dynamic Zones** - Advanced mathematical smoothing of support/resistance levels using Kalman filter algorithms for noise reduction
4. **Gradient-Based Visual System** - Power-weighted bar coloring that visualizes trend strength using MACD histogram and RSI signal intensity
**System Architecture & Functionality**
**Signal Generation Methodology:**
The core algorithm detects MACD line crossovers above and below the signal line, then applies RSI-based classification. When RSI signal (RSI-50) is positive during bullish MACD crossovers, the system generates "Strong Buy" signals. When RSI signal is negative or neutral, it produces regular "Buy" signals. The inverse logic applies for sell signals.
**Dynamic Zone Calculation:**
Support and resistance zones are calculated using a multi-step process:
1. **Volatility Bands**: ATR-based upper/lower bands using (high+low)/2 ± ATR * multiplier
2. **Precise Zone Definition**: Integration of 20-period highest/lowest calculations with volatility bands
3. **Kalman Filter Smoothing**: Advanced noise reduction using configurable Q (0.01) and R (0.1) parameters
4. **Zone Validation**: Real-time adjustment based on price action and volatility changes
**Kalman Filter Implementation:**
The system employs a custom Kalman filter function for zone smoothing:
```
kf_k = kf_p / (kf_p + kf_r)
kf_x = kf_k * input + (1 - kf_k) * previous_estimate
kf_p = (1 - kf_k) * kf_p + kf_q
```
This mathematical approach reduces zone boundary noise while maintaining responsiveness to genuine support/resistance level changes.
**Unique Visual Features**
**Power-Based Gradient System:**
Bar coloring utilizes a sophisticated gradient calculation based on MACD histogram power (absolute value) and RSI signal strength. The system creates dynamic color transitions:
- **Bullish Gradient**: Green spectrum (0-255 intensity) based on histogram power
- **Bearish Gradient**: Red spectrum (0-255 intensity) based on histogram power
- **Consolidation**: Mixed gradient indicating uncertain market conditions
**Dynamic Zone Visualization:**
- **Support Zones**: Blue-filled areas between smoothed support boundaries
- **Resistance Zones**: Red-filled areas between smoothed resistance boundaries
- **Zone Adaptation**: Real-time boundary adjustment based on volatility and price action
**Signal Classification System**
**Signal Strength Hierarchy:**
1. **Strong Buy**: MACD bullish crossover + RSI signal > 0 (above 50-line)
2. **Regular Buy**: MACD bullish crossover + RSI signal ≤ 0 (below 50-line)
3. **Strong Sell**: MACD bearish crossover + RSI signal < 0 (below 50-line)
4. **Regular Sell**: MACD bearish crossover + RSI signal ≥ 0 (above 50-line)
**Optional Zone Filtering:**
When enabled, the system only displays signals when:
- Buy signals: Price above smoothed support zone end
- Sell signals: Price below smoothed resistance zone start
**Usage Instructions**
**Primary Signal Interpretation:**
- **Large Green Triangles**: Strong buy signals with RSI confirmation above 50
- **Small Green Triangles**: Regular buy signals with RSI below 50
- **Large Red Triangles**: Strong sell signals with RSI confirmation below 50
- **Small Red Triangles**: Regular sell signals with RSI above 50
**Zone Analysis:**
- **Blue Zones**: Dynamic support areas where buying interest may emerge
- **Red Zones**: Dynamic resistance areas where selling pressure may increase
- **Zone Breaks**: Price movement outside zones indicates potential trend continuation
**Bar Color Interpretation:**
- **Bright Green**: Strong bullish momentum (high MACD histogram power + positive RSI)
- **Dark Green**: Moderate bullish momentum
- **Bright Red**: Strong bearish momentum (high MACD histogram power + negative RSI)
- **Dark Red**: Moderate bearish momentum
- **Mixed Colors**: Consolidation or uncertain trend direction
**Optimal Usage Strategies:**
1. **Reversal Trading**: Focus on signals occurring near zone boundaries
2. **Confirmation Trading**: Use zone filter to reduce false signals in trending markets
3. **Momentum Trading**: Prioritize "Strong" signals with bright gradient bar coloring
4. **Multi-Timeframe**: Combine with higher timeframe trend analysis for context
**Parameter Customization**
**MACD Settings:**
- **Fast Length (20)**: Shorter periods increase sensitivity
- **Slow Length (50)**: Longer periods reduce noise
- **Signal Smoothing (12)**: Affects crossover signal timing
**Support/Resistance Settings:**
- **Volatility Period (10)**: ATR calculation period for zone width
- **Multiplier (5.0)**: Zone expansion factor based on volatility
**Visual Settings:**
- **Gradient Range (2000)**: Controls color intensity scaling
- **Zone Filtering**: Enables/disables signal filtering based on zone position
**Advanced Features**
**Alert System:**
Comprehensive alert functionality with detailed messages including symbol, timeframe, current price, and signal type. Separate enable/disable options for long and short alerts.
**Mathematical Precision:**
The Kalman filter implementation provides superior noise reduction compared to simple moving averages while maintaining responsiveness to genuine market structure changes.
**Important Considerations**
This system works optimally in markets with clear support/resistance levels and moderate volatility. The Kalman filter smoothing may introduce slight lag during rapid market movements. Strong signals generally provide higher probability setups but may be less frequent than regular signals.
The algorithm combines established techniques (MACD, RSI) with advanced filtering and zone detection methodologies. The integration of multiple confirmation methods helps reduce false signals while maintaining sensitivity to genuine reversal opportunities.
**Disclaimer**: This indicator is designed for educational and analytical purposes. Past performance does not guarantee future results. The system's effectiveness varies across different market conditions and timeframes. Always implement proper risk management and consider multiple confirmation methods before making trading decisions.
Dextor PivotThis is Simple Indicator which Show previous Month,Week,Day -High, Avg,Low, Along With EMA Crossovers
Moving Average SlopeA simple tool that allows you to choose from multiple types of moving averages (e.g. WMA, EMA, SMA, HMA) and define the MA period, and lookback period for slope calculation.
Anrazzi - EMAs/ATR - 1.0.2The Anrazzi – EMAs/ATR indicator is a multi-purpose overlay designed to help traders track trend direction and market volatility in a single clean tool.
It plots up to six customizable moving averages (MAs) and an Average True Range (ATR) value directly on your chart, allowing you to quickly identify market bias, dynamic support/resistance, and volatility levels without switching indicators.
This script is ideal for traders who want a simple, configurable, and efficient way to combine trend-following signals with volatility-based position sizing.
📌 Key Features
Six Moving Averages (MA1 → MA6)
Toggle each MA on/off individually
Choose between EMA or SMA for each
Customize length and color
Perfect for spotting trend direction and pullback zones
ATR Display
Uses Wilder’s ATR formula (ta.rma(ta.tr(true), 14))
Can be calculated on current or higher timeframe
Adjustable multiplier for position sizing (e.g., 1.5× ATR stops)
Displays cleanly in the bottom-right corner
Custom Watermark
Displays symbol + timeframe in top-right
Adjustable color and size for streamers, screenshots, or clear charting
Compact UI
Organized with group and inline inputs for quick configuration
Lightweight and optimized for real-time performance
⚙️ How It Works
MAs: The script uses either ta.ema() or ta.sma() to compute each moving average based on the user-selected type and length.
ATR: The ATR is calculated using ta.rma(ta.tr(true), 14) (Wilder’s smoothing), and optionally scaled by a multiplier for easier use in risk management.
Tables: ATR value and watermark are displayed using table.new() so they stay anchored to the screen regardless of zoom level.
📈 How to Use
Enable the MAs you want to track and adjust their lengths, type, and colors.
Enable ATR if you want to see volatility — optionally select a higher timeframe for broader context.
Use MAs to:
Identify overall trend direction (e.g. price above MA20 = bullish)
Spot pullback zones for entries
See when multiple MAs cluster together as support/resistance zones
Use ATR value to:
Size your stop-loss dynamically (e.g. stop = entry − 1.5×ATR)
Detect volatility breakouts (ATR spikes = market expansion)
🎯 Recommended For
Day traders & swing traders
Trend-following & momentum strategies
Volatility-based risk management
Traders who want a clean, all-in-one dashboard
EMRV101//@version=5
indicator("EMA200 + MACD + RSI + Volume Confirmation + Alerts", overlay=true)
// === الإعدادات ===
emaLength = input.int(200, "EMA Length")
rsiLength = input.int(14, "RSI Length")
volLength = input.int(20, "Volume MA Length")
// === EMA200 ===
ema200 = ta.ema(close, emaLength)
plot(ema200, color=color.orange, linewidth=2, title="EMA 200")
// === MACD ===
macdLine = ta.ema(close, 12) - ta.ema(close, 26)
signalLine = ta.ema(macdLine, 9)
// === RSI ===
rsi = ta.rsi(close, rsiLength)
// === Volume Confirmation ===
volMA = ta.sma(volume, volLength)
volCond = volume > volMA
// === شروط الدخول والخروج ===
longCond = close > ema200 and macdLine > signalLine and rsi > 50 and volCond
shortCond = close < ema200 and macdLine < signalLine and rsi < 50 and volCond
// === منطق الإشارة عند بداية الاتجاه فقط ===
var inLong = false
var inShort = false
buySignal = longCond and not inLong
sellSignal = shortCond and not inShort
if buySignal
inLong := true
inShort := false
if sellSignal
inShort := true
inLong := false
// === إشارات ثابتة ===
plotshape(buySignal, title="Buy Signal", location=location.belowbar,
color=color.green, style=shape.labelup, text="BUY")
plotshape(sellSignal, title="Sell Signal", location=location.abovebar,
color=color.red, style=shape.labeldown, text="SELL")
// === تنبيهات ===
alertcondition(buySignal, title="Buy Alert", message="📈 إشارة شراء مؤكدة")
alertcondition(sellSignal, title="Sell Alert", message="📉 إشارة بيع مؤكدة")
Estrategia Cava - IndicadorSimplified Criteria of the Cava Strategy
Below is the logic behind the Cava strategy, broken down into conditions for a buy operation:
Variables and Necessary Data
EMA 55: 55-period Exponential Moving Average.
MACD: Two lines (MACD Line and Signal Line) and the histogram.
RSI: Relative Strength Index.
Stochastic: Two lines (%K and %D).
Closing Price: The closing price of the current period.
Previous Closing Price: The closing price of the previous period.
Entry Logic (Buy Operation)
Trend Condition (EMA 55):
The price must be above the EMA 55.
The EMA 55 must have a positive slope (or at least not a negative one). This can be checked if the current EMA 55 is greater than the previous period's EMA 55.
Momentum Conditions (Oscillators):
MACD: The MACD line must have crossed above the signal line. For a strong signal, this cross should occur near or above the zero line.
RSI: The RSI must have exited the "oversold" zone (generally below 30) and be rising.
Stochastic: The Stochastic must have crossed upwards from the "oversold" zone (generally below 20).
Confirmation Condition (Price):
The current closing price must be higher than the previous closing price. This confirms the strength of the signal.
Position Management (Exit)
Take Profit: An exit can be programmed at a predetermined price target (e.g., the next resistance level) or when the momentum of the move begins to decrease.
Stop Loss: A stop loss should be placed below a significant support level or the entry point to limit losses in case the trade does not evolve as expected. The Cava strategy focuses on dynamic stop-loss management, moving it in the trader's favor as the price moves.
In summary, the strategy is a filtering system. If all conditions are met, the trade is considered high probability. If only some are met, the signal is discarded, and you wait for the next one. It's crucial to understand that discipline and risk management are just as important as the indicators themselves.