Timeframe Shift AlertIf the higher timeframe flips bullish, you’ll get a notification like:
“✅ Higher TF (240) just flipped from Bearish → Bullish”
• If it flips bearish, you’ll get:
“❌ Higher TF (240) just flipped from Bullish → Bearish”
Penunjuk dan strategi
Divergences v2.4 [LTB][SPTG]Open-source credit & license
Original author: LonesomeTheBlue.
This fork by: sirpipthegreat — with attribution to the original work.
License: Open-source, published under the MPL-2.0 (same license header in the code).
I am publishing this open-source in accordance with TradingView’s Open-source reuse rules.
What’s new:
- Fixes & stability (addresses “historical offset beyond buffer” errors)
- Capped and validated all historical indexing with guarded lookbacks (e.g., min(…, 200) style limits) to prevent referencing data beyond the buffer on shorter histories/thin symbols.
- Refactored highest/lowest bars scans to obey the cap and avoid cumulative overflows on long sessions.
- Added per-bar counters with safety clamps to ensure it never exceeds available history.
- Ensured HTF switching doesn’t create invalid offsets when the higher timeframe compresses history.
Modernization & user control:
- Pine v6 upgrade and re-organization of logic for clarity/performance.
- More predictable tops/bottoms detection.
What it does:
- Detects regular (trend-reversal) and optional hidden (trend-continuation) divergences between price swing tops/bottoms and the selected oscillator(s).
- Computes candidate pivots with a light HTF alignment to reduce micro-noise; validates divergence when oscillator and price move in opposite directions across those pivots.
- Plots colored lines/labels on price to highlight bearish (regular & hidden) and bullish (regular & hidden) patterns.
How to use:
- Choose the oscillator set you trust (start with RSI + MACD).
- Consider confluence (S/R, volume, trend filters). This tool only identifies conditions
A SRCDrawing support and resistance lines based on the price of candles that are multiple times larger than their recent period average
Session Asiatique (1h à 6h - Heure de Paris)//@version=5
indicator("Session Asiatique (1h à 6h - Heure de Paris)", overlay=true)
// Variables pour le rectangle de la session
var box sessionBox = na
var float sessionHigh = na
var float sessionLow = na
// Heure actuelle en UTC
utcHour = hour(time)
// Heure actuelle en heure de Paris
parisHour = hour(time, "Europe/Paris")
// Détection de la session asiatique (1h à 6h heure de Paris)
inSession = parisHour >= 1 and parisHour < 6
startSession = inSession and not inSession
endSession = not inSession and inSession
// Début de la session : création du rectangle et initialisation des bornes
if startSession
sessionLow := low
sessionHigh := high
sessionBox := box.new(left=bar_index, right=bar_index, top=high, bottom=low, border_color=color.rgb(118, 118, 119), bgcolor=color.new(#404140, 85))
// Mise à jour du rectangle pendant la session
if inSession and not na(sessionBox)
sessionHigh := math.max(sessionHigh, high)
sessionLow := math.min(sessionLow, low)
box.set_right(sessionBox, bar_index)
box.set_top(sessionBox, sessionHigh)
box.set_bottom(sessionBox, sessionLow)
// Fin de la session : finalisation du rectangle
if endSession and not na(sessionBox)
box.set_right(sessionBox, bar_index)
Trading Stats BarSimple statistics bar designed to give important values for swing trading
Most of the values are self explanatory
Float Grade
Combines float and float % designed to give a sense if the stock has the potential to move quickly. If the float is less than 20 million and float % less than 50, this has a high potential to make fast moves.
Volume Run Rate
Concept is to focus on the opening x minutes and average this value over the previous y days
JL - Market HeatmapThis indicator plots a static table on your chart that displays any tickers you want and their % change on the day so far.
It updates in real time, changes color as it updates, and has several custom functions available for you:
1. Plot up to 12 tickers of your choice
2. Choose a layout with 1-4 rows
3. Display % Change or Not
4. Choose your font size (Tiny, Small, Normal, Large)
5. Up/Down Cell Colors (% change dependent)
6. Up/Down Text Colors (high contrast to your color choices)
The purpose of the indicator is to quickly measure a broad basket of market instruments to paint a more context-rich perspective of the chart you are looking at.
I hope this indicator can help you (and me) accomplish this task in a simple, clean, and seamless manner.
Thanks and enjoy - Jack
Economic Profit (Fixed & Labeled) — Rated + PeersFRAC (Fundamental-Rated-Asset-Calculate)
FRAC is a fundamentals-driven tool designed to measure whether a company is creating or destroying shareholder value. Unlike surface ratios, FRAC uses Economic Profit (ROIC – WACC) as its engine, showing whether a business truly outperforms its cost of capital.
🔹 What FRAC Does
Calculates ROIC (Return on Invested Capital) vs. WACC (Weighted Average Cost of Capital).
Shows whether a company is creating or destroying shareholder value.
Uses tiered color coding for clarity:
🔵 Superior (Aqua Blue) → Top tier; best of the best.
🟣 Elite (Purple) → Strong value creation.
🟢 Positive (Green) → Solid, creating shareholder value.
🟡 Marginal (Yellow) → Barely covering cost of capital.
🔴 Negative (Red) → Value destruction.
🔹 Composite Ranking System (1–4)
FRAC also assigns each company a Composite Rank so you can compare multiple names side by side. The rank works like this:
Rank 1 → Superior (🔵 Aqua Blue)
Best possible rating; wide gap between ROIC and WACC.
Rank 2 → Elite (🟣 Purple)
Strongly positive; above-average capital efficiency.
Rank 3 → Positive (🟢 Green)
Creating value but only moderately; not a top compounder.
Rank 4 → Marginal/Negative (🟡/🔴)
Weak or destructive; either barely covering WACC or losing money on capital.
✅ How to Use the Ranks
When comparing a set of peers (e.g., NVDA, AMD, INTC):
FRAC will display each company’s color rating + composite rank (1–4).
You can instantly see who is strongest vs. weakest in the group.
Best decisions = overweight Rank 1 & 2 companies, avoid Rank 4 names.
🔹 Key Inputs Explained
Risk-Free Asset → Typically the 10-Year US Treasury yield (US10Y).
Corporate Tax Rate → Effective tax rate for the company’s country (e.g., USCTR).
Expected Market Return → Historical average ~8–10%, adjustable.
Beta Lookback Period → Controls how far back Beta is calculated (longer = more stable, shorter = more reactive).
👉 These must be set correctly for FRAC to calculate WACC accurately.
🔹 Example Comparison
NVDA: ROIC 25% – WACC 7% = +18% → 🔵 Superior → Rank 1
AMD: ROIC 17% – WACC 8% = +9% → 🟣 Elite → Rank 2
INTC: ROIC 11% – WACC 9% = +2% → 🟢 Positive → Rank 3
FSLY: ROIC 5% – WACC 10% = –5% → 🔴 Negative → Rank 4
🔹 Why It Matters
Buffett said: “The best businesses are those that can consistently generate returns on capital above their cost of capital.”
FRAC turns that into a visual + numeric rating system (1–4), making comparisons across peers simple and actionable.
🔹 Credit
FRAC was created by Hunter Hammond (Elite x FineFir), inspired by corporate finance models of Economic Profit and Economic Value Added (EVA).
⚠️ Disclaimer: FRAC is a research framework, not financial advice. Always pair with full due diligence.
FBTBBT (Filtered Black Two Bar Break Through)📘 FBTBBT (Filtered Black Two Bar Break Through)
Overview
FBTBBT is a filtered breakout indicator based on the classical Two Bar Break Through (TBBT) concept.
It generates Buy and Sell signals when price breaks above or below the previous bar’s high/low, but only displays the **first signal in a run** to avoid noise and duplicates.
- Buy Signal → Break above previous high
- Sell Signal → Break below previous low
- Filtered → Only the first signal in a consecutive streak is shown
---
Key Features
1. Filtered Signals
• Avoids repeated identical signals.
• Example: 3 consecutive bars breaking the previous low → only the first bar shows a Sell signal.
2. Confirmation Options
• Real-Time Mode: signals appear intrabar as soon as the breakout happens.
• Close Confirmation: signals appear only after bar close beyond previous high/low (reduces repainting).
3. Visual Aids
• Green “Buy” labels below breakout bars.
• Red “Sell” labels above breakout bars.
• Optional lines for previous bar’s high/low levels.
4. Alerts
• Alerts trigger only on the first filtered signal in each run.
• Messages specify breakout above (Buy) or below (Sell).
---
How to Use
• Add FBTBBT to your TradingView chart.
• Choose Real-Time or Close-Confirmed signals depending on your style.
• Focus on the **first breakout signal**; ignore duplicates until the opposite side appears.
• Combine with trend filters, volume, or higher timeframe context for stronger accuracy.
---
👉 In short:
**FBTBBT = Clean, filtered breakout signals with no noise.**
Perfect for traders who want **precise first-bar breakouts** while avoiding repeated alerts.
Simple Liquidity Zones [Supertrade]🔎 What this indicator does
This indicator is designed to highlight liquidity sweep zones on the chart.
• A liquidity sweep occurs when price briefly breaks above a recent swing high or below a recent swing low, but fails to close beyond it.
• Such behavior often indicates that price has taken liquidity (stop orders resting above highs or below lows) and may reverse.
The indicator marks these events as bullish or bearish liquidity zones:
• Bullish Zone (green) → Price swept a swing low and closed back above it (possible bullish reversal area).
• Bearish Zone (red) → Price swept a swing high and closed back below it (possible bearish reversal area).
These zones are drawn as shaded horizontal bands that extend forward in time, providing visual areas where liquidity grabs occurred.
________________________________________
⚙️ How calculations are made
The indicator does not use moving averages or smoothing.
Instead, it works with raw price action:
1. Swing Detection → It checks the highest high and lowest low of the past N bars (swing length).
2. Sweep Logic →
o A bearish sweep happens if the high breaks above the previous swing high, but the close returns below that level.
o A bullish sweep happens if the low breaks below the previous swing low, but the close returns above that level.
3. Zone Creation → When a sweep is detected, a shaded zone is drawn just above/below the swing level.
4. Persistence → Zones extend into the future until replaced by new ones (or optionally until price fully trades through them).
This makes the calculations simple, transparent, and responsive to actual market structure without lag.
________________________________________
📈 How it helps traders
This tool helps traders by:
• Visualizing liquidity areas → Shows where price previously swept liquidity and may act as support/resistance.
• Identifying reversals → Helps spot potential turning points after liquidity grabs.
• Risk management → Zones highlight areas where stops may be targeted, useful for positioning stop-loss orders.
• Confluence tool → Works best when combined with other strategies such as order blocks, trendlines, or volume analysis.
⚠️ Note: Like all indicators, this should not be used in isolation. It provides context, not guaranteed trade signals.
________________________________________
🏦 Markets & Timeframes
• Works across all markets (crypto, forex, stocks, indices, commodities).
• Particularly effective in high-liquidity environments where stop-hunting is common (e.g., forex majors, BTC/ETH, S&P500).
• Timeframes:
o Lower timeframes (1m–15m) → Scalpers can spot intraday liquidity sweeps.
o Higher timeframes (1H–1D) → Swing traders can identify major liquidity pools.
________________________________________
Vegas ema 過濾 Vegas Channel with EMA-Filter — Trading Rules
Components
Tunnel: EMA 144 & 169 (upper = max, lower = min).
Base: EMA 576 & 676 (upper = max, lower = min).
Fast filter: EMA12.
Touch threshold: ATR-based or % of the reference line.
Long touch = low ≤ line + thr; Short touch = high ≥ line − thr.
Trend gate
LongTrendOK: EMA144 > EMA576 and EMA169 > EMA676 and close > BaseUpper.
ShortTrendOK: EMA144 < EMA576 and EMA169 < EMA676 and close < BaseLower.
Price-action pattern (either one)
Pin40: bullish pin = close>open & lower wick ≥ 40% of range; bearish pin = close 169 → use Base.
Else → use Tunnel.
EMA12 hard locks (coarse filter)
Lock longs if EMA12 < 676 (no long signals at all).
Lock shorts if EMA12 > 676 (no short signals at all).
(Optional) Tunnel lock/unlock (fine filter)
Lock longs when EMA12 drops below TunnelLower; unlock when
A) EMA12 crosses back above 144/169/TunnelUpper, or
B) a bullish Pin/Eng appears at BaseUpper and EMA12 is back ≥ TunnelLower.
Lock shorts when EMA12 breaks above TunnelUpper; unlock when
A) EMA12 crosses back below 144/169/TunnelLower, or
B) a bearish Pin/Eng appears at BaseLower and EMA12 is ≤ TunnelUpper.
Final signal
LONG fires when: Close-bar confirmed ∧ Cooldown passed ∧ LongTrendOK ∧ ActiveBand lower touch ∧ Pin40 or Eng60 ∧ not hard-locked ∧ (not tunnel-locked if enabled).
SHORT symmetrical with upper touch.
Quality-of-life
Close-bar confirmation to avoid repaint.
Cooldown (e.g., 10 bars) to prevent signal clusters.
Alerts include a compact lock status string (LckL/LckS/HardL/HardS).
Optional “BLOCK:” labels show why a bar didn’t trigger (noTouch, EMA12<676/>676, TunnelLock, cooldown, notClose).
Suggested defaults
ATR(14), ATR multiplier 0.35 (or 0.20% if using Percent mode).
autoSwitchByEMA12_* = ON, hardLockBelow676/Above676 = ON, useTunnelLock* = OFF.
useCloseBar = ON, signalCooldown = 10.
Design intent
Tunnel (144/169) captures the working trend; Base (576/676) defines the structural bias.
EMA12 drives regime selection (Tunnel vs Base) and hard locks to keep signals sparse and aligned with momentum.
CPR • VWAP • Keltner • Supertrend • Chandelier • LRC - KidevFeatures included
CPR (Central Pivot Range)
VWAP (Volume Weighted Average Price)
Keltner Channel (KC)
Supertrend
Chandelier Exit (CE)
Linear Regression Channel (LRC)
Each tool has a toggle (on/off).
If off → plots are hidden (using display.none).
Fill shading (fill()) is controlled by conditional colors (na to hide).
Canyons Trend Ride SignalTrend alignment signals using 3 EMA's. pre-code written parameters must all be met to throw a signal out. Works best with Heiken ashi candles. Works on Gold, Nas100, S&P 500 and US30
Previous High/Low Range (D,W,M,Q)Previous High/Low Range (D, W, M, Q)
This indicator displays the previous period’s high, low, and midpoint levels across multiple timeframes: Daily, Weekly, Monthly, and Quarterly. It extends these key price levels into the future, allowing traders to quickly identify important support and resistance zones based on historical price action.
Features:
Shows previous Daily, Weekly, Monthly, and Quarterly highs, lows, and midpoints.
Optionally extends these levels forward for easy visualization.
Configurable colors and visibility for each timeframe.
Includes optional midpoint lines at 50% between high and low to identify equilibrium points.
Supports logarithmic scale calculations for midpoints to maintain accuracy on log charts.
Optional labels that display exact price values for each level.
Designed to help traders recognize key levels for entries, exits, and risk management.
Use this indicator to gain a multi-timeframe perspective on significant price ranges and anticipate potential reversal or breakout zones.
RSI Multi Length + Normalized BBW (Butrait)RSI + BB: este indicador muestra cuando el valor esta en sobre venta o sobre compra.
Trade Calculator {Phanchai}Trade Calculator 🧮 {Phanchai} — Documentation
A lightweight sizing helper for TradingView that turns your risk per trade into an estimated maximum nominal position size — using the most recent chart low as your stop reference. Built for speed and clarity right on the chart.
Key Features
Clean on-chart info table with configurable font size and position.
Row toggles: show/hide each line (Price, Last Low, Risk per Trade, Entry − Low, SL to Low %, Max. Nominal Value in USDT).
Configurable low reference: Last N bars or Running since load .
Low label placed exactly at the wick of the lowest bar (no horizontal line).
Custom padding: add extra rows above/below and blank columns left/right (with custom whitespace/text fillers) to fine-tune layout.
Integer display for Risk per Trade (USDT) and Max. Nominal Value (USDT); decimals configurable elsewhere.
Open source script — easy to read and extend.
How to Use
Add the indicator: open TradingView → Indicators → paste the source code → Add to chart.
Pick your low reference in settings:
Last N bars — uses the lowest low within your chosen lookback.
Running since load — tracks the lowest low since the script loaded.
Set your capital and risk:
Total Capital — your account size in USDT.
Max. invest Capital per Trade (%) — your risk per trade as a percent of Total Capital.
Tidy the table:
Use Table Position and Table Size to place it.
Add Extra rows/columns and set left/right fillers (spaces allowed) for padding.
Toggle individual rows (on/off) to show only what you need.
Read the numbers:
Act. Price in USDT — current close.
Last Low in USDT — stop reference price.
Risk per Trade — whole-USDT value of your risk budget for this trade.
Entry − Low — absolute risk per unit.
SL to Low (%) — percentage distance from price to low.
Max. Nominal Value in USDT — estimated max nominal position size given your risk budget and stop at the low.
Scope
This calculator is designed for long trades only (stop below price at the chart low).
Notes & Assumptions
Does not factor fees, funding, slippage, tick size, or broker/venue position limits.
“Running since load” updates as new lows appear; “Last N bars” uses only the selected lookback window.
If price equals the low (zero distance), sizing will be undefined (division by zero guarded as “—”).
Risk Warning
Trading involves substantial risk. Always double-check every value the calculator shows, confirm your stop distance, and verify position sizing with your broker/platform before entering any order. Never risk money you cannot afford to lose.
Open Source & Feedback
The source code is open. If you spot a bug or have an idea to improve the tool, feel free to share suggestions — I’m happy to iterate and make it better.
Combined Liquidity & Session LevelsPlots session highs and lows, as well as lower timeframe liquidity levels
KATIK BankNifty Upside/Downside LevelsThe KATIK BankNifty Upside/Downside Levels (BNUDL) indicator plots key daily reference levels for BankNifty based on its opening price. Using a predefined daily move percentage, it calculates potential upside and downside levels from the open. The script displays:
Up Level (Green): Potential bullish threshold above the open
Down Level (Red): Potential bearish threshold below the open
Open Price (Blue Circles): Daily BankNifty opening level
This tool helps traders quickly identify intraday directional bias and potential support/resistance zones around the opening price.