ikrit : EMA Cross 3/5/20 + Stochastic (Shift=1)EMA 3 5 20 Shift1
Stochastic 35 3 3
It is an indicator used to run trends and find entry points according to the trend by considering the trend on TF H1 and above and entering orders when the EMA lines intersect on M5.
Göstergeler ve stratejiler
AInfluence Manual Data Input Utility Indicator V101AInfluence (Manual Data Input Utility Indicator) V101
Overview
This utility indicator enables you to plot an external data series directly on your TradingView chart. It is designed for users who want to correlate custom datasets, such as sentiment analysis, economic data, or other external metrics, with price action.
Instructions
1. Add the indicator to your chart.
2. Go into the indicator's "Settings" panel.
3. Paste your pre-formatted data into the text input field.
Data Formatting Rules
The script requires a specific format for each data point, which consists of a numerical value and a timestamp
• Structure: Each data point must be on a new line.
• Limit: You can paste a maximum of 146 records.
Example Data:
93.1562,2025-09-06 00:59:11
94.9062,2025-09-06 01:59:21
93.4062,2025-09-06 02:59:18
95.2188,2025-09-06 03:59:31
93.4062,2025-09-06 04:59:21
91.4583,2025-09-06 05:58:51
93.7812,2025-09-06 06:59:17
The source code for this indicator is open and accessible.
Time ZonesThis indicator plots Horizontal lines for specific time on the chart as per the time selected and then trade accordingly
All in 1 by PKAll in one indicator comprising of stock name and sector, adr %, Market cap, and moving averages
LE Watchlist🔧 How to use this in TradingView:
Copy → paste into Pine Editor → click Add to Chart.
Go to your Watchlist → click the 3 dots → Add Column → Indicators.
Pick Above 8EMA & Premarket High Column.
Now your watchlist will show:
✔ (green check) if price is above both 8 EMA and premarket high.
✖ (red X) if not.
HIFI Altcoin Season Index (Total3 vs BTC)This indicator helps you determine whether the crypto market is in an "altcoin season" or a "bitcoin season." It doesn't compare every single altcoin to Bitcoin individually; instead, it uses a more efficient approach.
Methodology
The index calculates the difference in price performance over a selected period (default 90 days) between the total market capitalization of altcoins without Ethereum (TOTAL3) and Bitcoin (BTC).
Interpretation
Value above 75: TOTAL3 is showing significantly stronger growth than BTC, indicating an ALTCOIN SEASON. 🚀
Value below 25: BTC is outperforming TOTAL3, indicating a BITCOIN SEASON. 👑
Value between 25 and 75: The market is in a mixed or neutral phase. 🤷
Benefits
This method avoids the technical limitations of Pine Script when requesting data for a large number of symbols, making the indicator stable and reliable.
Disclaimer: This indicator is a tool for market analysis and should not be considered financial advice.
Volatility Monitor [HTF/LTF Maki]The way to set a buying and selling rule base on EMA in Multi Time Frame
ATR STOPLOSS FINDER 📌 English Explanation
This script is an ATR (Average True Range) Stop Loss Finder with a 5-bar maximum marker.
Purpose:
Helps traders visualize dynamic stop loss levels based on ATR, and highlights the most recent maximum stop value within a given lookback period.
Key Features:
1. ATR Calculation:
- Calculates ATR using the selected smoothing method (RMA, SMA, EMA, WMA).
- Multiplied by a user-defined multiplier (default: ×1.01).
2. Long Stop Line:
- A trailing stop is drawn below the candle’s low (Low – ATR × Multiplier).
3. All Stop Dots:
- Small wine-colored dots are plotted along the stop line.
4. 5-bar MAX Dots:
- Within the last 5 bars (customizable), the highest stop value is highlighted with larger, brighter dots.
5. Label:
- The most recent 5-bar maximum stop is displayed with a label above the bar, pointing downward so it doesn’t block the candle.
6. Customization:
- Inputs allow adjustments for ATR length, smoothing type, multiplier, and lookback window.
Usage:
This indicator is useful for setting stop losses dynamically in trending markets. It visually tracks where your ATR-based stop should be and shows the strongest recent level.
📌 한글 설명
이 스크립트는 ATR(평균 진폭 지표) 기반 스탑로스 찾기 + 최근 5봉 최고 스탑 표시기입니다.
목적:
트레이더가 ATR 기반으로 변동성에 맞춘 동적 스탑로스를 설정하고,
최근 구간 중 가장 강력한 스탑 레벨을 시각적으로 확인할 수 있게 해줍니다.
핵심 기능:
1. ATR 계산:
- 선택한 이동평균 방식(RMA, SMA, EMA, WMA)으로 ATR을 계산.
- 사용자 지정 배수(기본 1.01배)를 곱함.
2. 롱 스탑 라인:
- 각 봉의 저가에서 (ATR × 배수)를 뺀 값으로 스탑 라인 생성.
3. 모든 스탑 점:
- 스탑 라인 위에 작은 와인색 점을 찍어 시각적으로 확인.
4. 최근 5봉 MAX 점:
- 최근 5봉(조정 가능) 동안의 최고 스탑 값을 더 진하고 크게 표시.
5. 라벨 표시:
- 최신 5봉 최고 스탑 값은 봉 위에 라벨로 표시되며, 꼭지는 아래로 향해 봉을 가리킴 → 봉을 가리지 않음.
6. 사용자 설정:
- ATR 길이, 이동평균 방식, 배수, 룩백 기간 등을 자유롭게 조정 가능.
활용법:
추세장에서 변동성에 맞춘 손절 라인을 자동으로 그려주므로 진입 후 스탑로스를 관리하는 데 유용합니다.
최근 최고 스탑 지점을 강조해주어 리스크 관리에 도움을 줍니다.
3 Velas alejadas de EMA4 (1m) — Reversiónes una script de ema de 4 que sube o baja asdasdasdadadasdasdadasd
Trend Analyzer MACD EnhancedTrend Analyzer MACD Enhanced
Advanced trend analysis with MACD, RSI, Volume and Divergence detection!
Overview
This comprehensive indicator combines multiple technical analysis tools into one powerful visualization. It features dynamic background coloring, real-time signal strength calculation, and automatic divergence detection for complete market analysis.
Key Features
✅ Multi-Indicator Analysis- MACD, RSI, and Volume in one indicator
✅ Divergence Detection - Automatic bullish and bearish divergence identification
✅ Dynamic Background - Color-coded trend zones with smooth transitions
✅ Signal Strength - Weighted calculation showing overall market sentiment (0-100%)
✅ Trend Change Detection - Visual markers for trend reversals
✅ Information Table - Real-time status of all indicators
How It Works
The indicator calculates signal strength using weighted analysis:
- MACD (50%) - Primary trend momentum
- RSI (30%) - Overbought/oversold conditions
- Volume (20%) - Volume confirmation
Signal Strength Range: -100% to +100%
Visual Elements
Background Colors:
- 🟢 **Green** - Uptrend (intensity based on signal strength)
- 🔴 **Red** - Downtrend (intensity based on signal strength)
- ⚪ **Gray** - Neutral/sideways market
Trend Markers:
- 🔺 **Green Triangle Up** - Start of new uptrend
- 🔻 **Red Triangle Down** - Start of new downtrend
- 📏 **Vertical Lines** - Trend change confirmation
Information Table
Real-time display showing:
- Trend - Current trend state with color coding
- MACD - Direction and crossover status
- RSI - Level and overbought/oversold status
- Volume - Level and trend direction
- Divergence - Current divergence status
- Signal Strength - Overall percentage
Alerts
Built-in alerts for:
- Strong Buy/Sell Signals - High probability setups
- Divergence Signals - Early reversal warnings
Settings
MACD:Fast (12), Slow (26), Signal (9)
RSI:Length (14), Overbought (70), Oversold (30)
Volume:MA Length (20), Threshold (1.5x)
Display:Toggle RSI, Volume, and Table visibility
Best Practices
🎯 Works best in trending markets
📊 Use in separate window below main chart
⚡ Combine with price action analysis
🛡️ Always use proper risk management
Pro Tips
- Green background = Strong uptrend, Red background = Strong downtrend
- Signal strength > 50% = Very bullish, < -50% = Very bearish
- Watch for divergence signals for early reversal warnings
- Use the information table for quick market assessment
---
Created with ❤️ for the trading community
This indicator is free to use for both commercial and non-commercial purposes.
Quarters HTF: 1M/3M/6M/1YQuarters HTF — 1M / 3M / 6M / 1Y
Quartered Month / 3M / 6M / Year underlay. Finish-forward boxes to the next open. Lookback modes: Unlimited / Periods / Days / Bars.
('Pin to scale' may need to be set to "no scale")
GK Momentum Crossover with Risk MgmtThe **GK Momentum Crossover with Risk Mgmt** strategy is a trend-following Pine Script v5 strategy for TradingView, trading 1 unit. It uses:
- **Entry**: Buys when the 9-period EMA crosses above the 21-period EMA (bullish) with volume above its 20-period SMA; sells when the 9-period EMA crosses below (bearish).
- **Risk Management**:
- Fixed stop loss (e.g., $10 below/above entry for long/short).
- Trailing stop activates after a $10 profit, trailing by $5.
- Optional fixed take profit (e.g., $20) is commented out.
- **Goal**: Captures trends while limiting drawdown via absolute price-based stops, suitable for stocks, forex, or crypto. Adjustable inputs for SL, TP, and trailing thresholds.
EMA 10 & EMA 50A simple Pine Script that combines EMA 10 and EMA 50 into a single indicator so you don’t have to load two separate EMAs
Chartlense Dashboard (Data, Trend & Levels)Chartlense Dashboard (Data, Trend & Levels)
Overview
The Chartlense Dashboard is a compact overlay that consolidates key data points from multiple indicators into a single, clean table on your chart. Its primary function is to reduce indicator clutter and provide essential, at-a-glance information about the current market conditions.
This dashboard is designed for traders who want a clear and organized view of the key data without having to load and manage numerous separate indicators.
chartlense.com
Key Features & Functionality
📊 Consolidated Data Panel: Displays real-time values from essential indicators, including RSI, MACD, and multiple EMAs. This saves screen space and simplifies your analysis workflow.
🎯 Automatic Key Levels: The script automatically identifies and displays the nearest important support and resistance levels, adapting as the price moves.
📐 Flexible Layouts (Vertical & Horizontal): Choose the layout that best fits your workspace. Dock the dashboard vertically to the left of your chart or arrange it horizontally along the bottom via the settings menu.
✨ Minimalist Design: Engineered for maximum information with a minimal footprint to keep your main chart area clean and readable.
⚙️ Fully Customizable: Users can show or hide any data point. This allows you to tailor the dashboard to display only the information relevant to your specific trading strategy.
How to Use
Click 'Add to favorite indicators'.
Open any chart and add the "Chartlense Dashboard" from your favorite indicators list.
Customize the displayed data in the Settings (⚙️) to fit your needs.
vertical layout (left of chart)
horizontal layout (bottom of chart)
The Next Step in Your Analysis 🚀
About This Indicator & ChartLense
This dashboard is a free, stand-alone tool provided by ChartLense. It is designed to work alongside our primary product, the ChartLense Chrome Extension.
The purpose of this indicator is to provide a clean overview of market data. The purpose of the Chrome Extension is to perform a comprehensive analysis of the chart's structure. It identifies specific trading setups, calculates a risk score, and suggests precise entry and exit levels.
If you find this dashboard useful for organizing data, you may find the extension useful for a more in-depth analysis. You can learn more at chartlense.com
Disclaimer: This script is for informational purposes only and does not constitute investment advice. Always make your trading decisions based on your own analysis and risk assessment.
Bitcoin vs. Gold correlation with lagBTC vs Gold (Lag) + Correlation — multi-timeframe, publication notes
What it does
Plots Gold on the same chart as Bitcoin, with a configurable lead/lag.
Lets you choose how the series is displayed:
Gold shifted forward (+lag on chart) — shows gold ahead of BTC on the time axis (visual offset).
Gold aligned to BTC (gold lag) — standard alignment; gold is lagged for calculation and plotted in place.
BTC 200D Lag (BTC shifted forward) — visualizes BTC shifted forward (like popular “BTC 200D Lag” charts).
Computes Pearson correlations between BTC (no lag) and Gold (with lag) over multiple lookback windows equivalent to:
30d, 60d, 90d, 180d, 365d, 2y (730d), 3y (1095d), 5y (1825d).
Shows a table with the correlation values, automatically scaled to the current timeframe.
Why this is useful
A common macro claim is that BTC tends to follow Gold with a delay (e.g., ~200 trading days). This tool lets you:
Visually advance Gold (or BTC) to see that lead-lag relationship on the chart.
Quantify the relationship with rolling correlations.
Switch timeframes (D/W/M/…): everything automatically stays in sync.
Quick start
Open a BTC chart (any exchange).
Add the indicator.
Set Gold symbol (default TVC:GOLD; alternatives: OANDA:XAUUSD, COMEX:GC1!, etc.).
Choose Lag value and Lag unit (Days/Weeks/Months/Years/Bars).
Pick Visual Mode:
To mirror those “BTC 200D Lag” posts: choose “BTC 200D Lag (BTC shifted forward)” with 200 Days.
To view Gold 200D ahead of BTC: select “Gold shifted forward (+lag on chart)” with 200 Days.
Keep Rebase to 100 ON for an apples-to-apples visual scale. (You can move the study to the left price scale if needed.)
Inputs
Gold symbol: external series to pair with BTC.
Lag value: numeric value.
Lag unit: Days, Weeks, Months (≈30d), Years (≈365d), or direct Bars.
Visual mode:
Gold shifted forward (+lag on chart) → gold is offset to the right by the lag (visual only).
Gold aligned to BTC (gold lag) → standard plot (no visual offset); correlations still use lagged gold.
BTC 200D Lag (BTC shifted forward) → BTC is offset to the right by the lag (visual only).
Rebase to 100 (visual): rescales each series to 100 on its first valid bar for clearer comparison.
Show gold without lag (debug): optional reference line.
Show price tag for gold (lag): toggles the track price label.
Timeframe handling
The study uses the current chart timeframe for both BTC and Gold (timeframe.period).
Lag in time units (Days/Weeks/Months/Years) is internally converted to an integer number of bars of the active timeframe (using timeframe.in_seconds).
Example: on W (weekly), 200 days ≈ 29 bars.
On intraday timeframes, days are converted proportionally.
Correlation math
Correlation = ta.correlation(BTC, Gold_lagged, length_in_bars)
Lookback lengths are the bar-equivalents of 30/60/90/180/365/730/1095/1825 days in the active timeframe.
Important: correlations are computed on prices (not returns). If you prefer returns-based correlation (often more statistically robust), duplicate the script and replace price inputs with change(close) or ta.roc(close, 1).
Reading the table
Window: nominal day label (e.g., 30d, 1y, 5y).
Bars (TF): how many bars that window equals on the current timeframe.
Correlation: Pearson coefficient . Background tint shows intensity and sign.
Tips & caveats
Visual offsets (offset=) move series on screen only; they don’t affect the math. The math always uses BTC (no lag) × Gold (lagged).
With large lags on high timeframes, early bars will be na (normal). Scroll forward / reduce lag.
If your Gold feed doesn’t load, try an alternative symbol that your plan supports.
Rebase to 100 helps visibility when BTC ($100k) and Gold ($2k) share a scale.
Months/Years use 30/365-day approximations. For exact control, use Days or Bars.
Correlations on very short lengths or sparse data can be unstable; consider the longer windows for sturdier signals.
This is a visual/analytical tool, not a trading signal. Always apply independent risk management.
Suggested setups
Replicate “BTC 200D Lag” charts:
Visual Mode: BTC 200D Lag (BTC shifted forward)
Lag: 200 Days
Rebase: ON
Gold leads BTC (Gold ahead):
Visual Mode: Gold shifted forward (+lag on chart)
Lag: 200 Days
Rebase: ON
Compatibility: Pine v6, overlay study.
Best with: BTCUSD (any exchange) + a reliable Gold feed.
Author’s note: Lead-lag relationships are not stable over time; treat correlations as descriptive, not predictive.
Stalonte EMA - Stable Long-Term EMA with AlertsStalonte EMA - The Adaptive & Stable EMA - Almost Eternal
Here's why you will love "Stalonte":
The Stalonte (Stable Long-Term EMA) is a highly versatile trend-following tool. Unlike standard EMAs with fixed periods, it uses a configurable smoothing constant (alpha), allowing traders to dial in the exact level of responsiveness and stability they need. Finding the "sweet spot" (e.g., alpha ~0.03) creates a uniquely effective moving average: it is smooth enough to filter out noise and identify safe, high-probability trends, yet responsive enough to provide actionable signals without extreme lag. It includes alerts for crossovers and retests.
Pros and Cons of the Stalonte EMA
Pros:
Unparalleled Adaptability: This is its greatest strength. The alpha input lets you seamlessly transform the indicator from an ultra-slow "trend-revealer" (low alpha) into a highly effective and "safe" trend-following tool (medium alpha, e.g., 0.03), all the way to a more reactive one.
Optimized for Safety & Signal Quality: As you astutely pointed out, with the proper setting (like 0.03), it finds the perfect balance. It provides a smoother path than a standard 20-50 period EMA, which reduces whipsaws and false breakouts, leading to safer, higher-confidence signals.
Superior Trend Visualization: It gives a cleaner and more intuitive representation of the market's direction than many conventional moving averages, making it easier to "see" the trend and stick with it.
Objective Dynamic Support/Resistance: The line created with a medium alpha setting acts as a powerful dynamic support in uptrends and resistance in downtrends, offering excellent areas for entries on retests with integrated alerts.
Cons:
Requires Calibration: The only "con" is that its performance is not plug-and-play; it requires the user to find their optimal alpha value for their specific trading style and the instrument they are trading. This demands a period of testing and customization, which a standard 50-period EMA does not.
Conceptual Hurdle: For traders only familiar with period-based EMAs, the concept of a "smoothing constant" can be initially confusing compared to simply setting a "length."
In summary:
The Stalonte EMA is not a laggy relic. It is a highly sophisticated and adaptable tool. Its design allows for precise tuning, enabling a trader to discover a setting that offers a superior blend of stability and responsiveness—a "sweet spot" that provides safer and often more effective signals than many traditional moving averages. Thank you for pushing for a more accurate and fair assessment.
Use Case Example:
You can combine it with classical EMAs to find the perfect entry.
Multiplied and Divided Moving Average ### Multiplied and Divided Moving Average Indicator
**Description**:
The "Multiplied and Divided Moving Average" indicator is a customizable tool for TradingView users, designed to create dynamic bands around a user-selected moving average (MA). It calculates a moving average (SMA, EMA, WMA, VWMA, or RMA) and generates a user-defined number of lines above and below it by multiplying and dividing the MA by linearly spaced factors. These bands serve as potential support and resistance levels, aiding in trend identification, mean reversion strategies, or breakout detection. Optional Buy/Sell labels appear when the price crosses below the divided MAs (Buy) or above the multiplied MAs (Sell), providing clear visual cues for trading opportunities.
**Key Features**:
- **Flexible MA Types**: Choose from Simple (SMA), Exponential (EMA), Weighted (WMA), Volume-Weighted (VWMA), or Running (RMA) moving averages.
- **Customizable Bands**: Set the number of lines (0–10) above and below the MA, allowing tailored analysis for any market or timeframe.
- **Dynamic Factors**: Bands are created using factors that scale linearly from 1 to a user-defined maximum (default: 5.0), creating intuitive overbought/oversold zones.
- **Buy/Sell Signals**: Optional labels highlight potential entry (Buy) and exit (Sell) points when the price crosses the bands.
- **Clear Visuals**: The main MA is plotted in blue, with green (multiplied) and red (divided) lines using graduated transparency for easy differentiation.
**Inputs**:
- **MA Type**: Select the moving average type (default: SMA).
- **MA Length**: Set the MA period (default: 14).
- **Number of Lines Above/Below**: Choose how many bands to plot above and below the MA (default: 4, range: 0–10).
- **Max Factor**: Define the largest multiplier/divisor for the outermost bands (default: 5.0).
- **Source**: Select the price data for the MA (default: close).
- **Show Buy/Sell Labels**: Enable or disable Buy/Sell labels (default: true).
**How It Works**:
1. Calculates the chosen moving average based on user inputs.
2. Creates up to 10 lines above the MA (e.g., MA × 2, ×3, ×4, ×5 for `numLines=4`, `maxFactor=5`) and 10 below (e.g., MA ÷ 2, ÷3, ÷4, ÷5).
3. Plots the main MA in blue, multiplied lines in green, and divided lines in red, with transparency increasing for outer bands.
4. If enabled, displays "Buy" labels when the price crosses below any divided MA and "Sell" labels when it crosses above any multiplied MA, positioned at the outermost band.
**Use Cases**:
- **Trend Analysis**: Use the bands as dynamic support/resistance to confirm trend direction or reversals.
- **Mean Reversion**: Identify overbought (near multiplied MAs) or oversold (near divided MAs) conditions.
- **Breakout Trading**: Monitor price crossovers of the outermost bands for potential breakout signals.
- **Signal Confirmation**: Use Buy/Sell labels for swing trading or to complement other indicators.
**How to Use**:
1. Copy the script into TradingView’s Pine Editor.
2. Compile and apply it to your chart (e.g., stocks, forex, crypto).
3. Adjust inputs like `numLines`, `maxFactor`, or `maType` to fit your strategy.
4. Enable `Show Buy/Sell Labels` to visualize trading signals.
5. Test on various timeframes (e.g., 1H, 4H, 1D) and assets to optimize settings.
**Example Settings**:
- **Swing Trading**: Use `numLines=3`, `maxFactor=4`, `maType=EMA`, `maLength=20` on a 4-hour chart.
- **Intraday**: Try `numLines=2`, `maxFactor=3`, `maType=SMA`, `maLength=10` on a 15-minute chart.
**Notes**:
- **Performance**: Supports up to 20 bands (10 above, 10 below), staying within TradingView’s 64-plot limit.
- **False Signals**: In choppy markets, frequent crossovers may occur. Combine with trend filters (e.g., ADX, higher-timeframe MA) to reduce noise.
- **Enhancements**: Add alerts via TradingView’s alert system for Buy/Sell signals, or experiment with different `maxFactor` values for volatility.
**Limitations**:
- Bands are reactive, as they’re based on a moving average, so confirm signals with other indicators.
- High `numLines` values may clutter the chart; use 2–4 for clarity.
- Signals may lag in fast-moving markets due to the MA’s smoothing effect.
This indicator is perfect for traders seeking a customizable, visually clear tool to enhance technical analysis on TradingView. For support, feature requests (e.g., alerts, custom colors), or community discussion, visit TradingView’s forums or contact the script author.
Session BreaksSession Breaks (stable) draws vertical lines at the exact start of each Day / Week / Month / Quarter / Half-Year / Year aligned to the instrument’s TradingView session (Regular, Extended, or Custom). The script prioritizes higher timeframes (Y→H→Q→M→W→D) so lines never overlap, and it works on any chart timeframe.
Features
Session-aligned boundaries (respect exchange hours)
Toggle any timeframe, pick colors/styles
“Highest TF wins” de-dup logic (no clutter)
Lightweight, history-safe (line cap to protect performance)
Indicator only — places no orders or alerts by itself
Tip: Choose the session mode in settings to match your market hours.
MA Suite 6 Config - Bian (mack)Script to configure up to 6 emas with different settings, color updates and display identifying each one in the bottom corner of the chart.
Fractal Model [Free+] (T-Trades)Fractal Model - Higher Timeframe Analysis Tool
Advanced higher timeframe candle visualization with T-spot identification, sweep detection, and multi-timeframe price action analysis.
Introduction:
The Fractal Model is a Pine Script indicator that provides advanced higher timeframe (HTF) candle visualization and analysis. It identifies key price action patterns including T-spots, sweep signals, and imbalance zones to help traders understand market structure across multiple timeframes.
Description:
The Fractal Model analyzes price action by creating higher timeframe candles on your current chart, allowing you to see HTF structure without switching timeframes. It identifies specific price action patterns that often precede significant moves, including T-spot formations, sweep confirmations, and fair value gaps.
The indicator uses logarithmic midpoint calculations and pivot detection algorithms to identify high-probability entry and exit points. It automatically detects appropriate higher timeframes based on your current chart timeframe and provides real-time analysis of price action patterns.
Key Features:
Higher Timeframe Candle Visualization: Automatically creates higher timeframe candles on your current chart, allowing you to see HTF structure without switching timeframes. Supports up to 6 different HTF levels with automatic timeframe detection.
T-Spot Identification: Identifies T-spot formations using logarithmic midpoint calculations. T-spots mark areas where price is likely to form wicks based on specific price action patterns including sweep conditions and close position analysis.
Sweep Detection: Detects when price sweeps previous highs or lows but closes on the opposite side, creating potential reversal zones. Includes both high sweeps and low sweeps with visual confirmation lines.
Fair Value Gap (FVG) Detection: Identifies gaps between candle ranges where price didn't trade, creating potential support/resistance zones. Uses three-candle pattern analysis to detect imbalance areas.
Volume Imbalance Detection: Identifies areas where price action shows volume imbalance between consecutive candles, indicating potential continuation or reversal zones.
T-Spot Sweep Confirmation: Advanced confirmation system that requires pivot formation before T-spot touch, then close beyond the pivot level to confirm sweep signals.
TTFM Labeling System: Dynamic labeling system that tracks setup validity with C2, C3, and C4 labels indicating different types of T-spot formations and their confirmation status.
How the Code Works:
1. Higher Timeframe Detection:
The indicator automatically determines appropriate HTF based on your current chart:
- 1m charts: 15m HTF
- 3m charts: 30m HTF
- 5m charts: 1h HTF
- 15m charts: 4h HTF
- 30m-1h charts: 1D HTF
- 4h-8h charts: 1W HTF
- 1D charts: 1M HTF
2. T-Spot Calculation Algorithm:
T-spots are identified using logarithmic midpoint calculations combined with pivot-based logic:
- Calculates log midpoint = exp((log(high) + log(low)) / 2) for wick analysis
- Identifies sweep conditions: high > prev_high AND close < prev_high (bearish) or low < prev_low AND close > prev_low (bullish)
- Creates T-spot zones based on close position relative to logarithmic midpoint
- **Core Logic**: All T-spot formations are based on pivot creation patterns where price sweeps previous levels but closes on the opposite side, creating potential reversal zones
3. Sweep Detection Logic:
The code detects sweeps using pivot analysis:
- Uses ta.pivothigh() and ta.pivotlow() with 1,2 parameters for pivot detection
- Confirms sweeps when: pivot forms before T-spot touch AND close breaks beyond pivot level
- Tracks pivot levels and bars for confirmation validation
- **Pivot-Based Foundation**: The entire system is built on pivot creation logic - T-spots form when price creates pivots by sweeping previous levels but closing opposite, indicating potential reversal points
4. Fair Value Gap Detection:
FVG identification uses three-candle pattern analysis:
- Candle1.l > Candle2.h AND min(Candle1.o, Candle1.c) > max(Candle2.o, Candle2.c) for bullish FVG
- Candle1.h < Candle2.l AND max(Candle1.o, Candle1.c) < min(Candle2.o, Candle2.c) for bearish FVG
5. Visual Rendering System:
Uses array-based object management:
- Clears and redraws all visual elements on each bar
- Manages HTF candles, T-spots, sweeps, and labels using separate arrays
- Implements cleanup logic to prevent memory overflow
6. Pivot-Based T-Spot Types:
The indicator identifies several T-spot patterns based on pivot creation:
- **Standard T-Spots**: Price sweeps previous high/low but closes opposite, creating pivot
- **Expansive T-Spots**: Previous candle sweeps, current candle expands and closes beyond sweep level
- **Pro-trend T-Spots**: Price sweeps logarithmic midpoint but closes beyond previous levels
- **Silver T-Spots**: Special T-spots during specific market hours (4th-5th candle of day)
- All patterns require pivot formation through sweep-and-close logic for validation
Usage Guidance:
Add the Fractal Model indicator to your TradingView chart
Configure HTF settings and T-spot bias preferences
Adjust visual customization options to match your trading style
Monitor T-spot formations and sweep confirmations for entry signals
Trading Applications:
T-Spot Trading:
- Look for T-spot formations on higher timeframes
- Wait for price to touch T-spot levels
- Enter on sweep confirmation with proper pivot validation
- Use T-spot levels as support/resistance zones
Sweep Trading:
- Identify sweep patterns where price breaks previous highs/lows but closes opposite
- Use sweep levels as potential reversal zones
- Combine with T-spot analysis for higher probability setups
Fair Value Gap Trading:
- Trade FVG fills as price returns to imbalance areas
- Use FVG levels as support/resistance zones
- Combine with higher timeframe structure for context
Technical Specifications:
- Compatible with Pine Script v6
- Non-repainting indicator
- Supports all timeframes with automatic HTF detection
- Memory-efficient array management
- Real-time T-spot and sweep detection
- Customizable visual elements and colors
Disclaimer:
This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always conduct your own research and risk management before making trading decisions.
Multi-Timeframe EMA Analysis SuiteThis comprehensive multi-timeframe moving average analysis tool provides systematic trend evaluation across five configurable timeframes with advanced kernel regression envelope technology for dynamic boundary detection.
Core Innovation - Multi-Timeframe EMA System:
The primary functionality displays multiple exponential moving averages (9, 21, 30, 50, 100, 200), weighted moving average (14), and simple moving average (200) across customizable timeframes including 1H, 4H, Daily, Weekly, and Monthly periods. Each timeframe and moving average can be individually enabled or disabled based on analysis requirements.
Advanced Features:
Intelligent label positioning algorithms with automatic overlap prevention across multiple timeframes
Dynamic offset calculation maintaining readability when price levels converge
Comprehensive data table displaying all moving average values with color-coded formatting
Real-time market status evaluation categorizing conditions from "Strong Bullish" to "Strong Bearish"
Performance-optimized rendering with adjustable detail controls
Technical Implementation:
Built using Pine Script v6 with optimized multi-timeframe security requests through tuple-based data retrieval
The system implements efficient memory management and dynamic table systems for responsive chart performance during complex multi-timeframe calculations
Original developments include intelligent label spacing algorithms, dynamic offset management across timeframes, and comprehensive market status evaluation logic using moving average alignment principles
Enhanced Envelope System:
Incorporates and significantly extends the kernel regression envelope concept originally developed by LuxAlgo in their Nadaraya-Watson Envelope indicator. The mathematical foundation uses Gaussian weighting functions with substantial implementation improvements:
Complete redesign using optimized polyline rendering system for superior performance
Addition of center line calculation and visualization not present in the original
Performance optimization controls with adjustable detail levels
Enhanced label management with real-time value displays
Seamless integration with multi-timeframe analysis capabilities
Configuration Options:
Complete customization including timeframe selection, moving average lengths, envelope parameters, label positioning, table sizing, and visual styling. Users can create personalized analysis setups tailored to specific trading timeframes and analytical preferences.
Practical Applications:
Suitable for trend confirmation across multiple timeframes, identification of dynamic support and resistance levels, multi-timeframe market structure analysis, and systematic market direction evaluation
The combination of traditional moving averages with adaptive envelope boundaries provides both classical technical analysis and modern algorithmic boundary detection
Usage Instructions:
Enable desired timeframes and moving averages based on your analysis period
The envelope provides dynamic support/resistance levels while moving averages indicate directional bias. Use repainting mode for current analysis or non-repainting mode for consistent historical signals. Adjust performance settings based on system requirements and analysis detail needs
Educational Purpose:
This indicator is designed for educational and analytical purposes. Users should conduct thorough testing and validation before incorporating this tool into trading decisions.
APC Companion – Volume Accumulation/DistributionIndicator Description (TradingView – Open Source)
APC Companion – Volume Accumulation/Distribution Filter
(Designed to work standalone or together with the APC Compass)
What this indicator does
The APC Companion measures whether markets are under Accumulation (buying pressure) or Distribution (selling pressure) by combining:
Chaikin A/D slope – volume flow into price moves
On-Balance Volume momentum – confirms trend strength
VWAP spread – price vs. fair value by traded volume
CLV × Volume Z-Score – detects intrabar absorption / selling pressure
VWMA vs. EMA100 – confirms whether weighted volume supports price action
The result is a single Acc/Dist Score (−5 … +5) and a Coherence % showing how many signals agree.
How to interpret
Score ≥ +3 & Coherence ≥ 60% → Accumulation (green) → market supported by buyers
Score ≤ −3 & Coherence ≥ 60% → Distribution (red) → market pressured by sellers
Anything in between = neutral (no strong bias)
Using with APC Compass
Long trades: Only take Compass Long signals when Companion shows Accumulation.
Short trades: Only take Compass Short signals when Companion shows Distribution.
Neutral Companion: Skip or reduce size if there is no confirmation.
This filter greatly reduces false signals and improves trade quality.
Best practice
Swing trading: 4H / 1D charts, lenZ 40–80, lenSlope 14–20
Intraday: 5m–30m charts, lenZ 20–30, lenSlope 10–14
Position sizing: Increase with higher Coherence %, reduce when below 60%
Exits: Reduce or close if Score drops back to neutral or flips opposite
Disclaimer
This script is published open source for educational purposes only.
It is not financial advice. Test thoroughly before using in live trading.