Multi EMA Touch Alert (Realtime / Alertcondition)🇺🇸 English Description (for TradingView Publication)
Title: Multi EMA Touch Alert (Realtime / Alertcondition)
This script detects real-time price touches on multiple EMAs and provides clean, reliable alerts through TradingView’s alertcondition system.
It is designed for traders who want fast reactions, minimal chart clutter, and precise touch-based notifications.
Features
• Real-time EMA touch detection (no need to wait for candle close)
• Supports multiple EMAs (default: 10 / 20 / 40 / 80)
• Touch logic works from both above and below
• Clean visual markers that appear only in real-time
• Fully compatible with TradingView’s alert creation panel
• “Any EMA Touch” option for combined alerts
How it works
The script checks whether the current candle’s high–low range intersects each EMA.
When a touch occurs, a small colored marker appears, and the corresponding alertcondition becomes true.
You can set alerts for individual EMAs or for all EMAs at once.
Ideal for scalpers, breakout traders, and anyone who relies on EMA reactions for timing entries.
🇯🇵 日本語説明文(TradingView公開用)
タイトル: Multi EMA Touch Alert(リアルタイム/アラート設定対応)
このスクリプトは、複数のEMAに価格がタッチした瞬間をリアルタイムで検出し、TradingViewのアラート設定画面から自由に通知を作成できるインジケーターです。
チャートをシンプルに保ちながら、必要なタイミングだけ確実にアラートを受け取りたいトレーダー向けに最適化されています。
特徴
• 足確定を待たないリアルタイムタッチ検出
• 複数EMAに対応(初期設定:10 / 20 / 40 / 80)
• 上下どちらからのタッチにも対応
• リアルタイムのみ印を表示し、過去チャートが散らからない
• TradingViewのアラート作成画面で個別・まとめて設定可能
• 「Any EMA Touch」で全EMAを一括監視も可能
動作概要
ローソク足の高値〜安値がEMAに触れた瞬間にタッチ判定が発生し、
リアルタイムで小さなマーカーが表示され、alertconditionがtrueになります。
アラートはEMAごと、または全EMAまとめて設定できます。
スキャルピングや短期トレードで、EMA反応を重視する方に最適です。
אינדיקטורים ואסטרטגיות
Sector Momentum Dashboard (3-1M / 6-1M / 12-1M, Compact)This indicator provides a compact sector‑momentum dashboard designed for ETF rotation and relative strength analysis. It calculates true daily momentum using three institutional lookback windows (3‑1M, 6‑1M, 12‑1M), allowing traders to evaluate short‑term, medium‑term, and long‑term sector leadership. The table ranks major US sector ETFs by momentum, highlights the strongest and weakest performers, and updates dynamically regardless of the chart timeframe. This tool is intended for traders who want a clear, efficient view of sector rotation trends to support tactical allocation, momentum strategies, and market‑strength assessment.
Rolling DrawdownRolling Drawdown, trying to get an auto updating drawdown. work in progress. will edit in future
LogTrend Retest EngineLogTrend Retest Engine (LTRE)
LogTrend Retest Engine (LTRE) is an advanced trend-continuation overlay designed to identify high-probability breakout retests using logarithmic regression , volatility-adjusted deviation bands , and market regime filtering .
Unlike traditional channels or moving averages, LTRE models price behavior in log space , allowing it to adapt naturally to exponential market moves common in crypto, indices, and long-term trends.
🔹 How It Works
Logarithmic Regression Core
Performs linear regression on log-transformed price and time
Produces a structurally accurate trend midline that scales with price growth
Volatility-Adjusted Deviation Bands
Dynamic upper and lower zones based on statistical deviation
ATR weighting expands or contracts bands as volatility changes
Adaptive Lookback (Optional)
Automatically adjusts regression length using volatility pressure
Faster response in high-volatility environments, smoother in consolidation
🔹 Market Regime Detection
LTRE actively filters conditions using:
R² trend strength (trend quality, not just slope)
Volatility compression vs expansion
User-defined minimum trend strength threshold
Signals are disabled during ranging or low-quality conditions .
🔹 Breakout → Retest Signal Logic
LTRE does not chase breakouts.
Signals trigger only when:
1. Price breaks cleanly outside the deviation band
2. Market regime is confirmed as trending
3. Price performs a controlled retest within a user-defined tolerance
BUY
Break above upper band → retest → trend confirmed
SELL
Break below lower band → retest → trend confirmed
This structure is designed to reduce false breakouts and late entries.
🔹 Visual & Projection Tools
Clean midline and deviation bands
Optional filled zones
Optional future trend projection for forward structure planning
On-chart statistics for trend strength and volatility compression
🔹 Best Use Cases
Trend continuation & pullback strategies
Crypto, Forex, Indices, and equities
Works best on 15m and higher timeframes
⚠️ Disclaimer
LTRE is a decision-support tool , not a complete trading system. Always use proper risk management and confirm signals with additional structure, volume, or higher-timeframe context.
Built for traders who wait for structure — not noise.
Cloud Gold TrendTrend Filter (Ichimoku): If the price is above the cloud (Kumo), look only for "Long" signals. If it is below, look only for "Short" signals.
Entry Signal (Bollinger): When the price touches the Lower Band while you are above the Cloud, it could be a great buying point in an uptrend.
Volatility Confirmation: If the Bollinger Bands squeeze within the cloud, get ready for a strong directional move as soon as the price breaks one of the two levels.
Rolling Period Drawdownwork in progress, will edit in future, trying to get an auto updating draw down indicator.
Segment 4h modifiable via inputsSegment 4h modifiable via inputs : pour positionner un segment n'importe ou en modifiant le prix pour la hauteur dans la configuration et déplaçable facilement à la souris temporellement.
4-hour segment modifiable via inputs: to position a segment anywhere by modifying the price for the height in the configuration and easily movable with the mouse in terms of time
Nixxo ATR Stop LossATR that prints stop losses for short or long positions with a table that shows the pip values in each case!
Free cash flow yield (Quarterly)Indicator: Free Cash Flow Yield (Quarterly) — Technical Description
Purpose
This indicator plots Free Cash Flow Yield (FCF Yield) using quarterly fundamentals and optionally adjusts it for dilution. It also computes trailing averages over multiple horizons (in quarters) to give a long-term valuation context.
Data Sources
All fundamentals are pulled from TradingView’s financial dataset using:
request.financial(syminfo.tickerid, , "FQ", barmerge.gaps_on)
Where:
"FQ" = Quarterly frequency
barmerge.gaps_on = keeps values as step-like series (updates only when new quarterly data is available)
Financial fields used:
FREE_CASH_FLOW (FCF)
ENTERPRISE_VALUE (EV)
TOTAL_SHARES_OUTSTANDING
DILUTED_SHARES_OUTSTANDING
Market cap is derived (not pulled directly in this version):
marketCap = totalSharesOutstanding * close
(Only used as a reference in the script; the yield itself is based on EV.)
Core Calculation
1) FCF Yield (Net)
The base yield is:
FCF Yield
(
%
)
=
FCF
Enterprise Value
×
100
FCF Yield(%)=
Enterprise Value
FCF
×100
Implementation detail:
If FCF is na or EV is na or EV == 0, the result is set to na to avoid division errors.
Dilution Adjustment (Optional Series)
2) Dilution Ratio
The script estimates dilution impact using:
dilutionRatio
=
Total Shares Outstanding
Diluted Shares Outstanding
dilutionRatio=
Diluted Shares Outstanding
Total Shares Outstanding
Notes:
If dilutedSharesOutstanding is missing or zero, the ratio becomes na.
3) Diluted FCF Yield
If the ratio indicates dilution (<= 1), yield is scaled down:
FCF Yield Diluted
=
FCF Yield
×
dilutionRatio
FCF Yield Diluted=FCF Yield×dilutionRatio
Else (ratio > 1 or na), the script defaults to the net yield:
FCF Yield Diluted
=
FCF Yield
FCF Yield Diluted=FCF Yield
Practical interpretation:
More dilution → lower ratio → lower diluted yield.
If dilution fields are not reliable for a ticker, the script falls back to the base yield.
Plotting
Two series are shown:
FCF Yield Net: plotted as columns (bars)
FCF Yield Diluted: plotted as an area overlay
This makes it easy to see:
Step changes when new quarter data arrives
Whether dilution meaningfully reduces the yield
Labels (Per-bar)
When fcfYieldDiluted > 0, the script prints the value as a percentage label at the yield level.
Important technical point:
Since fcfYieldDiluted is computed as a number like 8.5 for 8.5%, labels convert to percent format by dividing by 100 before formatting:
str.tostring(fcfYieldDiluted / 100, format.percent)
Rolling History & Averages
1) Rolling storage
The script maintains a rolling array of the most recent 40 quarterly values:
40 quarters ≈ 10 years
Each time a non-NA quarterly yield appears:
It pushes it into the array
If array length exceeds 40, it removes the oldest value
2) Trailing averages (quarter windows)
Averages are computed over the most recent N quarters:
1Q (latest quarter value)
4Q ≈ 1 year
8Q ≈ 2 years
20Q ≈ 5 years
40Q ≈ 10 years
If fewer than N values exist, that average is na.
End-of-chart Summary Label
On the last bar (barstate.islast), the script draws a summary label containing the trailing averages listed above.
Placement logic
The label is positioned slightly to the right of the current bar:
Uses frequencyUnit (estimated number of chart bars per quarter) to offset the label into the future.
frequencyUnit is computed as:
frequencyUnit
≈
Seconds in 12 months
Seconds per chart bar
÷
4
frequencyUnit≈
Seconds per chart bar
Seconds in 12 months
÷4
This is only for visual spacing, not calculation correctness.
Limitations / Notes
The yield series is “step-like” and updates only when new quarterly fundamentals are available.
For some tickers, TradingView fundamentals (especially diluted shares) can be missing or inconsistent; the script protects against this by returning na or falling back to the net yield.
EV-based yield can differ from market-cap-based yield; EV includes debt and cash effects, so it’s closer to an “all-capital” valuation measure.
4 EMA Perfect Order + Strength + MTFリリースノート
🇯🇵 日本語説明文
📌 スクリプト概要
このスクリプトは、EMA10・20・40・80 を使用して「パーフェクトオーダー(PO)」を判定し、
PO が確定したタイミングで矢印とアラートを表示します。
さらに、PO の強さ(短期と長期 EMA の乖離率)を数値化して表示し、
上位足(MTF)でも同様の判定と強さ表示が可能です。
🔧 機能一覧
• EMA10/20/40/80 のライン表示(黒・赤・オレンジ・青)
• パーフェクトオーダー(Bull/Bear)の自動判定
• PO 確定時に矢印(▲/▼)を表示
• PO の強さ(乖離率)をリアルタイム表示
• 上位足(MTF)での PO 判定と強さ表示
• アラート条件付き(Bull/Bear PO 確定時)
• 背景は白で視認性を重視
📈 パーフェクトオーダーとは?
• Bull PO(上昇トレンド)
EMA10 > EMA20 > EMA40 > EMA80
• Bear PO(下降トレンド)
EMA10 < EMA20 < EMA40 < EMA80
PO が確定したバーで矢印とアラートが発生します。
🧠 活用例
• PO の強さを使ってトレンドの勢いを測定
• 上位足の PO と一致しているか確認して精度を向上
• トレンドフォロー戦略のフィルターとして利用
• EMA の並びが崩れたら背景色を塗るなどの拡張も可能
🇺🇸 English Description
📌 Overview
This script detects “Perfect Order” (PO) conditions using EMA10, EMA20, EMA40, and EMA80.
When a PO is confirmed, it displays arrows and triggers alerts.
It also calculates the strength of the PO (based on EMA divergence) and supports multi‑timeframe (MTF) analysis.
🔧 Features
• Displays EMA10/20/40/80 with color coding (black, red, orange, blue)
• Detects Bull and Bear Perfect Order conditions
• Shows arrows (▲/▼) when PO is confirmed
• Displays PO strength as a percentage (EMA10 vs EMA80 divergence)
• Supports MTF PO detection and strength display
• Includes alert conditions for Bull/Bear PO confirmation
• Clean white background for better visibility
📈 What is a Perfect Order?
• Bull PO (Uptrend): EMA10 > EMA20 > EMA40 > EMA80
• Bear PO (Downtrend): EMA10 < EMA20 < EMA40 < EMA80
Arrows and alerts are triggered only when the PO condition is newly confirmed.
🧠 Use Cases
• Measure trend momentum using PO strength
• Confirm alignment with higher timeframe trends
• Use as a trend‑following filter
• Can be extended with background coloring or histogram strength display
Crash Prevention OpenSource by exp3rtsOpen Source Version - no updates!
Crash Prevention OpenSource by exp3rts – Automated Exit Strategy for TradingView
This indicator allows you to automatically close positions based on dynamic price levels derived from the previous candle with a configurable offset. Perfect for risk management and automated “hard stop” exits.
Key Features:
Flexible Exit Directions: Choose to trigger exits for Long, Short, or Both directions.
Dynamic Exit Levels: Lines are automatically calculated above/below the previous candle plus/minus a user-defined offset in points.
Visual Cues: Clear arrows indicate the exact bar where price touched the exit line.
Session-Independent: Works on any chart and timeframe without manual adjustments.
Webhook Alerts: Sends JSON alerts on touch, enabling integration with external systems or bots.
Auto-Close Logic: Ensures positions are closed immediately when the threshold is breached, keeping trades in check.
How it works:
For Long exits, the line is drawn below the previous bar’s low minus the offset.
For Short exits, the line is drawn above the previous bar’s high plus the offset.
When price crosses the line, the position is closed, an arrow is plotted on the chart, and an alert is fired.
Ideal for traders who want strict stop management or automated exit conditions while keeping visual clarity on the chart.
PaisaPani - Nifty Demo PerformanceThis script displays a DEMO performance table only.
It does NOT generate real-time Buy/Sell signals.
🔒 PaisaPani Nifty Strategy is Invite-Only
The complete logic, entries, exits, and risk management are locked to protect users.
What this script shows
Sample Nifty trade performance (demo data)
Trade structure & outcome format
Educational / showcase purpose only
What this script does NOT do
❌ No live signals
❌ No automation
❌ No profit guarantees
📩 To request access
Please message me directly on TradingView.
⚠ Disclaimer
This script is for educational and demonstration purposes only.
Trading in markets involves risk. Use at your own responsibility
Vishall Power X Strategy - DAILY EXPORT-1Vishall Power X Strategy - DAILY EXPORT-1
NEW One
longPower = day_close - day_low
shortPower = day_high - day_close
Y = day_close
x_value = ((longPower - shortPower) / Y) * 100
ALTINS1 Darphane Altin Sertifikasi Fair Value Tracker [ALPAY.B]This indicator displays the fair value of the Darphane Gold Certificate (ALTINS1) traded on Borsa Istanbul.
It calculates the theoretical price based on 0.01 grams of Spot Gold (XAU/USD) converted to Turkish Lira (USD/TRY). This tool is essential for investors to monitor whether the certificate is trading at a significant premium or discount compared to its intrinsic gold value.
Key Features:
Real-time Fair Value calculation.
Live Premium/Discount percentage tracking.
Visual background warnings for overvalued conditions.
PaisaPani - Demo Performance📌 PaisaPani – Demo Performance (Invite-Only)
This script is only a DEMO performance display.
It does NOT generate live Buy/Sell signals.
🔒 PaisaPani Strategy is Invite-Only
The real logic, entries, exits, and risk management are locked to protect users.
What this script shows:
Sample performance table (demo data)
Trade format & consistency preview
Educational / showcase purpose only
What this script does NOT do:
❌ No live signals
❌ No auto trading
❌ No guarantee of profits
📩 To request access:
Please message me directly on TradingView.
⚠ Disclaimer:
This script is for educational and demonstration purposes only.
Trading involves risk. Use at your own responsibility.
Support & Resistance with MA Ribbons LITE Support & Resistance with MA Ribbon LITE
Overview
Support & Resistance with MA Ribbon LITE is a technical analysis indicator for TradingView that combines a flexible Moving Average (MA) Ribbon with a dynamic Support & Resistance (S/R) system.
The indicator is designed as a visual decision-support tool, allowing traders to evaluate trend structure, momentum context, and key price reaction zones within a single, uncluttered chart overlay.
This script is published as open source under the Mozilla Public License 2.0 , encouraging transparency, learning, and community-driven development.
Core Components
1. Moving Average Ribbon System
The MA Ribbon consists of two configurable moving averages (Fast and Slow) with multiple calculation and smoothing options, including:
EMA, SMA, WMA, VWMA
DEMA, TEMA, Zero-Lag EMA
Hull MA, Linear Regression MA
Super Smoother, Smoothed MA, Laguerre MA
Key features include:
Trend-aware ribbon fill (bullish / bearish)
Optional candle coloring aligned with ribbon state
Minute-based anchor timeframe logic for consistent trend structure
Optional MA cross, swing, and continuation markers
Alert support for MA-related events
The MA Ribbon is intended to provide trend context , not standalone trade signals.
2. Support & Resistance Engine
The Support & Resistance system is based on pivot structure analysis and dynamically adapts to new price data.
Features include:
Main and strong support/resistance levels
Up to 12 active levels displayed on the chart
Preset sensitivities (Scalp, Intraday, Swing) and custom configuration
Optional multi-timeframe (MTF) level detection
Adaptive labels with automatic contrast handling
Optional strength filtering based on historical interactions
Optional heat map visualization reflecting level interaction frequency
All levels are plotted directly on the price chart for immediate contextual reference.
Alert System
The script includes a configurable alert framework covering:
Main and strong level touches
Breakouts and breakdowns
Retests of broken levels
Optional rejection detection (wick beyond a level with close back inside)
Cooldown logic to limit repeated alerts in consolidation phases
Alerts are informational only and should always be confirmed visually.
Customization & Performance
Unified color presets (Classic, Aqua, Cosmic, Ember, Neon, Custom)
Independent opacity control for MA Ribbon and candles
Modular on/off controls for MA Ribbon and S/R components
Optimized plotting to remain within TradingView limits
Designed for stable performance across lower and higher timeframes
Intended Use
This indicator is designed to assist with chart interpretation and market structure analysis. It may help users:
Identify prevailing trend conditions
Observe price behavior around structurally relevant levels
Combine trend context with horizontal market structure
Reduce chart clutter by consolidating multiple concepts into one script
This indicator is not a trading strategy, does not provide financial advice, and should be used alongside independent analysis and appropriate risk management.
How to Use
1. Chart Setup
Add the indicator to any chart and timeframe.
Both the MA Ribbon and Support & Resistance systems are enabled by default and can be managed independently via the Master Controls section.
General guidance:
Higher timeframes for structural context
Lower timeframes for execution and refinement
Applicable across different markets and instruments
2. Using the MA Ribbon
The MA Ribbon visualizes trend direction and momentum context.
General interpretation:
Price above both MAs → bullish bias
Price below both MAs → bearish bias
Ribbon color reflects trend alignment
Ribbon compression may indicate consolidation or transition
Optional features include candle coloring, MA cross markers, and filtered continuation arrows.
Best practice:
Use the MA Ribbon to identify the market regime before reacting to support or resistance levels.
MA Ribbon – Minute-Based Timeframe Logic
Anchor Timeframe (Minutes)
Anchors MA calculations to a fixed timeframe expressed in minutes.
Examples:
60 = 1 hour
240 = 4 hours
0 = use current chart timeframe
How It Works
The anchor automatically scales MA lengths so that the same trend structure is preserved across different chart timeframes.
Example (Anchor = 60):
5-minute chart → follows 1-hour structure
15-minute chart → follows the same 1-hour structure
1-hour chart → standard calculation
Show Ribbon Only If Chart TF > Anchor
Optionally hides the MA Ribbon on chart timeframes lower than the anchor to reduce visual noise.
3. Using Support & Resistance Levels
Support and resistance levels are derived from pivot structures and update dynamically.
Level types:
Main Support / Resistance (most recent and relevant)
Strong Support / Resistance (confirmed pivots)
Additional historical levels (up to 12 total)
Usage guidelines:
Focus on price behavior around levels rather than exact prices
Combine level reactions with MA Ribbon trend context
Use strength filtering to reduce weaker levels
Heat map mode highlights frequently interacted zones
4. Combining Trend and Structure
The indicator is most effective when both systems are used together:
In uptrends, focus on reactions near support
In downtrends, focus on reactions near resistance
Breakouts are more relevant when aligned with trend context
Retests gain importance when structure and trend agree
Customization Tips
Use preset sensitivities (Scalp / Intraday / Swing) for quick setup
Enable MTF S/R to reference higher-timeframe structure
Adjust label size, offset, and precision for readability
Disable unused components to improve performance on lower-end systems
This combined view helps improve contextual clarity and reduce noise.
5. Alerts Usage
Alerts are optional and fully configurable.
Cooldown settings can be used to limit repeated notifications during ranging conditions.
All alerts are informational and should be visually validated.
Open Source & Credits
This script is released as open source under the Mozilla Public License 2.0.
Parts of the MA Ribbon logic and conceptual inspiration are derived from publicly shared work by JustUncleL on TradingView.
Respect and thanks are extended for these contributions.
You are free to:
Study the code
Modify it for personal use
Share improvements under the same license terms
Disclaimer
This indicator is provided for educational and informational purposes only.
No guarantees are made regarding accuracy, performance, or outcomes.
Use at your own discretion.
eBacktesting - Learning: RSI DivergenceseBacktesting - Learning: RSI Divergences is meant to train your eye to spot when a trend is losing momentum before price fully turns.
How to study it (step-by-step)
1. Start with the trend
- First decide if price is generally trending up or down (higher highs / higher lows vs lower highs / lower lows).
- Divergences matter most after a trend has been running for a while.
2. Look for the “mismatch”
- Bearish divergence: price prints higher highs, but RSI prints lower highs.
- This often shows up near the end of a strong bullish run, when buyers are still pushing price up but with less momentum.
- Bullish divergence: price prints lower lows, but RSI prints higher lows.
- This can show up near the end of a bearish move, when selling pressure is fading.
3. Treat divergence as a warning, not an entry
- The key lesson: divergence often signals trend weakness, not an instant reversal.
- After a divergence appears, study what happens next: stalling, ranging, a pullback, or a full reversal.
4. Add simple confirmation
- Practice waiting for something obvious after the divergence:
a break of a small support/resistance level,
a shift in swing structure,
or a clear rejection candle from a key area.
- This helps you avoid taking every divergence as a trade signal.
5. Use it inside eBacktesting (best practice)
- Replay the chart and pause on each divergence mark.
- Log:
Where it happened (after a long run or in the middle of chop?),
Whether price stalled first or reversed immediately,
What confirmation appeared (if any),
The best “invalidation” idea (what would prove you wrong?).
- Over time you’ll see which divergences are meaningful for your market and session, and which ones are noise.
These indicators are built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance.
Educational use only. Not financial advice.
Elder AutoEnvelope 1m/5mOverview
This script is an advanced implementation of Dr. Alexander Elder’s AutoEnvelope, specifically optimized for 1-minute (1m) and 5-minute (5m) low-timeframe trading.
The logic treats the market as a "manic-depressive" entity:
Center Line (26 EMA): Represents the fair value consensus.
Fast Line (13 EMA): Captures short-term price momentum.
Envelopes (Bands): Represent the limits of price "sanity." Under normal conditions, 95% of price action should remain within these bands.
Key Features
Powered by Pine Script V6: Built on the latest engine for maximum precision and performance.
Real-time Coverage Tracker: A dashboard in the top-right corner displays the percentage of price bars contained within the bands over the lookback period. The goal is to adjust the Multiplier until coverage is ~95%.
Dual Smoothing: To combat high-frequency noise on 1m/5m charts, this script applies a secondary smoothing layer to the channel width, preventing the "jagged" lines found in standard indicators.
Recommended Settings
Lookback: Defaulted to 300. On a 1m chart, this represents 5 hours of data, providing a much more robust "normal" range than the standard 100-period setting.
Multiplier: Usually ranges between 2.0 and 3.5 depending on the asset's volatility. Tune this until the Coverage Panel shows ~95%.
SmoothLen: Defaulted to 20. Increase this value for even smoother, more "parallel" bands during high-noise sessions.
Practical Trading Advice
Take Profit Zones: In an uptrend, treat the Upper Band as a primary target. When price pierces the band and closes back inside, it’s often the climax of the move.
Mean Reversion: When price touches the Lower Band while significantly stretched away from the yellow Center Line, look for a bounce back to the value area, especially if the Purple Fast Line begins to flatten.
Trend Filtering:
Price above Fast Line (Purple) + Upward slope: Bullish bias. Only look for Longs or Profit Taking.
Price below Fast Line (Purple) + Downward slope: Bearish bias. Only look for Shorts or Covering.
Asset Calibration: When switching assets (e.g., Gold to BTC), always fine-tune the Multiplier. The bands are only statistically valid when the Coverage Panel stays between 94% and 96%.
指标简介
本脚本是基于亚历山大·爱尔德博士(Dr. Alexander Elder)著名的“自动包络线”(AutoEnvelope)理论开发的进阶版本,特别针对 1分钟(1m)和 5分钟(5m) 等短周期高频交易进行了优化。
该指标的核心逻辑是将市场视为一个“躁郁症患者”:
中心线 (26 EMA):代表市场的平均价值认同。
快线 (13 EMA):代表短期价格动能。
包络线 (Bands):代表价格波动的极端边界(95% 的价格应运行在通道内)。
核心功能
V6 引擎驱动:采用最新的 Pine Script V6 编写,计算更精准,内存占用更低。
实时覆盖率统计:右上角实时显示过去 300 根 K 线中有多少比例落在通道内。目标是手动调整倍数(Multiplier)使该数值维持在 95% 左右。
双重平滑处理:针对短线噪音,对通道宽度进行了二次平滑,避免了传统指标在 1 分钟图上常见的“锯齿状”变形。
参数设置建议
Lookback (回溯周期):默认 300。在 1m 图上代表过去 5 小时,能提供比默认 100 周期更稳定的边界。
Multiplier (偏离倍数):根据不同品种调整(通常在 2.0 - 3.5)。请观察右上角面板,当覆盖率接近 95% 时,该倍数最为准确。
SmoothLen (平滑系数):默认 20。如果觉得轨道太乱,可调高此值。
实际交易建议
波段止盈点:在上升趋势中,当价格刺破上轨且 K 线实体收回上轨下方时,是绝佳的多头平仓位。
均值回归:当价格偏离中心线触碰下轨,且快线(紫色)开始走平时,预示即将反弹回中心线。
趋势过滤:
价格在快线(紫色)上方且快线斜率向上:只做多或平多,不逆势抄顶。
价格在快线(紫色)下方且快线斜率向下:只做空或平空。
覆盖率校准:切换交易品种(如从黄金切换到比特币)后,务必微调 Multiplier,确保覆盖率处于 94%-96% 之间,此时的边界才具有统计学意义。
Crypto MA Crossover indicator v0.1Research I conducted has shown that using moving average crossovers to determine when going long a cryptocurrency (or otherwise going to cash) performs better than both buy-and-hold as other similar strategies (e.g., going long when price crossover over moving averages).
Adaptive moving average strategy paper with full backtests
This indicator shows if a given cryptocurrency is in a state where the best-performing moving averages have crossed over. It also shows the specific moving average settings for each cryptocurrency.
Note: you will have to edit the script to update the coins and moving average settings manually.






















