moving_averages_library_public🔍 Overview
A comprehensive open‑source Pine Script library offering a wide variety of moving average functions, including dynamic int-series support for variable-length MA calculations
Reddit
✨ Features
Dozens of moving averages supported:
SMA, EMA, WMA, TMA
Advanced types: ALMA, VRAMA, EFRAMA, EHMA, THMA, etc.
Each function supports both fixed-length and series-length input
Easily integrated into other indicators and strategies via dynamic length parameters
⚙️ How to Use
Import the library:
import T69/Moving_Averages/1 as ma
Call your desired MA function using source and length:
ma.hma(src, len)
ma.frama(src, len)
For dynamic integration, use an input type and pass to the matching function.
🛠 Example Code
src = input.source(close, "Source")
len = input.int(14, "Length")
type = input.string("HMA", "MA Type", options= )
ma_value = switch type
"EMA" => ma.ema(src,len)
"HMA" => ma.hma(src,len)
"FRAMA" => ma.frama(src,len)
=> na
plot(ma_value, color=color.blue)
⚠️ Limitations
Internal calculation precision may differ slightly from TradingView’s built‑in MA functions
Users must manually map input strings to MA functions
Does not include built‑in GUI dropdowns for selecting type
💡 Tips
Use adaptive MAs like VIDYA, JMA, or KAMA for volatility-aware smoothing
Combine with oscillators or ATR bands to define trend strength or entry zones
Utilize series‑based MA inputs for backtesting variability or optimization
📘 Credits
Author: MightyZinger
Published: June 2022 (Public Library), regularly updated
License: Open‑source. Reuse subject to TradingView House Rules
//====================TECHNICAL STUFFS====================
Library "moving_averages_library_public"
TODO: add library description here
new_def_teyoparams()
get_all_ma_enums()
get_ma_out(p_type, src, len, update_instances)
TODO: add function description here
Parameters:
p_type (series ma_type)
src (float) : TODO: Source of the candle for computation
len (simple int) : TODO: Length of lookback of the candle for computation
update_instances (teyo_parameters)
Returns: TODO: add what function returns
==============================================================================
Moving Average Selector
==============================================================================
teyo_parameters
Fields:
p1 (series float)
p2 (series float)
p3 (series float)
p4 (series float)
p5 (series float)
p6 (series float)
p7 (series float)
p8 (series float)
p9 (series float)
p10 (series float)
p11 (series float)
p12 (series float)
p13 (series float)
p14 (series float)
p15 (series float)
p16 (series float)
p17 (series float)
p18 (series float)
p19 (series float)
p20 (series float)
Göstergeler ve stratejiler
SFC Indicator_2507使用說明書 / User Manual
═══════════════════════════════════════════════════════════════════════════════
概述 / Overview
繁體中文:
SFC Indicator 是一個多功能技術分析指標,整合了布林通道、移動平均線、真實波幅均值(ATR)、箱型理論以及 Bollinger Bandit 策略。此指標專為 TradingView 平台設計,提供全面的交易信號與風險管理工具。
English:
SFC Indicator is a comprehensive technical analysis indicator that integrates Bollinger Bands, Moving Averages, Average True Range (ATR), Box Theory, and Bollinger Bandit strategy. Designed for the TradingView platform, it provides comprehensive trading signals and risk management tools.
═══════════════════════════════════════════════════════════════════════════════
主要功能 / Key Features
1. 布林通道 (Bollinger Bands)
繁體中文:
- 支援雙標準差設定 (σ1, σ2)
- 預設週期:21
- 提供上軌、中軌、下軌顯示
- 自動生成買賣信號
English:
- Supports dual standard deviation settings (σ1, σ2)
- Default period: 21
- Displays upper, middle, and lower bands
- Automatic buy/sell signal generation
2. 移動平均線 (Moving Averages)
繁體中文:
- 三條可配置的移動平均線:快線(10)、中線(20)、慢線(60)
- 支援 SMA 和 EMA 切換
- 自定義顏色設定
English:
- Three configurable moving averages: Fast (10), Medium (20), Slow (60)
- Supports SMA and EMA switching
- Customizable color settings
3. 真實波幅均值 (Average True Range - ATR)
繁體中文:
- 預設週期:14
- 支援多種平滑方式:RMA、SMA、EMA、WMA
- 動態止損計算
- 風險管理工具
English:
- Default period: 14
- Multiple smoothing methods: RMA, SMA, EMA, WMA
- Dynamic stop-loss calculation
- Risk management tool
4. 箱型理論 (Box Theory)
繁體中文:
- 自動識別價格區間
- 視覺化箱型範圍
- 突破信號提示
English:
- Automatic price range identification
- Visual box range display
- Breakout signal alerts
5. Bollinger Bandit 策略
繁體中文:
- 動態追蹤止損
- ROC (變動率) 確認
- 自適應平倉機制
English:
- Dynamic trailing stop
- ROC (Rate of Change) confirmation
- Adaptive position closing mechanism
═══════════════════════════════════════════════════════════════════════════════
參數設定 / Parameter Settings
布林通道設定 / Bollinger Bands Settings
- 布林通道均線週期 BB Period: 21 (計算週期)
- 標準差 σ1: 1 (第一標準差倍數)
- 標準差 σ2: 2 (第二標準差倍數)
移動平均線設定 / Moving Average Settings
- 快線 Fast MA: 10 (短期移動平均)
- 中線 Medium MA: 20 (中期移動平均)
- 慢線 Slow MA: 60 (長期移動平均)
- 使用 EMA: false (切換至指數移動平均)
ATR 設定 / ATR Settings
- 週期 Period: 14 (ATR 計算週期)
- 平滑方式 Smoothing: RMA (平滑算法選擇)
Bollinger Bandit 設定 / Bollinger Bandit Settings
- 布林通道週期 BB Period: 50 (Bandit 策略布林週期)
- 初始平倉均線週期 Initial Exit MA: 50 (初始止損均線週期)
- ROC 週期 ROC Period: 30 (變動率計算週期)
箱型理論設定 / Box Theory Settings
- 箱型週期 Box Period: 21 (價格區間計算週期)
═══════════════════════════════════════════════════════════════════════════════
交易信號說明 / Trading Signals
布林通道信號 / Bollinger Bands Signals
繁體中文:
- 做多信號:價格連續 X 根 K 棒低於下軌後,突破下軌向上
- 做空信號:價格連續 X 根 K 棒高於上軌後,跌破上軌向下
- 止盈目標:上軌 (Profit1) 和上 2 軌 (Profit2) 或下軌和下 2 軌
- 止損點:下 2 軌減去 ATR 值或上 2 軌加上 ATR 值
English:
- Buy Signal: Price crosses above lower band after staying below for X consecutive bars
- Sell Signal: Price crosses below upper band after staying above for X consecutive bars
- Take Profit: Upper band (Profit1) and upper 2σ band (Profit2) or lower equivalents
- Stop Loss: Lower 2σ band minus ATR value or upper 2σ band plus ATR value
Bollinger Bandit 信號 / Bollinger Bandit Signals
繁體中文:
- 做多條件:ROC > 0 且價格突破 Bandit 上軌
- 做空條件:ROC < 0 且價格跌破 Bandit 下軌
- 動態止損:使用自適應移動平均線作為追蹤止損
English:
- Buy Condition: ROC > 0 and price breaks above Bandit upper band
- Sell Condition: ROC < 0 and price breaks below Bandit lower band
- Dynamic Stop: Uses adaptive moving average as trailing stop
═══════════════════════════════════════════════════════════════════════════════
視覺元素說明 / Visual Elements
圖表元素 / Chart Elements
- 綠色三角形 ▲:做多信號 (Buy Signal)
- 紅色倒三角形 ▼:做空信號 (Sell Signal)
- 橘色線:動態止損均線 (Dynamic Stop Loss MA)
- 藍色圓點:ROC > 0 (向上動能 / Upward Momentum)
- 橘色圓點:ROC < 0 (向下動能 / Downward Momentum)
資訊面板 / Information Panel
繁體中文:
右上角顯示即時交易資訊,包含:
- 當前交易方向 (做多/做空/空手)
- 進場價格 (Entry)
- 止損價格 (Loss)
- 止盈目標 1 和 2 (Profit1, Profit2)
- Bandit 上下軌價格 (Upper, Lower)
- 動態止損線數值 (Dynamic)
English:
Top-right panel displays real-time trading information:
- Current position (Long/Short/Flat)
- Entry price
- Stop-loss price
- Take-profit targets 1 and 2
- Bandit upper/lower band prices
- Dynamic stop-loss line value
═══════════════════════════════════════════════════════════════════════════════
使用建議 / Usage Recommendations
最佳實踐 / Best Practices
繁體中文:
1. 多時間框架確認:建議在更高時間框架確認趨勢方向
2. 風險管理:嚴格遵守止損設定,建議單筆風險不超過資金的2%
3. 信號過濾:結合ROC指標過濾假信號
4. 市場環境:在趨勢明確的市場中效果較佳
5. 回測驗證:使用前請先進行充分的歷史回測
English:
1. Multi-timeframe Confirmation: Confirm trend direction on higher timeframes
2. Risk Management: Strictly follow stop-loss settings, limit single trade risk to 2% of capital
3. Signal Filtering: Use ROC indicator to filter false signals
4. Market Conditions: Works best in trending markets
5. Backtesting: Conduct thorough historical backtesting before use
適用市場 / Suitable Markets
- 股票 Stock Markets
- 外匯 Forex Markets
- 期貨 Futures Markets
- 加密貨幣 Cryptocurrency Markets
═══════════════════════════════════════════════════════════════════════════════
警示設定 / Alert Settings
繁體中文:
指標內建兩種警示功能:
- 做多信號警示:「做多訊號,來也!!!」
- 做空信號警示:「做空訊號,來也!!!」
可在 TradingView 中設定價格警示,當信號出現時自動通知。
English:
Built-in alert functions:
- Buy signal alert: "做多訊號,來也!!!" (Buy Signal Alert!)
- Sell signal alert: "做空訊號,來也!!!" (Sell Signal Alert!)
Set up price alerts in TradingView for automatic notifications when signals occur.
═══════════════════════════════════════════════════════════════════════════════
技術資訊 / Technical Information
指標作者 / Indicator Author: @lincheng_SFC
版本 / Version: Pine Script v6
授權 / License: Mozilla Public License 2.0
發布平台 / Platform: TradingView
═══════════════════════════════════════════════════════════════════════════════
免責聲明 / Disclaimer
繁體中文:
本指標僅供教育和分析用途,不構成投資建議。交易涉及風險,過往表現不代表未來結果。請在使用前進行充分測試,並根據個人風險承受能力謹慎投資。
English:
This indicator is for educational and analytical purposes only and does not constitute investment advice. Trading involves risks, and past performance does not guarantee future results. Please conduct thorough testing before use and invest carefully according to your risk tolerance.
═══════════════════════════════════════════════════════════════════════════════
聯絡資訊 / Contact Information
作者 Author: @lincheng_SFC
如有問題或建議,歡迎在TradingView上聯繫
For questions or suggestions, feel free to contact on TradingView
TradeGlixAuto Support & Resistance, EMA Based Trading Supported. Bullish and Bearish Candle color. etc
DTA Seven-Candle Trend IndicatorSeven candles Trend Identifier
📊 Output:
* Trend shown in table: "Uptrend", "Downtrend", or "Sideways"
* Strength level:
* "Strong" = 10+ confirmations (HH/HL or LL/LH)
* "Moderate" = 6–9 confirmations
* "Weak" = anything else (Sideways)
* All colors sync with background and label styles
The yellow background color in the script indicates a sideways trend — meaning:
🟨 Yellow Background = Sideways Market
This occurs when:
* The last 7 candles do not form a clear uptrend (higher highs & higher lows)
* And also do not form a clear downtrend (lower highs & lower lows)
🔍 Why It Happens:
* Mixed candle structure
* Price is oscillating in a range
* No dominant directional momentum
* Often seen before breakouts or during consolidation
✅ Example:
Imagine the last 7 candles had highs and lows like this:
Bar High Low
1 100 95
2 98 94
3 101 96
4 100 95
5 99 93
6 102 97
7 100 95
In this case:
* Not consistently making higher highs/lows (so not uptrend)
* Not consistently making lower highs/lows (so not downtrend)
➡️ Therefore, the script marks it as sideways, and the background turns yellow.
DTA Seven-Candle Trend IndicatorSeven candles Trend Identifier
📊 Output:
* Trend shown in table: "Uptrend", "Downtrend", or "Sideways"
* Strength level:
* "Strong" = 10+ confirmations (HH/HL or LL/LH)
* "Moderate" = 6–9 confirmations
* "Weak" = anything else (Sideways)
* All colors sync with background and label styles
The yellow background color in the script indicates a sideways trend — meaning:
🟨 Yellow Background = Sideways Market
This occurs when:
* The last 7 candles do not form a clear uptrend (higher highs & higher lows)
* And also do not form a clear downtrend (lower highs & lower lows)
🔍 Why It Happens:
* Mixed candle structure
* Price is oscillating in a range
* No dominant directional momentum
* Often seen before breakouts or during consolidation
✅ Example:
Imagine the last 7 candles had highs and lows like this:
Bar High Low
1 100 95
2 98 94
3 101 96
4 100 95
5 99 93
6 102 97
7 100 95
In this case:
* Not consistently making higher highs/lows (so not uptrend)
* Not consistently making lower highs/lows (so not downtrend)
➡️ Therefore, the script marks it as sideways, and the background turns yellow.
Ayman Entry Signal – With HTF + Pin Bar
A professional and versatile trading indicator combining classic technical analysis with Smart Money Concepts to detect high-probability entry points.
Designed especially for scalping gold and forex pairs on lower timeframes. Fully customizable to suit any trading style.
✅ Key Features:
EMA Trend Confirmation
Break of Structure (BoS) Detection
Order Block Zone Recognition
Fair Value Gap (FVG) Confirmation
Liquidity Sweep Detection
Pin Bar Candlestick Confirmation
Higher Timeframe Confirmation (HTF EMA + HTF BoS)
🎯 Smart Risk Management:
Automatically calculates Stop Loss (SL) and Take Profit (TP) based on the selected timeframe.
Dynamically adjusts lot size based on account capital and risk percentage.
📈 How It Works:
The indicator triggers a Buy or Sell signal only when a selected set of conditions are met, including:
Trend direction (EMA crossover)
Break of structure
Presence within strong supply/demand zones
Confirmation from higher timeframe
Reversal Pin Bar pattern
🛎 Alerts:
Built-in alert system notifies you instantly when a valid Buy or Sell signal is triggered.
⚙️ Customizable Settings:
Risk Percentage
Capital Size
HTF timeframe
Enable/Disable individual filters (EMA, BoS, OB, FVG, Liquidity, Pin Bar, HTF)
📌 Best Timeframes:
1-min, 5-min, and 15-min – especially during high-volume sessions like London or New York.
🔸 Note:
This is not financial advice. Always backtest and use manual confirmations before live trading.
Price action + MA + MTF RSI + S/R Zones by GunjanPanditDescription:
This script combines multiple powerful trading tools into a unified indicator designed for trend-following and confirmation-based entries. It is built to assist traders in identifying actionable signals based on price structure, volatility, and momentum across multiple timeframes.
🔧 How It Works
✅ UT Bot Core Logic
The script uses a variation of the UT Bot (Ultimate Trend Bot) method to generate buy/sell signals.
Signals are based on ATR-filtered trailing stop levels to reduce noise and detect real trend changes.
A Buy is triggered when the price closes above the UT trailing stop.
A Sell is triggered when the price closes below it.
✅ Multi-Timeframe RSI Confirmation
RSI is calculated on a user-defined higher timeframe (default: 1 hour).
A buy signal is confirmed only if RSI is below the oversold level, and vice versa for sell signals.
This confirmation layer adds an extra filter to improve signal reliability and reduce whipsaws.
✅ Support & Resistance Zones (MTF)
The script automatically plots dynamic support and resistance zones using highs/lows from the selected higher timeframe.
These zones are visualized as shaded bands, helping users recognize key levels where price may reverse or consolidate.
✅ Visual Aids & Alerts
Buy and Sell signals are clearly labeled on the chart.
Optional RSI plot in a separate pane for visual monitoring.
Real-time alert conditions included for both Buy and Sell entries.
📈 Use Case & Recommendations
This script is best suited for:
Swing trading or intraday strategies in trending markets.
Traders who want confirmation across timeframes to filter noise.
Spotting key entry zones aligned with momentum and volatility.
Recommended to use in combination with:
Volume or trend structure analysis.
Stop-loss and take-profit risk management based on ATR or S/R zones.
inal Thoughts
This indicator is ideal for traders who value:
Multi-timeframe analysis
Visual clarity
Signal confirmation
And clean, customizable overlays for actionable trading insights.
📊 TickerTrendz - TradeScopeWhat This Indicator Does — In Plain English
This indicator helps you understand how much the market might move today and tomorrow, so you can trade smarter.
Here’s how it works:
Today’s Expected Range (Intraday ATR Projection):
It measures how much the market typically moves in a day (called ATR).
Starting from when the overnight Globex session opens at 5 PM CST, it draws lines showing 20%, 60%, and 100% of that typical daily movement above and below today’s session open price.
It also tells you, in real time, how far price has moved relative to that typical range, shown as a percentage. For example, “You’re 60% through today’s expected move.”
This helps you see if the market is calm, just starting to move, or already reaching typical daily highs or lows.
Tomorrow’s Volatility Forecast:
Using yesterday’s price moves, yesterday’s daily volatility, and average market volatility, it predicts how volatile the market might be tomorrow.
It colors the forecast to show if tomorrow is likely to be a normal day (green), a high volatility day (orange), or an extreme volatility day (red).
This gives you a heads-up if you should expect big moves or more calm trading the next day.
All Info in One Place:
Instead of cluttering your chart with many labels, all this info is neatly shown in a box on the top-right corner of your chart.
You get a quick snapshot of both today’s progress and tomorrow’s volatility forecast without distraction.
Why It Helps You
Manage your trades better: Knowing how much the market tends to move helps you place smarter stops and targets.
Prepare for volatility spikes: You’ll get a warning before big moves so you can adjust your trading style or risk.
Stay aware intraday: See if the market is already “done moving” for the day or if there’s still room for big swings.
400 EMA 1min and 5min Collision Alert//@version=5
indicator("400 EMA 1min and 5min Collision Alert", overlay=true)
// === Inputs ===
len = input.int(400, title="EMA Length")
threshold = input.float(0.1, title="Collision Threshold", tooltip="Max difference between EMAs to trigger alert")
// === EMAs ===
// 400 EMA on 1-minute timeframe
ema_1min = request.security(syminfo.tickerid, "1", ta.ema(close, len))
// 400 EMA on 5-minute timeframe
ema_5min = request.security(syminfo.tickerid, "5", ta.ema(close, len))
// === Plot EMAs ===
plot(ema_1min, title="400 EMA (1min)", color=color.orange, linewidth=2)
plot(ema_5min, title="400 EMA (5min)", color=color.blue, linewidth=2)
// === Collision Detection ===
collide = math.abs(ema_1min - ema_5min) <= threshold
plotshape(collide, title="Collision!", location=location.abovebar, color=color.red, style=shape.triangleup, size=size.small)
// === Alerts ===
alertcondition(collide, title="EMAs Collide", message="400 EMA (1min) and 400 EMA (5min) have collided.")
Days Since ±1% Move on CloseInterpretation & Use‑Case
The “Days Since ±1% Move” indicator simply tells you how many trading days have passed since the last daily close that moved at least 1% in either direction. Here’s how to put it to work:
Complacency Gauge
A long stretch without a ≥1% move often signals that realized volatility has collapsed and market participants may be under‑positioned for a sudden swing.
Positioning Insight
When institutional hedges and systematic strategies see low recent volatility, they tend to scale back protection (fewer options hedges, tighter risk limits), which can amplify the impact of any eventual volatility pickup.
Mean‑Reversion Signal
After an extended streak (e.g. 20–30 days), a fresh ≥1% move is more likely—and often more violent—because pent‑up positioning flows rush to adjust.
Trend Confirmation
Conversely, a reset in the count (i.e., a new ≥1% move) that coincides with strong volume and follow‑through suggests genuine directional conviction rather than just a volatility “blip.”
PRO Investing - Quant AlphaCentauri D |XLF|PRO Investing - Quant AlphaCentauri D |XLF|
1. Summary and Core Concept
This is a quantitative backtesting strategy engineered specifically for the Financial Select Sector SPDR Fund (XLF) on the Daily (1D) timeframe. The name "AlphaCentauri" reflects its goal: to seek alpha by identifying statistically significant opportunities through rigorous time series analysis.
The strategy's core principle is to move beyond conventional technical indicators and instead analyze the underlying structure and character of price data. It is designed to methodically identify conditions that have historically preceded sustained directional trends in the financial sector.
2. The Analytical Process: How It Works
This strategy employs a multi-stage quantitative process to filter for high-probability setups. It is a "mashup" of statistical concepts applied to price action.
Structural Pattern Recognition: The engine's primary function is to analyze the historical price series of XLF to identify specific, recurring structural patterns. It examines price geometry and cyclical behavior to find formations that often act as the foundation for a new, emerging trend.
Signal Execution: A signal to enter a trade is only generated when the findings from both the structural analysis and the validation stages are in agreement. This disciplined, multi-layered approach ensures the strategy remains flat during periods of high uncertainty and only engages when its quantitative criteria are fully met.
3. How to Use This Strategy
Timeframe: This strategy has been designed, tested, and optimized exclusively for the Daily (1D) timeframe on the XLF ticker. Its logic is not intended for other timeframes or assets and may produce unreliable results if used differently.
On-Chart Signals: The strategy's operation is transparent. It plots all historical buy and sell entries, along with their corresponding exits, directly on the chart for easy performance review and analysis.
4. Risk Management: The Strategy's Foundation
This strategy is built upon a foundation of strict, non-negotiable risk management, which is reflected in its code and backtesting parameters. This design complies with TradingView's guidelines for publishing realistic and responsible strategies.
Dynamic Stop-Loss and Position Sizing: A stop-loss is dynamically calculated for each trade based on recent market volatility. The strategy then automatically adjusts the position size for that trade to target a defined risk percentage. In cases of extreme market volatility, the maximum potential loss on a single trade may approach, but is designed not to exceed, 5% of total account equity. Under normal market conditions, the risk for most trades will be below this maximum threshold.
Realistic Backtesting Parameters:
Initial Capital: The backtest defaults to an initial capital of $100,000.
Commission: A realistic fee of $5.00 per order is included to simulate broker costs.
5. Disclaimer
This strategy is an educational tool provided for informational and research purposes. It is not financial advice. All trading carries a high level of risk, and past performance is not a guarantee of future results. You are solely responsible for your own trading decisions and risk management. Always conduct your own due diligence before deploying any trading strategy in a live account.
signBTC Day&Session BoxesThis indicator visually segments the trading week on your chart, drawing each day from 17:00 to 17:00 New York time (corresponding to the typical forex daily rollover). For enhanced session structure, every day is further divided into three major trading sessions:
Asian Session
London Session
New York Session
Additionally, the indicator automatically marks the opening time of each new day at 17:00 (New York time) directly on the chart, helping traders quickly identify daily cycles and session transitions.
Customization Features
Adjustable Session Times: Users can modify the start and end times for each session (Asian, London, New York) to match personal or institutional trading hours.
Flexible Day Boundaries: The time marking the start and end of each day (default: 17:00 NY) can also be adjusted according to preference or asset specifics.
Opening Time Marker: The feature for drawing the daily opening time can be enabled or disabled in the settings.
This tool is ideal for traders needing clear visual cues for session boundaries and daily market resets, especially those operating across multiple time zones or managing strategies dependent on session-specific behavior. All settings are conveniently accessible and fully customizable within the indicator’s parameter panel.
QT Separator by BailaSimple and Clean QT indicator.
Helps to spot SSMT
Based on: Daye Quarterly Theory by toodegrees
These Quarters represent:
A - Accumulation (required for a cycle to occur)
M - Manipulation
D - Distribution
X - Reversal/Continuation
Vasyl Ivanov | Volatility by Extremums"Volatility by Extremums" is an original technical indicator designed to measure market volatility based on the analysis of price extreme points. Unlike traditional volatility indicators that use standard statistical methods, this indicator calculates volatility as a percentage price change between local maximums and minimums, providing a more accurate understanding of actual price fluctuations in the market.
Unique Methodology
The indicator uses an innovative approach to volatility calculation:
Extremum Detection: The algorithm automatically identifies local maximums and minimums based on configurable parameters, including lookback period and minimum distance between extremums, measured in ATR (Average True Range) units.
Relative Volatility Calculation: For each pair of adjacent extremums, volatility is calculated using the formula: (|Max - Min| / Max) × 100%, where volatility is expressed as a percentage of the maximum value in the pair.
Result Aggregation: The indicator computes two key metrics:
Average volatility - arithmetic mean of all calculated volatility values
Maximum volatility - highest volatility value between extremums during the analyzed period
Technical Parameters
Main Settings:
Lookback (1000): Number of bars for historical analysis
Extremums Bars Lookback (10): Period for extremum search
Extremums Minimal Distance (2 ATR): Minimum distance between extremums for noise filtering
ATR Period (30): Average True Range calculation period
ATR Average Period (20): ATR averaging period
Visualization:
Color-coded extremums: Bullish extremums marked in green, bearish in red
Information table: Displays current average and maximum volatility values in the top-right corner of the chart
Dynamic markers: Automatic placement of ▼ and ▲ symbols on corresponding extremums
Practical Applications
Market Condition Analysis
The indicator helps traders identify:
High volatility periods: When average volatility exceeds historical norms, indicating potential for large price movements
Consolidation phases: Low volatility values signal periods of energy accumulation before potential breakouts
Extreme movements: Maximum volatility shows the largest price swings, which may indicate important market events
Risk Management
Volatility data enables:
Position size adaptation based on current market volatility
Dynamic stop-loss setting corresponding to market activity levels
Optimal entry point selection during periods of reduced volatility
Trading Strategies
The indicator is effective for:
Breakout strategies: Low volatility often precedes strong directional movements
Counter-trend trading: Extremely high volatility values may signal potential reversals
Scalping: Understanding current volatility level helps choose appropriate instruments and timeframes
Advantages Over Traditional Indicators
Unlike standard volatility measures such as standard deviation or ATR, this indicator:
Focuses on actual extremums: Analyzes real price reversal points rather than abstract statistical indicators
Adapts to market conditions: Uses ATR to determine significant extremums, filtering market noise
Provides contextual information: Shows not only current volatility but also historical maximum, helping assess the relative significance of current movements
Usage Recommendations
Parameter Optimization:
For intraday trading: Reduce Lookback period to 200-500 bars
For position trading: Increase minimum distance between extremums to 3-4 ATR
For high-volatility assets: Set ATR period to shorter periods (14-21)
Combining with Other Indicators:
Best results are achieved when used together with:
Trend indicators to determine overall market direction
Oscillators for precise entry and exit timing
Volume indicators to confirm movement strength
Technical Limitations
Users should consider:
The indicator is based on historical data and does not guarantee future results
Requires sufficient historical data for correct operation (minimum 100 bars)
Most effective on liquid markets with clearly defined extremums
"Volatility by Extremums" represents an innovative approach to market volatility analysis, providing traders with a unique tool for understanding price dynamics and making informed trading decisions based on actual market extremums.
Highs and Lows🔍 Highs and Lows – Liquidity Zone Tracker
This script automatically detects and highlights key swing highs and lows on your chart using a pivot-based algorithm. These zones are dynamically plotted as visual rectangles that help identify unmitigated liquidity pools commonly used in Smart Money and institutional trading models.
Each level is marked as “fresh” when first plotted, meaning it hasn't been interacted with by price. When price touches a zone (via wick or full body), the script automatically de-emphasizes that zone to help you focus on actionable, untested levels.
📌 Key Features:
Pivot-Based Detection: Highs and lows are derived from confirmed swing points using a user-defined lookback period (default: 25 bars).
Freshness Logic:
Fresh zones are visually emphasized.
Touched zones fade automatically once price interacts, reducing chart clutter and drawing focus to relevant liquidity.
Customizable Visuals:
Individual styling for high and low zones (border color, fill color, style, width).
Adjustable max number of zones shown (default: 4 per side).
Touch & Break Detection:
Uses both wick interaction and full-body candle cross to determine freshness.
Real-Time Alerts:
Optional alerts for when price touches fresh high or low levels, ideal for breakout, mitigation, or reaction-based strategies.
📈 Practical Use Cases:
Identify untapped liquidity pools for entries/exits.
Visualize institutional interest areas in line with ICT/Smart Money models.
Use as entry confirmation zones in confluence with FVGs, BOS/CHOCH, and displacement tools.
Highlight stop-hunt or inducement zones before market expansion.
⚙️ How It Works:
High/low levels are detected using ta.pivothigh and ta.pivotlow.
Detected zones are boxed from the swing candle’s high/low to its close.
Price interaction logic:
Wick touch sets a box to "unfresh".
Full-body cross can reset a box as “fresh”.
Arrays are used to manage both box objects and their freshness states.
Max zone limits keep the chart clean and focused.
🛑 This script is closed-source to protect unique zone-tracking and visual management logic, but all key functionality and use cases are fully described above.
xGhozt Stoch RSI StrategyA Stochastic RSI-based strategy that enters long or short when the K line exits extreme zones. Includes optional ATR-based stop loss and take profit levels. Supports both trend-following and reversal logic. Fully configurable.
Renko Chart Mirror (Separate Pane) + AlertA TradingView indicator that mirrors your Renko chart’s block-by-block price action in its own pane, with color‑coded bricks and customizable new‑block alerts.
Overview
When you’re trading on a Renko chart, it can be handy to see the exact brick open/close sequence in a dedicated pane—especially if you like to layer additional studies or simply want a clearer view. This indicator reads the Renko-processed OHLC values directly from your chart and replots them as a step line, coloring each brick green or red. It also flags and optionally alerts you whenever a new Renko brick is formed.
Key Features
Separate Pane Mirror
Replots the Renko chart’s own open and close values in a clean, non‑overlay pane—no recalculation of Renko logic needed.
Color‑Coded Bricks
Bullish bricks (close > open) in green, bearish bricks (close < open) in red, with gray lines for each brick’s open level.
New‑Block Marker
Tiny triangle markers at each new brick close, matching the brick’s direction.
Built‑In Alert Conditions
Two alert conditions—“Renko Bullish Block” and “Renko Bearish Block”—so you can trigger notifications, webhooks, or automated orders when your chart prints a new up‑brick or down‑brick.
Zero Maintenance
Simply apply on any Renko chart; it auto‑adjusts to your brick size and chart symbol.
Note: All style properties (colors, line widths, marker sizes) can be adjusted in the Pine editor to suit your visual preferences.
How to Use
Switch your chart to any Renko style (classic, ATR‑based, etc.).
Add the “Renko Chart Mirror” indicator in the Indicators panel—choose “New Block” alerts if you want notifications.
Create alerts:
In the Alerts dialog, select either Renko Bullish Block or Renko Bearish Block (or both).
Customize the alert message, expiration, and delivery method (popup, email, webhook).
Trade with confidence: watch the mirrored pane for a clear, color‑coded view of each brick’s open/close sequence, and act the moment a new brick forms.
Why You’ll Love It
Clarity: Separates Renko bricks from cluttered overlays.
Speed: Immediate visual cue and alert when a new price block prints.
Flexibility: Works with any Renko variant and across all symbols/timeframes.
Simplicity: No complex inputs—just add it and go.