Long/Short (Corr+Trend+RSI+ADX)Purpose
This indicator outputs a single trading regime — LONG ONLY, SHORT ONLY, or NEUTRAL — using a weighted model that blends: correlation to Bitcoin, local trend (EMA cross), RSI state, and trend strength via ADX (+DI/−DI). The goal is to cut market noise and provide a clear directional bias.
How it Works
Corr × BTC — Computes return correlation to BTC and multiplies it by BTC’s trend direction (EMA50 vs EMA200). Positively correlated assets follow BTC’s bias; negatively correlated assets invert it.
Trend — Local trend of the asset via EMA(50) vs EMA(200).
RSI — Soft mapping into bearish/neutral/bullish contribution (above the upper band → bullish, below the lower band → bearish).
ADX Block — Trend strength and bias from +DI/−DI (implemented manually via DM/TR/RMA).
All components are weighted and summed into a score; thresholds map the score to the trading regime.
Signals & Visuals
LONG ONLY — subtle green background; up-arrow on regime change.
SHORT ONLY — subtle red background; down-arrow on regime change.
NEUTRAL — muted background, no arrows.
Compact dashboard (top-right) shows regime, total score, and each component’s contribution.
Key Inputs
Benchmark (BTC) — symbol used for correlation (default: BTCUSDT).
Correlation length — window for return correlation.
EMA fast / EMA slow — trend parameters (defaults: 50/200).
RSI period / upper / lower — RSI settings and zone thresholds.
ADX period / threshold — strength measurement parameters.
Weights — per-block influence (Corr, Trend, RSI, ADX).
Decision thresholds — score cutoffs for LONG/SHORT.
Alerts
Go LONG (new signal) — regime flips into LONG.
Go SHORT (new signal) — regime flips into SHORT.
Back to NEUTRAL — regime returns to neutral.
(Define your alert message in the Alerts dialog.)
Usage Guidance
Trade in the direction of the active regime:
LONG ONLY — favor long entries/re-entries; avoid shorts.
SHORT ONLY — favor shorts; avoid longs.
NEUTRAL — reduce risk and wait for confirmation.
Combine with S/R or consolidation zones: trigger entries only when price interacts with your zones in alignment with the regime.
For altcoins, tune weights and thresholds; high-beta markets may need lower decision thresholds.
Tuning Tips
Want more signals? Lower Go LONG/SHORT thresholds or increase weights.
Want stricter signals? Raise thresholds or reduce weights.
If the asset weakly correlates with BTC, reduce Corr weight and emphasize Trend/ADX.
Limitations & Disclaimer
This is a directional filter, not a full trade system. Always apply risk management and confirm on multiple timeframes. Past performance does not guarantee future results.
Candlestick analysis
xtraderx SMA Cross Strategy (5 / 8 / 13)xtraderx — This indicator is the coded version of the Simple Moving Average (SMA) strategy that Selçuk Gönençler has been explaining in a simple and effective way for years.
It generates a bullish signal when the SMA 5 crosses above both SMA 8 and SMA 13, and a bearish signal when it crosses below them.
Super smooth multi-period EMA indicatorThis indicator contains 6 moving averages (ema exponential moving average)
The first length is 20 and the time period is 3 minutes.
The second length is 20 and the time period is 15 minutes.
The third length is 20 and the time period is 60 minutes.
The length of the fourth bar is 20 and the time period is 4 hours.
The length of the fifth article is 20 and the time period is 1 day.
The sixth article has a length of 20 and a time period of 1 week.
15:55 Candle Wick Rays (White)15:55 Candle Wick Rays (White)
15:55/3:55 strategy. Reading the 15:55 candle stick and watching the reaction off of these levels.
First Candle Rule + Risk Calculator + KillzonesThis indicator combines precision timing, session visualization, and position management — all in one clean tool for professional traders.
Main Features:
First 5-Minute Candle Rule:
Automatically highlights the first 5-minute candles at 10:30 AM and 3:30/4:30 PM (Romania), aligned with the London and New York market opens.
Alerts trigger automatically at each candle close, allowing traders to react instantly to session momentum.
Killzones (Session Blocks):
Visual representation of key trading sessions, shaded with soft colors for clarity:
London Open: 10:00–13:00 (light teal)
New York Open: 15:00–17:00 (light green)
London Close: 18:00–20:00 (light purple)
Each zone automatically updates daily.
Manual Lot Risk Calculator:
A compact on-chart calculator that helps manage risk precisely:
Input balance, lot size, and stop loss manually
Automatically calculates risk amount, % of equity, pip value, and equity after loss
Works with all symbols (FX, indices, gold, etc.) and supports auto pip-value detection
Can be hidden or displayed via settings
Clean design with light grey background and black text
4h 相对超跌筛选器 · Webhook v2.0## 指标用途
用于你的「框架第2步」:在**美股 RTH**里,按**4h 收盘**(06:30–10:30 PT 为首根)筛出相对大盘/行业**显著超跌**且结构健康的候选标的,并可**通过 Webhook 自动推送**`symbol + ts`给下游 AI 执行新闻甄别(第3步)与进出场评估(第4步)。
## 工作原理(核心逻辑)
* **结构健康**:最近 80 根 4h 中,收盘 > 4h_SMA50 的占比 ≥ 阈值(默认 55%)。
* **跌深条件**:4h 跌幅 ≤ −4%,且近两根累计(≈8h)≤ −6%。
* **相对劣化**:相对大盘(SPY/QQQ)与相对行业(XLK/XLF/… 或 KWEB/CQQQ)各 ≤ −3%。
* **流动性与价格**:ADV20_USD ≥ 2000 万;价格 ≥ 3 美元。
* **只在 4h 收盘刻评估与触发**,历史点位全部保留,便于回放核验。
* **冷却**:同一标的信号间隔 ≥ N 天(默认 10)。
## 主要输入参数
* **bench / sector**:大盘与行业基准(例:SPY/QQQ,XLK/XLF/XLY;中概用 KWEB/CQQQ)。
* **advMinUSD / priceMin**:20 日美元成交额下限、最小价格。
* **pctAboveTh**:结构健康阈值(%)。
* **drop4hTh / drop8hTh**:4h/8h 跌幅阈值(%)。
* **relMktTh / relSecTh**:相对大盘/行业阈值(%)。
* **coolDays**:冷却天数。
* **fromDate**:仅显示此日期后的历史信号(图表拥挤时可用)。
* **showTable / tableRows**:是否显示右上角“最近信号表”及行数。
## 图表信号
* **S2 绿点**:当根 4h 收盘满足全部筛选条件。
* **右上角表格**:滚动列出最近 N 条命中(`SYMBOL @ yyyy-MM-dd HH:mm`,按图表本地时区)。
## Webhook 联动(生产用)
1. 添加指标 → 🔔 新建警报(Alert):
* **Condition**:`Any alert() function call`
* **Options**:`Once per bar close`
* **Webhook URL**:填你的接收地址(可带 `?token=...`)
* **Message**:留空(脚本内部 `alert(payload)` 会发送 JSON)。
2. 典型 JSON 载荷(举例):
```json
{
"event": "step2_signal",
"symbol": "LULU",
"symbol_id": "NASDAQ:LULU",
"venue": "NASDAQ",
"bench": "SPY",
"sector": "XLY",
"ts_bar_close_ms": 1754524200000,
"ts_bar_close_local": "2025-06-06 10:30",
"price_close": 318.42,
"ret_4h_pct": -5.30,
"ret_8h_pct": -7.45,
"rel_mkt_pct": -4.90,
"rel_sec_pct": -3.80
}
```
> 建议以 `symbol + ts_bar_close_ms` 做去重键;接收端先快速 `200 OK`,后续异步处理并交给第3步 AI。
## 使用建议
* **时间框架**:任意周期可用,指标内部统一拉取 240 分钟数据并仅在 4h 收盘刻触发。
* **行业映射**:尽量选与个股业务最贴近的 ETF;中国 ADR 可用 `PGJ/KWEB/CQQQ` 叠加细分行业对照。
* **回放验证**:Bar Replay **不发送真实 Webhook**;仅用于查看历史命中与表格。测试接收端请用 Alert 面板的 **Test**。
## 适配说明
* Pine Script **v5**。
* 不含成分筛查逻辑(请在你的 500–600 只候选池内使用)。
* 数字常量不使用下划线分隔;如需大数可用 `20000000` 或 `2e7`。
## 常见问题
* ⛔️ 报错 `tostring(...)`:Pine 无时间格式化重载,脚本已内置 `timeToStr()`。
* ⛔️ `syminfo.exchange` 不存在:已改用 `syminfo.prefix`(交易所前缀)。
* ⛔️ 多行字符串拼接报 `line continuation`:本脚本已用括号包裹或 `str.format` 规避。
## 免责声明
该指标仅供筛选与研究使用,不构成投资建议。请结合你的第3步新闻/基本面甄别与第4步执行规则共同决策。
TFX Multi EMA Indicator (5, 10, 20, 50, 100, 200)5, 10, 20, 50, 100, 200 EMA
This indicator will be used to see the averages up to 5 candles, 10 candles, 20 candles, 50 candles, 100 candles, and 200 candles, enjoy!
Tristan's Devil Mark (Short / Long, with W%R)The Devil’s Mark indicator is a visual tool designed to help traders identify potential short and long opportunities based on candle structure and market momentum. It combines price action analysis with the Williams %R (W%R) oscillator to highlight candles with high potential for reversal or continuation.
Can be used on any timeline, from scalping day trades to swing trades on daily and higher timelines. Know that the higher the timeline the less likely the indicator will show. (Asia and London sessions tend to show many indicators. I find this more useful for NY session.)
How the script works
Candle Structure Conditions
Short (Sell) Wedge: Plotted above green candles that have no bottom wick, indicating that inside that candle there was strong upward momentum without downside hesitation .
Long (Buy) Wedge: Plotted below red candles that have no top wick, indicating that inside that candle there was strong downward momentum without upside hesitation .
These candles are visually emphasized as wedges to mark potential turning points.
Williams %R Filter
The indicator uses Williams %R to measure overbought and oversold conditions:
Proximity to 0 (nearZeroThresh): Determines how close W%R must be to 0 (overbought) to trigger a Sell Wedge. This acts as a “Sell sensitivity” filter.
Proximity to -100 (nearHundredThresh): Determines how close W%R must be to -100 (oversold) to trigger a Buy Wedge. This acts as a “Buy sensitivity” filter.
When the candle meets both the candle structure and the W%R condition, the wedge is plotted in purple (“Within W%R Range”).
When the "ignore W%R filter" toggle is on, all eligible candles are plotted regardless of W%R. Wedges that normally would not meet W%R criteria are plotted in light purple (“Outside W%R Range”) to distinguish them. #YOLO (🚫 I recommend leaving "Ignore W%R Filter" OFF)
Settings Explained
Williams %R Length: The number of bars used to calculate the W%R oscillator. Shorter lengths make it more sensitive; longer lengths smooth the readings.
Proximity to 0 / 100: Controls how “strict” the indicator is in requiring overbought or oversold W%R conditions to trigger. Lower values mean closer to extreme zones, higher values are more permissive.
Ignore W%R Toggle: Option to show Devil’s Marks on every eligible candle regardless of W%R. Useful for visualizing purely price-action-based signals.
What the trader sees
Purple wedges: Candles meeting both candle structure and W%R conditions.
Light purple wedges: Candles meeting candle structure but ignored W%R (when toggle is on). #YOLO (🚫 I recommend leaving "Ignore W%R Filter" OFF)
Short opportunities are wedges above bars (green candles with no bottom wick).
Long opportunities are wedges below bars (red candles with no top wick).
Trading Insight
The Devil’s Mark is a momentum and reversal alert tool:
Look for purple downward-pointing wedges when W%R is near overbought. This is a potential shorting opportunity. Buying at the close of that candle may improve your short trades.
Look for purple upward-pointing wedges when W%R is near oversold. This is a potential
long opportunity. Buying at the close of that candle may improve your long trades.
Light purple wedges show the same price-action cues without W%R confirmation—useful for aggressive traders who want every potential setup. #YOLO #YMMV #noFullPort
Settings / Security
The “Output values” checkbox appears for each plotted series (like a plot or plotshape) and controls whether the series will also be exposed numerically in the Data Window or used by other indicators/scripts.
Here’s what it means in practice:
1. Checked (true)
The series values (like candle high, low, or any computed value) are exported to the Data Window and can be read by other scripts using request.security() or ta functions.
Example: You can see the exact numerical value of each plotted point in the Data Window when you hover over the chart.
Useful if you want to backtest or reference these plotted values programmatically.
2. Unchecked (false)
The series is plotted visually only.
The numeric values are hidden from the Data Window and cannot be accessed by other scripts.
Makes the chart cleaner if you don’t need the numeric outputs.
Ahi Ultimate Script v6Ultimate Script v6 – a clean and flexible tool for monitoring price action:
Shows key moving lines for tracking market direction, with options to turn each line on or off.
Highlights short-term levels where price may react, using small horizontal lines.
Displays visual signals like “LONG” or “SELL” directly on the chart to help spot opportunities.
Marks important time-based ranges with colored boxes for quick reference.
All elements are clear, adjustable, and designed to keep your chart neat and easy to read
ADOLFO'S NINJA TURTLE SOUPThis indicator signals when there is a turtle soup of m30 in the NY session following the trend of a supertrend indicator in a 1-hour time interval, being excellent for taking RR trades 1 to 1. Created by Engineer Adolfo Pérez Espinoza.
PAMASHAIn this version of 19 OCT 001 UPDATE, this Indicator forecast the future by indicating Hidden divergences and regular Divergences. Besides, it will distinguish order blocks, FVGs, ... .
MechArt ATR Box 12 V1.1MechArt ATR Box 12 V1.1 — Auto ATR Edition
Overview:
The MechArt ATR Box 12 is a precision visualization tool for tracking ATR-based trade levels across multiple tickers. It automatically plots your +1 ATR roll zone, -2 ATR stop, and -3 ATR emergency exit, providing a clear visual map of your trade’s range and time horizon.
Key Features:
Auto ATR on Entry Date: For each configured ticker, the indicator automatically pulls the historical ATR(14) value that matches your entry date — no manual ATR entry needed. This refreshes each time the ticker is revisited.
Smart Defaults for Other Tickers:
If a ticker isn’t listed in the code, the indicator defaults to your current price as the entry, calculates ATR live, and sets expiration 21 days out, aligned to the next Friday.
Multi-Ticker Setup (12 Slots):
You can predefine up to 12 tickers inside the code, each with its own entry price, entry date and expiration date. Once saved, the indicator recognizes and loads them automatically when you open that chart.
Customizable Appearance:
Adjustable opacity and colors for each ATR box
Line width, style, and transparency controls
DTE/ATR label with adjustable font size
Dynamic Labels:
Displays the remaining days to expiration (DTE) and the ATR value used for calculations.
Use Case:
Designed for swing traders and options traders managing multiple active tickers. Each ATR box visually represents your trade window — from entry through expiration — with clear risk and roll boundaries.
How It Works:
Simply open the code once and enter your 12 tickers, each with its entry date and price. The script handles ATR lookups and expiration alignment automatically. Any ticker not included will generate its own default 21-day box.
Aktien Spike Detector by DavidDescription:
This indicator marks the daily high and low on the chart and provides a visual and audible alert whenever the current price touches either of these levels. Additionally, the indicator highlights the candlestick that reaches the daily high or low to quickly identify significant market movements or potential reversal points.
Features:
📈 Daily high and low are automatically calculated and displayed as lines on the chart.
🔔 Alert notification when the price touches the daily high or low.
🕯️ Highlighting of the touch candlestick (e.g., color-coded) for better visual orientation.
💡 Ideal for traders trading breakouts, rejections, or intraday reversals.
Areas of application:
Perfect for day traders, scalpers, and intraday analysts who want to see precisely when the market reaches key daily levels.
Trading Sessions with 15 minute ORBA working copy of the original Tradingview trading sessions indicator with the addition of horizontal lines marking the 15 minute opening range for your ORB strategy. The lines reset with each session start.
DAMMU SWING TRADING PROScalping and swing trading tool for 15-min and 1-min charts.
Designed for trend, pullback, and reversal analysis.
Works optionally with Heikin Ashi candles.
Indicators Used
EMAs:
EMA89/EMA75 (green)
EMA200/EMA180 (blue)
EMA633/EMA540 (black)
EMA5-12 channel & EMA12-36 ribbon for short-term trends
Price Action Channel (PAC) – EMA high/low/close, length adjustable
Fractals & Pristine Fractals (BW filter)
Higher High (HH), Lower High (LH), Higher Low (HL), Lower Low (LL) detection
Pivot Points – optional, disables fractals automatically
Bar color coding based on PAC:
Blue → Close above PAC
Red → Close below PAC
Gray → Close inside PAC
Trading Signals
PAC swing alerts: arrows or shapes when price exits PAC with optional 200 EMA filter.
RSI 14 signals (if added):
≥50 → BUY
<50 → SELL
Chart Setup
Two panes: 15-min (trend anchor) + 1-min (entry)
Optional Heikin Ashi candles
Use Sweetspot Gold2 for support/resistance “00” and “0” lines
Trendlines can be drawn using HH/LL or Pivot points
Usage Notes
Trade long only if price above EMA200; short only if below EMA200
Pullback into EMA channels/ribbons signals potential continuation
Fractals or pivot points help define trend reversals
PAC + EMA36 used for strong momentum confirmation
Alerts
Up/Down PAC exit alerts configurable with big arrows or labels
RSI labels show buy/sell zones (optional)
Works on both 15-min and 1-min timeframes
If you want, I can make an even shorter “super cheat-sheet” version for 1-page quick reference for trading. It will list only inputs, signals, and colors.
Elite_Pro_SignalsA sophisticated trading indicator that combines 8 powerful technical factors into a single confidence score to identify high-probability reversal signals.
8-Factor Confidence Scoring - Weighted analysis of multiple technical aspects
Smart Trend Alignment - Multi-timeframe EMA convergence
Advanced Pattern Recognition - Pin Bars, Engulfing, Inside Bars, Hammer/Shooting Star
Supply/Demand Zones - Automatic key level detection
Support/Resistance Confluence - Price action at significant levels
⚡ Smart Filters
Market Regime Detection - Avoid choppy/low-volatility conditions
Volume Confirmation - Ensure institutional participation
Liquidity Sweep Validation - Smart money movement detection
Candle Quality Filter - Eliminate false signals from tiny candles
🔧 How It Works
Confidence Scoring System (0-100%)
text
Wick Strength (30%) + Trend Alignment (25%) + Pattern Recognition (15%) +
Supply/Demand Zones (12%) + Support/Resistance (10%) + RSI Momentum (5%) +
Volume & Liquidity (5%)
Signal Generation
🟢 BUY Signals - Bullish rejection + Uptrend + High confidence
🔴 SELL Signals - Bearish rejection + Downtrend + High confidence
🎨 Visual Features
Clear Buy/Sell Arrows - Easy-to-spot signals
Confidence Background - Color-coded confidence levels
Info Table - Real-time metrics and analysis
Multi-Timeframe EMAs - Trend direction visualization
Professional Alerts - Real-time notifications
⚙️ Customization
Confidence Weights
Adjust the importance of each factor to match your trading style
Strategy Parameters
EMA periods (Fast: 20, Slow: 50)
RSI levels (Oversold: 25, Overbought: 80)
Minimum confidence threshold (70% recommended)
Advanced Filters
Volume multiplier settings
Liquidity sweep sensitivity
Market regime filters
Zone detection parameters
📈 Recommended Usage
Timeframes
Primary: 5-minute to 1-hour charts
Best Results: 15-minute with 1-hour trend alignment
Markets
Forex Pairs (EURUSD, GBPUSD, XAUUSD)
Indices (US30, NAS100, DE40)
Commodities (Gold, Oil)
Trading Sessions
London & New York overlap (Highest volatility)
Avoid Asian session (Low signal quality)
🔍 Signal Interpretation
High-Confidence Signals (80%+)
Strong trend alignment
Clear rejection patterns
Volume confirmation
Multiple confluence factors
Medium-Confidence Signals (60-80%)
Good setup but missing 1-2 factors
Requires additional confirmation
Low-Confidence Signals (<60%)
Avoid trading
Wait for better setups
KDJ Max-Distance (K-D vs K-J)This indicator measures the maximum divergence between K and its related lines (D or J) in the KDJ stochastic system.
KEY CONCEPT:
- Calculates two distances: |K-D| and |K-J|
- Outputs whichever distance is larger
- Shows which component (D or J) is most diverged from K at any given time
CALCULATION:
1. Standard KDJ: K (fast), D (K smoothed), J (3K - 2D)
2. Distance K-D: momentum between fast and slow lines
3. Distance K-J: captures extreme divergence
4. Output: max(|K-D|, |K-J|) or signed version
INTERPRETATION:
• High positive values: K strongly above both D and J (strong upward momentum)
• High negative values: K strongly below both D and J (strong downward momentum)
• Near zero: K aligned with D/J (consolidation or reversal zone)
• Background color shows which is dominant: Teal=K-D, Orange=K-J
USE CASES:
- Identify extreme momentum conditions
- Spot divergence exhaustion
- Confirm trend strength
- Filter ranging vs trending markets
SETTINGS:
- Signed mode: preserves direction (positive/negative)
- Absolute mode: shows pure distance magnitude
- Adjustable guide levels for visual reference
CHAN CRYPTO RS🩷 ATR RS (Crypto / High-based 2.1x, Decimal Safe v2)
This indicator is designed for crypto position sizing and stop calculation using ATR-based risk management. It helps traders automatically determine the stop price, per-unit risk, and optimal position size based on a fixed risk amount in USDT.
🔧 Core Logic
ATR Length (Daily RMA) — calculates the daily Average True Range (ATR) using RMA smoothing.
ATR Multiplier (2.1× default) — defines how far the stop is placed from the daily high.
Stop Price (for Longs) = Daily High − ATR × Multiplier
Per-Unit Risk = (Entry − Stop) × Point Value
Position Size = Risk Amount ÷ Per-Unit Risk
Automatically handles decimal precision for micro-priced crypto assets (e.g., PEPE, SHIB).
Includes safeguards for minimum size and maximum position caps.
💡 Features
Uses Daily ATR without lookahead (no repainting).
Dynamically switches between current and previous ATR for stable results when the daily bar isn’t yet confirmed.
“Snap to tick” ensures stop prices align with the symbol’s tick size.
Table display summarizes ATR, stop price, per-unit risk, total risk, size, and bet amount.
Optional stop label on the chart for visual clarity.
🧮 Output Table
Metric Description
ATR(10) Daily RMA-based ATR
ATR used Chosen ATR (current or previous)
Stop Calculated stop price
Per-unit Risk per coin/unit
Risk Total risk in USDT
Size Optimal position size
Bet Total position value (Entry × Size)
🧠 Ideal For
Crypto traders who use fixed-risk ATR strategies and need precise, decimal-safe position sizing even for ultra-low-priced tokens.
Trí Nguyễn TrendM30 → M15 Reversal (Engulfing/Doji/Hammer)Trend follow M30
Entry M15 (Engulfing/Doji/Hammer)
Custom Moving Average Cross - White//@version=5
indicator("Custom Moving Average Cross", overlay=true)
// User-defined parameters for moving averages
short_period = input.int(10, title="Short Period", minval=1)
long_period = input.int(100, title="Long Period", minval=1)
// Calculate the moving averages
short_ma = ta.sma(close, short_period)
long_ma = ta.sma(close, long_period)
// Plot the moving averages
plot(short_ma, color=color.blue, title="Short MA")
plot(long_ma, color=color.red, title="Long MA")
// Define the buy and sell conditions based on crossovers
buy_signal = ta.crossover(short_ma, long_ma)
sell_signal = ta.crossunder(short_ma, long_ma)
// Plot the buy and sell signals with labels (white text)
plotshape(buy_signal, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal", text="BUY", textcolor=color.white)
plotshape(sell_signal, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal", text="SELL", textcolor=color.white)
// Optional: Background color to highlight the signals
bgcolor(buy_signal ? color.new(color.green, 90) : na, title="Buy Signal Background")
bgcolor(sell_signal ? color.new(color.red, 90) : na, title="Sell Signal Background")