指標和策略
NQ–2Y CorrelationThis indicator tracks the relationship between the Nasdaq futures (NQ) and the US 2-Year Treasury yield (US02Y). The two typically move in opposite directions. This tool highlights when that relationship breaks down, and when moves become stretched to extremes. This can be useful for traders to find inflection points in price representing either overbought or oversold extremes.
Key Features
Residual Z-Score: Shows how far NQ’s returns deviate from what would be expected given moves in the 2Y. Useful for spotting stretched conditions (+/- 2σ bands).
Correlation Tracking: Fast and slow correlations between NQ and inverted 2Y returns. Helps identify regime shifts in the relationship.
Same-Direction Signals: Green dots mark when NQ and 2Y both move strongly in the same direction (rare alignment). Red dots mark strong opposing moves.
Alerts: Triggers available for residual stretches, correlation flips, and significant same-direction or opposite moves.
Usage
Monitor Z-Score to identify when the equity–rates linkage is stretched beyond typical bounds. I typically use this on the H1 or H4 timeframe.
Watch for correlation regime shifts to spot changing market dynamics. Typically price falling into support or moving into resistance as there is a false correlation or a flip.
Same-direction dots help flag unusual synchronized moves between risk assets and yields - these are especially useful for identifying false moves.
ATH Minimalist From Enigma.Dynamic indicator based on the latest ATH, showing the percentage up or down since that point.
5ema&1maI wanted a simple indicator that had 5 EMAs and 1 MA. But I wanted to be able to change the values for all averages depending on my use.
This is a simple script that does that.
Trend detection for stocksThis Pine Script indicator combines exponential moving averages (EMA) with the Average Directional Index (ADX) to identify clear upward and downward trends. The chart colors the background according to the trend and optionally displays buy and sell signals as well as alerts.
Functionality in detail:
The Fast EMA (Standard 21) reacts quickly to price changes.
The Slow EMA (Standard 55) smooths the trend more.
If the Fast EMA is above the Slow EMA and the ADX is above the defined threshold, the background turns green – indicating a clear upward trend.
Conversely, a red background signals a dominant downward trend.
Buy and sell arrows appear at the EMA crossover as soon as the ADX confirms that a trend is intact.
EMA 20 ColouredBasically if the candle above 20ema, it will convert into green and if the candle is below 20ema, it will convert into red colour.
So,
If the EMA shows green line, then you have to look for the LONG TRADES
If the EMA shows red line, then you have to look for SHORT SIDE TRADES.
US Presidents 1789–1916Description:
This indicator displays all U.S. presidential elections from 1789 to 1916 on your chart.
Features:
Vertical lines at the date of each presidential election.
Line color by party:
Red = Republican
Blue = Democrat
Gray = Other/None
Labels showing the name of each president.
Historical flag style: All presidents before 1900 are considered historical, providing visual distinction.
Fully overlayed on the price chart for timeline context.
Customizable: Label position (above/below bar) and line width.
Use case: Great for studying historical market behavior around elections or for general reference of U.S. presidents during the early history of the country.
US Presidents 1920–2024Description:
This indicator displays all U.S. presidential elections from 1920 to 2024 on your chart.
Features:
Vertical lines at the date of each presidential election.
Line color by party:
Red = Republican
Blue = Democrat
Gray = Other/None
Labels showing the name of each president.
Modern flag style: Presidents from 1900 onward are highlighted as modern, giving clear historical separation.
Fully overlayed on the price chart for timeline context.
Customizable: Label position (above/below bar) and line width.
Use case: Useful for analyzing modern U.S. presidential cycles, market reactions to elections, or quickly referencing recent presidents directly on charts.
Adaptive FoSThis library contains adaptive functions for some strategies from the general set of FoS (Force of Strategy) script. Mainly based on LastGuru libraries, but rewritten to work with specific conditions of the main script operation.
Trend/Chop/Range✅ CHOP, ADX, ATR-based Trend/Choppy/Range detection
✅ Multi-timeframe noise filtering
✅ Fully customizable dashboard and colors
✅ Auto ATR baseline (using 0.0 as a default input for auto-mode)
✅ Alerts for dominant market states
VWMA MACD Trend Grinder Buy/Sell SignalsDescription:
This indicator combines a VWMA-based MACD with volume and trend filters to reduce false buy and sell signals.
It is designed to give more reliable entry and exit points in trending markets while avoiding low-volume noise.
Features:
1. VWMA MACD:
- MACD is calculated using Volume-Weighted Moving Averages (VWMA) instead of standard EMAs.
- Histogram shows the difference between MACD and its signal line.
2. Volume Filter:
- Signals are only triggered when current volume exceeds a multiple of its moving average.
- Reduces false signals in low-volume periods.
3. Trend Filter:
- Only triggers buy signals when price is above a long-term VWMA (uptrend).
- Only triggers sell signals when price is below the long-term VWMA (downtrend).
- Helps avoid counter-trend trades.
4. Plots:
- MACD (blue), Signal (orange), Histogram (green/red)
- Trend VWMA (purple)
- Buy and Sell arrows in the indicator pane (green/red)
5. Alerts:
- Configurable alerts for buy and sell signals filtered by volume and trend.
Inputs:
- Fast Length: VWMA period for the fast MACD line (default 12)
- Slow Length: VWMA period for the slow MACD line (default 26)
- Signal Length: EMA period for the MACD signal line (default 9)
- Volume MA Length: Length for volume moving average filter (default 20)
- Volume Threshold Multiplier: Multiplier for volume filter (default 1.2)
- Trend VWMA Length: Period for long-term trend VWMA (default 50)
- Price Source: Close, HL2, HLC3, OHLC4
Usage:
- Use as a confirmation tool along with other analysis techniques.
- Buy when the green triangle appears (MACD crossover, above trend VWMA, sufficient volume).
- Sell when the red triangle appears (MACD crossunder, below trend VWMA, sufficient volume).
- Trend VWMA helps visually confirm the market trend.
BTC Daily 8AM Range//@version=5
indicator("BTC Daily 8AM Range", overlay=true)
// 设置时区(根据您的所在地调整)
timezone = "UTC+8"
// 判断是否在8点到次日8点之间
is_range_period = (hour(time(timezone)) >= 8) or (hour(time(timezone)) < 8)
// 获取每日8点的开盘价
var float daily_open = na
if hour(time(timezone)) == 8 and minute(time(timezone)) == 0
daily_open := open
// 计算最高价和最低价
var float daily_high = na
var float daily_low = na
if is_range_period
if na(daily_high)
daily_high := high
daily_low := low
else
daily_high := math.max(daily_high, high)
daily_low := math.min(daily_low, low)
else
daily_high := na
daily_low := na
// 绘制价格区间
bgcolor(is_range_period ? color.new(color.blue, 95) : na, title="Range Period")
plot(daily_high, color=color.green, linewidth=2, title="Daily High")
plot(daily_low, color=color.red, linewidth=2, title="Daily Low")
Altcoin Market Share vs ETH/BTCIdea from x.com on X
Each colored line represents the percentage share of different altcoin baskets (excluding stablecoins) or ETH relative to either the ETH or BTC market cap (can add more, e.g. SOL or create different dashboards with Memes, AI, DeFi, you name it)
I know: At first glance, this may seem noisy and complex, but it all depends on the questions you want to answer. Once you define those, much of the noise becomes irrelevant, allowing you to simplify the analysis and focus only on what matters to you. What I’ve done here is provide a few initial insights that I found useful (will isolate a couple of them in future).
This analysis doesn’t tell you which specific coins to buy, but rather provides a broad market overview as a foundation. It helps guide you toward areas of relative strength or weakness.
I’ve included a lot of information here, but the key is to extract the signal from the noise by asking the right questions, for example: At what point do altcoins become overvalued or undervalued against Ethereum? However, when asking these questions, it's important to remember that an overvaluation or undervaluation of Ethereum relative to altcoins tells you little about its valuation against Bitcoin or USD. These are separate questions further down the process.
1H Cross into Daily Bollinger UpperIndicator to spot volatility in a ticker.
The price moving above indicates a potential breakout and can be observed in such manner.
Dual Stochastic with Trend FilterThe "Dual Stochastic with Trend Filter" is an oscillator indicator designed to provide clearer, trend-aligned trading signals. It uses two distinct stochastic oscillators to identify potential entry points and incorporates an optional EMA-based trend filter to ensure that you are trading in the direction of the broader market momentum.
How It Works and How to Use It
This indicator combines two key technical analysis concepts: momentum (via stochastics) and trend (via moving averages).
Core Components:
Dual Stochastic Oscillators:
Signal Line 1 (Blue): A standard stochastic oscillator.
Signal Line 2 (Red): A second stochastic oscillator, often using a different source (like hlcc4) to provide a smoother, more reliable signal.
A buy signal is generated when the Blue Line (d1) crosses above the Red Line (d2).
A sell signal is generated when the Blue Line (d1) crosses below the Red Line (d2).
Trend Filter (Optional):
This feature uses a fast and a slow Exponential Moving Average (EMA) to determine the overall market trend.
When the fast EMA is above the slow EMA, the background will turn green, indicating an uptrend.
When the fast EMA is below the slow EMA, the background will turn red, indicating a downtrend.
This filter can be toggled on or off in the indicator settings.
How to Use:
With Trend Filter Enabled (Recommended):
Long (Buy) Entry: Look for a green triangle buy signal (▲). This signal only appears when:
The Blue Signal Line crosses above the Red Signal Line.
The market is in a confirmed uptrend (green background).
Short (Sell) Entry: Look for a red triangle sell signal (▼). This signal only appears when:
The Blue Signal Line crosses below the Red Signal Line.
The market is in a confirmed downtrend (red background).
Exit Signal:
A yellow circle (●) appears to suggest closing an open trade. This signal is triggered for a long position if either the stochastics have a bearish cross or the trend flips to a downtrend. Conversely, for a short position, it's triggered by a bullish stochastic cross or a trend flip to an uptrend.
With Trend Filter Disabled:
If you turn off the "Use Trend Filter" option, the indicator will function as a simple dual stochastic crossover system.
A green triangle (▲) will appear every time the Blue Line crosses above the Red Line.
A red triangle (▼) will appear every time the Blue Line crosses below the Red Line.
The background coloring and exit signals based on trend flips will be deactivated. This mode is more sensitive but may produce more false signals in choppy markets.
Key Visuals:
Blue Line: The primary signal line.
Red Line: The secondary, often smoother, signal line.
Green Triangle (▲): Bullish entry signal.
Red Triangle (▼): Bearish entry signal.
Yellow Circle (●): Suggested trade exit/stop.
Green/Red Background: Visual confirmation of the current uptrend or downtrend.
By filtering stochastic signals with the dominant trend, this indicator helps traders avoid common pitfalls like entering short positions during a strong uptrend or buying into a bearish market. This alignment of momentum and trend is key to improving signal quality.
Disclaimer
This indicator is provided for educational and informational purposes only and should not be considered as financial advice or a recommendation to buy or sell any asset. All trading and investment decisions are your own sole responsibility.
Trading financial markets involves a high level of risk, and you may lose more than your initial investment. Past performance is not indicative of future results. The signals generated by this indicator are not guaranteed to be accurate, and you should always use this tool in conjunction with other forms of analysis and sound risk management practices.
Before using this indicator in a live trading environment, it is strongly recommended that you backtest it thoroughly and practice with it on a demo account. The author is not responsible for any financial losses you may incur from using this script.
TEEREX COUNTDOWN BY N' TEEREX HOONJONGPANG Features:
Price Flip Detection – identifies initial buy/sell setups based on close price comparisons to previous bars.
Setup Phase (1–9) – counts consecutive bars fulfilling Teerex number conditions; plots numbers on each candle.
Cd Phase (1–13) – continues counting after Setup 9; highlights potential reversal points.
Signals – marks Setup 9 and Countdown 13 with clear labels and arrows (“LONG” / “SELL”).
TDST Lines – draws dynamic support (Buy TDST) or resistance (Sell TDST) lines based on Setup 9 highs/lows. These lines help identify potential breakout or bounce zones.
Customizable Display – options to show/hide numbers, signals, and TDST lines; color-coded for clarity.
Usage:
Monitor Setup 9 and Countdown 13 labels for strong buy/sell signals.
Use TDST lines as reference for support/resistance, target levels, or confirmation of trend continuation.
Visuals:
Numbers 1–9/1–13 appear on the chart for precise counting.
Arrows and labels indicate Setup 9 completion and Cd 13 completion.
TDST lines extend to the right, updating with each new Setup 9.
FBTBBT (Filtered Black Two Bar Break Through)📘 FBTBBT (Filtered Black Two Bar Break Through)
Overview
FBTBBT is a filtered breakout indicator based on the classical Two Bar Break Through (TBBT) concept.
It generates Buy and Sell signals when price breaks above or below the previous bar’s high/low, but only displays the **first signal in a run** to avoid noise and duplicates.
- Buy Signal → Break above previous high
- Sell Signal → Break below previous low
- Filtered → Only the first signal in a consecutive streak is shown
---
Key Features
1. Filtered Signals
• Avoids repeated identical signals.
• Example: 3 consecutive bars breaking the previous low → only the first bar shows a Sell signal.
2. Confirmation Options
• Real-Time Mode: signals appear intrabar as soon as the breakout happens.
• Close Confirmation: signals appear only after bar close beyond previous high/low (reduces repainting).
3. Visual Aids
• Green “Buy” labels below breakout bars.
• Red “Sell” labels above breakout bars.
• Optional lines for previous bar’s high/low levels.
4. Alerts
• Alerts trigger only on the first filtered signal in each run.
• Messages specify breakout above (Buy) or below (Sell).
---
How to Use
• Add FBTBBT to your TradingView chart.
• Choose Real-Time or Close-Confirmed signals depending on your style.
• Focus on the **first breakout signal**; ignore duplicates until the opposite side appears.
• Combine with trend filters, volume, or higher timeframe context for stronger accuracy.
---
👉 In short:
**FBTBBT = Clean, filtered breakout signals with no noise.**
Perfect for traders who want **precise first-bar breakouts** while avoiding repeated alerts.
Vegas Touch EMA12 切換 EMA-12 Based Switching Rules (No RSI)
For Long trades:
Tunnel Mode → If EMA-12 is between EMA-144 and EMA-169 → use the Tunnel (144/169) lines as the touch reference.
Base Mode → If EMA-12 is below EMA-169 but still above EMA-676 → use the Base (576/676) lines as the touch reference.
No Long → If EMA-12 is below EMA-676, no long trade is allowed.
For Short trades (mirror logic):
Tunnel Mode → If EMA-12 is between EMA-144 and EMA-169 → use the Tunnel (144/169) lines as the touch reference.
Base Mode → If EMA-12 is above EMA-169 but still below EMA-676 → use the Base (576/676) lines as the touch reference.
No Short → If EMA-12 is above EMA-676, no short trade is allowed.
Multi-ZigZag Pack + Pivots + Global Session H/L + LRC .KidevFeatures
4 ZigZag overlays
Independent controls for period, deviation %, backstep.
Custom color, width, and line style (solid/dashed/dotted).
Helps visualize market swings at different sensitivities.
Daily Floor Pivots (Classic)
Automatic PP, R1–R3, S1–S3.
Toggle on/off.
Previous Day High/Low (PDH/PDL)
Quick reference to yesterday’s range extremes.
Global Session Highs/Lows
US, Europe, and Asia sessions (customizable session times).
Toggle sessions independently.
Helps track overlapping session volatility.
Linear Regression Channel (LRC)
Midline + Upper/Lower deviation bands.
Adjustable length & deviation multiplier.
Optional shaded channel.
Toggle each component (mid/upper/lower).
Usage
Use ZigZag overlays to study price structure at multiple depths.
Combine pivots + PDH/PDL with session levels to spot intraday support/resistance.
Watch LRC midline and bands for mean reversion vs. trending conditions.
Ideal for intraday traders who want structure + levels + channels on one chart.
Vegas ema 過濾 Vegas Channel with EMA-Filter — Trading Rules
Components
Tunnel: EMA 144 & 169 (upper = max, lower = min).
Base: EMA 576 & 676 (upper = max, lower = min).
Fast filter: EMA12.
Touch threshold: ATR-based or % of the reference line.
Long touch = low ≤ line + thr; Short touch = high ≥ line − thr.
Trend gate
LongTrendOK: EMA144 > EMA576 and EMA169 > EMA676 and close > BaseUpper.
ShortTrendOK: EMA144 < EMA576 and EMA169 < EMA676 and close < BaseLower.
Price-action pattern (either one)
Pin40: bullish pin = close>open & lower wick ≥ 40% of range; bearish pin = close 169 → use Base.
Else → use Tunnel.
EMA12 hard locks (coarse filter)
Lock longs if EMA12 < 676 (no long signals at all).
Lock shorts if EMA12 > 676 (no short signals at all).
(Optional) Tunnel lock/unlock (fine filter)
Lock longs when EMA12 drops below TunnelLower; unlock when
A) EMA12 crosses back above 144/169/TunnelUpper, or
B) a bullish Pin/Eng appears at BaseUpper and EMA12 is back ≥ TunnelLower.
Lock shorts when EMA12 breaks above TunnelUpper; unlock when
A) EMA12 crosses back below 144/169/TunnelLower, or
B) a bearish Pin/Eng appears at BaseLower and EMA12 is ≤ TunnelUpper.
Final signal
LONG fires when: Close-bar confirmed ∧ Cooldown passed ∧ LongTrendOK ∧ ActiveBand lower touch ∧ Pin40 or Eng60 ∧ not hard-locked ∧ (not tunnel-locked if enabled).
SHORT symmetrical with upper touch.
Quality-of-life
Close-bar confirmation to avoid repaint.
Cooldown (e.g., 10 bars) to prevent signal clusters.
Alerts include a compact lock status string (LckL/LckS/HardL/HardS).
Optional “BLOCK:” labels show why a bar didn’t trigger (noTouch, EMA12<676/>676, TunnelLock, cooldown, notClose).
Suggested defaults
ATR(14), ATR multiplier 0.35 (or 0.20% if using Percent mode).
autoSwitchByEMA12_* = ON, hardLockBelow676/Above676 = ON, useTunnelLock* = OFF.
useCloseBar = ON, signalCooldown = 10.
Design intent
Tunnel (144/169) captures the working trend; Base (576/676) defines the structural bias.
EMA12 drives regime selection (Tunnel vs Base) and hard locks to keep signals sparse and aligned with momentum.