ORB indicatorthis indicator marks out the first 15 min high and low on the candle that opens in each session, very easy to read and minimalist
指标和策略
Regime [CHE] Regime — Minimal HTF MACD histogram regime marker with a simple rising versus falling state.
Summary
Regime is a lightweight overlay that turns a higher-timeframe-style MACD histogram condition into a simple regime marker on your chart. It queries an imported core module to determine whether the histogram is rising and then paints a consistent marker color based on that boolean state. The output is intentionally minimal: no lines, no panels, no extra smoothing visuals, just a repeated marker that reflects the current regime. This makes it useful as a quick context filter for other signals rather than a standalone system.
Motivation: Why this design?
A common problem in discretionary and systematic workflows is clutter and over-interpretation. Many regime tools draw multiple plots, which can distract from price structure. This script reduces the regime idea to one stable question: is the MACD histogram rising under a given preset and smoothing length. The core logic is delegated to a shared module to keep the indicator thin and consistent across scripts that rely on the same definition.
What’s different vs. standard approaches?
Reference baseline: A standard MACD histogram plotted in a separate pane with manual interpretation.
Architecture differences:
Uses a shared library call for the regime decision, rather than re-implementing MACD logic locally.
Uses a single boolean output to drive marker color, rather than plotting histogram bars.
Uses fixed marker placement at the bottom of the chart for consistent visibility.
Practical effect:
You get a persistent “context layer” on price without dedicating a separate pane or reading histogram amplitude. The chart shows state, not magnitude.
How it works (technical)
1. The script imports `chervolino/CoreMACDHTF/2` and calls `core.is_hist_rising()` on each bar.
2. Inputs provide the source series, a preset string for MACD-style parameters, and a smoothing length used by the library function.
3. The library returns a boolean `rising` that represents whether the histogram is rising according to the library’s internal definition.
4. The script maps that boolean to a color: yellow when rising, blue otherwise.
5. A circle marker is plotted on every bar at the bottom of the chart, colored by the current regime state. Only the most recent five hundred bars are displayed to limit visual load.
Notes:
The exact internal calculation details of `core.is_hist_rising()` are not shown in this code. Any higher timeframe mechanics, security usage, or confirmation behavior are determined by the imported library. (Unknown)
Parameter Guide
Source — Selects the price series used by the library call — Default: close — Tips: Use close for consistency; alternate sources may shift regime changes.
Preset — Chooses parameter preset for the library’s MACD-style configuration — Default: 3,10,16 — Trade-offs: Faster presets tend to flip more often; slower presets tend to react later.
Smoothing Length — Controls smoothing used inside the library regime decision — Default: 21 — Bounds: minimum one — Trade-offs: Higher values typically reduce noise but can delay transitions. (Library behavior: Unknown)
Reading & Interpretation
Yellow markers indicate the library considers the histogram to be rising at that bar.
Blue markers indicate the library considers it not rising, which may include falling or flat conditions depending on the library definition. (Unknown)
Because markers repeat on every bar, focus on transitions from one color to the other as regime changes.
This tool is best read as context: it does not express strength, only direction of change as defined by the library.
Practical Workflows & Combinations
Trend following:
Use yellow as a condition to allow long-side entries and blue as a condition to allow short-side entries, then trigger entries with your primary setup such as structure breaks or pullback patterns. (Optional)
Exits and stops:
Consider tightening management after a color transition against your position direction, but do not treat a single flip as an exit signal without price-based confirmation. (Optional)
Multi-asset and multi-timeframe:
Keep `Source` consistent across assets.
Use the slower preset when instruments are noisy, and the faster preset when you need earlier context shifts. The best transferability depends on the imported library’s behavior. (Unknown)
Behavior, Constraints & Performance
Repaint and confirmation:
This script itself uses no forward-looking indexing and no explicit closed-bar gating. It evaluates on every bar update.
Any repaint or confirmation behavior may come from the imported library. If the library uses higher timeframe data, intrabar updates can change the state until the higher timeframe bar closes. (Unknown)
security and HTF:
Not visible here. The library name suggests HTF behavior, but the implementation is not shown. Treat this as potentially higher-timeframe-driven unless you confirm the library source. (Unknown)
Resources:
No loops, no arrays, no heavy objects. The plotting is one marker series with a five hundred bar display window.
Known limits:
This indicator does not convey histogram magnitude, divergence, or volatility context.
A binary regime can flip in choppy phases depending on preset and smoothing.
Sensible Defaults & Quick Tuning
Starting point:
Source: close
Preset: 3,10,16
Smoothing Length: 21
Tuning recipes:
Too many flips: choose the slower preset and increase smoothing length.
Too sluggish: choose the faster preset and reduce smoothing length.
Regime changes feel misaligned with your entries: keep the preset, switch the source back to close, and tune smoothing length in small steps.
What this indicator is—and isn’t
This is a minimal regime visualization and a context filter. It is not a complete trading system, not a risk model, and not a prediction engine. Use it together with price structure, execution rules, and position management. The regime definition depends on the imported library, so validate it against your market and timeframe before relying on it.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
MACD HTF Hardcoded
CHPY vs Semiconductor Sector Comparison//@version=5
indicator("CHPY vs Semiconductor Sector Comparison", overlay=false, timeframe="W")
// CHPY
chpy = request.security("CHPY", "W", close)
plot((chpy/chpy -1)*100, color=color.new(color.blue,0), title="CHPY")
// SOXX (Semiconductor Index ETF)
soxx = request.security("SOXX", "W", close)
plot((soxx/soxx -1)*100, color=color.new(color.red,0), title="SOXX")
// SMH (Semiconductor ETF)
smh = request.security("SMH", "W", close)
plot((smh/smh -1)*100, color=color.new(color.green,0), title="SMH")
// NVDA
nvda = request.security("NVDA", "W", close)
plot((nvda/nvda -1)*100, color=color.new(color.orange,0), title="NVDA")
// AVGO
avgo = request.security("AVGO", "W", close)
plot((avgo/avgo -1)*100, color=color.new(color.purple,0), title="AVGO")
Fibonacci Retrace + 50 EMA Hariss 369This indicator combines 3 concepts:
Fibonacci retracement zones
50 EMA trend filter
Price interaction with specific Fib zones to generate Buy/Sell signals
Let’s break everything down in simple language.
1. Fibonacci Retracement Logic
The script finds:
Most recent swing high
Most recent swing low
Using these two points, it draws Fibonacci levels:
Fibonacci Levels Used
Level Meaning Calculation
0% Swing Low recentLow
38.2% Light retracement high - (range × 0.382)
50% Mid retracement high - (range × 0.50)
61.8% Deep retracement high - (range × 0.618)
100% Swing High recentHigh
🔍 Why only these levels?
Because trading signals are generated based ONLY on:38.2%, 50%,61.8%
These 3 levels define the golden retracement zones.
2. Trend Filter — 50 EMA
A powerful rule:
Trend Up (bullish)
➡️ Price > 50 EMA
Trend Down (bearish)
➡️ Price < 50 EMA
This prevents signals against the main trend.
3. BUY Conditions (Retracement + EMA)
A BUY signal appears when:
Price is above the 50 EMA (trend is up)
Price retraces into the BUY ZONE:
🔵 BUY ZONE = between 50% and 38.2% Fibonacci i.e.,close >= Fib50 AND close <= Fib38.2
This means:
Market is trending up
Price corrected to a healthy retracement level
Buyers are stepping back in
📘 Why this zone?
This is a moderate retracement (not too shallow, not too deep).
Smart money often enters at 38.2%–50% in a strong trend.
📘 BUY Signal Appears With:
Green “BUY” label
Green arrow below the candle
4. SELL Conditions (Retracement + EMA)
A SELL signal appears when:
Price is below the 50 EMA (trend is down)
Price retraces upward into the SELL ZONE:
🔴 SELL ZONE = between 50% and 61.8% Fibonacci i.e.,close <= Fib50 AND close >= Fib61.8
This means:
Market is trending down
Price made a pullback
Sellers regain control in the golden zone
📘 Why this zone?
50–61.8 retracement is the ideal bearish pullback level.
📘 SELL Signal Appears With:
Red “SELL” label
Red arrow above the candle
5. STOP-LOSS (SL) RULES
For BUY trades,
Place SL below 61.8% level.SL = Fib 61.8%
OR
more safe:SL = swing low (Fib 0%)
For SELL trades
Place SL above 38.2% level.SL = Fib 38.2%
OR conservative:
SL = swing high (Fib 100%)
6. TAKE-PROFIT (TP) RULES
Based on common Fibonacci extensions.
BUY Trade TP Options
TP Level Meaning
TP1 Return to 38.2% Quick scalping target
TP2 Return to swing high Full trend target
TP3 Breakout above swing high Trend continuation
Practical suggestion:
TP1 = 1× risk
TP2 = 2× risk
TP3 = trailing stop
SELL Trade TP Options
TP Level Meaning
TP1 Return to 61.8% Moderate bounce
TP2 Return to swing low Trend target
TP3 Break below swing low Trend continuation
7. Recommended Trading Plan (Simple)
BUY PLAN
Price > 50 EMA (uptrend)
Enter at BUY signal in 38.2–50% zone
SL at 61.8%
TP at swing high or structure break
SELL PLAN
Price < 50 EMA (downtrend)
Enter at SELL signal in 50–61.8% zone
SL above 38.2%
TP at swing low
🟩 Summary (Very Easy to Remember)
🔵 BUY
Trend: above 50 EMA
Zone: between 50% and 38.2%
SL: below 61.8%
TP: swing high
🔴 SELL
Trend: below 50 EMA
Zone: between 50% and 61.8%
SL: above 38.2%
TP: swing low
4H RSI Buy/Sell BotBelow is a clean TradingView Pine Script v5 bot that analyzes the 4-hour timeframe and triggers alerts based on RSI (even though you mentioned RCI—if you actually need RCI, tell me and I’ll rewrite it)
able zone# able zone
## 📋 Overview
**able zone** is an advanced Support & Resistance zone detection indicator optimized for **15-minute timeframe trading**. It combines Price Action, Volume Profile, and intelligent zone analysis to identify high-probability trading areas with precise entry and exit points.
## 🎯 Core Features
### 1. **Zone Detection Methods**
- **Auto Detect**: Automatically finds the best zones using combined analysis
- **Price Action**: Based on pivot points and price structure
- **Volume Profile**: Identifies High Volume Nodes (HVN) where most trading occurred
- **Combined**: Uses all methods together for comprehensive analysis
### 2. **Zone Types & Colors**
- 🟢 **Support Zones** (Green): Price tends to bounce up from these areas
- 🔴 **Resistance Zones** (Red): Price tends to reverse down from these areas
- 🟣 **HVN Zones** (Purple): High volume areas from Volume Profile
- **Strong Zones**: Darker colors indicate zones with more touches (higher reliability)
### 3. **Zone Strength Indicators**
- **Labels**: "S3" = Support with 3 touches, "R5" = Resistance with 5 touches
- **Touch Count**: More touches = stronger zone
- **Min Touch Count Setting**: Adjust to filter weak zones (default: 3)
## ⚙️ Settings Guide
### **Zone Detection Settings**
- **Detection Method**: Choose your preferred analysis method
- **Lookback Period** (50-500): How many bars to analyze (default: 200)
- For 15min: 200 bars = ~50 hours of data
- Shorter = Recent zones only
- Longer = Historical zones included
- **Min Touch Count** (2-10): Minimum touches to qualify as a zone (default: 3)
- **Zone Thickness %** (0.1-2.0): How thick the zones appear (default: 0.5)
- Based on ATR for dynamic sizing on 15min chart
### **Zone Colors**
Fully customizable colors for:
- Support Zone (default: Green)
- Resistance Zone (default: Red)
- Strong Support/Resistance (darker shades)
- Volume Profile Zone (default: Purple)
### **Zone Touch Detection**
- **Enable Touch Alerts**: Get notifications when price enters zones
- **Touch Distance %** (0.1-1.0): How close to zone counts as "touch" (default: 0.3%)
- On 15min chart, this gives early warning signals
- **Show Touch Markers**: Visual indicators when price touches zones
- 🔺 = Support touch (potential buy)
- 🔻 = Resistance touch (potential sell)
- 💎 = HVN touch (watch for breakout/rejection)
### **Volume Profile Integration**
- **Show VP Zones**: Display high volume node zones
- **VP Resolution** (20-50): Number of price levels analyzed (default: 30)
- **POC Line** (orange): Point of Control - highest volume price level
- **POC Width**: Line thickness (1-3)
- **Show HVN**: Display High Volume Node zones
- **HVN Threshold** (0.5-0.9): Volume % to qualify as HVN (default: 0.7)
### **Display Options**
- **Zone Labels**: Show S/R labels with touch count
- **Zone Border Lines**: Dotted lines at zone boundaries
- **Extend Zones Right**: Project zones into future
- **Max Visible Zones** (5-50): Maximum number of zones displayed (default: 20)
- Adjust based on chart clarity needs
- **Info Table**: Real-time information dashboard
## 📊 Info Table Explained
The info table (top-right corner) provides real-time zone analysis:
### **Row 1: ZONE Header**
- Shows current timeframe (15m)
- Total active zones
- "able" branding
### **Row 2: 🎯 TOUCH Status**
- **RES**: Currently touching resistance (⚠️ potential reversal down)
- **SUP**: Currently touching support (🚀 potential bounce up)
- **HVN**: Currently in high volume area (⚡ watch for direction)
- **FREE**: Not near any zone (⏳ wait for setup)
- Progress bar shows proximity strength
- Arrows indicate zone type
### **Row 3: 🟢 SUP - Support Zones**
- Number of active support zones below current price
- Progress bar shows relative quantity
- More support = stronger floor
### **Row 4: 🔴 RES - Resistance Zones**
- Number of active resistance zones above current price
- Progress bar shows relative quantity
- More resistance = stronger ceiling
### **Row 5: 🟣 HVN - High Volume Nodes**
- Number of HVN zones (from Volume Profile)
- These are areas where most trading activity occurred
- Often act as magnets for price
### **Row 6: 📍 NEAR - Nearest Zone**
- Shows closest zone type (SUP/RES/HVN)
- Distance in % to nearest zone
- Arrow shows if zone is above or below
### **Row 7: POSITION - Price Position**
- **HIGH**: Price near range top (70%+) - watch for resistance
- **MID**: Price in middle range (30-70%) - neutral zone
- **LOW**: Price near range bottom (<30%) - watch for support
- Shows exact position % in lookback range
### **Row 8: ═ SIGNAL ═**
- **🚀 BUY**: Touching support zone (entry opportunity)
- **⚠️ SELL**: Touching resistance zone (exit/short opportunity)
- **⚡ WATCH**: At HVN (prepare for breakout or rejection)
- **⏳ WAIT**: No clear setup (be patient)
## 🎓 Trading Strategy for 15-Minute Timeframe
### **Basic Setup**
1. Set timeframe to **15 minutes**
2. Use **Auto Detect** or **Combined** method
3. Set **Lookback Period**: 200 bars (~50 hours)
4. Set **Min Touch Count**: 3 (proven zones)
### **Entry Signals**
#### **Long Entry (Buy)**
- Price touches green support zone
- Table shows "🚀 BUY" signal
- Look for bullish candle pattern (hammer, engulfing)
- Volume increases on bounce
- **Best Entry**: Bottom of support zone
- **Stop Loss**: Below support zone (1-2 ATR)
- **Target**: Next resistance zone or 2:1 RR
#### **Short Entry (Sell)**
- Price touches red resistance zone
- Table shows "⚠️ SELL" signal
- Look for bearish candle pattern (shooting star, engulfing)
- Volume increases on rejection
- **Best Entry**: Top of resistance zone
- **Stop Loss**: Above resistance zone (1-2 ATR)
- **Target**: Next support zone or 2:1 RR
#### **HVN Breakout Strategy**
- Price approaches purple HVN zone
- Table shows "⚡ WATCH"
- Wait for breakout with strong volume
- **If breaks up**: Go long, target next resistance
- **If breaks down**: Go short, target next support
### **Zone Strength Rules**
- **S5+ or R5+**: Very strong zones (high probability)
- **S3-S4 or R3-R4**: Reliable zones (good setups)
- **S2 or R2**: Weak zones (use caution)
### **Best Trading Times (15min)**
- **London Open**: 08:00-12:00 GMT (high volume)
- **NY Open**: 13:00-17:00 GMT (high volatility)
- **Overlap**: 13:00-16:00 GMT (best setups)
- **Avoid**: Asian session low volatility periods
### **Risk Management**
- Never risk more than 1-2% per trade
- Use stop loss ALWAYS (place outside zones)
- Take partial profits at 1:1, let rest run to 2:1 or 3:1
- If price consolidates in zone > 3 candles, exit
## ⚠️ Important Notes
### **When Zones Work Best**
✅ Clear trending markets
✅ After significant price movements
✅ At session opens (London/NY)
✅ When multiple zones align
✅ Strong zone with 5+ touches
### **When to Be Cautious**
❌ During major news releases (use economic calendar)
❌ Very low volume periods
❌ Price consolidating inside zone
❌ Weak zones with only 2 touches
❌ Conflicting signals from multiple indicators
### **15-Minute Specific Tips**
- **Lookback 200**: Captures 2-3 trading days of zones
- **Touch Distance 0.3%**: Early signals on 15min moves
- **Max Zones 20**: Keeps chart clean but comprehensive
- **Watch POC**: Often acts as pivot on 15min
- **Volume spike + zone touch** = high probability setup
## 🔧 Recommended Settings for 15min
### **Conservative Trader**
- Detection Method: Combined
- Min Touch Count: 4
- Max Zones: 15
- Touch Distance: 0.2%
### **Aggressive Trader**
- Detection Method: Auto Detect
- Min Touch Count: 2
- Max Zones: 25
- Touch Distance: 0.5%
### **Volume Profile Focused**
- Detection Method: Volume Profile
- Show HVN: Yes
- HVN Threshold: 0.6
- Show POC: Yes
## 📈 Example Trade Scenario (15min)
**Setup**: BTC/USD on 15-minute chart
1. Price approaching green support zone at $42,000
2. Zone label shows "S4" (touched 4 times)
3. Table shows "🚀 BUY" signal
4. Volume increasing on approach
5. Bullish hammer candle forms
**Entry**: $42,050 (bottom of zone)
**Stop Loss**: $41,900 (below zone)
**Target 1**: $42,350 (2:1 RR)
**Target 2**: Next resistance at $42,650
**Result**: Price bounces, hits Target 1 in 3 candles (~45min)
## 💡 Pro Tips
1. **Combine with trend**: Trade in direction of higher timeframe trend
2. **Multiple touches**: Zones with 5+ touches are highest probability
3. **Volume confirmation**: Always check volume on zone touch
4. **POC magnet**: Price often returns to POC line
5. **False breakouts**: If price barely breaks zone and returns = strong signal
6. **Zone-to-zone**: Trade from support to resistance, resistance to support
7. **Time of day**: Best setups occur during peak volume hours
8. **Chart timeframe**: Use 1H to confirm trend, 15min for entry
9. **News avoidance**: Close trades before high-impact news
10. **Zone clusters**: Multiple zones together = strong area
---
**Created by able** | Optimized for 15-minute trading
**Version**: 1.0 | Compatible with TradingView Pine Script v5
For support and updates, enable alerts and monitor the info table in real-time!
1 PM IST MarkerThis lightweight Pine Script indicator automatically marks 1:00 PM IST on intraday charts, regardless of the chart’s timezone. It extracts the date from each bar and generates a precise timestamp for 13:00 in the Asia/Kolkata timezone. When a bar matches this time, the script draws a vertical red line across the chart and adds a small label for easy visual reference.
The tool is useful for traders who track mid-session behavior, monitor liquidity shifts, or analyze post-lunch volatility patterns in Indian markets. It works on all intraday timeframes and require
NIFTY, SENSEX AND BANKNIFTY Options Expiry MarkerNSE Options Expiry Background Marker
Category: Date/Time Indicators
Timeframe: Daily
Markets: NSE (India) / Any Exchange
Description
Automatically highlights weekly and monthly options expiry days for NIFTY, BANKNIFTY, and SENSEX using color-coded background shading. Works across entire chart history with customizable transparency levels.
Key Features
✅ Background Highlighting - Non-intrusive color shading on expiry days
✅ Multi-Index Support - NIFTY, BANKNIFTY, and SENSEX simultaneously
✅ Weekly & Monthly Expiry - Different transparency levels for easy distinction
✅ Customizable Expiry Days - Set any weekday (Mon-Fri) as expiry day
✅ Adjustable Transparency - Separate controls for weekly and monthly expiries
✅ Full Historical Data - Works on all visible bars across years
✅ Smart Monthly Detection - Automatically identifies last occurrence in month
✅ Color Coded - Blue (NIFTY), Red (BANKNIFTY), Green (SENSEX)
Use Cases
Options trading strategy planning
Identify expiry day volatility patterns
Visual reference for monthly vs weekly cycles
Backtest strategies around expiry days
Track multiple index expiries on single chart
Technical Details
Uses India timezone (GMT+5:30) for accurate date calculations
Handles leap years automatically
Smart algorithm identifies last weekday occurrence per month
Works seamlessly on any chart timeframe (optimized for Daily)
No performance impact - simple background coloring
Regime Turbo System This indicator is a “Regime Turbo System” that classifies the market into trend and volatility regimes across multiple timeframes. It combines multi‑timeframe trend detection, volatility filters, and an information panel to show the current market state clearly.
Trend regime: The script checks 60m, 30m, 15m, and 5m timeframes using both EMA200 and a Supertrend‑style filter. When all four timeframes agree up, it labels the environment as “UP”; when they all agree down, it labels “DOWN”; anything else is “MIXED”.
Volatility regime: It computes ATR percentile to label volatility as HIGH / NORMAL / LOW, and uses Bollinger Band width to detect “squeeze” (low‑volatility contraction). An “energy” measure based on recent price change identifies whether volatility is expanding or fading.
Regime zone: Combining trend and volatility, it classifies each bar into Long Zone, Short Zone, or Neutral. Long Zone requires aligned uptrend plus strong and rising volatility; Short Zone requires aligned downtrend plus strong but weakening volatility. Colored dots at the top of the pane mark these zones.
Info panel: A small table in the top‑right summarizes key states in real time: multi‑timeframe trend, volatility label, BB squeeze status, and expansion/fade of energy.
Plots: The lower part of the pane shows an ATR percentile histogram and the energy line so you can visually see changes in volatility and regime strength over time.
In short, you use this indicator to decide:
whether the market is in a strong bullish, strong bearish, or neutral regime,
whether volatility is high or low, compressing or expanding,
and then choose trend‑following or mean‑reversion tactics accordingly.
Delta Force Index - DFI [TCMaster]This indicator provides a proxy measurement of hidden buying and selling pressure inside each candle by combining tick volume with candle direction. It calculates a simulated delta volume (buy vs. sell imbalance), applies customizable scaling factors, and displays three components:
Delta Columns (green/red): Show estimated hidden buy or sell pressure per candle.
Delta Moving Average (orange line): Smooths delta values to highlight underlying momentum.
Cumulative Delta (blue line): Tracks the long-term accumulation of hidden order flow.
How to use:
Rising green columns with a positive Delta MA and upward Cumulative Delta suggest strong hidden buying pressure.
Falling red columns with a negative Delta MA and downward Cumulative Delta suggest strong hidden selling pressure.
Scaling parameters allow you to adjust the visual balance between columns and lines for different timeframes.
Note: This tool uses tick volume and candle direction as a proxy for order flow. It does not display actual bid/ask data or Level II market depth. For professional order flow analysis, footprint charts or DOM data are required.
Thirdeyechart Gold Simulation Final 3The Thirdeyechart Gold Simulation Final Version 3 is the ultimate indicator for traders who want a comprehensive, real-time view of gold market dynamics across multiple XAU pairs. This version tracks 8 gold-related pairs simultaneously (XAUUSD, XAUJPY, XAUGBP, XAUEUR, XAUAUD, XAUCHF, XAUCAD, XAUNZD) and provides a consolidated visual table for weekly, daily, 4-hour, and 1-hour percentage changes.
Core Features
Multi-Timeframe Trend Analysis – Calculates percent change for each XAU pair across W, D, H4, H1 using:
pct_tf = ((close_tf - open_tf) / open_tf) * 100
Positive values are colored blue, negative values red, giving an immediate visual sense of market direction.
Buy & Sell Simulation – Each pair’s positive and negative contributions are summed to produce BuySim and SellSim columns, representing the overall pressure in the market without providing explicit trade signals.
Total Row & Strength Row – Aggregates all pairs to show total weekly, daily, H4, and H1 movements, alongside a Strength row indicating "Strong", "Weak", or "Neutral" trends per timeframe. A trend bias (Buy Bias or Sell Bias) is calculated automatically from total positive vs negative pressure.
Safe / Unsafe Trade Detection – Advanced logic measures the difference between total Buy and Sell pressure. If the distance exceeds 50% of total market activity, the market is labeled as Safe Trade with a reason for dominance (buyers or sellers). If below this threshold, it is labeled Unsafe Trade with a note that one side “can dominate the market.” This allows traders to quickly identify high-confidence vs uncertain market conditions.
Visual Layout – The table is fully boxed, color-coded, and easy to read, displaying all key metrics including per-timeframe percent changes, BuySim/SellSim totals, Strength, Trend Bias, and Trade Status with reasons.
Logic Overview
Percent changes per timeframe: pct_tf = ((close - open) / open) * 100
Positive and negative values split into Buy/Sell contributions.
Sum across all pairs and timeframes to calculate totals and bias.
Safe/Unsafe trade threshold: distance >= totalAll * 0.50
Strength interpretation per timeframe: >0 → Strong, <0 → Weak, 0 → Neutral
This indicator is ideal for fast detection of strong vs weak gold trends, global XAU market pressure simulation, and quick risk assessment through safe/unsafe trade labeling.
Disclaimer
This tool is educational and analytical only. It does not provide financial advice or trade signals. Users are responsible for their own trading decisions, and trading involves risk.
© 2025 Thirdeyechart. All rights reserved. Redistribution or commercial use without permission is prohibited.
Thirdeyechart Gold Simulation Final 2Gold Simulation – Final Version 2 (Safe/Unsafe Trade Detection)
The Gold Simulation Final Version is a comprehensive TradingView indicator designed for traders who want an immediate understanding of gold market dynamics. This version monitors multiple XAU pairs simultaneously and integrates an advanced logic to detect Safe and Unsafe trade conditions in real time.
Key features:
Safe Trade: Indicates situations where market direction shows clear dominance and higher probability of trend continuity.
Unsafe Trade: Highlights areas where price movement is uncertain or potentially volatile, signaling traders to be cautious.
Multi-Timeframe Analysis: Calculates percentage changes across Weekly (W), Daily (D), 4-Hour (H4), and 1-Hour (H1), and combines them into a Total Average Trend Strength for a consolidated market view.
Clean Visual Layout: All data is displayed in a solid boxed table, making trend strength, direction, and safety status immediately clear.
Logic Overview
Percent change per timeframe:
pct_tf = ((close_tf - open_tf) / open_tf) * 100
Collect all timeframe values for each XAU pair:
values =
Total Average Strength:
Total_Avg = sum(values) / 4
Safe/Unsafe conditions are determined by configurable thresholds comparing dominance between buyers and sellers across timeframes.
This version helps traders quickly identify where trend is strong and stable versus where market conditions are uncertain, allowing better planning and risk management.
Disclaimer
This indicator is for educational and analytical purposes only. It does not provide financial or trading advice. Users are fully responsible for their own trading decisions, and markets carry risk.
© 2025 Ajik Boy. All rights reserved. Redistribution or commercial use without permission is prohibited.
5 MA Length Custom [wjdtks255]Indicator Title: 5 MA Length Custom
This indicator is a minimalist tool designed for pure trend visualization across five user-defined periods using Simple Moving Averages (SMAs). It contains no built-in signals or dynamic features—it serves strictly as a trend filter and confirmation layer.
Key Features and Customization
The indicator plots five fixed-color, fixed-thickness moving average lines. Only the Length (period) of each MA can be changed in the settings, offering clean, focused market analysis.
MA 1 (Default 5): Immediate price action.
MA 2 (Default 20): Short-term momentum.
MA 3 (Default 60): Key Mid-term Trend Line.
MA 4 (Default 40): Proxy for the standard Bollinger Band Center Line.
MA 5 (Default 120): Major Long-term Trend.
🧭 Trading Strategy: MA Filtered Reversion
This strategy uses the MA hierarchy for trend filtering and bias confirmation when executing trades based on an external signal indicator (e.g., a volatility/reversal signal like BB OPT EN).
🟢 Long Bias Confirmation (Buy)
The short-term trend must support the mid-term trend. This is confirmed when MA 2 (20) is positioned above MA 3 (60). When this alignment occurs, you should only take external Buy signals (reversal signals) for higher probability trades.
🔴 Short Bias Confirmation (Sell)
The short-term trend must align with the bearish direction. This is confirmed when MA 2 (20) is positioned below MA 3 (60). When this alignment occurs, you should only take external Sell signals (reversal signals) for higher probability trades.
Thirdeyechart Gold Simulation FinalGold Simulation – Final Version (Safe/Unsafe Trade Detection)
The Gold Simulation Final Version is a comprehensive TradingView indicator designed for traders who want an immediate understanding of gold market dynamics. This version monitors multiple XAU pairs simultaneously and integrates an advanced logic to detect Safe and Unsafe trade conditions in real time.
Key features:
Safe Trade: Indicates situations where market direction shows clear dominance and higher probability of trend continuity.
Unsafe Trade: Highlights areas where price movement is uncertain or potentially volatile, signaling traders to be cautious.
Multi-Timeframe Analysis: Calculates percentage changes across Weekly (W), Daily (D), 4-Hour (H4), and 1-Hour (H1), and combines them into a Total Average Trend Strength for a consolidated market view.
Clean Visual Layout: All data is displayed in a solid boxed table, making trend strength, direction, and safety status immediately clear.
Logic Overview
Percent change per timeframe:
pct_tf = ((close_tf - open_tf) / open_tf) * 100
Collect all timeframe values for each XAU pair:
values =
Total Average Strength:
Total_Avg = sum(values) / 4
Safe/Unsafe conditions are determined by configurable thresholds comparing dominance between buyers and sellers across timeframes.
This version helps traders quickly identify where trend is strong and stable versus where market conditions are uncertain, allowing better planning and risk management.
Disclaimer
This indicator is for educational and analytical purposes only. It does not provide financial or trading advice. Users are fully responsible for their own trading decisions, and markets carry risk.
© 2025 Thirdeyechart. All rights reserved. Redistribution or commercial use without permission is prohibited.
Marks current bars high and previous bars high and same for lowsits a halloween custom.
second indicator ,gotta make it look better too .
4-Day Average Initial Balance (RTH)//@version=5
indicator("4-Day Average Initial Balance (RTH)", overlay=true, max_labels_count=500, max_lines_count=500)
//===================== Inputs =====================
ibBars = input.int(12, "IB length in bars (5-min = 12 bars)", minval=1)
sessRTH = input.session("0930-1600", "RTH Session (Exchange Time)")
bgColor = input.color(color.new(color.blue, 70), "Background Color")
//===================== Session Logic =====================
inSession = time(timeframe.period, sessRTH) != 0
newSession = inSession and not inSession
//===================== IB Tracking =====================
var float ibHigh = na
var float ibLow = na
var int ibBarCount = 0
var bool ibDone = false
if newSession
ibHigh := na
ibLow := na
ibBarCount := 0
ibDone := false
if inSession and not ibDone
ibHigh := na(ibHigh) ? high : math.max(ibHigh, high)
ibLow := na(ibLow) ? low : math.min(ibLow, low)
ibBarCount += 1
if ibBarCount >= ibBars
ibDone := true
//===================== Store Last 4 IB Ranges =====================
var float ib1 = na
var float ib2 = na
var float ib3 = na
var float ib4 = na
todayIBRange = ibDone ? ibHigh - ibLow : na
justCompletedIB = ibDone and not ibDone
if justCompletedIB and not na(todayIBRange)
ib4 := ib3
ib3 := ib2
ib2 := ib1
ib1 := todayIBRange
//===================== Average of Last 4 =====================
sum = 0.0
count = 0
if not na(ib1)
sum += ib1
count += 1
if not na(ib2)
sum += ib2
count += 1
if not na(ib3)
sum += ib3
count += 1
if not na(ib4)
sum += ib4
count += 1
avgIB = count > 0 ? sum / count : na
//===================== Display Number on Right =====================
var table t = table.new(position.top_right, 1, 1, frame_color=color.new(color.black, 0), frame_width=1)
if barstate.islast
txt = na(avgIB) ? "Avg IB(4d): n/a" : "Avg IB(4d): " + str.tostring(avgIB, "#.00") + " pts"
table.cell(t, 0, 0, txt, text_color=color.white, text_halign=text.align_right, bgcolor=bgColor)
4-Day Average Daily ATRWhat this script does:
• Uses true Daily ATR, even on 5-minute charts
• Averages the last 4 fully completed trading days
• Displays one clean number only
• Lets you customize background color and text color
• Updates automatically each day
• Does not draw lines or clutter your chart






















