BTC vs 美元指数(DXY) 强度指标1. Introduction
一、 指标简介
In the grand game of macroeconomics, the relationship between Bitcoin (BTC) and the US Dollar Index (DXY) is a key barometer for market risk appetite versus risk-aversion.
在宏观经济的大棋局中,比特币(BTC)与美元指数(DXY)的强弱关系,是衡量市场风险偏好与避险情绪的核心风向标。
It is often said that "BTC is a hedge against a falling dollar." This indicator is built upon this classic logic, providing you with a quantitative and intuitive analytical tool.
交易员们常说「BTC 是抗美元下跌的工具」,本指标正是基于这一经典逻辑,为您提供一个量化、直观的分析工具。
The BTC vs. DXY Strength Index helps you gain insight into critical questions by calculating the relative performance spread between the two assets, combined with statistical tools (Bollinger Bands) and significant historical macro signals (DXY weekly death cross):
BTC vs 美元指数(DXY) 强度指标 通过计算两者的相对表现差异,并结合统计学工具(布林带)和重要的历史宏观信号(DXY周线死叉),帮助您洞察以下关键问题:
Is the current market dominated by BTC (risk-on) or the Dollar (risk-off)?
当前市场由 BTC 主导(风险偏好),还是由美元主导(避险情绪)?
Has the strength relationship between them reached an extreme level where a reversal is possible?
两者之间的强弱关系是否达到了可能逆转的极端水平?
Has a major macro reversal signal, which has historically triggered significant market shifts, appeared?
是否出现了历史上曾多次引发市场巨变的宏观反转信号?
2. Features & Interpretation
二、 核心功能与解读
2.1. Performance Spread Histogram
1. 强度差柱状图
The core of the indicator is a histogram extending from the zero line, representing the performance spread of BTC relative to DXY.
指标的核心是一系列从 0 轴延伸的柱状图,它代表了 BTC 相对于 DXY 的表现强度差。
Green Bars (Positive Value): Indicates that BTC has outperformed the DXY over the period. The taller the green bar, the stronger BTC's momentum and the higher the market's risk appetite.
绿色柱 (正值): 代表在该周期内,BTC 的表现优于美元指数。绿色柱越高,说明 BTC 越强势,市场风险偏好情绪越高。
Red Bars (Negative Value): Indicates that the DXY has outperformed BTC. The deeper the red bar, the stronger the Dollar and the more prevalent the risk-off sentiment.
红色柱 (负值): 代表在该周期内,美元指数的表现优于 BTC。红色柱越深,说明美元越强势,市场避险情绪越浓。
2.2. Bollinger Bands Extreme Signal
2. 布林带极端信号
The indicator calculates Bollinger Bands for the "performance spread" in the background. When the histogram breaks above or below the bands, an alert is triggered.
指标在后台对「强度差」计算布林带。当柱状图突破上下轨时,会触发警报。
Breakout Above Upper Band: BTC's strength relative to DXY has reached a statistical extreme, signaling caution for a potential mean reversion (e.g., a BTC pullback or DXY strengthening).
向上突破: BTC 相对于 DXY 的强势达到了统计上的极端,警惕短期关系回归(例如 BTC 回调或 DXY 走强)。
Breakdown Below Lower Band: BTC's weakness relative to DXY has reached a statistical extreme, signaling a potential opportunity for a bounce (e.g., BTC strengthening or DXY pulling back).
向下突破: BTC 相对于 DXY 的弱势达到了统计上的极端,关注潜在的反弹机会(例如 BTC 走强或 DXY 回调)。
2.3. DXY Historical Anomaly Signal
3. DXY 历史规律信号
This is the essence of this indicator. Based on research from Coindesk analysts, the "Death Cross" (50-week MA crossing below the 200-week MA) on the DXY weekly chart has often acted as a contrarian indicator—a "bear trap"—since 2009.
这是本指标的精髓所在。根据 Coindesk 分析师的研究,自 2009 年以来,美元指数(DXY)周线级别的「死亡交叉」(50周均线下穿200周均线)往往是一个反向指标,即「空头陷阱」。
Instead of preceding a bear market for the dollar, it has repeatedly marked major cyclical bottoms for the DXY.
它非但没有引发美元的熊市,反而屡次成为美元阶段性大底的标志。
Blue Background Highlight: When the indicator detects a "Death Cross" on the DXY weekly chart, the background will turn blue, and a high-priority alert will be triggered. This is designed to warn you that, based on historical patterns, the US Dollar may be about to bottom and strengthen, posing a significant potential bearish risk for BTC.
蓝色背景高亮: 当指标检测到 DXY 周线图上形成「死亡交叉」时,指标背景会变为蓝色,并触发最高优先级的警报。这旨在提醒您:根据历史规律,美元可能即将见底走强,这对 BTC 构成潜在的重大利空风险,需高度警惕!
3. Settings
三、 主要功能与设定
Customizable symbols for BTC and DXY.
可自定义 BTC 和 DXY 的交易对。
Freely adjustable periods for performance calculation and Bollinger Bands.
可自由调整表现计算周期、布林带参数。
Configurable MA periods for the DXY Death Cross detection, with the ability to toggle this signal on or off.
可配置 DXY 死亡交叉的均线周期,并自由开关此信号的显示。
Includes a comprehensive info panel and alert system.
包含功能全面的信息面板与警报系统。
Disclaimer: This indicator is a tool for supplementary macro analysis and is intended to provide a reference for market sentiment. It does not constitute any investment advice. All trading decisions should be based on your own research and risk assessment. Happy trading!
免责声明: 本指标是辅助宏观分析的工具,旨在提供市场情绪的参考,不构成任何投资建议。所有交易决策都应基于您自己的研究和风险判断。祝您交易顺利!
圖表形態
LaCrazy Smash CandleLaCrazy Smash Candle highlights powerful engulfing candles that signal potential momentum reversals or breakout continuation.
Smash Long: The candle's low touches or dips below the prior candle's low, then closes above the previous high with a strong body (minimum % of the candle range).
Smash Short: The candle's high touches or exceeds the prior high, then closes below the previous low with a strong body.
These “Smash” moves often occur at key pivot points, signaling decisive rejections or trend continuation. Customize the body strength filter to match your strategy needs.
Az's EMA Scalper with Trend Confirmation (Fast TF)Az's EMA Scalper with Trend Confirmation combines fast-moving average signals with multi-timeframe trend analysis for precision intraday trading. The strategy uses a customizable moving average (7 types including EMA, HMA, ALMA) applied to Heikin-Ashi or regular candles on user-defined timeframes.
Core Mechanics:
Trend Identification:
Calculates MA values for open/close/high/low prices
Determines trend direction Bullish (green) and bearish (red)
Entry Signals:
Long entries when MA_close crosses above MA_open
Short entries when MA_close crosses below MA_open
Trade filters: LONG/SHORT/BOTH/NONE
Risk Management:
Fixed stop loss (points)
Fixed take profit (points)
Auto-position closing for directional modes
Visual Features:
Colored trend cloud (bullish/bearish)
Optional MA plots for close/high/low
Customizable colors and transparency
Optimized For:
Fast timeframes (1-15min charts)
Configurable trend confirmation (any higher timeframe)
Backtesting window control
The strategy simplifies price action into clear visual trends while maintaining flexibility through 15+ input parameters. Trades align with the dominant trend direction shown by the colored MA cloud, with exits triggered by profit targets, stop losses, or counter-trend MA crosses.
Previous Day High & Low with Breakout Zones📌 Script Summary: Previous Day High/Low with Breakout Zones and Alerts
This Pine Script plots the previous day’s high and low on intraday charts, and highlights when the current price breaks out of that range during regular trading hours.
✅ Key Features
• Previous Day High/Low Lines: Draws horizontal lines at the prior day’s high and low, updated daily.
• Time-Filtered Session (09:15–15:30 IST): All logic applies only during Indian market hours.
• Breakout Zone Highlighting:
• 🟩 Green background when price closes above previous high
• 🟥 Red background when price closes below previous low
• Dynamic Labels: Displays labeled levels each day on the chart.
• Alerts:
• 🔼 Triggered when price crosses above the previous day’s high.
• 🔽 Triggered when price crosses below the previous day’s low.
• Customizable Inputs:
• Enable/disable alerts
• Toggle breakout zone highlights
• Set label offset
⚙️ Optimized For
• Intraday timeframes (e.g., 5m, 15m, 1h)
• Trading during NSE/BSE market hours
• Breakout strategy traders and range watchers
EMA 50/75/120 Golden & Death Cross Strategyuy: When all EMAs are aligned in golden cross order.
Sell: When all EMAs are aligned in death cross order.
Color Coding:
Green: All EMAs rising
Red: All EMAs falling
Gray: Mixed movement
Simple MA + RSI//@version=6
// This script is a called " "
// Description:
// This script implements a
// It includes customizable inputs for moving average lengths and plots signals directly on the chart.
//
// Features:
// - Customizable input parameters
// - Buy/sell signals plotted on chart
// - Can be used with alerts (via `alertcondition()`)
// - Suitable for
JAN - OCT [old] Engulfing Pattern Strategyold engulfing that is bad and shouldnt be used and if you do use it, then proceed at your own pearl. and i have to keep making this description longer other it wont publish which is annoying so this is just words to make the description longer so i can publish
Weinstein Stage Analysis HelperA helper script to visualize the Weinstein Stages intuitively along with other factors like
- Relative Strength
- Volume (On Balance Volume)
- RoE
- P/E
- Growth Rate
- EPS Growth Rate
Simple Volume Profile with POC, VAH, VAL + nPOCVRVP by Kolesnik
This indicator halp you with analitick
EMA 21, 55, 200 with Small LabelsThis is a combination of ema21/50/200. Helps to identify market trends. It comes with small labels so it won't confuse which line is which. I hope it helps and good luck with your trading!
Red Report FilterHello Traders,
This script will make your everyday trading sessions a lot less stressful if you're having to watch for 'Red' restricted reports.
You can set up to five reports for the day, with a selector for either: 'Red' / 'Orange'
Super simple to update manually, usually less than 15s. You do need to pull the information from ForexFactory.com or your required feed daily.
No need to worry about audio fails; the alarm background visually updates as price candles start to sweep thru the preset time window.
Default window settings are for Red Reports, '15m Before' / '6m After', for a 5m x 5m window.
I like the '15m Before' because it gives me a buffer to react to if I'm managing an open trade.
Click the tool-tip for more details.
PLEASE NOTE: Time-Zone is hard-coded UTC -4. Make the appropriate adjustment to a different zone if necessary.
Let me know how it works for you.
Thx!
Simple RSIThe Relative Strength Index (RSI) is a momentum oscillator that measures the speed and change of price movements. It helps traders identify overbought or oversold conditions in the market.
This script plots the 14-period RSI, which is one of the most commonly used settings.
How It Works:
The RSI ranges from 0 to 100.
Values above 70 suggest the asset may be overbought (a potential sell area).
Values below 30 suggest the asset may be oversold (a potential buy area).
Avg 30-min High-Low Pips (Bar Chart)Analyses movements over 30 days and plots possible movement windows.
Turtle Strategy Pullback EntryThis strategy, titled “Turtle Strategy Pullback Entry”, is a trend-following system designed to capture breakouts more efficiently by entering after a slight pullback. Instead of buying immediately when the price breaks the 20-day high, the strategy waits for the price to pull back by 1% below that high, offering a better entry point and reducing the chances of false breakouts. Once the pullback level is reached, a long position is initiated. The trade is then managed using three exit conditions: it will close if the price drops 1.4% below the entry (acting as a stop loss), if the price rises 1.8% above the entry (taking profit), or if the price closes below the 20-day low, which serves as a trend invalidation signal. The position size is based on 100% of the equity by default, and the chart visually shows the 20-day high, low, and pullback level along with a green background when a position is active. This approach helps traders ride strong trends while avoiding premature entries, making it suitable for swing or position trading across stocks, forex, or crypto markets.
DTC AIO [India]✨ DTC AIO — The Ultimate All-in-One Market Intelligence Suite
DTC AIO isn’t just another indicator—it’s a complete market intelligence dashboard, purpose-built for Indian equities. Designed for traders who demand more than just signals, DTC AIO fuses professional-grade analytics, pattern recognition, and actionable insights into a single, visually stunning overlay.
✨ What Makes DTC AIO Unique?
All-in-One Dashboard: No more juggling multiple indicators. DTC AIO brings together volatility, volume, trend, momentum, pattern recognition, and even earnings data—right on your chart.
Dynamic Visuals: Modern, theme-adaptive tables and color-coded highlights make complex data instantly readable, whether you prefer dark or light mode.
Pattern Powerhouse: Go beyond the basics with advanced pattern detection—mini-coils, inside bars (with candle coloring!), pocket pivots, and strict shakeout logic.
Burst Ranker: Proprietary “Power Gauge” quantifies explosive price action (+5%, +10%, +17% days) and visualizes it with a unique scoring system.
Earnings Intelligence: See quarterly EPS and sales, with YoY and optional QoQ growth, in a clean, auto-updating table—no more hunting for fundamentals.
Sector/Industry Awareness: Instantly know the context of any stock with sector and industry tags, right on your chart.
Customizable Everything: From moving average types to table positions and text sizes, DTC AIO adapts to your workflow.
🚀 Feature Highlights
Main Metrics Table: ADR%, Relative Volume, 50D Avg Volume, U/D Ratio, and RS vs. custom benchmarks.
Momentum Table: See price distance from key EMAs and 52-week highs/lows, color-coded for clarity.
Pattern Recognition: Mini-coil, inside bar (with painted colored bar), pocket pivot, and shakeout detection—each with visual cues.
Burst Ranker Table: Track and score high-momentum days over your chosen lookback period.
Earnings & Sales Table: Quarterly EPS and sales, YoY and optional QoQ growth, all in one place.
Sector/Industry Table: Know the bigger picture at a glance.
🛠️ Built for the Demanding Trader
DTC AIO is engineered for those who want a true edge—combining technical, fundamental, and behavioral analytics in a single, elegant package. Whether you’re scanning for breakouts, tracking momentum, or analyzing earnings, DTC AIO is your all-in-one solution.
Ready to level up your trading? Add DTC AIO to your chart and experience the difference.
RSI OS/OB Background StripesThe "RSI OS/OB Background Stripes" indicator is a simple tool designed to help traders visualize overbought and oversold market conditions using the Relative Strength Index (RSI). It highlights these conditions by displaying colored background stripes directly on your chart, making it easy to spot potential trading opportunities.
How It Works:RSI Calculation: The indicator calculates the RSI, a popular momentum indicator that measures the speed and change of price movements, using a default period of 14 (customizable).
Overbought/Oversold Levels: It marks areas where the RSI is above a user-defined overbought level (default: 70) with red background stripes, and below an oversold level (default: 30) with green background stripes.
Visual Feedback: The colored stripes appear on the chart when the RSI enters overbought (red) or oversold (green) zones, helping you quickly identify market conditions.
Customization: You can adjust the RSI period, overbought/oversold levels, background colors, and transparency. You can also choose to show the RSI line in a separate panel or display RSI values on the chart for debugging.
Alerts: The indicator includes optional alerts that notify you when the RSI crosses into overbought or oversold territory.
Who It’s For: This indicator is perfect for beginner and intermediate traders who want a clear, visual way to track RSI-based overbought and oversold conditions without cluttering their charts.
Key Features:Easy-to-read background stripes for overbought (red) and oversold (green) conditions.
Fully customizable RSI settings, colors, and transparency.
Optional RSI plot and value display for deeper analysis.
Alerts to keep you informed of key RSI level crossings.
This indicator is a straightforward way to monitor market momentum and make informed trading decisions.
Monday's Range by Fortis80This TradingView indicator displays the Monday’s high and low range clearly across all timeframes, making it easy for traders to identify weekly key levels.
Exclusive for Fortis80 Members.
4H Crypto System – EMAs + MACD//@version=5
indicator("4H Crypto System – EMAs + MACD", overlay=true)
// EMAs
ema21 = ta.ema(close, 21)
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
// MACD Settings (standard)
fastLength = 12
slowLength = 26
signalLength = 9
= ta.macd(close, fastLength, slowLength, signalLength)
// Plot EMAs
plot(ema21, title="EMA 21", color=color.orange, linewidth=1)
plot(ema50, title="EMA 50", color=color.blue, linewidth=1)
plot(ema200, title="EMA 200", color=color.purple, linewidth=1)
// Candle coloring based on MACD trend
macdBull = macdLine > signalLine
barcolor(macdBull ? color.new(color.green, 0) : color.new(color.red, 0))
// Buy/Sell signal conditions
buySignal = ta.crossover(macdLine, signalLine) and close > ema21 and close > ema50 and close > ema200
sellSignal = ta.crossunder(macdLine, signalLine) and close < ema21 and close < ema50 and close < ema200
// Alerts
alertcondition(buySignal, title="Buy Alert", message="Buy Signal: MACD bullish crossover and price above EMAs")
alertcondition(sellSignal, title="Sell Alert", message="Sell Signal: MACD bearish crossover and price below EMAs")
GeeksDoByte 15m & 30m ORB + Prev Day High/LowCME_MINI:NQ1!
How It Works
Opening Ranges
At 9:30 ET, the script begins tracking the high & low.
It uses two fixed sessions:
15 min from 09:30 to 09:45
30 min from 09:30 to 10:00
On the very first bar of each session it initializes the range, then continuously updates the high/low on each new intraday bar.
Dashed lines are drawn when the session opens and extended horizontally across subsequent bars.
Previous Day’s Levels
Independently, it fetches yesterday’s high and low via a daily security call.
These historic levels are plotted as simple horizontal lines for daily context.
How to Use
Breakout Entries
A close above the 15 min ORB high can signal an early breakout; a further push above the 30 min ORB high confirms extended momentum.
Conversely, breaks below the respective lows can indicate short setups.
Support & Resistance
Yesterday’s high/low often act as magnet levels. If price is near the previous high when the opening ranges break, you get a confluence zone worth watching.
Trade Management
Combine the two opening-range levels to tier your stops or scale in.
For example, you might place an initial stop below the 15 min low and a wider stop below the 30 min low.
Multi-TF S/R Lines by Pivots - 15min Chart//@version=5
indicator('Multi-TF S/R Lines by Pivots - 15min Chart', overlay=true, max_lines_count=32)
// تنظیمات کاربری
pivot_lookback = input.int(5, 'تعداد کندل دو طرف پیوت')
search_bars = input.int(200, 'تعداد کندل چکشونده در هر تایمفریم')
line_expire = input.int(40, 'حداکثر کندل بیتست تا پنهان کردن سطح')
h4_color = color.new(color.teal, 0)
h1_color = color.new(color.green, 0)
d1_color = color.new(color.blue, 0)
w1_color = color.new(color.red, 0)
plot_labels = input.bool(true, 'نمایش لیبل')
label_size = input.string('tiny', 'سایز لیبل', )
var float w1_pivothighs = array.new_float(0)
var float w1_pivotlows = array.new_float(0)
var float d1_pivothighs = array.new_float(0)
var float d1_pivotlows = array.new_float(0)
var float h4_pivothighs = array.new_float(0)
var float h4_pivotlows = array.new_float(0)
var float h1_pivothighs = array.new_float(0)
var float h1_pivotlows = array.new_float(0)
//----------------------
// تابع پیوتی (true اگر کندل مرکزی، پیوت سقف/کف باشد)
pivot(cF, length, dir) =>
// dir = 'high' یا 'low'
var bool isP = true
for i = 1 to length
if dir == 'high'
isP := isP and cF > cF and cF > cF
if dir == 'low'
isP := isP and cF < cF and cF < cF
isP
// جمعآوری پیوتها در تایمفریم انتخابی
get_pivots(tf, bars_limit, look, dir) =>
var float pivs = array.new_float(0)
pivs := array.new_float(0) // reset each call: همیشه آخرین ۲۰۰ کندل
h = request.security(tf, 'high', high)
l = request.security(tf, 'low', low)
arr = dir == 'high' ? h : l
// فقط کندلهای وسط برگردد (نه اول و آخر)
for i=look to (bars_limit - look)
if pivot(arr, look, dir)
array.unshift(pivs, arr )
pivs
// بروزرسانی آرایه پیوتها (آخرین سطوح)
if barstate.islastconfirmedhistory
w1_pivothighs := get_pivots('W', search_bars, pivot_lookback, 'high')
w1_pivotlows := get_pivots('W', search_bars, pivot_lookback, 'low')
d1_pivothighs := get_pivots('D', search_bars, pivot_lookback, 'high')
d1_pivotlows := get_pivots('D', search_bars, pivot_lookback, 'low')
h4_pivothighs := get_pivots('240', search_bars, pivot_lookback, 'high')
h4_pivotlows := get_pivots('240', search_bars, pivot_lookback, 'low')
h1_pivothighs := get_pivots('60', search_bars, pivot_lookback, 'high')
h1_pivotlows := get_pivots('60', search_bars, pivot_lookback, 'low')
//--------------
// تابع رسم سطح
draw_lines(pivArr, line_color, label_txt, expiry) =>
int count = math.min(array.size(pivArr), 8)
for i=0 to (count-1)
y = array.get(pivArr, i)
// بررسی در 40 کندل اخیر برخورد بوده یا نه؟
touched = false
for c=0 to (expiry-1)
touched := touched or (low <= y and high >= y)
if touched
l = line.new(bar_index-expiry, y, bar_index, y, color=line_color, width=2, extend=extend.right)
if plot_labels
label.new(bar_index, y, label_txt, color=line_color, style=label.style_label_right, textcolor=color.white, size=label_size)
// اگر طی پیشفرض expiry کندل برخورد نشده بود، خط و لیبل رسم نشود (مخفی شود)
// رسم همه خطوط
draw_lines(w1_pivothighs, w1_color, 'W1', line_expire)
draw_lines(w1_pivotlows, w1_color, 'W1', line_expire)
draw_lines(d1_pivothighs, d1_color, 'D1', line_expire)
draw_lines(d1_pivotlows, d1_color, 'D1', line_expire)
draw_lines(h4_pivothighs, h4_color, 'H4', line_expire)
draw_lines(h4_pivotlows, h4_color, 'H4', line_expire)
draw_lines(h1_pivothighs, h1_color, 'H1', line_expire)
draw_lines(h1_pivotlows, h1_color, 'H1', line_expire)