Relative Strength with CNX500This indicator compares the relative strength of the stock with respect to a wider benchmark index Nifty 500
Indicators and strategies
𝐍𝐄𝐔𝐑𝐀𝐋 𝐍𝐄𝐓𝐖𝐎𝐑𝐊神经网络交易系统全网都在疯狂寻找的神经网络交易系统
策略通过整合多种技术指标(如EMA、Supertrend、HMA、PSAR、RSI、MACD、WaveTrend、Stochastic、Bollinger Bands、ATR、RVI、OBV、CMF、VWAP、K线形态等),生成综合交易信号。策略采用评分系统,根据各指标的权重累积分数,触发强/弱多头和空头信号,并结合趋势过滤(可选)和止损机制进行交易管理。
The neural network trading system that the entire network is frantically searching for
The strategy integrates multiple technical indicators (such as EMA、Supertrend、HMA、PSAR、RSI、MACD、WaveTrend、Stochastic、Bollinger Bands、ATR、RVI、OBV、CMF、VWAP、K Generate comprehensive trading signals based on line shapes, etc. The strategy adopts a scoring system, accumulates scores based on the weights of each indicator, triggers strong/weak long and short signals, and combines trend filtering (optional) and stop loss mechanism for trading management.
量价标准化分析指标指标旨在通过量价关系的标准化分析,捕捉市场中的价格动能(Price Strength)和成交量强度(Volume Strength),并生成相对流量(RROF)指标,结合信号线和偏见/情绪线进行交易决策支持。主要功能包括:相对流量(RROF):结合价格强度(基于K线形态和价格变化)和成交量强度,计算量价加权的相对强度指标。
EVEREX 带:以可视化“均衡带”形式显示标准化价格和成交量强度,类似于音量均衡器。
偏见/情绪(Bias/Sentiment):基于较长周期计算市场趋势方向,提供背景趋势参考。
关键形态标记:识别“Ease of Movement”(价格强于成交量)和“Compression”(价格弱于成交量)形态,标记潜在交易机会。
警报系统:支持多头(金叉)和空头(死叉)信号,基于RROF和信号线的交叉。
指标适合日内交易、波段交易和动能分析,适用于有成交量数据的市场(如股票、期货)和无成交量数据的市场(如某些外汇对)
The indicators aim to capture price strength and volume strength in the market through standardized analysis of volume price relationships, and generate relative flow (RROF) indicators to support trading decisions by combining signal lines and bias/sentiment lines. The main functions include: Relative Flow (RROF): combining price intensity (based on K-line patterns and price changes) and trading volume intensity to calculate a volume price weighted relative strength indicator.
EVEREX Band: Displays standardized prices and trading volume intensity in the form of a visual 'balanced band', similar to a volume equalizer.
Bias/Sentiment: Calculate market trend direction based on longer cycles and provide background trend references.
Key form markers: Identify the "Ease of Movement" (price stronger than volume) and "Compression" (price weaker than volume) forms, and mark potential trading opportunities.
Alarm system: supports bullish (golden cross) and bearish (dead cross) signals, based on the intersection of RROF and signal lines.
The indicator is suitable for intraday trading, band trading, and momentum analysis, and is applicable to markets with trading volume data (such as stocks and futures) and markets without trading volume data (such as certain forex pairs)
Killzone za Forex - @mladja123This indicator marks the Kill Zones for Forex pairs, identifying the most active trading sessions and price areas with increased volatility. It allows traders to focus on high-probability trading windows, improving timing for entries, exits, and trade management in the Forex market.
Killzone za Indexe - @mladja123This indicator highlights the Kill Zones on index charts, showing key market sessions where high-probability price movements are likely to occur. It helps traders identify optimal entry and exit points based on session dynamics and market rhythm, enhancing strategy precision for swing and intraday trading on indices.
Dani u nedelji + midnight open @mladja123This indicator breaks the weekly timeframe into cycles and marks the midnight open for each day. It helps traders visualize weekly structure, identify key daily openings, and track market rhythm within the week. Perfect for analyzing trend patterns, swing setups, and session-based strategies.
Advanced Pattern Detection System [50+ Patterns]【Advanced Pattern Detection System - Auto-detects 50+ Chart Patterns】
Introducing the most powerful pattern detection indicator for TradingView!
◆ What is this?
An automated tool that finds and displays over 50 chart patterns on your charts. It detects all the patterns professional traders use - Double Tops, Triangles, Head & Shoulders, and more - all in ONE indicator.
◆ Main Features
・Detects 50+ patterns in real-time
・Shows visual explanation of WHY each pattern was identified
・Automatically calculates theoretical target prices
・Displays confidence levels in % (60-95%)
・Choose panel position from 9 locations
・Works on all timeframes (1min to Monthly)
◆ Detectable Patterns
1. Classic Patterns (Double Top/Bottom, Head & Shoulders, etc.)
2. Triangle Patterns (Ascending, Descending, Symmetrical, Expanding)
3. Continuation Patterns (Flags, Pennants, Wedges, etc.)
4. Harmonic Patterns (Gartley, Butterfly, Bat, etc.)
5. Price Action (Pin Bar, Engulfing, Hammer, etc.)
6. Special Patterns (Cup & Handle, V-formations, etc.)
◆ What Makes It Different
・Not just detection - shows the reasoning behind it
・Auto-draws pivot points and necklines
・Displays target prices with % gain/loss from current price
・Detects multiple patterns simultaneously, sorted by confidence
・Available in both Japanese and English versions
◆ Perfect For
✓ Anyone tired of using multiple indicators
✓ Beginners wanting to learn pattern trading
✓ Traders who don't want to miss entry points
✓ Those looking to improve discretionary trading accuracy
◆ How to Use (Easy 3 Steps)
1. Open TradingView and paste code in Pine Editor
2. Click "Add to Chart"
3. Enable only the patterns you need in settings
◆ Color Meanings
Green → Bullish potential (Buy signal)
Red → Bearish potential (Sell signal)
Yellow → Neutral direction (Wait and see)
◆ Recommended Settings
Scalping: Detection period 20, Sensitivity 0.0025
Day Trading: Detection period 50, Sensitivity 0.002
Swing Trading: Detection period 100, Sensitivity 0.0015
◆ Real Trading Example
"Detects Double Bottom → 85% confidence → Enter on neckline break → Take profit at displayed target price"
This is how you can use it in practice.
◆ Important Notes
・This is an analysis tool, not investment advice
・Always combine with other indicators
・Always set stop losses
・Practice on demo account before live trading
◆ Performance
If running slow, turn OFF unused pattern categories. Reducing max display count to 3 also helps.
◆ Summary
This single tool provides functionality that would normally require multiple paid indicators (worth $100-200 total). It's the ultimate pattern detection system recommended for all traders, from beginners to professionals.
Give it a try if interested! Feel free to ask questions in the comments.
EMA inFusion Pro - Multiple SourcesEMA Fusion Pro: Dynamic Trend & Momentum Strategy with Three Exit Modes
EMA Fusion Pro is a highly customizable, multi-exit trend-following strategy designed for traders who value both precision and flexibility. By leveraging exponential moving averages (EMA), average directional index (ADX), and volume analysis, this strategy aims to capture trending market moves while offering three distinct exit modes for optimal risk management across varying market conditions.
Strategy Overview
This strategy systematically identifies potential entry points using a moving average crossover with highly configurable data sources (including price, volume, rate of change, or their Heikin Ashi versions) and filters signal quality with ADX trend strength and volume spikes. Each trade is managed with one of three advanced exit methodologies—reverse signal, ATR-based stop/take profit, or fixed percentage—giving you the control to adapt your risk profile to different market regimes.
Key Features
Customizable EMA Source: Calculate the core trend-filtering EMA from price (default), volume, rate of change, or their Heikin Ashi counterparts for unique market perspectives.
Trend Filter with ADX: Confirm entries only when the trend is strong, as measured by the user-adjustable ADX threshold.
Volume Spike Confirmation: Optional filter to only take trades with above-average volume activity, reducing false signals.
Three Exit Modes:
Reverse Signal: Exit trades when a new, opposite entry signal occurs.
ATR-Based Stop/Take Profit: Dynamic risk management using multiples of the average true range (ATR) for both take profit and stop loss.
Percent-Based Stop/Take Profit: Fixed-percentage risk management with user-defined thresholds.
Visual Annotations: Signal markers, EMA line color-coded by source, trend background coloring, and optional ATR/percent-based TP/SL levels.
Info Panel: Real-time display of all core indicators, current trading mode, exit parameters, and position status for quick oversight.
How It Works
Entry Logic: A crossover signal (above/below the EMA) triggers a new entry, but only if both ADX trend strength and (optionally) volume spike conditions are met.
Exit Logic: Three selectable modes allow you to exit trades on reverse signals, at a dynamic ATR-based profit or loss, or at a fixed percentage gain/loss.
Flexible Data Analysis: The EMA source can be chosen from six options—standard price, volume, rate of change, or their Heikin Ashi variants—allowing experimentation with different market dimensions.
Risk Management: All exits are precisely controlled, either by the next opposing signal, by volatility-adjusted levels, or by fixed risk/reward ratios.
Backtest & Optimization: The strategy is fully backtestable within TradingView’s Strategy Tester, with adjustable parameters for optimization.
Customization & Usage
Indicator Source: Select your preferred data type for EMA calculation, opening the door to creative strategy variations (e.g., volume momentum, pure price trend, rate of change divergence).
Filter Toggles: Enable/disable ADX and volume filters as desired—useful for different market environments.
Exit Mode Selection: Switch between reverse, ATR, or percent-based exits with a single parameter—ideal for adapting to ranging vs. trending markets.
Visual Clarity: The EMA line color reflects its underlying source, and the info panel summarizes all critical values for easy monitoring.
Who Should Use This Strategy?
Trend Followers seeking to ride strong moves with multiple exit options.
Experienced Traders who want to experiment with different data types (volume, momentum, Heikin Ashi) for trend analysis.
Algorithmic Traders looking for a robust, flexible base to build upon with their own ideas.
Getting Started
Apply the script to your chart and review default settings.
Customize parameters—EMA length, ADX threshold, volume settings, exit type—as desired.
Backtest on multiple instruments and timeframes to evaluate performance.
Optimize filters, exit rules, and risk parameters for your preferred trading style.
Monitor with the real-time info panel and trade alerts.
Disclaimer
This script is for educational and entertainment purposes only. It is not financial advice. Past performance is not indicative of future results. Always conduct thorough testing and consider your risk tolerance before trading real capital.
— Happy Trading —
Feel free to adapt, share, and contribute to this open-source strategy!
Gold Scalping Trend Strategy [Optimized] ANT1 GOLD🟡 Gold Scalping Trend Strategy – Explained
This is a short-term scalping strategy designed for XAU/USD (gold), but it can also be applied to other volatile instruments.
It combines trend detection (moving averages + ATR filter) with scalping take-profit levels and a safety stop-loss.
The goal is to ride small but high-probability moves in the direction of the intraday trend while protecting capital.
CHOP Debug//@version=6
indicator("CHOP Debug", overlay=false)
// your f_chop from the strategy
f_chop(_len) =>
atr_sum = math.sum(ta.atr(1), _len)
pr_range = ta.highest(high, _len) - ta.lowest(low, _len)
safe_range = pr_range != 0 ? pr_range : 1e-10
100 * math.log10(atr_sum / safe_range) / math.log10(_len)
// input & compute
chopLen = input.int(14, "CHOP Length")
chopVal = f_chop(chopLen)
// plot CHOP line
plot(chopVal, color=color.purple, title="CHOP(14)")
hline(60, color=color.gray, title="Threshold")
// optional: show value as a label at the last bar
if barstate.islast
label.new(bar_index, chopVal, text=str.tostring(chopVal, format.mintick),
yloc=yloc.price, style=label.style_label_left,
color=color.purple, textcolor=color.white)
ConfluenceX Scanner • Setup + EntryThe ConfluenceX Scanner is a precision trading tool that combines multiple confirmations into one system — giving you high-probability setups in real time.
✔ Support & Resistance detection
✔ Stochastic extremes (92/6)
✔ Keltner channel breakouts
✔ Setup vs Strong Buy/Sell signals
Instead of guessing, you’ll know exactly when multiple factors align.
Binary traders use it for fast, 60-second entries.
Forex traders use it for precise, high-probability setups.
Access is invite-only and managed through Whop. Purchase a license on Whop to unlock full access, alerts, and community support.
Swing Support and Resistance with Breakout AlertsOverview
The indicator is a custom Pine Script tool designed for TradingView that automatically identifies and plots Swing Highs (Resistance) and Swing Lows (Support). It dynamically draws horizontal lines at these key price reversal points, extending them forward until they are broken, which provides traders with visual, data-driven support and resistance levels. The indicator also includes customizable alerts to notify users when a breakout occurs.
Key features
Dynamic Swing Detection: The indicator automatically detects significant swing high and low points based on a user-adjustable "Swing Detection Length" parameter. This allows traders to fine-tune the sensitivity, focusing on either short-term swings or major market turning points. Swing Length Adjustable.
Adaptive Support and Resistance Zones: The script plots horizontal lines at the detected swing levels. These lines dynamically extend forward in time, acting as predictive support and resistance zones until the price convincingly breaks through them.
Historical Context: Once a support or resistance level is broken, the indicator can optionally keep the line on the chart but changes its appearance (e.g., to a dashed line). This allows traders to see how previous levels have held or been violated, as broken resistance often becomes new support and vice versa.
Customizable Breakout Alerts: A key feature is the ability to generate alerts. When the price closes above a recent resistance line or below a recent support line, a notification is triggered. This helps traders monitor potential breakouts in real-time.
Visual Clarity: Users can customize the colors and styles of the lines and labels to suit their preferences, making it easier to distinguish between different levels and maintain a clean chart.
How to use
This indicator is a powerful tool for technical analysis and can be used in several ways:
Identify Market Structure: It provides a clear, visual representation of a market's recent structure and key reversal points.
Develop Trading Strategies: It can form the basis of a breakout strategy by using the alert function to identify when a key level is broken.
Set Stop-Loss and Take-Profit Levels: The swing highs and lows act as natural reference points for placing stop-loss orders and potential profit targets.
Confirm Trend Reversals: A failure to make a new swing high or low while the price moves in that direction can be a sign of a weakening trend and a potential reversal.
Always use proper risk management and stop-loss orders to protect your capital in case the market moves against your trade.
Keep in mind that the provided indicator is a simple example based on the Swing Highs (Resistance) and Swing Lows (Support) concepts and should not be considered financial advice.
Traders often combine multiple concepts to develop their trading strategies. The provided indicator should be treated as a starting point to explore and implement in your trading strategy.
Volatility Forecast/*==============================================================================
Volatility Forecast — Publishable Documentation
Author: @BB_9791
License: Mozilla Public License 2.0
WHAT THIS INDICATOR SHOWS
- A daily volatility estimate in percent points, called sigma_day.
- A slow volatility anchor, the 10-year EMA of sigma_day.
- A blended volatility series in percent points:
sigma_blend = (1 − p) * sigma_day + p * EMA_10y(sigma_day)
where p is the Slow weight %, default 30.
- Optional annualization by multiplying by 16, this is a daily-to-annual
conversion used by Robert Carver in his writings.
METHODOLOGY, CREDIT
The estimator follows the approach popularized by Robert Carver
("Systematic Trading", "Advanced Futures Trading Strategies", blog qoppac).
Current daily volatility is computed as an exponentially weighted standard
deviation of daily percent returns, with alpha = 2 / (span + 1).
The slow leg is a long EMA of that volatility series, about 10 years.
The blend uses fixed weights. This keeps the slow leg meaningful through
large price level changes, since the blend is done in percent space first.
MATH DETAILS
Let r_t be daily percent return:
r_t = 100 * (Close_t / Close_{t−1} − 1)
EWMA mean and variance:
m_t = α * r_t + (1 − α) * m_{t−1}
v_t = α * (r_t − m_t)^2 + (1 − α) * v_{t−1}
where α = 2 / (span_current + 1)
Current daily sigma in percent points:
sigma_day = sqrt(v_t)
Slow leg:
sigma_10y = EMA(sigma_day, span_long)
Blend:
sigma_blend = (1 − p) * sigma_day + p * sigma_10y
Annualized option:
sigma_ann = 16 * sigma_blend
INPUTS
- Threshold (percent points): horizontal guide level on the chart.
- Short term span (days): EW stdev span for sigma_day.
- Long term span (days): EMA span for the slow leg, choose about 2500 for 10 years.
- Slow weight %: p in the blend.
- Annualize (x16): plot daily or annualized values.
- Show components: toggles Current and 10y EMA lines.
- The script uses the chart symbol by default.
PLOTS
- Blended σ% as the main line.
- Optional Current σ% and 10y EMA σ%.
- Editable horizontal threshold line in the same units as the plot
(percent points per day or per year).
- Optional EMA 9 and EMA 20 cloud on the blended series, green for uptrend
when EMA 9 is above EMA 20, red otherwise. Opacity is configurable.
HOW TO READ
- Values are percent points of movement per day when not annualized,
for example 1.2 means about 1.2% typical daily move.
- With annualize checked, values are percent points per year, for example 18
means about 18% annualized volatility.
- Use the threshold and the EMA cloud to mark high or low volatility regimes.
NOTES
- All calculations use daily data via request.security at the chart symbol.
- The blend is done in percent space, then optionally annualized, which avoids
bias from the price level.
- This script does not produce trading signals by itself, it is a risk and
regime indicator.
CREDITS
Volatility forecasting method and scaling convention credited to Robert Carver.
See his books and blog for background and parameter choices.
VERSION
v1.0 Initial public release.
==============================================================================*/
ORB Pro — Auto Market + DST (자동 시장·썸머타임 ORB)_[by Irum]ORB Pro — Purpose & Definition (EN)
Purpose
Standardize and visualize the Opening Range Breakout process across markets (KR/US/EU/Crypto) with DST-safe auto session detection; generate three trade-friendly signals (Breakout, Retest, Fakeout); optionally gate by trend and volume; and fire both fixed alertcondition() and runtime alerts that include market names.
Definitions
Opening Range (OR): High/Low (and Mid) built over the configured “opening window”. Auto mode maps by timezone:
KRX 09:00–09:30, US 09:30–10:00 (Eastern, DST-safe), LSE 08:00–08:30, EU 09:00–09:30, Crypto 00:00–00:30.
Breakout: Close above ORH (+ optional ATR buffer) or below ORL (– buffer) for N consecutive closes.
Retest: Within retestBars after a breakout, a return toward ORH/ORL within a tolerance (retestTolPct × OR range) and closing back in the breakout direction.
Fakeout: Within fakeoutBars after the breakout, price re-enters the range past ORH/ORL by the buffer the other way.
ORB Pro — 목적 & 정의 (KR)
목적
시장(한국/미국/유럽/암호화폐)별 개장 구간을 DST(썸머타임)에 맞춰 자동 인식하고, OR(오프닝 레인지)을 시각화한 뒤 브레이크아웃·리테스트·페이크아웃 3종 신호를 제공합니다. 필요 시 추세/거래량 필터로 품질을 높이고, 정적 알림과 실시간 알림(시장명 포함)을 함께 발사할 수 있습니다.
정의
오프닝 레인지(OR): 개장 윈도우 동안의 고가/저가(및 중앙값). 자동 모드 기본 매핑:
KRX 09:00–09:30, 미국 09:30–10:00(동부시간·DST 적용), 런던 08:00–08:30, EU 09:00–09:30, 크립토 00:00–00:30.
브레이크아웃: 종가가 ORH(또는 ORL)를 ATR 버퍼 고려해 연속 N봉 돌파.
리테스트: 브레이크아웃 후 retestBars 이내, ORH/ORL 근방(OR 범위 대비 retestTolPct)을 재접근하고, 돌파 방향으로 종가 복귀.
페이크아웃: 브레이크아웃 후 fakeoutBars 이내, 반대 방향으로 버퍼 넘겨 재유입.
=================================================================================
Settings Manual (EN → KR)
0) Auto Session Detection
Auto-detect Market & ORB Session (DST-safe)
EN: Uses syminfo.timezone and ticker prefix to pick market and opening window (DST aware).
KR: 심볼의 타임존/접두사로 시장·세션 자동 결정(DST 자동 반영).
Manual ORB Session (when Auto is OFF)
EN: Session string like 0930-1000. Use for non-standard opens, RTH-only, etc.
KR: 수동 세션(예: 0930-1000). 변형 장세/정규장만 등 수동 지정.
Show Previous-Day OR
EN: Plots prior day’s OR lines outside today’s session.
KR: 전일 ORH/ORL 표시.
1) Signals & Logic
Breakout confirmation closes (연속 종가 수)
EN: Require 1–3 consecutive closes beyond ORH/ORL (+/– buffer). Higher = fewer false breaks.
KR: ORH/ORL 돌파 종가 연속 N봉 요구(높일수록 잡음 감소).
Use ATR Buffer (진입 버퍼?) / ATR Length / ATR Buffer (×ATR)
EN: Adds a cushion around OR to avoid wicky false triggers. Start 0.10×ATR on 5–15m, raise on volatile coins.
KR: OR 경계에 버퍼(쿠션) 부여. 5–15분 0.10×ATR 시작→변동 크면 상향.
Retest window (bars) & Retest tolerance (% of OR range)
EN: How long after break you accept a retest, and how near to OR line counts as “retest”.
KR: 브레이크아웃 후 리테스트 허용 시간과 OR 근접 허용폭.
Fakeout if back inside within bars
EN: Window to flag failed breaks.
KR: 되돌림 실패(페이크)로 간주할 시간창.
2) Filters
Trend Filter: EMA Direction / EMA Length / Direction Mode
EN: Gate signals to long-only above EMA, short-only below, or both. Default EMA 200.
KR: EMA 기준 상방만/하방만/전체 허용(기본 EMA200).
Volume Filter: Volume ≥ k × SMA / Volume SMA Length / Min Volume (% of SMA)
EN: Demand volume ≥ X% of SMA(volume). Use 110–150% on stocks; optional on crypto.
KR: 거래량이 SMA 대비 X% 이상일 때만 신호 인정(주식 110–150% 권장).
3) Visualization
Show OR Box / Lines / Midline
EN: Box during session; lines & midline after session.
KR: 세션 중 박스, 종료 후 라인/중앙선 표시.
Show Signal Markers / Text Labels / Market Header Label
EN: Triangles (break), circles (retest), crosses (fakeout), header at session start.
KR: 삼각(브레이크), 원(리테스트), X(페이크), 세션 시작 헤더 라벨.
4) Alerts
또한 alert()로 시장명 포함 동적 메시지 발사
EN: Besides the six alertcondition() (fixed texts), you can also push runtime alerts with market names.
KR: 6개 alertcondition()(고정문구) 외에 시장명 포함 실시간 알림도 발사.
How to add alerts (EN → KR)
Condition: ORB Pro Auto DST → choose one of:
ORB Long/Short Breakout, ORB Long/Short Retest, ORB Long/Short Fakeout.
Options: If using runtime alerts too, set “Once per bar” to avoid duplicates.
Webhook/Message: Your exchange bridge (e.g., TradingView → BingX) can parse the fixed message.
조건: ORB Pro Auto DST → 다음 중 선택:
롱/숏 브레이크아웃, 롱/숏 리테스트, 롱/숏 페이크아웃
옵션: 런타임 알림도 켜면 “바마다 1회” 권장(중복 방지).
웹훅/메시지: 고정 메시지 기반으로 자동매매 연동.
Student Wyckoff RS Symbol/MarketRelative Strength Indicator STUDENT WYCKOFF RS SYMBOL/MARKET
Description
The Relative Strength (RS) Indicator compares the price performance of the current financial instrument (e.g., a stock) against another instrument (e.g., an index or another stock). It is calculated by dividing the closing price of the first instrument by the closing price of the second, then multiplying by 100. This provides a percentage ratio that shows how one instrument outperforms or underperforms another. The indicator helps traders identify strong or weak assets, spot market leaders, or evaluate an asset’s performance relative to a benchmark.
Key Features
Relative Strength Calculation: Divides the closing price of the current instrument by the closing price of the second instrument and multiplies by 100 to express the ratio as a percentage.
Simple Moving Average (SMA): Applies a customizable Simple Moving Average (default period: 14) to smooth the data and highlight trends.
Visualization: Displays the Relative Strength as a blue line, the SMA as an orange line, and colors bars (blue for rising, red for falling) to indicate changes in relative strength.
Flexibility: Allows users to select the second instrument via an input field and adjust the SMA period.
Applications
Market Comparison: Assess whether a stock is outperforming an index (e.g., S&P 500 or MOEX) to identify strong assets for investment.
Sector Analysis: Compare stocks within a sector or against a sector ETF to pinpoint leaders.
Trend Analysis: Use the rise or fall of the RS line and its SMA to gauge the strength of an asset’s trend relative to another instrument.
Trade Timing: Bar coloring helps quickly identify changes in relative strength, aiding short-term trading decisions.
Interpretation
Rising RS: Indicates the first instrument is outperforming the second (e.g., a stock growing faster than an index).
Falling RS: Suggests the first instrument is underperforming.
SMA as a Trend Filter: If the RS line is above the SMA, it may signal strengthening performance; if below, weakening performance.
Settings
Instrument 2: Ticker of the second instrument (default: QQQ).
SMA Period: Period for the Simple Moving Average (default: 14).
Notes
The indicator works on any timeframe but requires accurate ticker input for the second instrument.
Ensure data for both instruments is available on the selected timeframe for precise analysis.
Up/Down Days, Volume & Price Change SummaryThis scripts helps you to see the up days and down days over the look back period defined by you .
One of the most important concept in judging the strength of the stock.
Use it
TMA +BB Bands Indicator//@version=5
indicator(shorttitle="BB", title="Bollinger Bands", overlay=true, timeframe="", timeframe_gaps=true)
length = input.int(20, minval=1)
maType = input.string("SMA", "Basis MA Type", options = )
src = input(close, title="Source")
mult = input.float(2.0, minval=0.001, maxval=50, title="StdDev")
ma(source, length, _type) =>
switch _type
"SMA" => ta.sma(source, length)
"EMA" => ta.ema(source, length)
"SMMA (RMA)" => ta.rma(source, length)
"WMA" => ta.wma(source, length)
"VWMA" => ta.vwma(source, length)
basis = ma(src, length, maType)
dev = mult * ta.stdev(src, length)
upper = basis + dev
lower = basis - dev
offset = input.int(0, "Offset", minval = -500, maxval = 500, display = display.data_window)
plot(basis, "Basis", color=#2962FF, offset = offset)
p1 = plot(upper, "Upper", color=#F23645, offset = offset)
p2 = plot(lower, "Lower", color=#089981, offset = offset)
fill(p1, p2, title = "Background", color=color.rgb(33, 150, 243, 95))
Fibonacci Pivot Trading System with EMA Filter & AlertsDescription
The Fibonacci Pivot Trading System is a versatile and powerful indicator designed for traders seeking to identify key support and resistance levels using Fibonacci-based pivot points. This system supports multiple pivot types (Fibonacci, Traditional, Woodie, Classic, DM, and Camarilla) and allows customization of timeframes (Daily, Weekly, Monthly, and more). It integrates advanced trading signals based on price rejection or breakout at pivot levels, enhanced by volume and RSI confirmations, and an optional EMA trend filter (20/50/100/200). The system avoids generating signals within the consolidation zone (between R1 and S1) to reduce false signals in low-volatility ranges. The indicator visually plots pivot levels, consolidation zones, and trade management levels (Take Profit and Stop Loss) with customizable labels and colors. Ideal for traders looking to capitalize on pivot-based price action with robust confirmation mechanisms.
Features
Customizable Pivot Types: Choose from Fibonacci, Traditional, Woodie, Classic, DM, or Camarilla pivot calculations.
Flexible Timeframes: Supports Daily, Weekly, Monthly, Quarterly, Yearly, and extended anchor periods.
Trading Signals: Generates buy/sell signals based on price rejection or breakout at pivot levels, avoiding the consolidation zone (R1-S1).
Confirmation Filters: Includes optional volume and RSI confirmation for signal validation.
EMA Trend Filter: Optional EMA (20/50/100/200) filter to align trades with the trend.
Visual Tools: Displays pivot levels, consolidation zones, and TP/SL lines with customizable colors, widths, and labels.
Alerts: Configurable alerts for trade opportunities based on Fibonacci pivot signals.
How to Use
Select the desired Pivot Type and Timeframe from the input settings.
Enable Trade on Rejection or Trade on Breakout to generate signals based on price action outside the consolidation zone (R1-S1).
Use Volume Confirmation and RSI Confirmation to filter signals for higher accuracy.
Apply the EMA Filter to ensure trades align with the broader trend.
Customize the display of pivot levels, labels, and TP/SL lines to suit your chart preferences.
Set up alerts to be notified of potential trade opportunities.
Full Stochastic (TC2000-style EMA 5,3,3)Full Stochastic (TC2000-style EMA 5,3,3) computes a Full Stochastic oscillator matching TC2000’s settings with Average Type = Exponential.
Raw %K is calculated over K=5, then smoothed by an EMA with Slowing=3 to form the Full %K, and %D is an EMA of Full %K with D=3.
Plots:
%K in black, %D in red, with 80/20 overbought/oversold levels in green.
This setup emphasizes momentum shifts while applying EMA smoothing at both stages to reduce noise and maintain responsiveness. Inputs are adjustable to suit different symbols and timeframes.
ATR% + 1y Percentile (panel, v6) by chaidiagnostic panel. It plots ATR% and its 1-year percentile, so you can visually confirm whether a name is truly in a low-volatility regime and how extreme the percentile is.
ATR Extension from Moving Average, with Robust Sigma Bands
# ATR Extension from Moving Average, with Robust Sigma Bands
**What it does**
This indicator measures how far price is from a selected moving average, expressed in **ATR multiples**, then overlays **robust sigma bands** around the long run central tendency of that extension. Positive values mean price is extended above the MA, negative values mean price is extended below the MA. The signal adapts to volatility through ATR, which makes comparisons consistent across symbols and regimes.
**Why it can help**
* Normalizes distance to an MA by ATR, which controls for changing volatility
* Uses the **bar’s extreme** against the MA, not just the close, so it captures true stretch
* Computes a **median** and **standard deviation** of the extension over a multi-year window, which yields simple, intuitive bands for trend and mean-reversion decisions
---
## Inputs
* **MA length**: default 50, options 200, 64, 50, 20, 9, 4, 3
* **MA timeframe**: Daily or Weekly. The MA is computed on the chosen higher timeframe through `request.security`.
* **MA type**: EMA or SMA
* **Years lookback**: 1 to 10 years, default 5. This sets the sample for the median and sigma calculation, `years * 365` bars.
* **Line width**: visual width of the plotted extension series
* **Table**: optional on-chart table that displays the current long run **median** and **sigma** of the extension, with selectable text size
**Fixed parameters in this release**
* **ATR length**: 20 on the daily timeframe
* **ATR type**: classic ATR. ADR percent is not enabled in this version.
---
## Plots and colors
* **Main plot**: “Extension from 50d EMA” by default. Value is in **ATR multiples**.
* **Reference lines**:
* `median` line, black dashed
* +2σ orange, +3σ red
* −2σ blue, −3σ green
---
## How it is calculated
1. **Moving average** on the selected higher timeframe: EMA or SMA of `close`.
2. **Extreme-based distance** from MA, as a percent of price:
* If `close > MA`, use `(high − MA) / close * 100`
* Else, use `(low − MA) / close * 100`
3. **ATR percent** on the daily timeframe: `ATR(20) / close * 100`
4. **ATR multiples**: extension percent divided by ATR percent
5. **Robust center and spread** over the chosen lookback window:
* Center: **median** of the ATR-multiple series
* Spread: **standard deviation** of that series
* Bands: center ± 1σ, 2σ, 3σ, with 2σ and 3σ drawn
This design yields an intuitive unit scale. A value of **+2.0** means price is about 2 ATR above the selected MA by the most stretched side of the current bar. A value of **−3.0** means roughly 3 ATR below.
---
## Practical use
* **Trend continuation**
* Sustained readings near or above **+1σ** together with a rising MA often signal healthy momentum.
* **Mean reversion**
* Spikes into **±2σ** or **±3σ** can identify stretched conditions for fade setups in range or late-trend environments.
* **Regime awareness**
* The **median** moves slowly. When median drifts positive for many months, the market spends more time extended above the MA, which often marks bullish regimes. The opposite applies in bearish regimes.
**Notes**
* The MA can be set to Weekly while ATR remains Daily. This is deliberate, it keeps the normalization stable for most symbols.
* On very short intraday charts, the extension remains meaningful since it references the session’s extreme against a higher-timeframe MA and a daily ATR.
* Symbols with short histories may not fill the lookback window. Bands will adapt as data accrues.
---
## Table overlay
Enable **Table → Show** to see:
* “ATR from \”
* Current **median** and **sigma** of the extension series for your lookback
---
## Recommended settings
* **Swing equities**: 50 EMA on Daily, 5 to 7 years
* **Index trend work**: 200 EMA on Daily, 10 years
* **Position trading**: 20 or 50 EMA on Weekly MA, 5 to 10 years
---
## Interpretation examples
* Reading **+2.7** with price above a rising 50 EMA, near prior highs
* Strong trend extension, consider pyramiding in trend systems or waiting for a pullback if you are a mean-reverter.
* Reading **−2.2** into multi-month support with flattening MA
* Stretch to the downside that often mean-reverts, size entries based on your system rules.
---
## Credits
The concept of measuring stretch from a moving average in ATR units has a rich community history. This implementation and its presentation draw on ideas popularized by **Jeff Sun**, **SugarTrader**, and **Steve D Jacobs**. Thanks to each for their contributions to ATR-based extension thinking.
---
## License
This script and description are distributed under **MPL-2.0**, consistent with the header in the source code.
---
## Changelog
* **v1.0**: Initial public release. Daily ATR normalization, EMA or SMA on D or W timeframe, robust median and sigma bands, optional table.
---
## Disclaimer
This tool is for educational use only. It is not financial advice. Always test on your own data and strategies, then manage risk accordingly.