Fair Value Gap + VI + FP_FVGThe Ultimate Fair Value Gap Indicator that you need.
Based on ICT's updated definition post 2022, if volume imbalances exists, we have to include the VI as part of the FVG.
As of 2025, ICT has introduced the suspension block - which is a FVG that has VI on both sides of the candle. This indicator shows the suspension block via the border.
Inclusive of HTF and current TF.
First Presented FVG is also included with the option to toggle current day and historical days.
Wskaźniki i strategie
Performance-based Asset Weighting(MTF)**Performance-Based Asset Weighting (MTF/Symbol Free Setting)**
#### Overview
This indicator is a tool that visualizes the relative strength of performance (price change rate) as “weight (allocation ratio)” for **four user-defined stocks**.
By setting any specified past point in time as the baseline (where all symbols are equally weighted at 25%), it aims to provide an intuitive understanding of which symbols outperformed others and attracted capital, or underperformed and saw capital outflows.
**【Default Settings and Application Scenario: Pension Fund Rebalancing Analysis】**
The default settings reference the basic portfolio of Japan's Government Pension Investment Fund (GPIF), configuring four major asset classes: domestic equities, foreign equities, domestic bonds, and foreign bonds. It is known that when market fluctuations cause deviations from this equal-weighted ratio, rebalancing occurs to restore the original ratio (selling assets whose weight has increased and buying assets whose weight has decreased).
Analyzing using this default setting can serve as a reference point for considering **“whether rebalancing sales (or purchases) by pension funds and similar entities are likely to occur in the future.”**
**【Important: Usage Notes】**
The weights shown by this indicator are **theoretical reference values** calculated solely based on performance from the specified start date. Even if large investors conduct significant rebalancing (asset buying/selling) during the period, those transactions themselves are not reflected in this chart's calculations.
Therefore, please understand that the actual portfolio ratios may differ. **Use this solely as a rough guideline. **
#### Key Features
* **Freely configure the 4 assets for analysis:** You can freely set any 4 assets (stocks, indices, currencies, cryptocurrencies, etc.) you wish to compare via the settings screen.
* **Performance-based weight calculation:** Rather than simple price composition ratios, it calculates each asset's price change since the specified start date as a “performance index” and displays each asset's proportion of the total sum.
* **Freely set analysis start date:** You can set any desired starting point for analysis, such as “after the XX shock” or “after earnings announcements,” using the calendar.
* **Multi-Timeframe (MTF) Support:** Independently of the timeframe displayed on the chart, you can freely select the timeframe (e.g., 1-hour, 4-hour, daily) used by the indicator for calculations.
#### Calculation Principle
This indicator calculates weights in the following three steps:
1. **Obtaining the Base Price**
Obtain the closing price for each of the four stocks on the user-set “Start Date for Weight Calculation.” This becomes the **base price** for analysis.
2. **Calculating the Performance Index**
Divide the current price of each stock by the **base price** obtained in Step 1 to calculate the “Performance Index”.
`Performance Index = Current Price ÷ Base Date Price`
This quantifies how many times the current performance has increased compared to the base date performance, which is set to “1”.
3. **Calculating Weights**
Sum the “Performance Indexes” of the four stocks. Then, calculate the percentage contribution of each stock's Performance Index to this total sum and plot it on the chart.
`Weight (%) = (Individual Performance Index ÷ Total Performance Index of 4 Stocks) × 100`
Using this logic, on the analysis start date, all stocks' performance indices are set to “1”, so the weights start equally at 25%.
#### Usage
* **Application Example 1: Market Sentiment Analysis (Using Default Settings)**
Analyze using the default asset classes. By observing the relative strength between “Equities” and “Bonds”, you can assess whether the market is risk-on or risk-off.
* **Application Example 2: Sector/Theme Strength Analysis**
Configure settings for groups like “Top 4 semiconductor stocks” or “4 GAFAM stocks.” Setting the start date to the beginning of the year or earnings season allows you to instantly compare which stocks within the same sector are performing best.
* **Application Example 3: Cryptocurrency Power Map Analysis**
By setting major cryptocurrencies like “BTC, ETH, SOL, ADA,” you can analyze which currencies are attracting market capital.
**【About Legend Display】**
Due to Pine Script specification constraints, the legend on the chart will display fixed names: **“Stock 1” to “Stock 4”. **
Please note that the symbol you entered for “Symbol 1” in the settings corresponds to the “Symbol 1” line on the chart.
#### Settings
* **Symbol 1 to Symbol 4:** Set the four symbols you wish to analyze.
* **Timeframe for Calculation:** Select the timeframe the indicator references when calculating weights.
* **Start Date for Weight Calculation:** This serves as the base date for comparing performance.
#### Disclaimer
This script is solely a tool to assist with market analysis and does not recommend buying or selling any specific financial instruments. Please make all final investment decisions at your own discretion.
-------------------------------------------------------------------------------------------------------------------
**Performance-based Asset Weighting(MTF・シンボル自由設定)**
#### 概要
このインジケーターは、**ユーザーが自由に設定した4つの銘柄**について、パフォーマンス(騰落率)の相対的な強さを「ウェイト(構成比率)」として可視化するツールです。
指定した過去の任意の時点を基準(全銘柄が均等な25%)として、そこからどの銘柄のパフォーマンスが他の銘柄を上回り、資金が向かっているのか、あるいは下回っているのかを直感的に把握することを目的としています。
**【デフォルト設定と活用シナリオ:年金基金のリバランス考察】**
デフォルト設定では、日本の年金積立金管理運用独立行政法人(GPIF)の基本ポートフォリオを参考に、主要4資産クラス(国内株式, 外国株式, 国内債券, 外国債券)が設定されています。市場の変動によってこの均等な比率に乖離が生じると、元の比率に戻すためのリバランス(比率が増えた資産を売り、減った資産を買う)が行われることが知られています。
このデフォルト設定で分析することで、**「今後、年金基金などによるリバランスの売り(買い)が発生する可能性があるか」を考察するための、一つの目安として利用できます。**
**【重要:利用上の注意点】**
このインジケーターが示すウェイトは、あくまで指定した開始日からのパフォーマンスのみを基に算出した**理論上の参考値**です。実際に大口投資家などが途中で大規模なリバランス(資産の売買)を行ったとしても、その取引自体はこのチャートの計算には反映されません。
そのため、実際のポートフォリオ比率とは異なる可能性があることをご理解の上、**あくまで大まかな目安としてご活用ください。**
#### 主な特徴
* **分析対象の4銘柄を自由に設定可能:** 設定画面から、比較したい4つの銘柄(株式、指数、為替、仮想通貨など)を自由に設定できます。
* **パフォーマンス基準のウェイト計算:** 単純な価格の構成比ではなく、指定した開始日からの各銘柄の騰落を「パフォーマンス指数」として算出し、その合計に占める各銘柄の割合を表示します。
* **分析開始日の自由な設定:** 「〇〇ショック後」「決算発表後」など、分析したい任意の時点をカレンダーから設定できます。
* **マルチタイムフレーム(MTF)対応:** チャートに表示している時間足とは別に、インジケーターが計算に使う時間足(1時間足、4時間足、日足など)を自由に選択できます。
#### 計算の原理
このインジケーターは、以下の3ステップでウェイトを算出しています。
1. **基準価格の取得**
ユーザーが設定した「ウェイト計算の開始日」における、4つの各銘柄の終値を取得し、これを分析の**基準価格**とします。
2. **パフォーマンス指数の算出**
現在の各銘柄の価格を、ステップ1で取得した**基準価格**で割ることで、「パフォーマンス指数」を算出します。
`パフォーマンス指数 = 現在の価格 ÷ 基準日の価格`
これにより、基準日のパフォーマンスを「1」とした場合、現在のパフォーマンスが何倍になっているかが数値化されます。
3. **ウェイトの算出**
4つの銘柄の「パフォーマンス指数」の合計値を算出します。そして、合計値に占める各銘柄のパフォーマンス指数の割合(%)を計算し、チャートに描画します。
`ウェイト (%) = (個別のパフォーマンス指数 ÷ 4銘柄のパフォーマンス指数の合計) × 100`
このロジックにより、分析開始日には全銘柄のパフォーマンス指数が「1」となるため、ウェイトは均等に25%からスタートします。
#### 使用方法
* **応用例1:市場のセンチメント分析(デフォルト設定利用)**
デフォルト設定の資産クラスで分析し、「株式」と「債券」の力関係を見ることで、市場がリスクオンなのかリスクオフなのかを判断する材料になります。
* **応用例2:セクター・テーマ別の強弱分析**
設定画面で、例えば「半導体関連の主要4銘柄」や「GAFAMの4銘柄」などを設定します。開始日を年初や決算時期に設定することで、同セクター内でどの銘柄が最もパフォーマンスが良いかを一目で比較できます。
* **応用例3:仮想通貨の勢力図分析**
「BTC, ETH, SOL, ADA」など、主要な仮想通貨を設定することで、市場の資金がどの通貨に向かっているのかを分析できます。
**【凡例の表示について】**
Pine Scriptの仕様上の制約により、チャート上の凡例は**「銘柄1」〜「銘柄4」という固定名で表示されます。**
お手数ですが、設定画面でご自身が「銘柄1」に入力したシンボルが、チャート上の「銘柄1」のラインに対応する、という形でご覧ください。
#### 設定項目
* **銘柄1〜銘柄4:** 分析したい4つのシンボルをそれぞれ設定します。
* **計算に使う時間足:** インジケーターがウェイトを計算する際に参照する時間足を選択します。
* **ウェイト計算の開始日:** パフォーマンスを比較する上での基準日となります。
#### 免責事項
このスクリプトはあくまで市場分析を補助するためのツールであり、特定の金融商品の売買を推奨するものではありません。投資の最終的な判断は、ご自身の責任において行ってください。
Session LevelsMarks the highs and lows of the previous day New York session and the following Asian and London sessions.
EMA Cloud Visual Pro Edition Trend LabelsThe EMA Cloud Visual Pro Edition is a clean and elegant trend–following indicator designed to visualize market momentum through the interaction of two exponential moving averages — EMA 50 and EMA 200.
Itcombines a dynamic cloud, background tint, and automatic trend labeling to make chart reading effortless and professional.
🌈 Main Features
✅ EMA Cloud Visualization – A smooth gradient cloud between EMA 50 & EMA 200 clearly highlights the prevailing trend.
🟢 Green cloud → Bullish (EMA 50 > EMA 200)
🔴 Red cloud → Bearish (EMA 50 < EMA 200)
✅ Background Tint – Adds subtle color shading (green/red) to improve visual clarity and trend confirmation.
✅ Trend Labels – Automatic floating labels show the current trend direction on the chart:
UpTREND” when EMA 50 crosses above EMA 200
📉 “DOWN TREND” when EMA 50 crosses below EMA 200
⚪ “NEUTRAL” when both are equal
✅ Bar Coloring – Optional feature that colors price candles based on the trend for quick visual reference.
✅ Fully Customizable – Transparency, color tone, and visibility of each visual element (cloud, bars, labels) can be adjusted from the settings panel.
⚙️ How It Works
The indicator tracks the relationship between EMA 50 (short–term trend) and EMA 200 (long–term trend):
When the fast EMA 50 > EMA 200, the market is considered bullish.
When the fast EMA 50 < EMA 200, the market is considered bearish.
This simple but powerful logic is one of the most widely used strategies in professional trading — also known as the EMA Crossover / Golden–Death Cross Strategy — but here visualized with a premium cloud aesthetic.
💡 Best Use Cases
identify trend direction at a glance
Confirm entries/exits from your primary strategy
Combine with RSI, Volume, or Price Action tools
Works perfectly on all assets: Forex, Crypto, Stocks, and Indices
🧩 Customization Tips
You can modify from settings:
EMA lengths (default 50 & 200)
Cloud transparency
Background opacity
Toggle on/off trend labels or bar coloring
⚠️ Note
This indicator is not financial advice.
Always combine it with risk management and confirmation signals before trading live markets.
Zones Monitor V2Zones Monitor is a lightweight, reliable tool for tracking custom price zones on a single active symbol, with optional auto-mapping of zones to the current chart symbol. It focuses on stability and ease-of-use: minimal settings, clear visuals, and simple event logic (Touch & Breakout) that works smoothly without hitting TradingView’s object limits.
Zeussy 3-6-9 Indicator (NY) – Paid Trial - Trial VersionZeussy 3-6-9 Indicator (NY) – Trial Version
An innovative trading indicator based on the Zeussy 3-6-9 timing system, supporting New York time.
Key Features:
Dynamic Candlestick Colors: Clear coloring for bullish and bearish candles.
Zeussy Labels:
Hour+Minute labels for sums 3, 6, 9.
Minute-only labels for sums 3, 6, 9.
Vertical Line at Minute 45 to highlight key time points.
Daily Statistics: Counts of Zeussy Hour+Minute and Zeussy Minute-only occurrences.
3-Day Trial: All premium features are active automatically for 3 days from the first bar on any chart.
Countdown Timer: Shows remaining days and hours during the trial period.
After the trial expires: all premium features are disabled, and a red warning appears:
"Trial Expired! Please Purchase Paid Version"
Sound Alerts when Zeussy Labels appear (can be enabled/disabled).
Customizable Options: Candle colors, Zeussy Label colors, label size, show/hide trial text, show/hide table and lines.
💰 Purchase Full Version: $30. Contact me directly to buy a permanent license.
Aggregation Index SmoothedAggregation Index Smoothed (AIS) - Multi-Method Trend Consensus Oscillator
What This Indicator Does
The Aggregation Index Smoothed combines four independent trend-detection methodologies into a unified momentum oscillator that operates across multiple timeframes simultaneously. Unlike traditional single-method indicators that can produce conflicting or false signals during market transitions, AIS requires consensus agreement across all four calculation methods before confirming trend direction.
Technical Methodology
Four-Component Loop System
Each component analyzes 16 different lookback periods (default range: 5-20 bars), creating a multi-timeframe perspective within a single calculation:
1. Price Change Analysis
Measures directional price movement across all periods. Each period scores +1 for positive change or -1 for negative change. Results are averaged and scaled to ±100.
2. RSI Multi-Period Analysis
Evaluates Relative Strength Index values across the same 16 periods. Scores +1 when RSI > 50 (momentum favoring bulls) or -1 when RSI < 50 (momentum favoring bears). This captures overbought/oversold conditions across multiple timeframes.
3. EMA Trend Position
Compares current price against Exponential Moving Averages of varying lengths (5-20 periods). Scores +1 when price trades above EMA (uptrend) or -1 when below (downtrend). This identifies trend alignment across short, medium, and longer-term moving averages.
4. Momentum Rate-of-Change
Calculates price momentum across all periods using the mom() function. Scores +1 for positive momentum or -1 for negative momentum, detecting acceleration and deceleration patterns.
Aggregation Process
Each of the four indicators independently calculates scores across all 16 periods
Individual indicator scores are averaged (range: -100 to +100)
All four indicator averages are combined using arithmetic mean
The resulting index undergoes EMA smoothing (default: 20 periods)
Optional double-smoothing applies a second EMA pass for maximum noise reduction
Why This Approach Is Unique
Problem Solved: Traditional oscillators often conflict - RSI might be bullish while MACD is bearish, or stochastic shows oversold while price trend is clearly down. Traders waste time reconciling these contradictions.
Solution: AIS eliminates conflicts by design. A bullish signal (+10 threshold) means all four methods across all 16 timeframes agree on upward momentum. This consensus approach dramatically reduces whipsaws and false signals compared to using any single method.
Technical Advantage: The for-loop methodology validates each signal across a spectrum of timeframes (5 bars through 20 bars), ensuring the trend is confirmed in both immediate-term and intermediate-term contexts. This is mathematically equivalent to running 64 separate indicators (4 methods × 16 periods) and requiring majority agreement.
Signal Generation
Long Signal (Bullish): Index crosses above +10 threshold
Indicates all four methods confirm upward momentum across multiple timeframes
Sustained readings above +10 suggest strong trend continuation
Short Signal (Bearish): Index crosses below -10 threshold
Indicates all four methods confirm downward momentum across multiple timeframes
Sustained readings below -10 suggest strong downtrend
Neutral Zone (-10 to +10): Mixed signals or consolidation
Methods disagree on direction, suggesting choppy or range-bound conditions
Avoid trend-following strategies in this zone
How to Use This Indicator
Best Practices
Timeframe Selection:
Most effective on 4-hour charts and higher (Daily, Weekly)
Lower timeframes (1H, 15m) may produce excessive signals despite smoothing
The 16-period loop range is optimized for swing trading timeframes
Entry Strategy:
Wait for index to cross threshold levels (±10)
Confirm with price action (breakout, support/resistance levels)
Consider entering on first pullback after threshold cross for better risk/reward
Parameter Adjustment:
Volatile instruments (crypto, small-caps): Increase thresholds to ±15 or ±20 to filter noise
Stable instruments (large-cap stocks, indices): Reduce thresholds to ±5 for earlier signals
Smoothing Length: Increase to 30+ for cleaner signals; decrease to 10-15 for faster response
Double Smoothing: Keep enabled for trend following; disable for more reactive signals
Risk Management:
Exit longs when index drops back into neutral zone (below +10)
Exit shorts when index rises into neutral zone (above -10)
Use index slope as trend strength indicator (steeper = stronger)
Interpretation Guidelines
Strong Trending Conditions:
Index sustained above +50 or below -50 indicates powerful directional move
All four methods showing extreme agreement across all timeframes
High probability of trend continuation
Trend Exhaustion Signals:
Index reaches extreme levels (+80 to +100 or -80 to -100)
Potential reversal zone; watch for divergence with price
Consider taking partial profits on existing positions
Divergence Detection:
Price makes new highs while index fails to confirm = bearish divergence
Price makes new lows while index shows higher lows = bullish divergence
Divergences on 4H+ timeframes carry significant weight
Limitations and Considerations
Not Suitable For:
Scalping or very short-term trading (under 1-hour timeframes)
Range-bound markets with no clear trend (index oscillates in neutral zone)
Instruments with erratic, news-driven price action
Known Lag:
Double smoothing introduces 40+ bar delay in signal generation
Designed for trend confirmation, not early trend detection
Fast market reversals may produce late exit signals
Complementary Tools:
Combine with support/resistance levels for entry precision
Use with volume analysis to confirm signal strength
Pair with volatility indicators (ATR) for position sizing
Technical Implementation Notes
The indicator pre-calculates all RSI and EMA values for lengths 5-20 to comply with Pine Script's requirement for constant-length parameters in ta.rsi() and ta.ema() functions. This workaround allows dynamic loop-based analysis while maintaining calculation consistency on every bar.
The scoring methodology uses binary classification (+1/-1) rather than normalized percentage values to ensure equal weighting across all four methods, preventing any single indicator from dominating the aggregate signal.
Summary: The Aggregation Index Smoothed provides trend confirmation through multi-method consensus across variable timeframes. Its primary value is eliminating the confusion of conflicting indicator signals by requiring agreement from four independent trend calculations before generating actionable signals. Best suited for swing traders and position traders on 4-hour and higher timeframes seeking high-probability trend-following entries with reduced false signals.
BFM Yen Carry to Risk Ratio (Dynamic Rates)Shows risk of yen carry trade unwinding. Based on cost to borrow from Japan to buy us stocks compared to interest rate in USA.
Position Size CalculatorPosition Size CalculatorRisk Management Made Simple – Size Your Trades Like a Pro!Tired of guessing position sizes and blowing up your account on oversized trades? This Pine Script indicator automates position sizing based on your risk tolerance, ensuring every trade risks only what you've predefined. Perfect for stocks, forex, crypto, or futures—works for long or short setups. Overlay it on your candlestick chart and watch the math do the work.Key Features:Smart Risk Control: Input your account size (e.g., $70k) and risk % (e.g., 1%). It caps your max loss per trade automatically.
Dynamic Entry & Stop: Use live chart close as entry, or click to set a manual entry level (green solid line). For stops, toggle manual placement (red broken line) or use a % distance—auto-calculates the effective % for precision.
Visual Markers: Green line for entry price, red dashed line for stop loss—spans your chart for easy spotting.
Customizable Table: Floating info panel shows Account Size, Risk Amount, Stop Distance %, and Position Size (shares/lots). Drag its position via settings (top-right default).
No More Guesswork: Formula: Position Size = (Account × Risk %) ÷ Stop Distance. Handles edge cases like tiny distances to avoid div-by-zero.
How to Use:Add to your chart via Pine Editor.
In settings: Set account size/risk %. Toggle "Use Manual Entry Price" and click chart to place green line. Do the same for stop (red line) or use % input.
Table updates live—grab the position size and execute!
Pro Tip: For shorts/longs, the abs distance keeps risk symmetric. Test on demo first.
Built for v6—clean, lightweight, and 100% customizable. Share your tweaks in comments! Remember, this is a tool, not advice—trade responsibly. (Inspired by classic Kelly Criterion vibes, but simplified for daily grinders.)
Anchor Candle High/Low This indicator automatically marks the High and Low of any chosen anchor candle — at any timeframe and specific London time (DST-safe). It’s designed for traders who use key session levels (e.g., London 9:00 4H, New York open, or Daily open) to frame intraday price structure.
Features
Select any timeframe (5 min, 15 min, 1 H, 4 H, Daily, etc.)
Choose any London-time anchor (e.g., 09:00, 13:00, 00:00)
Draws horizontal High (green) and Low (red) lines
Automatically splits the range into quartiles (0/25/50/75/100 %)
→ Labels adjust directionally (Low→High if bullish, High→Low if bearish)
Option to keep historical lines or only show the latest day
Customisable colours and thickness
Alerts for when price touches or crosses the anchor High/Low
Ideal for
London/NY session traders, ICT-style traders, and anyone analysing structure around key time-based ranges.
Would you like me to include a short tagline (e.g. “Session Range Framework for Smart-Money Traders”) or keep it neutral and formal for the public library?
Ch
Charles PO3# Charles PO3 - Release Notes
## 📊 Introduction
**Charles PO3** is a powerful PO3 (Power of 3) indicator designed for traders who need to simultaneously observe **Higher Time Frame (HTF)** price action on **Lower Time Frame (LTF)** charts.
This indicator draws multiple HTF candles on the right side of the chart and connects the current price to the HTF **Open, High, and Low** with dynamic projection lines. It helps you:
- View **Daily/Weekly** structure on a minute chart.
- Track HTF key price levels in **real time**.
- Better understand **multi-timeframe trend relationships**.
- Improve **timeframe consistency** in your trading decisions.
**Applicable Markets**: Forex, Futures, Stocks, Cryptocurrencies, and all other financial markets.
This script is based on the (www.google.com) created by (www.google.com).
This indicator is released under TradingViews default license (Mozilla Public License 2.0)
-----
## ✨ Core Features
### 🕐 Smart Timeframe Management
- **Automatic Timeframe Selection**: Automatically selects a suitable HTF based on the current chart period (optionally 1 or 2 levels of progression).
- **Manual Timeframe**: Supports custom selection of any timeframe (15 minutes, 1 hour, 4 hours, Daily, Weekly, etc.).
- **Custom Opening Time**: Supports custom HTF candle opening time and timezone (useful for non-standard trading sessions).
### 📈 Candle Display
- **Configurable Quantity**: Display 1-20 HTF candles (default 5).
- **Three Sizes**: Small, Medium, Large candles available.
- **Two Types**:
- Standard Candles
- Heikin Ashi (Smoothed Candles)
- **Custom Colors**:
- Bullish (Up) Candles: Independent color settings for body, wick, and border.
- Bearish (Down) Candles: Independent color settings for body, wick, and border.
- **Position Adjustment**: Adjustable offset from the right edge of the chart and spacing between candles.
### 🎯 Dynamic Projection Lines
- **Open Price Projection**: Extends from the HTF Open price to the center of the current candle.
- **High/Low Projection**: Extends from the HTF High/Low to the center of the current candle.
- **Real-Time Updates**: Projection lines automatically update their starting point upon price breakthrough.
- **Customizable Style**:
- Three line styles: Solid, Dashed, Dotted.
- Adjustable color and width.
- Independent On/Off switches.
### 🏷️ OHLC Price Labels
- **Real-Time Price Display**: Shows O/H/L/C prices to the right of the latest HTF candle.
- **Six Font Sizes**: Auto, Tiny, Small, Normal, Large, Huge.
- **Follows Candle Movement**: Label position updates dynamically with the candle.
### 🕒 Smart Time Labels
- **Adaptive Format**:
- **Daily**: Displays the day of the week (Mon, Tue, Wed...).
- **Weekly**: Displays Month-Day (10-05, 10-12...).
- **Other Timeframes**: Displays Hour:Minute (14:30, 21:00...).
- **Asset Type Recognition**:
- **Forex/Futures**: Automatically adjusts to display trading days (Mon-Fri).
- **Crypto**: Displays actual date (7 days a week).
- **Center Alignment**: Time label is positioned below the center of the candle.
- **Customizable Color**: Supports adjusting text color (default gray).
### 📊 HTF Data Mode
- **Weekly**: Only use HTF data to generate projections when on a weekly chart.
- **Always**: Always use HTF data.
- **Never**: Always use LTF data to construct the HTF candles.
### 🐛 Debug Tools
- **Debug Table**: Real-time display of indicator status (parameters, candle count, label count, etc.).
- **Pine Logs**: Detailed logs for timestamp conversions and label creation.
- **Optional Switch**: Debug features can be disabled in a production environment to improve performance.
-----
## ⚙️ Parameter Descriptions
### 📁 Settings (Basic Settings)
| Parameter | Type | Default | Description |
|---|---|---|---|
| **Timeframe** | Timeframe | Blank (Auto) | Sets the HTF timeframe; leave blank for automatic selection. |
| **Set Automatically** | Boolean | ✅ | Enables automatic timeframe selection. |
| **Two Levels** | Boolean | ✅ | Use 2 levels of progression (e.g., 15min→4H); off uses 1 level (15min→1H). |
| **Number of HTF Candles** | Integer | 5 | Number of HTF candles to display (1-20). |
| **Offset** | Integer | 10 | Bar offset of the candle group from the right edge of the chart. |
| **Size** | Option | Medium | Candle size: Small / Medium / Large. |
| **Type** | Option | Candles | Candle type: Candles (Standard) / Heikin Ashi (Smoothed). |
| **Margin** | Integer | 1 | Spacing between candles (in bars). |
| **Use HTF data to generate candles** | Option | Weekly | Weekly / Always / Never. |
### 🟢 Up Candles (Bullish Candles)
| Parameter | Type | Default | Description |
|---|---|---|---|
| **Body** | Color | \#6ba583 | Color for the bullish candle body. |
| **Wick** | Color | Black | Color for the bullish candle wick. |
| **Border** | Color | Black | Color for the bullish candle border. |
### 🔴 Down Candles (Bearish Candles)
| Parameter | Type | Default | Description |
|---|---|---|---|
| **Body** | Color | \#d75442 | Color for the bearish candle body. |
| **Wick** | Color | Black | Color for the bearish candle wick. |
| **Border** | Color | Black | Color for the bearish candle border. |
### 📏 Projections (Projection Lines & Labels)
#### Open Price Projection Line
| Parameter | Type | Default | Description |
|---|---|---|---|
| **Open** | Boolean | ✅ | Show Open price projection line. |
| ⚫ **Color** | Color | Translucent Black | Open price line color. |
| **Style** | Option | Dotted | Solid / Dotted / Dashed. |
| **Width** | Integer | 1 | Line width (1-5). |
#### High/Low Projection Lines
| Parameter | Type | Default | Description |
|---|---|---|---|
| **High/Low** | Boolean | ✅ | Show High/Low projection lines. |
| ⚫ **Color** | Color | Translucent Black | High/Low line color. |
| **Style** | Option | Dotted | Solid / Dotted / Dashed. |
| **Width** | Integer | 1 | Line width (1-5). |
#### OHLC Price Labels
| Parameter | Type | Default | Description |
|---|---|---|---|
| **OHLC Prices** | Boolean | ✅ | Show price labels. |
| ⚫ **Color** | Color | Translucent Black | Text color. |
| **Size** | Option | Auto | Auto / Tiny / Small / Normal / Large / Huge. |
#### HTF Time Labels
| Parameter | Type | Default | Description |
|---|---|---|---|
| **HTF Time** | Boolean | ✅ | Show time labels. |
| **Time Label Color** | Color | Gray | Time text color. |
### 🕐 Custom Opening Time (Custom Opening Time)
| Parameter | Type | Default | Description |
|---|---|---|---|
| **Use Custom Opening Time?** | Boolean | ❌ | Enable custom opening time. |
| **Timezone** | Option | Exchange | Timezone selection (using Timezone library). |
| **Time (hh:mm)** | Time | 02:00 | Custom opening time (hour:minute). |
### 🐛 Debug (Debugging)
| Parameter | Type | Default | Description |
|---|---|---|---|
| **Enable Debug Info** | Boolean | ❌ | Enable Pine Logs for detailed logging. |
| **Show Debug Table** | Boolean | ✅ | Display the debug info table in the top right corner. |
-----
## 🎓 Usage Recommendations
### Recommended Timeframe Combinations
- **1-Minute Chart** → HTF: 15 Minutes
- **5-Minute Chart** → HTF: 1 Hour
- **15-Minute Chart** → HTF: 4 Hours
- **1-Hour Chart** → HTF: Daily
- **4-Hour Chart** → HTF: Weekly
- **Daily Chart** → HTF: Weekly/Monthly
### Best Practices
1. **Trend Trading**: Use the Daily HTF on a 1-Hour chart to ensure you are trading with the higher-timeframe trend.
2. **Support/Resistance**: The HTF High/Low projection lines serve as natural support and resistance levels.
3. **Open Breakout**: Observe the HTF Open price projection line to catch directional breakouts after the open.
4. **Time Synchronization**: Use the time labels to understand the lifecycle stage of the HTF candle.
5. **Multi-Timeframe Confirmation**: Observe multiple HTF candles simultaneously to confirm trend consistency.
-----
## 📌 Version Information
- **Version**: 1.0
- **Pine Script**: v6
- **Dependency Library**: `n00btraders/Timezone/1`
- **Chart Limitations**:
- Max historical bars: 500
- Max Box objects: 500
- Max Label objects: Default (TradingView limit)
-----
**Happy Trading\! 📈**
TGFA Flexible Alerts Multi-MA CrossoversTGFA Flexible Alerts, Multi-MA Crossovers
Description
Flexible MA crossovers with BUY/SELL alerts, customizable candle colors, and an info box for ATR/volatility insights. Supports EMA/SMA/HMA/VWAP on any chart.
Overview
TGFA Flexible Alerts is a versatile Pine Script indicator for traders seeking customizable moving average (MA) crossovers, visual signals, and quick-reference metrics. It overlays crossover lines (e.g., fast EMA over slow SMA), generates BUY/SELL labels and alerts, colors candles based on themes, and includes an optional info box with ATR bands, support/resistance, and trend projections. Built for any symbol and timeframe (optimized for 1H intraday), it auto-detects Heikin Ashi charts and handles mixed MA types like responsive HMA with lagging EMAs. All logic uses built-in TA functions for reliability—no repainting on confirmed bars.
Key Features
MA Crossover Engine: Configurable lines (EMA, SMA, HMA, VWAP) with dynamic colors (HMA tints green/red based on slope). Enable/disable via inputs.
Invert Signals Toggle: Flips BUY/SELL logic for mixed MA setups (e.g., HMA as fast line over EMA).
Reasoning: Traditional crossovers assume a fast line (low lag) crossing above a slow line (high lag) for buys. HMA's hull design makes it ultra-responsive, so it may "lead" too aggressively—causing premature signals. Inverting aligns it with user intuition (e.g., HMA dipping below then recovering signals strength), reducing false positives in trending markets. Test on your pairs!
Visual Alerts: BUY/SELL labels at crossover price (with optional price display and offset adjustment).
Single MA Overlays: Independent plots for EMA/SMA/HMA/VWAP (length 0 to hide).
Info Box: Real-time table with current price, ±1/2 ATR bands, median price (over lookback), trend (SMA50 slope), volatility % (ATR normalized), support/resistance (recent highs/lows), and reversal projections (tied to SMA50 pivot for up/down bias).
Candle Coloring: 20+ themes (dark/light canvases) for bull/bear/reversal/low-volume bars—e.g., Emerald Blaze greens uptrends, dims on low vol. Toggle off for no changes.
Chart Source Flexibility: Auto-switches to Heikin Ashi if detected; manual override for Regular/HA.
Alerts fire on crossovers/crossunders (custom messages with ticker/interval). Open-source for forking.
How to Use
Add to Chart: Search in TradingView's public library, apply to any symbol (e.g., stocks, forex). Best on 1H for intraday, but works on daily/weekly too.
Setup Crossovers: Choose Line 1/2 types/lengths (e.g., HMA 9 over SMA 20). Enable "Invert Signals" if using HMA—prevents lag mismatches in volatile assets.
Alerts & Labels: Toggle labels for visuals; set TradingView alerts on "Buy"/"Sell" conditions. Use offset for crowded charts.
Info Box Insights: Enable for quick scans—e.g., enter long near support if trend is bullish and price > median. Adjust ATR length (default 14) for sensitivity.
Candle Themes: Pick a scheme (e.g., Neon Pulse for dark mode); it overrides bar colors without altering data.
Customization Tip: For HMA-heavy setups, invert + short lengths (5-9) catch turns early; pair with volume filter in alerts.
Limitations & Disclaimers - Designed for overlay on price charts; may overlap in tight ranges—adjust transparency via styles.
HMA can repaint intra-bar; signals confirm on close. Not back tested for all assets—validate with strategy tester.
Info box projections use SMA(50) as a trend pivot (same for up/down as reference); customize via code for advanced calcs. Candle colors are cosmetic only.
This is an analysis tool, not advice. Trading involves risk; combine with fundamentals/news. Past performance isn't indicative of future results. No liability for losses.
I'm still a newbie, so feedback encouraged!
Thank you!!
ThisGirl
ATR Horizontal Lines from EMA and SMA with TableHow it works:
The script calculates ATR levels (of your choosing)
Instead of plotting curves, it creates horizontal lines
The lines are deleted and recreated on each bar to show current levels
Lines extend to the right or can be limited to a certain width
Customization options:
Line width (1-10 pixels)
Individual colors for each of the 4 lines
All the original parameters (EMA/SMA lengths, ATR length, multipliers)
The horizontal lines will now show the current ATR-based support/resistance levels and move dynamically as the EMAs, SMA, and ATR values change with new price data.
ORB 5 Minute w/FVG and Retracement Breakout strategy creates five minute breakout lines on the 1 minute chart. Highlights any fair value gaps created within ORB and creates an arrow showing when a candle retraces into the fvg.
OPR 4 ZonesThe OPR 4-Zone Boxes indicator visualizes four distinct market sessions on your chart by automatically drawing boxed ranges (high / low) and dotted midlines for each session. Each session box is created using time-based timestamps (timezone-aware) and updates in real time during the session. When the session closes, the box is locked to the session end, while an optional extension can display the session range for a configurable period afterward — useful for spotting retests, breakouts, and bias zones.
Designed for traders who rely on session structure and price-action, OPR 4-Zone provides clear, non-intrusive visuals and is fully configurable: enable or disable individual sessions, set start/end and extension times per session, choose colors and transparency for both the primary box and the extension, and display dotted midlines to quickly gauge session control. Objects are cleaned up at the start of each new day to prevent clutter and ensure reliable behavior when scrolling or changing timeframes.
Key features :
- Four independent session boxes (Morning, Afternoon, Evening, Night) with separate enable switches
- Timezone-aware timestamping so boxes align with the session times you want
- Locked session ranges at session close and optional extension period after close
- Dotted midline for quick reference to the session midpoint
- Customizable colors and background transparency for both base and extended boxes
- Automatic cleanup of session objects on new trading day to avoid frozen or stray boxes
- Lightweight and overlay-friendly with sensible defaults for fast setup
Suggested usage :
Use the indicator to mark session ranges for intraday support/resistance, identify where price is trading relative to session midpoint, and watch for breakout or rejection setups near session highs/lows. Combine with volume-based or momentum indicators to confirm breakouts through the session box.
JC Golden Ratio GTM (1.272 / 1.618 / 2.000)This Pine Script automatically detects recent swing highs and lows, then projects golden ratio Fibonacci extensions (1.272, 1.618, and 2.000) above and below price to highlight potential profit targets or resistance zones. The blue, gold, and orange lines visualize each ratio, updating dynamically as new pivots form. Labels appear on the right edge of the chart showing each level — the golden 1.618 line even drops a playful “💰 GET THAT MONEY HERE” tag to mark the key Fibonacci extension often used as a target zone in technical trading.
Blvck MMXM + CISD (Unified)Blvck MMXM + CISD (Unified) — Release Brief
What it is
A single indicator that merges the MMXM Bias Panel with Blvck CISD. You get the multi-TF MMXM bias ladder and the wick-based CISD pending/confirmed lines—plus a new CISD row in the panel.
What’s new
Unified script: MMXM panel + CISD visuals in one study.
CISD row: Sits between Strength and 15m; shows Bullish / Bearish / Neutral for the current chart TF (color-coded).
Clean “Keep Old Levels” logic: When OFF, the script keeps only the latest CISD level per side and hard-deletes old lines/labels on completion—no ghosts.
Safe runtime: No mid-bar deletions before updates (prevents runtime handle errors).
Panel features
MMXM row (selectable TF): 1h / 90m / 3h / 4h / 6h / 1D / 1W vote (CISD + PD50 + EMA9 slope + iFVG).
Strength ladder: Caution → Potential → Confident → Confirmed (based on CISD flips across 15m/60m/90m/4h).
TF rows: 15m • 1H • 4H • 1D • 1W with per-row Bullish/Bearish/Neutral coloring.
CISD row (new): Quick bias snapshot for the current chart TF.
CISD visuals
Wick-based pending and confirmed levels with independent style/width settings.
Optional alerts on completion:
Bullish CISD formed (price closes above -CISD).
Bearish CISD formed (price closes below +CISD).
Keep Old CISD Levels toggle:
OFF (default): Only the latest level per side is kept; completed levels are deleted immediately.
ON: Historical CISD levels persist.
Inputs worth noting
Engine: swingLen (CISD pivots), PD50/iFVG toggles, iFVG lookback.
Panel: Position, font size, per-row colors.
MMXM TF: Choose the timeframe that drives the MMXM row.
CISD lines: Pending/confirmed styles, width, extension bars, history retention, alerts.
Usage tips
Sub-1m charts: updates occur on ticks (TradingView limitation). If the feed is sparse, countdowns/rows may appear to “stutter.”
If you prefer the CISD row to mirror last confirmed CISD side instead of HH/LL internal bias, toggle in code (we left it easy to swap).
Version notes
Removed deprecated calc_on_every_tick / repaint_on_intrabar header params (Pine v6).
Fixed runtime deletion race by pruning after creation and on completion only.
EMA High/Low + RSI Trend Start + EMA200 Current TFIndicator Name: EMA High/Low + RSI Trend Start + EMA200 Current TF
Description:
This indicator combines multiple technical tools to help identify strong trend-start signals with minimal noise:
EMA 20 High/Low: Tracks short-term price extremes to define potential breakout levels.
EMA 200 (Current TF): Displays long-term trend direction with dynamic coloring: green when price is above, yellow when below.
Trend-Start Arrows: Signals the first bullish candle above EMA High or first bearish candle below EMA Low, confirmed by RSI crossing its moving average.
RSI Confirmation: Filters signals for momentum alignment to reduce false entries.
Trend-Lock & Cooldown: Ensures only one arrow per trend start and allows a minimum bar gap between signals.
Optional Strong Candle Filter (ATR): Highlights breakouts with significant candle size relative to recent volatility.
Background Fill: Visualizes price position relative to EMA High/Low (green above, red below, neutral in-between).
Customization: Arrow colors and EMA visibility can be adjusted. Arrow size is fixed to ensure Pine Script v6 compatibility.
Usage: Works on any timeframe and any symbol. Ideal for traders looking for trend-following entry points with clear visual cues and reduced signal noise.
UKDT Level 2 & 3 Moving Averages IndicatorUKDT Level 2 & 3 moving average bias indicator.
Short/Mid/Long averages displayed with bias indicator background colours.
All configurable in settings.
Blvck MMXM Order Flow Bias Blvck MMXM Bias Panel
Purpose: keep you aligned with intraday order flow (MMXM) while avoiding getting steamrolled by higher-TF shifts. Trade pullbacks with the tide; stand down when structure flips against you.
What it shows
MMXM Bias (selectable TF): “Buy Side / Sell Side / Neutral” derived from a blended vote on your chosen timeframe (1h, 90m, 3h, 4h, 6h, 1D, 1W).
Strength Ladder (structure-only confirmation):
Caution → Potential → Confident → Confirmed, driven by CISD shifts across 15m → 1h → 90m → 4h.
Timeframe Rows: quick read of bias on 15m, 1h, 4h, 1D, 1W, 1M (same blended method as MMXM row).
How the MMXM vote works
Each selected TF tallies four signals (majority rules):
CISD (structure): +1 if price breaks the most recent swing high, −1 if it breaks the most recent low (swings via swingLen).
EMA(9) slope: rising = +1, falling = −1.
Premium/Discount midline (optional): close above mid = +1, below = −1.
iFVG presence (optional): recent bull gap = +1, bear gap = −1.
Tie → Neutral.
Suggested profiles
Intraday (balanced): MMXM TF 90m, swingLen=5, PD=ON, iFVG=ON (lookback ~20).
Faster (more signals): MMXM TF 1h, swingLen=3–4, PD=ON, iFVG=ON (10–15).
Safer (slower): MMXM TF 4h, swingLen=5–7, PD=ON, iFVG=ON (20–30).
How to use
Trade only in the MMXM direction.
Wait for Strength ≥ Potential (1h) before taking pullback entries.
Confident (90m) → size up; Confirmed (4h) → higher-TF tide with you.
If Confirmed flips against your MMXM, avoid fading—wait for the ladder to realign.
Inputs
MMXM Row Timeframe: 1h / 90m / 3h / 4h / 6h / 1D / 1W
Swing Length (CISD)
Include Premium/Discount (50% midline)
Include iFVG + Lookback
Panel colors & font size (bull/bear/neutral, MMXM row colors, strength colors)
Notes
CISD = “Change in State of Delivery” (swing-based structure breaks).
The Strength Ladder uses structure only to avoid indicator conflict.
No alerts included yet (by design).
Risk disclaimer: This tool is for education only. Not financial advice. Always manage risk and validate with your own process.
ADR% / CDR% Range Analyzer - PajameinThe "ADR%/CDR% Range Analyzer" is a versatile TradingView indicator designed for traders who want to monitor and compare the "Average Daily Range (ADR%)" and "Current Daily Range (CDR%)" in real-time. ADR% represents the average percentage range (high-low relative to low) over a user-defined number of daily bars, helping you gauge a stock's typical volatility. CDR% shows the current session's range as a percentage, either intraday (customizable from start to end price) or full daily, allowing you to assess how the current bar's movement stacks up against historical norms.
Key features include:
- "Visual Comparison": Displays both values as clean labels on the chart with customizable positions (separate or combined).
- "Dynamic Background Coloring": CDR% label background changes color based on its relation to ADR%—light green for low volatility (< low threshold), light blue for neutral (between thresholds), and light red for high volatility (> high threshold). This helps quickly spot expansion or contraction in daily moves.
- "Flexibility": Works on any timeframe, with options for intraday customization and anti-clipping adjustments for multi-pane layouts.
This indicator is ideal for day traders, swing traders, or anyone tracking volatility breakouts, range-bound setups, or risk management based on expected daily moves.
Input Settings Guide
Here's a breakdown of each setting and how it enhances your trading workflow:
- "Show ADR%" (Boolean, default: true)
Toggle to display/hide the ADR% label. Use this to declutter your chart when focusing solely on current range.
- "Show CDR%" (Boolean, default: true)
Toggle to display/hide the CDR% label. Ideal for charts where you only need historical average or current metrics.
- "ADR% Length" (Integer, default: 20, min: 1)
Number of daily bars for averaging the range percentage. Shorter lengths (e.g., 10) for recent volatility; longer (e.g., 50) for broader trends.
- "CDR%: Start" (Source, default: low)
Starting price for intraday CDR% (e.g., open, previous close). Customize for specific range measurements like gap fills.
- "CDR%: End" (Source, default: high)
Ending price for intraday CDR% (e.g., low, close). Pair with Start for targeted ranges, like open-to-low for downside capture.
- "Intraday Display" (String dropdown: "Intraday CDR%", "Daily CDR%", default: "Daily CDR%")
Switch between real-time intraday calculation (dynamic updates) or fixed daily value (stable, non-repainting).
- "Low Threshold %" (Float, default: 40.0, range: 0-100)
Percentage of ADR% below which CDR% gets the low (green) background. Lower it (e.g., 30%) for stricter low-volatility alerts.
- "High Threshold %" (Float, default: 60.0, range: 0-100)
Percentage of ADR% above which CDR% gets the high (red) background. Raise it (e.g., 70%) to highlight only extreme expansions.
- "ADR% Text Color" (Color picker, default: black)
Foreground color for ADR% text. Choose contrasting colors for dark/light themes.
- "CDR% Text Color" (Color picker, default: black)
Foreground color for CDR% text. Ensures readability over dynamic backgrounds.
- "Low CDR% Background (below low threshold)" (Color picker, default: light green with 70% transparency)
Background for subdued ranges. Adjust opacity for subtlety.
- "Mid CDR% Background (between thresholds)" (Color picker, default: light blue with 70% transparency)
Neutral background for typical moves.
- "High CDR% Background (above high threshold)" (Color picker, default: light red with 70% transparency)
Alert-style background for breakouts.
- "Cell Height %" (Integer, default: 8, range: 1-20)
Vertical padding for labels as a percentage of chart height. Increase (e.g., 12) in multi-pane layouts to prevent text clipping; decrease for compact views.
- "ADR% Position" (String dropdown: Top/Bottom/Middle Left/Right/Center, default: Bottom Right)
Placement of ADR% label. Use separate positions for side-by-side comparison.
- "CDR% Position" (String dropdown: Top/Bottom/Middle Left/Right/Center, default: Bottom Right)
Placement of CDR% label. Matching positions auto-stacks them vertically.
- "Text Size" (String dropdown: Tiny/Small/Normal/Large, default: Normal)
Font size for labels. "Small" for dense charts; "Normal" for clarity.
Usage Tips
- "Volatility Trading": Set thresholds to 50%/80% for spotting range expansions during news events.
- "Multi-Timeframe": Apply on 5-min charts with daily ADR for intraday targets (e.g., aim for 80% of ADR).
- "Customization": For forex/crypto, tweak Start/End to session opens. Test in replay mode to verify non-repainting.
- "Limitations": Intraday mode updates live but may not repaint until bar close; daily mode is fixed.
Vol-Pace Projected-ATR-ADX-Alert-MAThe VolSC indicator analyzes stock volume trends with a focus on the Pace metric, which projects today's volume as a percentage of the 30-day average, highlighting unusual activity (e.g., over 200% turns bright green with alerts). The phantom projection bar, a wide green histogram to the right of the last bar, visually represents this projected volume on daily charts only, aiding quick identification of potential volume surges without cluttering intraday or weekly views. Additional features include ADX strength, ATR averages, and customizable table display for comprehensive insights.
Key Features:
* Primary Indicator: Volume with ADX (Average Directional Index) text.
* Pacing and Alerts: Calculates the volume pace for the day. Features an unusual volume alert with an adjustable threshold (e.g., 200%).
* Volume Projection: Projects a visual "Phantom Volume" for the day, offset to the right of the actual volume bar.
* ATR Indicator: Displays the 2x ATR (Average True Range) value as text.
* Volume Average: Displays the ADV (Average Daily Volume) Moving Average as text.
* Customization: Most settings are adjustable.