Time Based Range CandleThis indicator creates a visual candle representation from price action during a specified time period.
Key Features:
Configurable Sessions: Set any calculation period (when range is measured) and display period (when visualization appears)
Candle Visualization: Draws a large candle showing open, close, high, low with proper body coloring
Wick/Tail Analysis: Displays wicks and tails with quarter-level subdivisions based on candle type (bullish vs bearish)
End Marker: Vertical line marks exactly when the calculation period ends
Quarter Lines: Optional dotted/dashed lines showing 25%, 50%, 75% levels within body, wicks, and tails
Common Use Cases:
Overnight range analysis (18:00 - 6:00 ET) displayed during regular hours
Session-based range trading (Asian, London, NY sessions)
Custom time period analysis for any market
The indicator follows proper candle terminology where wicks and tails are measured differently for bullish vs bearish candles, making it useful for precise level analysis and range trading strategies.
指標和策略
Concentric Geometry – Invariant MetricsConcentric Geometry – Invariant Metrics
This indicator demonstrates the invariant concept of a concentric circle around a selected price range. By anchoring two points (A & B), it calculates a set of ratios and slopes that remain consistent under concentric scaling of price and time. These invariants include the raw slope (ΔP/N), concentric slope, π-adjusted ratios, and √2 offsets — all of which can be used to explore deeper geometric relationships in the market.
What has been demonstrated here is not an “out-of-the-box” trading system. Instead, the outputs provide the raw invariant metrics from which the trader must derive their own ratios and extensions. For example, price-to-bar ratio inputs are not fixed — they need to be derived from the invariants themselves, and experimenting with them is the key to uncovering harmonic alignments and scaling behaviors.
Key features include:
• Range & Bars Analysis – Price range (ΔP) and bar count (N) between anchors.
• Core Invariants – Midpoint, radius (price and bar units), upper/lower bounds.
• Linear Slope Metrics – ΔP/N and √2 concentric slope.
• π-Adjusted Price/Bar – Harmonic arc-length ratio.
• Circumference & Offsets – Circle circumference, √2 and 1/√2 offsets in price and bar units.
This tool is best suited for traders studying market geometry, W.D. Gann principles, harmonic ratios, or the geometric methods of Michael Jenkins. It does not generate buy/sell signals — instead, it equips the trader with building blocks for geometric exploration.
Key point: The trader must experiment with the ratios derived from these metrics. Playing with different price-to-bar relationships unlocks the true potential of concentric market geometry, whether applied to dynamic anchored VWAPs, concentric overlays, or Vesica Piscis structures.
Use it to:
• Compare slopes across swings
• Derive new ratios from invariant metrics
• Anchor dynamic anchored VWAPs to concentric nodes
• Explore concentric or Vesica Piscis overlays
• Support advanced geometric trading strategies
Opening Range BreakoutOpen Range Breakout (ORB) – Trading Strategy Documentation
Definition:
The Open Range Breakout (ORB) is a short-term trading strategy that identifies the price range established during the initial period of market opening (typically the first 15 to 60 minutes) and uses the high and low of that range as key reference levels for potential breakout entries.
Components:
Open Range High: The highest price traded during the defined opening period.
Open Range Low: The lowest price traded during the same period.
Breakout Trigger: A price move above the Open Range High or below the Open Range Low, signaling potential continuation momentum.
How It Works:
Define the Opening Period: Select a time window (e.g., 30 minutes) at market open to establish the initial range.
Identify Range Boundaries: Record the high and low prices during this period.
Monitor for Breakout: Watch for price to break and close above the Open Range High (bullish breakout) or below the Open Range Low (bearish breakout).
Enter Trade: Enter long on a confirmed break above the Open Range High, or short on a break below the Open Range Low. Entry may be triggered on a retest of the broken level or with volume confirmation.
Set Stop-Loss and Target:
Stop-loss: Placed just inside the open range (e.g., below the high for long, above the low for short).
Profit target: Based on volatility (e.g., ATR multiple) or support/resistance levels.
Key Assumptions:
Early price action reflects initial market sentiment.
A breakout from this range indicates strong directional momentum likely to continue.
Best Conditions:
High liquidity markets (e.g., major indices, large-cap stocks).
Volatile or news-driven trading sessions.
Used primarily in intraday trading.
Limitations:
Prone to false breakouts during low-volume or choppy markets.
Requires strict risk management due to reliance on timing and confirmation.
Conclusion:
The ORB strategy capitalizes on early market momentum by trading breakouts from the initial price range. Its effectiveness depends on precise range definition, timely execution, and disciplined risk control.
Swing Support and Resistance [Vijay]Swing-based support & resistance with breakout buy/sell signals and alerts.
Full Description:
The Swing Support and Resistance indicator is a simple yet effective tool to identify swing-based support and resistance levels using pivot points.
Pivot Length: Defines how many bars on each side are used to confirm a swing high (resistance) or swing low (support).
Support & Resistance: Plots the most recent pivot levels as visual markers (circles) on the chart.
Buy & Sell Signals:
A Buy Signal is triggered when price crosses above the last resistance.
A Sell Signal is triggered when price crosses below the last support.
Visual Cues: Arrows are plotted directly on the chart for easy signal recognition.
Alerts: Built-in alert conditions allow you to set TradingView alerts for breakout signals.
This script is useful for traders who rely on price action, breakout trading, and swing structure analysis. It helps quickly spot where price is breaking key levels and provides instant alerts for trade opportunities.
Trusty RSI v2The 'Trusty RSI' indicator is based off a simple RSI but has additional trust power. For those who have trust issues in their trading, the flashy background colors and the 'Trusty' signals help you trade with infinite confidence! This indicator might revolutionize your trading and will help you become generationally wealthy! Please have fun with it!
On a more serious note, The Trusty RSI is a streamlined RSI-based oscillator designed to highlight only meaningful extremes. The pane is colored red when RSI > 80 and green when RSI < 30, while “Trusty Sell/Buy” labels appear only after three consecutive bars in those zones to reduce noise. It includes 80/55/30 guide levels with pane fill and offers optional smoothing of the RSI line via SMA or EMA (user-selectable length). Suitable for any symbol and timeframe; thresholds and lengths are configurable to fit different risk tolerances.
RTH Levels: VWAP + PDH/PDL + ONH/ONL + IBAlgo Index — Levels Pro (ONH/ONL • PDH/PDL • VWAP±Bands • IB • Gaps)
Purpose. A session-aware, non-repainting levels tool for intraday decision-making. Designed for futures and indices, with clean visuals, alerts, and a one-click Minimal Mode for screenshot-ready charts.
What it plots
• PDH/PDL (RTH-only) – Prior Regular Trading Hours high/low, computed intraday and frozen at the RTH close (no 24h mix-ups, no repainting).
• ONH/ONL – Prior Overnight high/low, held throughout RTH.
• RTH VWAP with ±σ bands – Volume-weighted variance, reset each RTH.
• Initial Balance (IB) – First N minutes of RTH, plus 1.5× / 2.0× extensions after IB completes.
• Today’s RTH Open & Prior RTH Close – With gap detection and “gap filled” alert.
• Killzone shading – NY Open (09:30–10:30 ET) and Lunch (11:15–13:30 ET).
• Values panel (top-right) – Each level with live distance in points & ticks.
• Right-edge level tags – With anti-overlap (stagger + vertical jitter).
• Price-scale tags – Native trackprice markers that always “stick” to the axis.
⸻
New in v6.4
• Minimal Mode: one click for a clean look (thinner lines, VWAP bands/IB extensions hidden, on-chart right-edge labels off; price-scale tags remain).
• Theme presets: Dark Hi-Contrast / Light Minimal / Futures Classic / Muted Dark.
• Anti-overlap controls: horizontal staggering, vertical jitter, and baseline offset to keep tags readable even when levels cluster.
⸻
Quick start (2 minutes)
1. Add to chart → keep defaults.
2. Sessions (ET):
• RTH Session default: 09:30–16:00 (US equities cash hours).
• Overnight Session default: 18:00–09:29.
Adjust for your market if you use different “day” hours (e.g., many use 08:20–13:30 ET for COMEX Gold).
3. Theme & Minimal Mode: pick a Theme Preset; enable Minimal Mode for screenshots.
4. Visibility: toggle PD/ON/VWAP/IB/References/Panel to taste.
5. Right-edge labels: turn Show Right-Edge Labels on. If they crowd, tune:
• Anti-overlap: min separation (ticks)
• Horizontal offset per tag (bars)
• Vertical jitter per step (ticks)
• Right-edge baseline offset (bars)
6. Alerts: open Add alert → Condition: and pick the events you want.
⸻
How levels are computed (no repainting)
• PDH/PDL: Intraday H/L are accumulated only while in RTH and saved at RTH close for “yesterday’s” values.
• ONH/ONL: Accumulated across the defined Overnight window and then held during RTH.
• RTH VWAP & ±σ: Volume-weighted mean and standard deviation, reset at the RTH open.
• IB: First N minutes of RTH (default 60). Extensions (1.5×/2.0×) appear after IB completes.
• Gaps: Today’s RTH open vs prior RTH close; “Gap Filled” triggers when price trades back to prior close.
⸻
Practical playbooks (how to trade around the levels)
1) PDH/PDL interactions
• Rejection: Price taps PDH/PDL then closes back inside → mean-reversion toward VWAP/IB.
• Acceptance: Close/hold beyond PDH/PDL with momentum → continuation to next HTF/IB target.
• Alert: PD Touch/Break.
2) ONH/ONL “taken”
• Often one ON extreme is taken during RTH. ONH Taken / ONL Taken → check if it’s a clean break or sweep & reclaim.
• Sweep + reclaim near VWAP can fuel rotations through the ON range.
3) VWAP ±σ framework
• Balanced: First tag of ±1σ often reverts toward VWAP.
• Trend: Persistent trade beyond ±1σ + IB break → target ±2σ/±3σ.
• Alerts: VWAP Cross and VWAP Reject (cross then immediate fail back).
4) IB breaks
• After IB completes, a clean IB break commonly targets 1.5× and sometimes 2.0×.
• Quick return inside IB = possible fade back to the opposite IB edge/VWAP.
• Alerts: IB Break Up / Down.
5) Gaps
• Gap-and-go: Opening drive away from prior close + VWAP support → trend until IB completion.
• Gap-fill: Weak open and VWAP overhead/underfoot → trade toward prior close; manage on Gap Filled alert.
Pro tip: Stack confluences (e.g., ONL sweep + VWAP reclaim + IB hold) and respect your execution rules (e.g., require a 5-minute close in direction, or your order-flow confirmation).
⸻
Inputs you’ll actually touch
• Sessions (ET): Session Timezone, RTH Session, Overnight Session.
• Visibility: toggles for PD/ON/VWAP/IB/Ref/Panel.
• VWAP bands: set σ multipliers (±1/±2/±3).
• IB: duration (minutes) and extension multipliers (1.5× / 2.0×).
• Style & Theme: Theme Preset, Main Line Width, Trackprice, Minimal Mode, and anti-overlap controls.
⸻
Alerts included
• PD Touch/Break — High ≥ PDH or Low ≤ PDL
• ONH Taken / ONL Taken — First in-RTH take of ONH/ONL
• VWAP Cross — Close crosses VWAP
• VWAP Reject — Cross then immediate fail back
• IB Break Up / Down — Break of IB High/Low after IB completes
• Gap Filled — Price trades back to prior RTH close
Setup: Add alert → Condition: Algo Index — Levels Pro → choose event → message → Notify on app/email.
⸻
Panel guide
The top-right panel shows each level plus live distance from last price:
LevelValue (Δpoints | Δticks)
Coloring: green if level is below current price, red if above.
⸻
Styling & screenshot tips
• Use Theme Preset that matches your chart.
• For dark charts, “Dark Hi-Contrast” with Main Line Width = 3 works well.
• Enable Trackprice for crisp axis tags that always stick to the right edge.
• Turn on Minimal Mode for cleaner screenshots (no VWAP bands or IB extensions, on-chart tags off; price-scale tags remain).
• If tags crowd, increase min separation (ticks) to 30–60 and horizontal offset to 3–5; add vertical jitter (4–12 ticks) and/or push tags farther right with baseline offset (bars).
⸻
Behavior & limitations
• Levels are computed incrementally; tables refresh on the last bar for efficiency.
• Right-edge labels are placed at bar_index + offset and do not track extra right-margin scrolling (TradingView limitation). The price-scale tags (from trackprice) do track the axis.
• “RTH” is what you define in inputs. If your market uses different day hours, change the session strings so PDH/PDL reflect your definition of “yesterday’s session.”
⸻
FAQ
Q: My PDH/PDL don’t match the daily chart.
A: By design this uses RTH-only highs/lows, not 24h daily bars. Adjust sessions if you want a different definition.
Q: Right-edge tags overlap or don’t sit at the far right.
A: Increase min separation / horizontal offset / vertical jitter and/or push tags farther with baseline offset. If you want markers that always hug the axis, rely on Trackprice.
Q: Can I change killzones?
A: Yes—edit the session strings in settings or request a version with user inputs for custom windows.
⸻
Disclaimer
Educational use only. This is not financial advice. Always apply your own risk management and confirmation rules.
⸻
Enjoy it? Please ⭐ the script and share screenshots using Minimal Mode + a Theme Preset that fits your style.
Multi+Custom VWAPMulti-VWAP (Session, Weekly, Monthly, Custom)
Description:
This script plots multiple VWAP (Volume Weighted Average Price) levels on the chart, giving traders a broader perspective of price action across different time horizons.
Features:
Session VWAP → Resets at the start of each trading session.
Weekly VWAP → Resets every Monday.
Monthly VWAP → Resets at the start of each new month.
Custom VWAP → User can specify a custom start date and time, and the script will calculate VWAP from that moment until the current bar.
Use Cases:
Compare intraday (session) VWAP with higher-timeframe VWAPs (weekly & monthly) to spot confluence levels.
Track how price interacts with institutional benchmarks.
Use custom VWAP to anchor from specific events (earnings, news releases, breakouts, etc.).
Notes:
Works on any timeframe and instrument that has volume data.
Designed to be clean and minimal with adjustable colors and line styles.
Useful for day traders, swing traders, and long-term investors who monitor VWAP across multiple time horizons.
Overnight Gap Dominance Indicator (OGDI)The Overnight Gap Dominance Indicator (OGDI) measures the relative volatility of overnight price gaps versus intraday price movements for a given security, such as SPY or SPX. It uses a rolling standard deviation of absolute overnight percentage changes divided by the standard deviation of absolute intraday percentage changes over a customizable window. This helps traders identify periods where overnight gaps predominate, suggesting potential opportunities for strategies leveraging extended market moves.
Instructions
A
pply the indicator to your TradingView chart for the desired security (e.g., SPY or SPX).
Adjust the "Rolling Window" input to set the lookback period (default: 60 bars).
Modify the "1DTE Threshold" and "2DTE+ Threshold" inputs to tailor the levels at which you switch from 0DTE to 1DTE or multi-DTE strategies (default: 0.5 and 0.6).
Observe the OGDI line: values above the 1DTE threshold suggest favoring 1DTE strategies, while values above the 2DTE+ threshold indicate multi-DTE strategies may be more effective.
Use in conjunction with low VIX environments and uptrend legs for optimal results.
KAMA Trend Flip - SightLing LabsBuckle up, traders—this open-source KAMA Trend Flip indicator is your ticket to sniping trend reversals with a Kaufman Adaptive Moving Average (KAMA) that’s sharper than a Wall Street shark’s tooth. No voodoo, no fluff—just raw, volatility-adaptive math that dances with the market’s rhythm. It zips through trending rockets and chills in choppy waters, slashing false signals like a samurai. Not laggy like the others - this thing is the real deal!
Core Mechanics:
• Efficiency Ratio (ER): Reads the market’s pulse (0-1). High ER = turbo-charged MA, low ER = smooth operator.
• Adaptive Smoothing: Mixes fast (default power 2) and slow (default 30) constants to match market mood swings.
• Trend Signals: KAMA climbs = blue uptrend (bulls run wild). KAMA dips = yellow downtrend (bears take over). Flat = gray snooze-fest.
• Alerts: Instant pings on flips—“Trend Flip Up” for long plays, “Down” for shorts. Plug into bots for set-and-forget domination.
Why It Crushes:
• Smokes static MAs in volatile arenas (crypto, stocks, you name it). Backtests show 20-30% fewer fakeouts than SMA50.
• Visual Pop: Overlays price with bold blue/yellow signals. Slap it on BTC 1D to see trends light up like Times Square.
• Tweakable: Dial ER length (default 50) to your timeframe. Short for scalps, long for swing trades.
Example Settings in Action:
• 10s Chart (Hyper-Scalping): Set Source: Close, ER Length: 100, Fast Power: 1, Slow Power: 6. Catches micro-trends in crypto like a heat-seeking missile. Blue/yellow flips scream entry/exit on fast moves.
• 2m Chart (Quick Trades): Set Source: Close, ER Length: 14, Fast Power: 1, Slow Power: 6. Perfect for rapid trend shifts in stocks or forex. Signals align with momentum bursts—check historical flips for proof.
Deployment:
• Drop it on any chart. Backtest settings to match your asset’s volatility—tweak until it sings.
• Pair with RSI or volume spikes for killer confirmation. Pro move: Enter on flip + volume pop, exit on reverse.
• Strategy-Ready: Slap long/short logic on alerts to build a lean, mean trading machine.
Open source from SightLing Labs—grab it, hack it, profit from it. Share your tweaks in the comments and let’s outsmart the market together. Trade hard, win big!
HTF POC with Zones & AlertsPlots a Point of Control (POC) per candle from a timeframe you choose (MTF). Because TradingView doesn’t expose true footprint data, the POC here is a proxy (choose: Body Mid, Range Mid, or Typical Price HLC3). The script draws the POC line and an optional POC zone (±% of that candle’s range), then alerts when price retests the zone (wick touches count).
Use it to:
Mark key levels inside candles that often act as magnets or reaction zones
Track retests of strong bars (imbalance) across higher timeframes
Add clean confluence with S/R, FVGs, or trend tools
Features: Selectable TF, zone width, extend lines/zones, historical caps, alerts, and info panel.
Note: This is an estimate of POC from OHLC, not real bid/ask volume. Use as context, not a standalone signal.
TURNOVER FOR THE DAY TURNOVER FOR THE DAY
1. Turnover in Volume Terms (Share Turnover)
This refers to the total number of shares traded in a stock or the whole market during a day.
It includes both buy and sell transactions (since every buy has a corresponding sell, exchanges count the total traded quantity).
Example:
If Reliance Industries had 50 lakh shares traded today, then its turnover in volume = 50,00,000 shares.
This shows liquidity and activity level of the stock.
2. Turnover in Stock Market Terms (Value Turnover / Trading Value)
This refers to the total money value of shares traded in a stock or the market during a day.
Formula:
Turnover (Value)
=
Total Shares Traded
×
Average/Trade Price
Turnover (Value)=Total Shares Traded×Average/Trade Price
🔑 Difference
Volume turnover = Quantity traded (in shares).
Value turnover = Amount of money involved (in ₹ / $).
Both are used:
Volume turnover helps measure liquidity (how actively a stock is traded).
Value turnover helps gauge the capital flow or market participation in money terms.
FluidFlow OscillatorFluidFlow Oscillator: Study Material for Traders
Overview
The FluidFlow Oscillator is a custom technical indicator designed to measure price momentum and market flow dynamics by simulating fluid motion concepts such as velocity, viscosity, and turbulence. It helps traders identify potential buy and sell signals along with trend strength, momentum direction, and volatility conditions.
This study explains the underlying calculation concepts, signal logic, visual cues, and how to interpret the professional dashboard table that summarizes key indicator readings.
________________________________________
How the FluidFlow Oscillator Works
Core Mechanisms
1. Price Flow Velocity
o Measures the rate of change of price over a specified flow length (default 40 bars).
o Calculated as a percentage change of closing price: roc=close−closelen_flowcloselen_flow×100\text{roc} = \frac{\text{close} - \text{close}_{len\_flow}}{\text{close}_{len\_flow}} \times 100roc=closelen_flowclose−closelen_flow×100
o Smoothed by an EMA (Exponential Moving Average) to reduce noise, generating a "flow velocity" value.
2. Viscosity Factor
o Analogous to fluid viscosity, it adjusts the flow velocity based on recent price volatility.
o Volatility is computed as the standard deviation of close prices over the flow length.
o The viscosity acts as a damping factor to slow down the flow velocity in highly volatile conditions.
o This results in a "flow with viscosity" value, that smooths out the velocity considering market turbulence.
3. Turbulence Burst
o Captures sudden changes or bursts in the flow by measuring changes between successive viscosity-adjusted flows.
o The turbulence value is a smoothed absolute change in flow.
o A burst boost factor is added to the oscillator to incorporate this rapid change component, amplifying signals during sudden shifts.
4. Oscillator Calculation
o The raw oscillator value is the sum of flow with viscosity plus burst boost, scaled by 10.
o Clamped between -100 and +100 to limit extremes.
o Finally, smoothed again by EMA for cleaner visualization.
________________________________________
Signal Logic
The oscillator works with complementary components to produce actionable signals:
• Signal Line: An EMA-smoothed version of the oscillator for generating crossover-based signals.
• Momentum: The rate of change of the oscillator itself, smoothed by EMA.
• Trend: Uses fast (21-period EMA) and slow (50-period EMA) moving averages of price to identify market trend direction (uptrend, downtrend, or sideways).
Signal Conditions
• Bullish Signal (Buy): Oscillator crosses above the oversold threshold with positive momentum.
• Bearish Signal (Sell): Oscillator crosses below the overbought threshold with negative momentum.
Statuses
The oscillator provides descriptive market states based on level and momentum:
• Overbought
• Oversold
• Buy Signal
• Sell Signal
• Bullish / Bearish (momentum-driven)
• Neutral (no clear trend)
________________________________________
Color System and Visualization
The oscillator uses a sophisticated HSV color model adapting hues according to:
• Oscillator value magnitude and sign (positive or negative)
• Acceleration of oscillator changes
• Smooth color gradients to facilitate intuitive understanding of trend strength and momentum shifts
Background colors highlight overbought (red tint) and oversold (green tint) zones with transparency.
________________________________________
How to Understand the Professional Dashboard Table
The FluidFlow Oscillator offers an integrated table at the bottom center of the chart. This dashboard summarizes critical indicator readings in 8 columns across 3 rows:
Column Description
SIGNAL Current signal status (e.g., Buy, Sell, Overbought) with color coding
OSCILLATOR Current oscillator value (-100 to +100) with color reflecting intensity and direction
MOMENTUM Momentum bias indicating strength/direction of oscillator changes (Strong Up, Up, Sideways, Down, Strong Down)
TREND Current trend status based on EMAs (Strong Uptrend, Uptrend, Sideways, Downtrend, Strong Downtrend)
VOLATILITY Volatility percentage relative to average, indicating market activity level
FLOW Flow velocity value describing price momentum magnitude and direction
TURBULENCE Turbulence level indicating sudden bursts or spikes in price movement
PROGRESS Oscillator's position mapped as a percentage (0% to 100%) showing proximity to extreme levels
Rows Explained
• Row 1 (Header): Labels for each metric.
• Row 2 (Values): Current numerical or descriptive values color-coded along a professional scheme:
o Green or lime tones indicate positive or bullish conditions.
o Red or orange tones indicate caution, sell signals, or bearish conditions.
o Blue tones indicate neutral or stable conditions.
• Row 3 (Status Indicators): Emoji-like icons and bars provide a quick visual gauge of each metric's intensity or signal strength:
o For example, "🟢🟢🟢" suggests very strong bullish momentum, while "🔴🔴🔴" suggests strong bearish momentum.
o Progress bar visually demonstrates oscillator movement toward oversold or overbought extremes.
________________________________________
Practical Interpretation Tips
• A Buy signal with green colors and strong momentum usually precedes upward price moves.
• An Overbought status with red background and red table colors warns of potential price corrections or reversals.
• Watch the Turbulence to gauge market instability; spikes may precede price shocks or volatility bursts.
• Confirm signals with the Trend and Momentum columns to avoid false entries.
• Use the Progress bar to anticipate oscillations approaching key threshold levels for timing trades.
________________________________________
Alerts
The oscillator supports alerts for:
• Buy and sell signals based on oscillator crossovers.
• Overbought and oversold levels reached.
These help traders automate awareness of important market conditions.
________________________________________
Disclaimer
The FluidFlow Oscillator and its signals are for educational and informational purposes only. They do not guarantee profits and should not be considered as financial advice. Always conduct your own research and use proper risk management when trading. Past performance is not indicative of future results.
________________________________________
This detailed explanation should help you understand the workings of the FluidFlow Oscillator, its components, signal logic, and how to analyze its professional dashboard for informed trading decisions.
Trendlines Oscillator [LuxAlgo]The Trendlines Oscillator helps traders identify trends and momentum based on the normalized distances between the current price and the most recently detected bullish and bearish trend lines.
The indicator features bullish and bearish momentum, a signal line with crossings, and multiple smoothing options.
🔶 USAGE
The indicator displays three lines: two for momentum and one for the signal. When one of the momentum lines (bullish or bearish) crosses the signal line, the tool displays a dot to indicate which momentum is gaining strength.
As a general rule, when the green bullish momentum line is above the red bearish momentum line, it indicates buyer strength. This means that the actual prices are farther from the support trend lines than the resistance trend lines. The opposite is true for seller strength.
To calculate bullish momentum, the tool first identifies bullish trend lines acting as support below the price. Then, it measures the delta between the price and those trend lines and normalizes the reading into the displayed momentum values.
The same process is used for bearish momentum, but with bearish trendlines acting as resistance above the price.
🔹 Length & Memory
Modifying the Length and Memory values will cause the tool to display different momentum values.
Traders can adjust the length to detect larger trendlines and adjust the memory to indicate how many trendlines the tool should consider.
As the chart above shows, smaller values make the tool more responsive, while larger values are useful for detecting larger trends.
🔹 Smoothing
By default, the data is not smoothed, and the signal uses a triangular moving average with a length of 10. Traders can smooth both the data and the signal line.
Traders can choose from up to ten different methods, or none. Some examples are shown on the chart above.
🔶 DETAILS
The steps for the calculations are as follows:
1. Gather the pivots, highs, and lows.
ph = fixnan(ta.pivothigh(lengthInput, lengthInput))
pl = fixnan(ta.pivotlow(lengthInput, lengthInput))
2. Calculate the slope and y-intercept for each trendline between contiguous lower highs (resistance) or higher lows (support).
if ph < ph
slope = (ph - ph )/(n-lengthInput - phx1)
res.unshift(l.new(ph - slope * phx1, slope))
if pl > pl
slope = (pl - pl )/(n-lengthInput - plx1)
sup.unshift(l.new(pl - slope * plx1, slope))
3. Calculate the value of each trendline on the current bar, then calculate the difference with the current price (delta). To calculate the relative sum of deltas, only consider trendlines below the price for support or above the price for resistance.
method get_point(l id, x)=>
id.slope * x + id.intercept
for element in sup
point = element.get_point(n)
if sourceInput > point
sup_sum += sourceInput - point
sup_den += math.abs(sourceInput - point)
for element in res
point = element.get_point(n)
if sourceInput < point
res_sum += point - sourceInput
res_den += math.abs(point - sourceInput)
4. Normalize the value from 0 to 100 by taking the sum of the relative values of the deltas divided by the sum of the absolute values of the deltas.
float supportLine = sup_sum / sup_den * 100
float resistanceLine = res_sum / res_den * 100
5. Smooth both values, then calculate the signal line as the difference between them.
float smoothSupport = smooth(supportLine,dataSmoothingInput,dataSmoothingLengthInput)
float smoothResistance = smooth(resistanceLine,dataSmoothingInput,dataSmoothingLengthInput)
float signal = math.abs(smoothSupport - smoothResistance)
float signalLine = smooth(signal,smoothingInput,smoothingLengthInput)
6. Calculate the crossing signals against the signal line, using only the first signal from each series of bullish or bearish crossings.
bullSignal = smoothSupport > signalLine and smoothSupport < signalLine
bearSignal = smoothResistance > signalLine and smoothResistance < signalLine
lastSignal := bullSignal and lastSignal == BEAR ? BULL : bearSignal and lastSignal == BULL ? BEAR : lastSignal
firstBull = ta.change(lastSignal) > 0
firstBear = ta.change(lastSignal) < 0
🔶 SETTINGS
Length: The size of the market structure used for trendline detection.
Memory: The number of trendlines used in calculations.
Source: The source for the calculations is closing prices by default.
🔹 Smoothing
Data Smoothing: Choose the smoothing method and length
Signal Smoothing: Choose the smoothing method and length
FlowStateTrader FlowState Trader - Advanced Time-Filtered Strategy
## Overview
FlowState Trader is a sophisticated algorithmic trading strategy that combines precision entry signals with intelligent time-based filtering and adaptive risk management. Built for traders seeking to achieve their optimal performance state, FlowState identifies high-probability trading opportunities within user-defined time windows while employing dynamic trailing stops and partial position management.
## Core Strategy Philosophy
FlowState Trader operates on the principle that peak trading performance occurs when three elements align: **Focus** (precise entry signals), **Flow** (optimal time windows), and **State** (intelligent position management). This strategy excels at finding reversal opportunities at key support and resistance levels while filtering out suboptimal trading periods to keep traders in their optimal flow state.
## Key Features
### 🎯 Focus Entry System
**Support/Resistance Zone Trading**:
- Dynamic identification of key price levels using configurable lookback periods
- Entry signals triggered when price interacts with these critical zones
- Volume confirmation ensures genuine breakout/reversal momentum
- Trend filter alignment prevents counter-trend disasters
**Entry Conditions**:
- **Long Signals**: Price closes above support buffer, touches support level, with above-average volume
- **Short Signals**: Price closes below resistance buffer, touches resistance level, with above-average volume
- Optional trend filter using EMA or SMA for directional bias confirmation
### ⏰ FlowState Time Filtering System
**Comprehensive Time Controls**:
- **12-Hour Format Trading Windows**: User-friendly AM/PM time selection
- **Multi-Timezone Support**: UTC, EST, PST, CST with automatic conversion
- **Day-of-Week Filtering**: Trade only weekdays, weekends, or both
- **Lunch Hour Avoidance**: Automatically skips low-volume lunch periods (12-1 PM)
- **Visual Time Indicators**: Background coloring shows active/inactive trading periods
**Smart Time Features**:
- Handles overnight trading sessions seamlessly
- Prevents trades during historically poor performance periods
- Customizable trading hours for different market sessions
- Real-time trading window status in dashboard
### 🛡️ Adaptive Risk Management
**Multi-Level Take Profit System**:
- **TP1**: First profit target with optional partial position closure
- **TP2**: Final profit target for remaining position
- **Flexible Scaling**: Choose number of contracts to close at each level
**Dynamic Trailing Stop Technology**:
- **Three Operating Modes**:
- **Conservative**: Earlier activation, tighter trailing (protect profits)
- **Balanced**: Optimal risk/reward balance (recommended)
- **Aggressive**: Later activation, wider trailing (let winners run)
- **ATR-Based Calculations**: Adapts to current market volatility
- **Automatic Activation**: Engages when position reaches profitability threshold
### 📊 Intelligent Position Sizing
**Contract-Based Management**:
- Configurable entry quantity (1-1000 contracts)
- Partial close quantities for profit-taking
- Clear position tracking and P&L monitoring
- Real-time position status updates
### 🎨 Professional Visualization
**Enhanced Chart Elements**:
- **Entry Zone Highlighting**: Clear visual identification of trading opportunities
- **Dynamic Risk/Reward Lines**: Real-time TP and SL levels with price labels
- **Trailing Stop Visualization**: Live tracking of adaptive stop levels
- **Support/Resistance Lines**: Key level identification
- **Time Window Background**: Visual confirmation of active trading periods
**Dual Dashboard System**:
- **Strategy Dashboard**: Real-time position info, settings status, and current levels
- **Performance Scorecard**: Live P&L tracking, win rates, and trade statistics
- **Customizable Sizing**: Small, Medium, or Large display options
### ⚙️ Comprehensive Customization
**Core Strategy Settings**:
- **Lookback Period**: Support/resistance calculation period (5-100 bars)
- **ATR Configuration**: Period and multipliers for stops/targets
- **Reward-to-Risk Ratios**: Customizable profit target calculations
- **Trend Filter Options**: EMA/SMA selection with adjustable periods
**Time Filter Controls**:
- **Trading Hours**: Start/end times in 12-hour format
- **Timezone Selection**: Four major timezone options
- **Day Restrictions**: Weekend-only, weekday-only, or unrestricted
- **Session Management**: Lunch hour avoidance and custom periods
**Risk Management Options**:
- **Trailing Stop Modes**: Conservative/Balanced/Aggressive presets
- **Partial Close Settings**: Enable/disable with custom quantities
- **Alert System**: Comprehensive notifications for all trade events
### 📈 Performance Tracking
**Real-Time Metrics**:
- Net profit/loss calculation
- Win rate percentage
- Profit factor analysis
- Maximum drawdown tracking
- Total trade count and breakdown
- Current position P&L
**Trade Analytics**:
- Winner/loser ratio tracking
- Real-time performance scorecard
- Strategy effectiveness monitoring
- Risk-adjusted return metrics
### 🔔 Alert System
**Comprehensive Notifications**:
- Entry signal alerts with price and quantity
- Take profit level hits (TP1 and TP2)
- Stop loss activations
- Trailing stop engagements
- Position closure notifications
## Strategy Logic Deep Dive
### Entry Signal Generation
The strategy identifies high-probability reversal points by combining multiple confirmation factors:
1. **Price Action**: Looks for price interaction with key support/resistance levels
2. **Volume Confirmation**: Ensures sufficient market interest and liquidity
3. **Trend Alignment**: Optional filter prevents counter-trend positions
4. **Time Validation**: Only trades during user-defined optimal periods
5. **Zone Analysis**: Entry occurs within calculated buffer zones around key levels
### Risk Management Philosophy
FlowState Trader employs a three-tier risk management approach:
1. **Initial Protection**: ATR-based stop losses set at strategy entry
2. **Profit Preservation**: Trailing stops activate once position becomes profitable
3. **Scaled Exit**: Partial profit-taking allows for both security and potential
### Time-Based Edge
The time filtering system recognizes that not all trading hours are equal:
- Avoids low-volume, high-spread periods
- Focuses on optimal liquidity windows
- Prevents trading during news events (lunch hours)
- Allows customization for different market sessions
## Best Practices and Optimization
### Recommended Settings
**For Scalping (1-5 minute charts)**:
- Lookback Period: 10-20
- ATR Period: 14
- Trailing Stop: Conservative mode
- Time Filter: Major session hours only
**For Day Trading (15-60 minute charts)**:
- Lookback Period: 20-30
- ATR Period: 14-21
- Trailing Stop: Balanced mode
- Time Filter: Extended trading hours
**For Swing Trading (4H+ charts)**:
- Lookback Period: 30-50
- ATR Period: 21+
- Trailing Stop: Aggressive mode
- Time Filter: Disabled or very broad
### Market Compatibility
- **Forex**: Excellent for major pairs during active sessions
- **Stocks**: Ideal for liquid stocks during market hours
- **Futures**: Perfect for index and commodity futures
- **Crypto**: Effective on major cryptocurrencies (24/7 capability)
### Risk Considerations
- **Market Conditions**: Performance varies with volatility regimes
- **Timeframe Selection**: Lower timeframes require tighter risk management
- **Position Sizing**: Never risk more than 1-2% of account per trade
- **Backtesting**: Always test on historical data before live implementation
## Educational Value
FlowState serves as an excellent learning tool for:
- Understanding support/resistance trading
- Learning proper time-based filtering
- Mastering trailing stop techniques
- Developing systematic trading approaches
- Risk management best practices
## Disclaimer
This strategy is for educational and informational purposes only. Past performance does not guarantee future results. Trading involves substantial risk of loss and is not suitable for all investors. Users should thoroughly backtest the strategy and understand all risks before live trading. Always use proper position sizing and never risk more than you can afford to lose.
---
*FlowState Trader represents the evolution of systematic trading - combining classical technical analysis with modern risk management and intelligent time filtering to help traders achieve their optimal performance state through systematic, disciplined execution.*
Tide Tracker ZonesTide Tracker Zones – Advanced Trend & Pullback Visualizer
Overview
Tide Tracker Zones is a sophisticated trading tool designed for traders who require clarity, precision, and actionable insights in real time. The indicator converts price action into dynamic trend zones, allowing users to instantly recognize market direction, potential reversals, and low-risk entry opportunities. By visualizing the market in this way, traders can focus on execution rather than deciphering complex charts.
Unlike static indicators, Tide Tracker Zones adapts to market volatility, providing a clear picture of bullish and bearish pressure across multiple timeframes. Its visual design, including color-coded trend zones, a prominent guide line, and carefully placed signals, ensures that market behavior is easy to interpret, making it suitable for scalping, swing trading, and longer-term strategies alike.
How It Works
The indicator relies on dynamic upper and lower bands derived from recent price ranges and a configurable multiplier. These bands expand during volatile periods and contract when price action stabilizes, creating flexible zones that reflect the dominant market tide.
A guide line tracks the active band, serving as a continuous reference for trend direction. Unlike traditional moving averages, the guide line does not clutter the chart but instead provides a subtle, intuitive indication of whether the market is in a bullish or bearish phase. Background shading reinforces this trend visually, highlighting bullish zones in one color and bearish zones in another, so the prevailing market flow is immediately clear.
The system continuously evaluates price relative to the bands to determine trend direction and detect potential reversals. When price crosses a band and flips the trend, the guide line updates, and signals are generated, providing traders with actionable information without overwhelming the chart.
Signals and Pullbacks
Tide Tracker Zones offers visual cues that make entry points more obvious and less speculative. Trend reversal arrows are plotted when the market changes direction: BUY arrows indicate a shift from bearish to bullish, and SELL arrows indicate a shift from bullish to bearish.
The indicator also highlights first pullbacks within an active trend. These pullback dots mark low-risk opportunities to enter a trend in progress, filtered to ensure that only the most relevant signals are displayed. The system uses ATR-based spacing to place arrows and dots vertically on the chart, preventing visual clutter and ensuring readability even during periods of high volatility.
Color-coded zones enhance situational awareness. Bullish zones are displayed in a customizable orange, while bearish zones are shown in green. Transparency is dynamically adjusted to maintain chart clarity while still providing a clear indication of trend strength.
Strategy Integration
Tide Tracker Zones can be used effectively for both trend-following and pullback strategies. Traders may enter positions in the direction of the guide line and colored zone, using trend reversal arrows for confirmation. First pullback dots offer tactical entries with reduced risk, allowing traders to enter a trend after a brief retracement.
Stop-loss levels can be placed just beyond the opposing trend zone, while take-profit targets may be determined using the width of the bands to account for market volatility. The indicator adapts seamlessly across multiple timeframes. Higher timeframes provide context and filter noise, while lower timeframes allow traders to refine entry timing. This makes it a versatile tool for scalping, swing trading, or longer-term positions.
Advanced Techniques
For traders seeking greater precision, Tide Tracker Zones can be combined with volume or momentum indicators to validate signals. Observing the sequence of trend arrows and pullback dots allows users to develop a systematic approach to entries and exits. Monitoring the width and behavior of the bands over time can also provide insights into periods of expanding or contracting volatility, helping traders anticipate market shifts.
Adjustments to the spread length and multiplier allow the indicator to be tuned for different assets and market conditions. By understanding the interaction between the guide line, trend zones, and pullback signals, traders can create a robust framework for decision-making, reducing guesswork and improving consistency.
Why Use Tide Tracker Zones
Tide Tracker Zones provides instant clarity and actionable insight in any market. Its dynamic zones and guide line give a clear visual understanding of trend direction, while trend reversal arrows and pullback dots highlight potential entry points. Unlike traditional indicators, it adapts to volatility and changing conditions, making it reliable across multiple asset classes and timeframes.
By combining trend detection, pullback analysis, and intuitive visual guidance, Tide Tracker Zones equips traders with a complete framework for disciplined, confident trading, transforming complex price action into a visual map of opportunity.
Daily Distribution Range - Amplitude Probability DashboardSummary
This indicator provides a powerful statistical deep-dive into an asset's daily distribution range, amplitude and volatility. It moves beyond simple range indicators by calculating the historical probability of a trading day reaching certain amplitude levels.
The results are presented in a clean, interactive dashboard that highlights the current day's performance in real-time, allowing traders to instantly gauge if the current volatility is normal, unusually high, or unusually low compared to history.
This tool is designed to help traders answer a critical question: "Based on past behavior, what is the likelihood that today's range will be at least X%?"
Key Concepts Explained
1. Daily Amplitude (%)
The indicator first calculates the amplitude (or range) of every historical daily candle and expresses it as a percentage of that day's opening price.
Formula: (Daily High - Daily Low) / Daily Open * 100
This normalization allows for a consistent volatility comparison across different price levels and time periods.
2. Cumulative Probability Distribution
Instead of showing the probability of a day's final range falling into a small, exclusive bin (e.g., "exactly between 1.0% and 1.5%"), this indicator uses a cumulative model. It answers the question, "What is the probability that the daily range will be at least a certain value?"
For example, if the row for "≥ 2%" shows a probability of 12.22%, it means that historically, 12.22% of all trading days have had a total range of 2% or more. This is incredibly useful for risk management and setting realistic expectations.
Core Features
Statistical Dashboard: Presents all data in a clear, easy-to-read table on your chart.
Cumulative Probability Model: Instantly see the historical probability of the daily range reaching or exceeding key percentage levels.
Real-Time Highlight & Arrow (→): The dashboard isn't just historical. It actively tracks the current, unfinished day's amplitude and highlights the corresponding row with a color and an arrow (→). This provides immediate context for the current session's price action.
Timeframe Independent: You can use this indicator on any chart timeframe (e.g., 5-minute, 1-hour, 4-hour), and it will always fetch and calculate using the correct daily data.
Clean & Professional UI: Features a monospace font for perfect alignment and a simple, readable design.
Fully Customizable: Easily adjust the dashboard's position, text size, and the amount of historical data used for the analysis.
How to Use & Interpret the Data
This indicator is not a trading signal but a powerful tool for statistical context and decision-making.
Risk Management: If you see that an asset has only a 5% historical probability of moving more than 3% in a day, you can set stop-losses more intelligently and avoid being overly aggressive with your targets on a typical day.
Setting Profit Targets: Gauge realistic intra-day profit targets. If a stock is already up 2.5% and has historically only moved more than 3% on rare occasions, you might consider taking profits.
Options Trading: Volatility is paramount for options. This tool helps you visualize the expected range of movement, which can inform decisions on strike selection for strategies like iron condors or straddles.
Identifying Volatility Regimes: Quickly see if the current day is a "normal" low-volatility day or an "abnormal" high-volatility day that could signal a major market event or trend initiation.
Dashboard Breakdown
→ (Arrow): Points to the bin corresponding to the current, live day's amplitude.
Amplitude Level: The minimum amplitude threshold. The format "≥ 1.5%" means "greater than or equal to 1.5%".
Days Reaching Level: The raw number of historical days that had an amplitude equal to or greater than the level in the first column.
Prob. of Reaching Level (%): The percentage of total days that reached that amplitude level (Days Reaching Level / Total Days Analyzed).
Settings
Position: Choose where the dashboard appears on your chart.
Text Size: Adjust the font size for better readability on your screen resolution.
Max Historical Days to Analyze: Set the lookback period for the statistical analysis. A larger number provides a more robust statistical sample but may take slightly longer to load initially.
Enjoy this tool and use it to add a new layer of statistical depth to your trading analysis.
RSI Dynamic Bands█ OVERVIEW
The "RSI Dynamic Bands" indicator is a variant of the Relative Strength Index (RSI) oscillator that brings its signals directly onto the price chart. It displays dynamic bands around the price, adjusted based on RSI levels, enabling easy identification of potential overbought or oversold conditions. The indicator also integrates a multi-timeframe RSI table, facilitating the analysis of trend strength across different timeframes.
█ CONCEPTS
The "RSI Dynamic Bands" indicator is designed to simplify the interpretation of price levels in the context of support and resistance zones, which can be correlated with other technical indicators and RSI values. Since the price itself does not display RSI values, a table showing RSI for four selected timeframes has been added, allowing traders to quickly assess trend strength across different time intervals. The most effective approach is to combine the indicator with other technical analysis tools, such as Fibonacci levels or pivot points, to confirm signals when the price approaches the bands and RSI values indicate a potential reversal.
Band Calculation
The bands are calculated based on the current closing price and RSI values, incorporating dynamic scaling to better adapt to market conditions. The formulas for the bands are as follows:
• Upper Band: close + (rsiUpper - rsi) * scaleFactor, where rsiUpper is the upper RSI level (default: 70), and scaleFactor accounts for market volatility.
• Lower Band: close + (rsiLower - rsi) * scaleFactor, where rsiLower is the lower RSI level (default: 30).
• Midline: The arithmetic average of the upper and lower bands: (upperBand + lowerBand) / 2.
Why Scaling? Without scaling, the bands would be chaotic and jagged, making them difficult to interpret. Scaling smooths the bands, making them wider during periods of high volatility and narrower during consolidation, better reflecting potential support and resistance levels.
Indicator Features
• Dynamic Price Bands: The bands adapt to market conditions, facilitating the identification of key price levels.
• Multi-Timeframe RSI Table: Displays RSI values for four selected timeframes (default: 15m, 1h, 4h, Daily), enabling comparison of trend strength across different perspectives.
• Style Customization: Users can adjust band colors, line thickness, and toggle the visibility of bands, fills, and the table.
How to Set Up the Indicator
1 — Add the "RSI Dynamic Bands" indicator to your TradingView chart.
2 — Configure parameters in the settings, such as RSI length, upper/lower levels, and scaling multiplier, to match your trading style.
3 — Enable or disable the display of bands, fills, or the RSI table based on your needs.
4 — Adjust band and table colors in the input section and line thickness in the "Style" section to better align the indicator with your chart.
█ OTHER SECTIONS
FEATURES
• RSI Length: The period for calculating RSI (default: 14).
• RSI Levels: Thresholds for overbought (default: 70) and oversold (default: 30).
• Scaling Multiplier: Adjusts bands based on market volatility (default: 0.15).
• Table Timeframes: Select four timeframes for the RSI table (default: 15m, 1h, 4h, Daily).
• Style Options: Customize band colors, fills, table, and line thickness.
HOW TO USE
Add the indicator to your chart, configure the parameters, and observe price interactions with the bands to identify potential entry and exit points. The RSI table allows you to compare RSI values across different timeframes, aiding in trading decisions. The most effective approach is to combine the indicator with other technical analysis tools, such as Fibonacci levels or pivot points, to confirm signals when the price approaches the bands and RSI values indicate a potential reversal.
Trading Strategies:
• Scalping: Use lower timeframes (e.g., 5m, 15m) in the RSI table to quickly identify short-term lows and highs. Wait for the price to approach the lower band in the RSI oversold zone, with RSI on lower timeframes starting to rise, and other tools, such as Fibonacci levels (e.g., 38.2%) or pivot points, confirming support.
• Medium-Term Trading: Focus on 1h and 4h timeframes. Look for confirmation of a low on a lower timeframe (e.g., 1h), where RSI indicates oversold conditions or starts rising, then check if RSI on a higher timeframe (e.g., 4h) confirms the trend. Confirmation from other tools, such as a Fibonacci level (e.g., 50%) or pivot point near the bands, strengthens the signal.
• Long-Term Trading: Use Daily and higher timeframes (e.g., Weekly). Wait for all relevant timeframes to confirm a low (e.g., RSI near oversold and price at the lower band), with lower timeframes (e.g., 4h) showing rising RSI. Other tools, such as Fibonacci levels (e.g., 61.8%) or pivot points near the bands, can further confirm a trend reversal signal.
Trend CandlesTrend Candles
Overview
The Trend Candles indicator is a simple yet effective tool designed to help traders visually identify the prevailing market trend. By combining candle coloring with a trend-based Exponential Moving Average (EMA), it enhances chart readability and makes trend-following strategies easier to apply.
Concepts
Exponential Moving Average (EMA): The EMA is a moving average that places more weight on recent price data. It reacts faster to price changes compared to a Simple Moving Average (SMA), making it well-suited for trend detection.
Trend Determination:
- If the EMA is rising (current EMA > previous EMA), the market is considered bullish.
- If the EMA is falling (current EMA < previous EMA), the market is considered bearish.
- If the EMA is flat (no significant change), no trend color is applied.
Candle Coloring:
- Green candles = Uptrend
- Purple candles = Downtrend
- Default candles = Sideways/Flat EMA
Features
- Trend Visualization: Candles automatically change color based on EMA slope, making it easy to spot bullish and bearish phases.
- Customizable EMA Length: The trader can set the EMA period (default is 50), allowing flexibility for short-term or long-term trend analysis.
- Overlay EMA Line: An orange EMA line is plotted on the chart for additional confirmation of the trend.
- Clean & Minimalist: Focuses on trend clarity without cluttering the chart with unnecessary signals.
How to Use
1. Apply the indicator to your chart.
2. Adjust the EMA Length as per your trading style (shorter = faster signals, longer = smoother trend).
3. Follow the candle color:
- Green = Favor long entries.
- Purple = Favor short entries.
- No color = Stay cautious, as trend is unclear.
4. Use with other confirmation tools (support/resistance, volume, or oscillators).
5. Users are encouraged to experiment with different EMA lengths. The default length is 50, but you can explore other values based on your needs. In particular, try Fibonacci numbers such as 13, 21, 34, 55, 89, 144, and 233 to observe how trends behave differently.
Disclaimer
The information provided by the Trend Candles indicator is for educational purposes only. It should not be considered financial advice. Trading involves substantial risk, and past performance is not necessarily indicative of future results. Always do your own research and use risk management practices.
ADVANCED COSINE PROJECTION SYSTEM — LITE Mark3ACPS-Lite is a projection-based tool designed to visualize potential price paths using cosine-based similarity and stability analysis.
so, i have been working over multiple iterations to have a stable projection based on cosine principles and I've settled with a few stable algorithmic frameworks which works as: what i like to call : next generation leading indicators.
This indicator works well with any charting type like line/bar/candles etc. across ALL timeframes. (including seconds).
Basically this indicator projects a path towards the right.
Based on the trend the color of the projection updates on live refresh (depends on your timeframe of choice)
GREEN path projection for possible up trend
RED for bearish and yellow for sideways trend.
Technical : This indicator Aims to solve "DIRECTION" .
The idea was to to calculate angle between any given vectors : so if we translate it into the trading world : we are trying to determine direction (simplified explanation).
Pros : Scale Independent
meaning factors like flash crash , High impact movements (like NFP's) dont impact the projection logic in terms of Magnitude.
My model focuses on pattern similarity
example : in the previous instance of similar situation how did price react ?
therefore making a similar "COSINE" projection. (based on past "vector"/event)
on the left side there will always be an highlighted box section to visually represent where the future projections are based off of.
Cons: multiple vectors can have same direction from the cosine logic : essentially rendering the projected distance inconclusive.
but i solved that problem fully but on this lite version i made use of live refresh feature to keep the projections on a float : making our right side projections that much more fluid.
finally as a psychological factor not to get caught up on any Bias i made sure the indicator switches color according to immediate trend change logi.
Best Use case : have this indicator across multiple timeframes inside Tradingvieews tabs to Help make better Judgement.
I'm open for feedback / suggestions.
regards,
drsamc.
SmartPlusSmartPlus
Overview
The SmartPlus indicator is a complete framework for intraday traders. It combines key market reference points (VWAP, moving averages, and the first 15-minute high/low range) with predictive levels based on historical daily moves. Together, these elements allow traders to build directional bias, spot breakouts, and manage risk throughout the session.
Key Features
1. VWAP (Volume-Weighted Average Price)
- Plots the intraday VWAP in real time.
- VWAP acts as a central “fair value” reference point for institutional order flow.
- Price trading above VWAP generally suggests bullish bias, while below VWAP leans bearish.
2. Exponential Moving Averages (EMAs)
- Two configurable EMAs are included:
- Fast EMA (default: 21 periods)
- Slow EMA (default: 34 periods)
- Each EMA is plotted with a single, user-selectable color for clarity.
- Crossovers or alignment between price, VWAP, and EMAs help define market structure.
3. Smart Bar Coloring
- Candles automatically change color when conditions align:
- Bull Zone: Price above VWAP, Fast EMA, and Slow EMA.
- Bear Zone: Price below VWAP, Fast EMA, and Slow EMA.
- Fluorescent bar coloring helps highlight momentum zones visually without additional analysis.
4. First 15-Minute High/Low/Mid (Automatic)
- Automatically detects the first 15 minutes of each new trading day (no manual input required).
- Plots horizontal lines for:
- First 15-Minute High (green)
- First 15-Minute Low (red)
- Midpoint of that range (gray)
- Once the initial 15-minute window ends, these levels remain projected throughout the session as breakout or support/resistance zones.
- Alerts trigger when price breaks above the high or below the low after the window.
5. Daily Support/Resistance Forecast
- Uses a rolling lookback of recent daily ranges (default: 126 days).
- Tracks average up moves and down moves from the daily open.
- Optionally incorporates standard deviation for wider confidence bands.
- Plots forecast levels above/below the current day’s open for reference.
Trading Logic (How to Use)
- Bullish Bias:
- Price is above VWAP, above both EMAs, and ideally above the first 15-minute high.
- This setup suggests trend continuation or breakout opportunities on the long side.
- Bearish Bias:
- Price is below VWAP, below both EMAs, and ideally below the first 15-minute low.
- This setup suggests downward pressure or breakout opportunities on the short side.
- Neutral / Caution Zone:
- Price caught between VWAP, EMAs, or inside the 15-minute range often signals indecision.
- Best to wait for confirmation or breakout before committing to trades.
Expectations After Using It
- The script provides context and structure, not trading signals.
- It highlights where price is relative to meaningful market levels so traders can act with greater confidence.
- Combining VWAP, EMAs, and the 15-minute breakout framework helps traders stay aligned with the market’s natural rhythm.
Disclaimer
This script is a tool for market analysis and educational purposes only.
It does not constitute financial advice, trading recommendations, or guaranteed profitability.
Markets are inherently risky, and past patterns do not ensure future results.
Always combine this tool with sound risk management, personal research, and professional guidance before making any trading decisions.
Multi-TF Trend Table (Configurable)1) What this tool does (in one minute)
A compact, multi‑timeframe dashboard that stacks eight timeframes and tells you:
Trend (fast MA vs slow MA)
Where price sits relative to those MAs
How far price is from the fast MA in ATR terms
MA slope (rising, falling, flat)
Stochastic %K (with overbought/oversold heat)
MACD momentum (up or down)
A single score (0%–100%) per timeframe
Alignment tick when trend, structure, slope and momentum all agree
Use it to:
Frame bias top‑down (M→W→D→…→15m)
Time entries on your execution timeframe when the higher‑TF stack is aligned
Avoid counter‑trend traps when the table is mixed
2) Table anatomy (each column explained)
The table renders 9 columns × 8 rows (one row per timeframe label you define).
TF — The label you chose for that row (e.g., Month, Week, 4H). Cosmetic; helps you read the stack.
Trend — Arrow from fast MA vs slow MA: ↑ if fastMA > slowMA (up‑trend), ↓ otherwise (down‑trend). Cell is green for up, red for down.
Price Pos — One‑character structure cue:
🔼 if price is above both fast and slow MAs (bullish structure)
🔽 if price is below both (bearish structure)
– otherwise (between MAs / mixed)
MA Dist — Distance of price from the fast MA measured in ATR multiples:
XS < S < M < L < XL according to your thresholds (see §3.3). Useful for judging stretch/mean‑reversion risk and stop sizing.
MA Slope — The fast MA one‑bar slope:
↑ if fastMA - fastMA > 0
↓ if < 0
→ if = 0
Stoch %K — Rounded %K value (default 14‑1‑3). Background highlights when it aligns with the trend:
Green heat when trend up and %K ≤ oversold
Red heat when trend down and %K ≥ overbought Tooltip shows K and D values precisely.
Trend % — Composite score (0–100%), the dashboard’s confidence for that timeframe:
+20 if trendUp (fast>slow)
+20 if fast MA slope > 0
+20 if MACD up (signal definition in §2.8)
+20 if price above fast MA
+20 if price above slow MA
Background colours:
≥80 lime (strong alignment)
≥60 green (good)
≥40 orange (mixed)
<40 grey (weak/contrary)
MACD — 🟢 if EMA(12)−EMA(26) > its EMA(9), else 🔴. It’s a simple “momentum up/down” proxy.
Align — ✔ when everything is in gear for that trend direction:
For up: trendUp and price above both MAs and slope>0 and MACD up
For down: trendDown and price below both MAs and slope<0 and MACD down Tooltip spells this out.
3) Settings & how to tune them
3.1 Timeframes (TF1–TF8)
Inputs: TF1..TF8 hold the resolution strings used by request.security().
Defaults: M, W, D, 720, 480, 240, 60, 15 with display labels Month, Week, Day, 12H, 8H, 4H, 1H, 15m.
Tips
Keep a top‑down funnel (e.g., Month→Week→Day→H4→H1→M15) so you can cascade bias into entries.
If you scalp, consider D, 240, 120, 60, 30, 15, 5, 1.
Crypto weekends: consider 2D in place of W to reflect continuous trading.
3.2 Moving Average (MA) group
Type: EMA, SMA, WMA, RMA, HMA. Changes both fast & slow MA computations everywhere.
Fast Length: default 20. Shorten for snappier trend/slope & tighter “price above fast” signals.
Slow Length: default 200. Controls the structural trend and part of the score.
When to change
Swing FX/equities: EMA 20/200 is a solid baseline.
Mean‑reversion style: consider SMA 20/100 so trend flips slower.
Crypto/indices momentum: HMA 21 / EMA 200 will read slope more responsively.
3.3 ATR / Distance group
ATR Length: default 14; longer makes distance less jumpy.
XS/S/M/L thresholds: define the labels in column MA Dist. They are compared to |close − fastMA| / ATR.
Defaults: XS 0.25×, S 0.75×, M 1.5×, L 2.5×; anything ≥L is XL.
Usage
Entries late in a move often occur at L/XL; consider waiting for a pullback unless you are trading breakouts.
For stops, an initial SL around 0.75–1.5 ATR from fast MA often sits behind nearby noise; use your plan.
3.4 Stochastic group
%K Length / Smoothing / %D Smoothing: defaults 14 / 1 / 3.
Overbought / Oversold: defaults 70 / 30 (adjust to 80/20 for trendier assets).
Heat logic (column Stoch %K): highlights when a pullback aligns with the dominant trend (oversold in an uptrend, overbought in a downtrend).
3.5 View
Full Screen Table Mode: centers and enlarges the table (position.middle_center). Great for clean screenshots or multi‑monitor setups.
4) Signal logic (how each datapoint is computed)
Per‑TF data (via a single request.security()):
fastMA, slowMA → based on your MA Type and lengths
%K, %D → Stoch(High,Low,Close,kLen) smoothed by kSmooth, then %D smoothed by dSmooth
close, ATR(atrLen) → for structure and distance
MACD up → (EMA12−EMA26) > EMA9(EMA12−EMA26)
fastMA_prev → yesterday/previous‑bar fast MA for slope
TrendUp → fastMA > slowMA
Price Position → compares close to both MAs
MA Distance Label → thresholds on abs(close − fastMA)/ATR
Slope → fastMA − fastMA
Score (0–100) → sum of the five 20‑point checks listed in §2.7
Align tick → conjunction of trend, price vs both MAs, slope and MACD (see §2.9)
Important behaviour
HTF values are sampled at the execution chart’s bar close using Pine v6 defaults (no lookahead). So the daily row updates only when a daily bar actually closes.
5) How to trade with it (playbooks)
The table is a framework. Entries/exits still follow your plan (e.g., S/D zones, price action, risk rules). Use the table to know when to be aggressive vs patient.
Playbook A — Trend continuation (pullback entry)
Look for Align ✔ on your anchor TFs (e.g., Week+Day both ≥80 and green, Trend ↑, MACD 🟢).
On your execution TF (e.g., H1/H4), wait for Stoch heat with the trend (oversold in uptrend or overbought in downtrend), and MA Dist not at XL.
Enter on your trigger (break of pullback high/low, engulfing, retest of fast MA, or S/D first touch per your plan).
Risk: consider ATR‑based SL beyond structure; size so 0.25–0.5% account risk fits your rules.
Trail or scale at M/L distances or when score deteriorates (<60).
Playbook B — Breakout with confirmation
Mixed stack turns into broad green: Trend % jumps to ≥80 on Day and H4; MACD flips 🟢.
Price Pos shows 🔼 across H4/H1 (above both MAs). Slope arrows ↑.
Enter on the first clean base‑break with volume/impulse; avoid if MA Dist already XL.
Playbook C — Mean‑reversion fade (advanced)
Use only when higher TFs are not aligned and the row you trade shows XL distance against the higher‑TF context. Take quick targets back to fast MA. Lower win‑rate, faster management.
Playbook D — Top‑down filter for Supply/Demand strategy
Trade first retests only in the direction where anchor TFs (Week/Day) have Align ✔ and Trend % ≥60. Skip counter‑trend zones when the stack is red/green against you.
6) Reading examples
Strong bullish stack
Week: ↑, 🔼, S/M, slope ↑, %K=32 (green heat), Trend 100%, MACD 🟢, Align ✔
Day: ↑, 🔼, XS/S, slope ↑, %K=45, Trend 80%, MACD 🟢, Align ✔
Action: Look for H4/H1 pullback into demand or fast MA; buy continuation.
Late‑stage thrust
H1: ↑, 🔼, XL, slope ↑, %K=88
Day/H4: only 60–80%
Action: Likely overextended on H1; wait for mean reversion or multi‑TF alignment before chasing.
Bearish transition
Day flips from 60%→40%, Trend ↓, MACD turns 🔴, Price Pos “–” (between MAs)
Action: Stand aside for longs; watch for lower‑high + Align ✔ on H4/H1 to join shorts.
7) Practical tips & pitfalls
HTF closure: Don’t assume a daily row changed mid‑day; it won’t settle until the daily bar closes. For intraday anticipation, watch H4/H1 rows.
MA Type consistency: Changing MA Type changes slope/structure everywhere. If you compare screenshots, keep the same type.
ATR thresholds: Calibrate per asset class. FX may suit defaults; indices/crypto might need wider S/M/L.
Score ≠ signal: 100% does not mean “must buy now.” It means the environment is favourable. Still execute your trigger.
Mixed stacks: When rows disagree, reduce size or skip. The tool is telling you the market lacks consensus.
8) Customisation ideas
Timeframe presets: Save layouts (e.g., Swing, Intraday, Scalper) as indicator templates in TradingView.
Alternative momentum: Replace the MACD condition with RSI(>50/<50) if desired (would require code edit).
Alerts: You can add alert conditions for (a) Align ✔ changes, (b) Trend % crossing 60/80, (c) Stoch heat events. (Not shipped in this script, but easy to add.)
9) FAQ
Q: Why do I sometimes see a dash in Price Pos? A: Price is between fast and slow MAs. Structure is mixed; seek clarity before acting.
Q: Does it repaint? A: No, higher‑TF values update on the close of their own bars (standard request.security behaviour without lookahead). Intra‑bar they can fluctuate; decisions should be made at your bar close per your plan.
Q: Which columns matter most? A: For trend‑following: Trend, Price Pos, Slope, MACD, then Stoch heat for entries. The Score summarises, and Align enforces discipline.
Q: How do I integrate with ATR‑based risk? A: Use the MA Dist label to avoid chasing at extremes and to size stops in ATR terms (e.g., SL behind structure at ~1–1.5 ATR).
MSS BoxesWhat it is
The MSS Boxes indicator finds Market Structure Shifts (a decisive break in structure with displacement) and draws actionable zones (“boxes”) from the candle that caused the shift. Those boxes then act as mitigation / continuation areas for the rest of the session (or until they’re invalidated). It’s designed to be clean, non-repainting, and to work as a confluence layer with your SD and ATR Trigger grids.
What you’ll see on the chart
Green boxes for bullish MSS (demand); red boxes for bearish MSS (supply).
A compact label at the box origin (e.g., BOS↑ / BOS↓, or CHOCH) with the time-frame tag if you enable MTF.
Optional status badge on the right edge:
active (untouched), mitigated (tapped and respected), invalid (closed through), expired.
Clean behavior: once a box is printed it does not slide; coordinates are fixed to the confirmed signal candle.
Inputs (quick guide)
Swing detection
Swing length (for swing highs/lows), lookback for break validity, strict wick rule on/off.
Displacement factor (0 = off; typical 1.2–2.0).
Box recipe
Use full wick vs. use body for top/bottom.
Minimum box height (ticks), auto-merge overlapping (joins adjacent boxes of the same side).
Max lifetime (bars), session reset (e.g., clear on NY 18:00).
MTF alignment
Toggle H1 / M15 filters; choose “Plot only when aligned” vs “Plot all but alert only when aligned.”
Visuals
Fill/outline colors, opacity, label size, extend style (full-width vs to last bar).
Daily Buy/Sell Triggers + ATR TargetsThis tool gives you a once-per-day, objective ATR map: Buy Trigger above the open, Sell Trigger below the open, clean ATR targets, and FULL ATR extremes. It’s designed for clarity, precision, and zero intraday repainting so you can plan the session and execute with confidence.
This indicator prints a new, static grid of intraday levels every New York 18:00 (end of the NY trading day). The grid is anchored at the day’s open and spaced by the Daily ATR so you get tick-precise Buy Trigger, Sell Trigger, intermediate ATR targets, and the FULL ATR bounds for the session.
The levels act as objective support/resistance and intraday measuring sticks for continuation, mean-reversion, and range expansion trades.
What you see on the chart
A thin midline at the Daily Open (anchor).
Green lines above, red lines below, spaced at your chosen ATR multiples.
Text at the far right for:
Buy trigger
Sell trigger
FULL ATR (both sides)
Intermediate targets are unlabeled to keep the chart clean (they’re still tradable S/R).