Smart Auto-Step Openndicator Name: 15m Reversal Strategy (Polymarket)
Short Description: A mean-reversion strategy designed for the 15-minute timeframe. It identifies overextended short-term trends and signals entries on the probability of a reversal candle.
Statistics
Top 40 Best Performing Nasdaq Stocks with Advanced Stats ScreenWelcome to the CustomQuantLabs Advanced Stats Screener. This dashboard is designed for traders who need more than just price action—it provides a comprehensive, institutional-grade view of the "Top 40" performing assets in the Nasdaq (or any watchlist of your choice) at a single glance.
Instead of flipping through 40 different charts, this screener aggregates Performance Metrics and Advanced Statistical Risk Models into one clean, heatmap-style dashboard. It helps you instantly identify outliers, trend leaders, and potential mean-reversion setups.
Key Features
1. Multi-Timeframe Performance Heatmap Instantly spot momentum. The dashboard tracks returns across 5 key timeframes, color-coded with a dynamic heatmap (Bright Green for leaders, Bright Red for laggards):
Week% (Short-term momentum)
Month% & Quarter% (Medium-term trend)
6M% & 12M% (Long-term secular trend)
2. Institutional Risk Metrics (Advanced Stats) We go beyond simple percentage changes. This screener calculates complex statistical formulas for every single ticker in real-time:
Kelly Criterion (%): A money management formula used to determine optimal position size based on win probability and return ratio. A higher Kelly % suggests a statistically stronger "edge" based on recent history.
Sharpe Ratio: Measures risk-adjusted return. How much return are you getting for every unit of risk? (Values > 1.0 are generally considered good).
Sortino Ratio: Similar to Sharpe, but only penalizes downside volatility. This is crucial for distinguishing between "good volatility" (upside pumps) and "bad volatility" (crashes).
Z-Score: A mean-reversion metric. It measures how many standard deviations the current price is from its 20-day mean.
High Positive Z-Score (>2): Price may be overextended to the upside.
Low Negative Z-Score (<-2): Price may be oversold.
Volatility (%): A dynamic measure of the asset's daily range, helping you gauge the "personality" of the stock before entering.
Customization & Settings
Fully Customizable Watchlist: While pre-loaded with top Nasdaq performers (like NVDA, AMD, PLTR, MU), you can easily edit the "Symbols" input in the settings to track Crypto, Forex, or your own custom stock portfolio.
Smart Theme Detection: Includes a toggle for Dark Mode (ProjectSyndicate style) and Light Mode (Clean white style).
Compact Mode: You can toggle specific columns on or off to fit the table on smaller screens.
How to Use
Add the script to your chart.
Open Settings (Gear Icon).
Paste your list of 40 tickers into the "Ticker List" text area (separated by commas).
Use the Z-Score to find overbought/oversold setups and the Relative Strength (Week/Month) to find breakout candidates.
Disclaimer: This tool is for informational purposes only. The "Top 40" list requires manual updating if the market leaders change. All statistical metrics (Kelly, Sharpe, etc.) are based on historical data and do not guarantee future performance.
Built by CustomQuantLabs.
Volume + ATR Robust Z-Score Suite (MAD)Measure relevant volumes together with high-volatility candles, providing initiative signals based on volume. Mark the relevant candle and use it as support or resistance.
Smart Auto-Step Open (1H Base)The "Big Brother" to the 15m Open: While the 15m Open is perfect for scalping entries, this indicator is designed for Trend Direction & Bias. It automatically identifies the major Hourly and Daily opening levels, giving you the "Big Picture" context instantly.
🧠 Smart Auto-Step Logic: This script detects your timeframe and automatically upgrades the level to the next major resistance:
Intraday Mode (1s – 1H): Locks to the 1-Hour Open. This is your primary "Bull/Bear" line for the session.
Swing Mode (4H): Automatically switches to the 4-Hour Open.
Daily Mode (D): Automatically switches to the Daily Open.
Noise Filter: Hides automatically on intermediate frames (like 2H or 3H) to keep your chart clean.
✨ Luxury Visuals:
Floating Labels: No ugly boxes. Text floats cleanly in the right-side margin.
Custom Typography: Includes a "Luxury" setting that uses Bold Serif Unicode characters (e.g., 𝟏𝐇 𝐎𝐩𝐞𝐧) for a high-end, institutional look.
Dark Mode Optimized: Defaulted to Bright White for maximum contrast.
🚀 Key Features:
Zero-Lag Anchor: Uses time-based coordinates to ensure the line never repaints.
Smart Visibility: Works perfectly even if you are viewing the 1H chart itself (prevents the "disappearing line" bug).
Price Tags: Displays the exact price with a $ symbol.
PRO Strategy (The "Confluence" Setup): Load this indicator together with the "15m Open" version.
When Price is above the 15m Open AND the 1H Open → Strong Buy Signal.
When Price is below both → Strong Sell Signal.
Settings:
Font Style: Modern, Luxury, or Hacker.
Offset: Move the label right/left.
Color: Fully customizable.
Trend Strength [OmegaTools]Trend Strength is a quantitative regime oscillator designed to measure directional pressure and trend quality by blending price structure, return-dependence, realized intrabar expansion, and volume participation into a single normalized signal. The goal is not to predict, but to classify market state: when price action is in an expansionary/distributionary phase versus when it is in a contractionary/accumulation phase, so you can align execution and risk with the prevailing environment.
Core concept and methodology
The indicator aggregates four components computed on stable rolling windows and mapped into comparable ranges:
1. Price location / structural positioning (100-bar range)
A normalized price-location metric (position of close within the rolling high–low range) is transformed into a non-linear “strength” profile. This emphasizes meaningful departures from the middle of the range and penalizes indecision, producing a structure-aware contribution rather than a raw oscillator.
2. Return-dependence / directional persistence (100 bars)
A correlation term measures the relationship between the current return (close − close ) and the prior price level (close ). This helps detect environments where movement is more persistent or more mean-reverting, providing a statistical component that complements pure price-location signals.
3. Realized expansion / volatility proxy (50-bar accumulation, 300-bar normalization)
Intrabar expansion is approximated via the absolute candle body relative to the full range, aggregated over a short window to represent realized “effort” and then normalized over a longer window. This captures whether price is moving with meaningful body expansion versus compressing and stalling.
4. Volume participation (11-bar accumulation, 300-bar normalization)
A rolling volume sum is normalized over a longer window to quantify participation. This helps separate “thin” moves from moves supported by broader activity, without relying on exchange-specific volume assumptions.
The final oscillator is a weighted blend of these four normalized components, scaled for readability. The output is intentionally centered around two actionable regimes rather than a symmetric overbought/oversold framework.
How to read the oscillator
Trend Strength is designed around two main thresholds:
- Distribution / Expansion regime (oscillator above 0)
When the oscillator is above 0, the market is classified as being in a higher-pressure expansion regime. This often corresponds to directional continuation potential, stronger impulse behavior, and reduced suitability for tight mean-reversion tactics.
- Accumulation / Contraction regime (oscillator below −1.3)
When the oscillator is below −1.3, the market is classified as being in a contraction/accumulation regime. This frequently corresponds to compression, rotation, and lower directional efficiency, where breakouts may be more fragile and mean-reversion tactics may be more appropriate (depending on instrument and session conditions).
Values between 0 and −1.3 are treated as transitional/neutral, where the market is not clearly committing to either regime.
Continuous Mode vs Standard Mode
Trend Strength includes an optional Continuous Mode to improve interpretability during regime transitions:
- Standard Mode colors only when the oscillator is firmly in one of the two regimes (above 0 or below −1.3). Neutral zones remain uncolored, keeping the display conservative.
- Continuous Mode adds persistence logic: once a regime is confirmed, intermediate values are rendered with a lighter shade of the last confirmed regime until the opposite regime is confirmed. This reduces visual noise, helps maintain a consistent directional bias framework, and is particularly useful for intraday execution and session trend management.
Visual design and bar coloring
The oscillator line is color-coded:
- Purple: distribution / expansion regime
- Orange: accumulation / contraction regime
Neutral/transitional values are displayed in grey (or lightly shaded in Continuous Mode based on last confirmed regime).
Optionally, the indicator can color price bars using the same regime logic, allowing rapid at-a-glance regime recognition directly on the chart.
Practical use cases
- Regime filter for strategies: enable trend-following logic only in expansion regimes; enable mean-reversion or range logic in contraction regimes.
- Risk adjustment: increase/decrease position sizing or tighten/widen stops based on regime classification.
- Confirmation layer: combine with structure tools (market structure, VWAP, key levels) to validate whether conditions support continuation or imply compression.
- Session management: identify when a session is behaving as a trend day versus a rotational day, improving trade selection and reducing overtrading.
Notes
Trend Strength is a regime classifier and contextual tool. It does not guarantee future direction and should be integrated into a complete decision process (risk management, market structure, session context, and instrument-specific behavior).
© OmegaTools
Sigmoid Allocation Indicator & DashboardTL;DR This sigmoid-based allocation indicator tells you percentage of your portfolio to invest based on how much the market has dropped.
Market at all-time high? → Stay defensive, invest less (e.g., 30%)
Market crashed hard? → Get aggressive, invest more (e.g., 100%)
The "sigmoid" part just means the transition between these two extremes follows a smooth S-shaped curve.
Description
This indicator is a sigmoid-based allocation system that dynamically adjusts a portfolio exposure based on market drawdown.
It compares multiple steepness curves (K values) to find your optimal risk profile for leveraged ETF strategies, but it can also be used to scale in-out from stocks, crypto and to understand whether to use leverage or not.
The Sigmoid Allocation Dashboard helps you to dynamically adjust a portfolio allocation based on how much a market has dropped from its all-time high.
I've implemented it using a sigmoid (S-curve) function, that dynamically calculates the optimal allocation percentages. Depending on the market conditions, the S curves transition between defensive and aggressive allocations.
The Math Behind It (if you are a geek like me)
This indicator uses the sigmoid function to create smooth S-curve transitions:
α(D) = α_min + (α_max - α_min) × σ(k × (D - D_mid))
Where:
σ(x) = 1 / (1 + e^(-x)) ← Standard sigmoid function
You can also check it here:
// Sigmoid function: σ(x) = 1 / (1 + e^(-x))
sigmoid(float x) =>
1.0 / (1.0 + math.exp(-x))
// Alpha calculation: α(D) = α_min + (α_max - α_min) × σ(k × (D - D_mid))
calcAlpha(float drawdown, float k, float a_min, float a_max, float d_midpoint) =>
sig_input = k * (drawdown - d_midpoint) / 100.0
a_min + (a_max - a_min) * sigmoid(sig_input)
User parameters (you can tweak this):
Allocation Min (%): Your baseline allocation when markets are at ATH (default: 30%)
Allocation Max (%): Your maximum allocation during deep drawdowns (default: 100%)
D_mid (%): The drawdown level where you want to be at the midpoint (default: 25%)
Why do I like sigmoid and not a linear line?
Unlike linear models, the sigmoid creates "floors" and "ceilings" for your allocation. It transitions smoothly, no sudden jumps, and you never exceed your defined min/max bounds.
Understand the K Values (Steepness)
The K parameter controls how quickly your allocation shifts from defensive to aggressive.
Lower K (for example K=5) will give you a gradual transition, but at 0% drawdown you are already at a 46% allocation.
A higher like (like K=40) will give you a sharp transition, but at 0% drawdown you are close to the minimum allocation. On the other hand, a higher K will give close to 100% allocation when the markets are at new lows.
The example below illustrates this well, then the S&P 500 reached new lows in October 2022:
Different K values will affect the sigmoid curves (and you allocations differently). The chart below illustrates well how K affects the sigmoid curves:
Read the Dashboard
The main dashboard shows:
Current drawdown from ATH
Allocation % for each K value
Suggested action (Defensive → MAX LONG)
Use the Reference Chart
The static reference panel shows what your allocation would be at various drawdown levels (0%, 10%, 20%, 30%, 40%, 50%), helping you plan ahead.
Identify Zones
The color-coded chart background shows:
- 🟢 Green Zone: Aggressive positioning - "Buy the Dip"
- 🟡 Yellow Zone: Transition zone - Scaling in/out
- 🔴 Red Zone: Defensive positioning - Protect ya gains
Use Cases
Use case 1: Leveraged ETF Portfolio Management (this is my main use case)
When holding leveraged ETFs like TQQQ or UPRO, volatility makes it important to:
- Reduce exposure near all-time highs (when crashes hurt most)
- Increase exposure during drawdowns (when recovery potential is highest)
Example Strategy:
- At ATH: Hold 30% TQQQ, 70% cash/bonds or other uncorrelated assets
- At 25% drawdown: Hold 65% TQQQ, 35% cash/bonds
- At 40%+ drawdown: Hold 100% TQQQ
Use case 2: Diversified Leveraged Portfolio
Compare different K values for different assets:
- Use K = 10 for broad market (QQQ/SPY exposure via TQQQ/UPRO)
- Use K = 25 for sector bets (TECL, SOXL, TMF) that you want to scale into faster
Use case 3: Systematic Rebalancing Signals
Use the alerts to trigger rebalancing:
- Alert when K3 allocation crosses above 90% (time to add)
- Alert when drawdown exceeds your D_mid threshold
- Alert when market returns to within 5% of ATH
Tips for Best Results
It works best in longer time frames
Adjust the ATR lookback window
Match your risk tolerance level
I use this for index investing and stocks and haven't tried with crypto
Thanks for using the indicator and let me know if you have any feedback :)
- Henrique Centieiro
Anchor Pulse WaveAnchor Pulse Wave – Median Anchor Overlay (MAO) with Real Deviation Strength (RDS) Confluence built-in.
This overlay companion to the Median Anchor Oscillator (MAO) brings mean-reversion gravity to life. It plots the rolling median as a customizable anchor line, surrounded by translucent, one-sided pulse bands that "breathe" based on Real Deviation Strength (RDS) – smoothed absolute deviation intensity.
"Possibly the simplest yet most robust open-source overlay for mean-reversion — median gravity + real deviation strength pulsing in real time."
Core Visuals:
• Median Anchor Line – dynamic fair-value centerline (custom color)
• Pulse Wave Bands – translucent fill (custom color & base transparency) thickens/opaques on strong deviation (high RDS), thins/fades on strength crack → intuitive "highlight" for conviction shifts
• One-sided design: upper band for positive stretches, lower for negative
Signals & Confluence:
• Exhaustion arrows/labels (Bull Exh ↑ Long / Bear Exh ↓ Short) only fire on pivot + RDS strength crack → cleaner, high-quality signals
• Re-Entry labels flag gravity pullback zones
• Best used with MAO subchart: confirm highlights with divergence (e.g., MAO higher lows on price lower lows for bullish setups)
Built-in Alerts:
• Strong Bull Exh (Long) – crack + pivot (low-risk long)
• Strong Bear Exh (Short) – crack + pivot (low-risk short)
• Re-Entry Alert – gravity reversal in play
• Band Highlight – strength building fast (deviation conviction rising)
How to Trade:
1. Watch for band highlights (hue/thickness change – strength peaking/cracking)
2. Confirm with MAO divergence / threshold cross
3. Enter on confluence → hold through solid phases, exit on opposite re-entry
Why this works: Pure median + MAD math (outlier-resistant), RDS adds real strength filtering without extra panes. Low-risk mean-reversion edge when layers align.
Got RSI or MACD for divergence? those work alright too!
Open-source Pine v6. Feedback welcome – refinements appreciated!
© RU55IANROUL3TT3 – Personal use & modification OK, credit appreciated if shared.
Links for MAO + RDS
world market Zones (IST) + Prev Day S/R + Pivot🧠 PART 1 — SESSION VOLATILITY ENGINE (SCRIPT 1)
This part does time-based market behavior mapping, not price indicators.
✅ What it Detects
All times are locked to IST (Asia/Kolkata):
Zone Purpose Why it matters
London (13:00–17:30) EU money flow Trend initiations often start here
NY (18:30–23:30) US volatility Expansion + reversals
Overlap (17:30–21:30) Highest liquidity window Breakouts + fakeouts
EIA (Wed 20:30–21:30) Crude inventory release Explosive oil moves
IMPORTANT FOR ANALYSING session START SHOCK POINTS.
🧠 What this section REALLY gives you
You now see:
When liquidity enters
When algos reset
When news shock candles form
Where false breakouts happen (often at session flips)
This is behavioral timing, not lagging math.
Not suitable for:
1D+ charts (session logic loses meaning)
Assets without clear London/NY behavior
🏆 What type of trader this script is for
This is NOT indicator trading.
This is for traders who:
✔ Trade liquidity sweeps
✔ Watch session opens
✔ Understand dealer positioning
✔ Trade crude, indices, forex
It’s basically a smart money timing + institutional level combo.
HAPPY TRADING
LiveTracker by N&MLiveTracker is a real-time trade execution and accounting engine built on top of statistically validated backtest states.
It mirrors live trading conditions with precise fee modeling, partial take-profits, trailing stops, and liquidation logic.
Each trade is tracked with both mark-to-market PnL and “net if closed now” metrics for full transparency.
Designed as a modular Pine Script® library, it enables reliable, state-driven live execution without repainting.
Z-Score STDEMA BandsZ-Score STDEMA Bands is a mean-reversion and regime-strength indicator built on normalized price deviation.
The indicator converts price into a Z-Score, measuring how many standard deviations the current price is from its moving average over a configurable lookback. This makes signals comparable across assets and timeframes.
On top of the Z-Score, the script applies an EMA of the Z-Score and dynamically builds upper and lower STDEMA bands using the rolling standard deviation of the Z-Score itself. These bands adapt to volatility in deviation, not price.
How to read it:
Z-Score (orange line): Distance from mean in standard deviations.
Horizontal levels (±1, ±2, ±3): Statistical extremes and mean-reversion zones.
Green/Red bands: EMA-based dynamic deviation envelopes.
Blue bars: Strong positive deviation (bullish expansion beyond statistical expectation).
Yellow bars: Strong negative deviation (bearish expansion beyond statistical expectation).
Use cases:
Identify overextended price conditions in a normalized framework.
Detect trend strength vs. mean-reversion (expansion outside bands).
Filter trades by statistical significance, not raw price movement.
P/E Ratio (TTM)This indicator plots the trailing P/E ratio (TTM) using GAAP EPS (TTM) sourced directly from TradingView’s fundamental data. It includes valuation‑zone color coding, yearly labels, and a clean, compressed visual layout suitable for most equities.
The goal is to provide a fast, intuitive view of how expensive or cheap a stock is relative to its historical earnings power.
Note:
The indicator caps P/E values around 120 for visual clarity.
Negative P/E ratios are intentionally excluded, since P/E is undefined when EPS is negative.
You can adjust the cap or remove it entirely if you prefer a full‑range view.
This tool is especially useful for identifying periods when a company is trading at historically elevated or discounted valuation levels.
ADR Daily & Session (Asia, London, NY) Range TrackerOVERVIEW:
The Daily & Session Range Tracker provides comprehensive range analysis for daily and intraday trading sessions (Asia, London, NY) . This indicator is essential for traders who need to understand market volatility and typical price movement ranges across different trading sessions.
KEY FEATURES:
• Daily Range Tracking: Tracks the daily candle range starting from 18:00 (6 PM), aligning with the institutional trading day open
• Session-Based Analysis: Monitors Asia (18:00-02:00), London (02:00-08:00), and NY (08:00-16:00) sessions
• Statistical Analysis: Displays Current, Average, and Median ranges for each period
• Customizable Lookback: Adjustable lookback period (1-20 days) for historical range calculation
• Clean Table Display: Organized data table positioned in the bottom-right corner
HOW TO USE:
1. Add the indicator to your chart
2. Adjust the lookback period to match your trading style (default: 10 days)
3. Customize session times if trading in a different timezone
4. Use the range data to set realistic profit targets and stop losses
5. Compare current range to average/median to gauge if price has room to move
SETTINGS:
• Lookback Period: Number of days to include in average/median calculations (1-20)
• Text Color: Customize the table text color for visibility
• Session Times: Adjust session start/end times for your timezone
PERFECT FOR:
✓ Day traders monitoring session volatility
✓ Scalpers setting realistic targets based on average ranges
✓ Swing traders understanding daily movement potential
✓ Risk management and position sizing decisions
NOTE: The daily range resets at 18:00 to align with institutional daily candle open times.
Short seller Market Stats Box (NY Time)This box will give you the basic info for your stats if you are a short seller .
The tricky one is the morning push it will give you the higher high between 9:30 and 10:00 . OPP% is the difference between market open and market close.
Weekly High/Low Day StatisticsThis indicator analyzes historical price data to determine which day of the week (Monday through Friday) most frequently hosts the weekly high and low prices. It provides overall counts, percentages, and the total number of weeks analyzed. Ideal for traders studying seasonal or day-of-week patterns in markets like futures (e.g., ES1!, NQ1!) or stocks (e.g., SPY).
Key Features:
Overall Statistics: Aggregates data across all available history, including the current partial week if applicable.
High/Low Tracking: Counts how many times each day was the weekly high or low, with percentages calculated over the total weeks.
Tie Handling: Uses the first occurrence in case of price ties (e.g., if multiple days hit the same high, the earliest day is credited).
Futures-Friendly: Utilizes time_tradingday for accurate day-of-week detection on continuous contracts like ES1!, accounting for session timings in UTC.
Table Display: Results are presented in a clean, semi-transparent table in the top-right corner, with columns for counts, percentages, and a total weeks summary.
Dynamic Updates: Processes all available historical bars on daily (1D) charts, supporting deep history (e.g., back to 2001 for ES1!). Note: On intraday timeframes, historical depth may be limited by TradingView's bar constraints.
How It Works:
The script iterates through daily bars, identifying the start of each new week via ta.change(time("W")). It tracks the highest and lowest prices within each week and assigns them to the corresponding trading day. At the end of each complete week, it tallies the results. The current incomplete week is included for real-time relevance.
Percentages are calculated as: (Count / Total Weeks) * 100, rounded to one decimal place.
Usage Tips:
Recommended Timeframe: Daily (1D) for maximum historical analysis. Works on intraday charts but with shallower data.
Symbols: Best for markets trading Monday-Friday, like indices, futures, or equities. Sunday/Saturday data is ignored as it's typically non-trading.
Customization: If ties should favor the last day instead, modify the comparison operators from >/< to >=/<= in the update logic.
Performance: Efficient for large datasets; no max_bars_back needed as it avoids deep historical references.
This tool can help uncover patterns, such as whether Fridays tend to be highs in bullish markets or Mondays lows during volatility. Use it alongside other indicators for comprehensive strategy building. Feedback welcome—feel free to suggest improvements!
TASC 2026.02 Portfolio Diversification█ OVERVIEW
This indicator is a simplified framework for analyzing hypothetical portfolios, based on the concepts in the February 2026 edition of the TASC Traders' Tips , "Foundational Portfolio Design, Not Stock-Picking”. It requests datasets for spread symbols that represent weighted combinations of user-selected or predefined instruments, compares the returns in the data to those of a selected benchmark, and calculates risk-related metrics.
█ CONCEPTS
One of the core concepts of portfolio design is diversification. A diversified portfolio distributes market exposure across multiple, ideally uncorrelated, instruments to reduce potential risks. Investors often diversify their portfolios by allocating capital to instruments from different classes, sectors, or regions rather than investing in only a single instrument or multiple related instruments.
As described in the article, the motivation behind creating diversified portfolios is simple:
"No single position should have the capacity to sink the entire portfolio."
This indicator estimates a portfolio's performance by requesting combined price data for spread symbols from user inputs or predefined options, and then analyzing the data's annual arithmetic returns alongside those of a specified benchmark instrument. It displays the returns of the spread and the benchmark in a table at the bottom left.
The indicator also displays the following metrics described in the article in a table at the bottom right of the pane for additional performance information:
Max drawdown: The maximum drop in the portfolio's value from a local peak.
Standard deviation: The dispersion of portfolio values relative to their mean.
Sharpe ratio: The ratio of excess returns in an investment compared to a hypothetical risk-free rate of return.
Pain index: A measure of risk based on the depth, duration, and frequency of losses. The metric in this script considers only the bars where drawdown is nonzero.
Ulcer index: A measure of downside risk based on the root mean square of drawdowns. The metric in this script considers only the bars where drawdown is nonzero.
Correlation: The Pearson correlation coefficient between the returns of the hypothetical portfolio and those of a selected benchmark.
The first five metrics are direct risk measures. The correlation metric helps assess whether the hypothetical portfolio closely follows the broader market. High correlation with a broad benchmark might indicate an elevated sensitivity to systematic risk.
█ USAGE
Users can select a combination of up to 10 symbols with specific weights to construct a hypothetical portfolio to analyze. Alternatively, users can select a predefined combination of symbols and weights based on the article's examples of optimized portfolios for different levels of risk tolerance.
The script plots the calculated returns from the selected combination and the benchmark instrument for visual comparison. It also generates tables to compare returns and display risk metrics.
Note: This indicator is intended to provide a simplified demonstration of portfolio concepts, and some metric calculations differ slightly from those in the article. The script does not produce any signals, and the calculated metrics are estimates intended for EOD timeframes such as 1D. If the hypothetical portfolio consists of instruments with different sessions, we recommend using 1W or a higher timeframe.
█ INPUTS
Benchmark: The symbol of the instrument to compare against the hypothetical portfolio.
Portfolio Type: Choose between named options for predefined portfolio configurations based on risk profiles outlined in the article. To create a custom portfolio from up to 10 symbols, select "Custom" and adjust the 10 sets of inputs below.
Risk-free rate: The hypothetical annual risk-free rate for the Sharpe ratio.
Periods per year: If not zero, the script uses the value as the number of bars per year for annualization, which affects Sharpe ratio and standard deviation metrics.
Display Toggles: The display for the returns and metrics tables can be toggled on or off.
The Charlie Method - EnhancedThe Charlie Method is a precision-engineered 15-minute confirmation tool built for disciplined traders who wait for price to come to them.
It identifies only true bullish and bearish engulfing candles, visually marking them at the moment of confirmation and delivering immediate alerts.
No repainting. No noise. No distractions.
This method is best applied at key levels, liquidity zones, and session extremes, where confirmation matters most.
Trade less. Confirm more. Execute with intent.
Anchored LRL using ZigZag AnchorAnchored Linear Regression Channel - ZigZag Pivot
The Anchored Linear Regression Channel (LRL) dynamically anchors to the most recent ZigZag pivot point, providing traders with a regression-based channel that resets with each significant price swing.
HOW IT WORKS:
This indicator combines ZigZag pivot detection with linear regression analysis. When price reverses by a specified ATR multiple, a new pivot is identified. After a minimum number of bars, the linear regression channel anchors to this pivot and projects forward to the current bar, recalculating with each new bar.
KEY FEATURES:
- Dynamic anchoring to ZigZag highs and lows
- Customizable ATR-based reversal detection
- Two standard deviation channel bands (inner and outer)
- Adjustable minimum bars before anchor reset (ideal for scalping on lower timeframes)
- Separate controls for ZigZag smoothing vs. anchor reset timing
- Color-coded regression line (up/down trend)
- Optional line extension to the right
- Fully customizable colors and line widths
- Visual label marking the anchor pivot point
INPUTS:
- ATR Reversal: Multiplier for ATR-based pivot detection (default: 2.0)
- MA Length: EMA smoothing for ZigZag calculation (default: 5)
- ATR Length: Period for ATR calculation (default: 5)
- Min Bars After Pivot: Bars required before anchor resets (default: 3, reduce to 1-2 for faster scalping)
- Channel Widths: Inner (0.70) and Outer (1.00) standard deviation multiples
- Line Colors: Customizable colors for uptrend/downtrend and channel lines
- Label Colors: Customizable background and text colors
HOW TO USE:
1. Apply the indicator to your chart
2. Adjust "Min Bars After Pivot" based on your timeframe:
- 1-minute charts: Use 1-2 bars for quick scalping entries
- 5-minute+ charts: Use 3-5 bars for more confirmation
3. Watch for the regression line color to indicate trend direction
4. Use channel bands as potential support/resistance zones
5. The label shows which pivot (high/low) the channel is anchored to
BEST PRACTICES:
- Lower timeframes (1-5 min): Use lower "Min Bars After Pivot" (1-3) for faster reaction
- Higher timeframes: Use higher values (5+) for more confirmed pivots
- Combine with price action and volume for confirmation
- Adjust ATR Reversal based on instrument volatility
NOTES:
- This indicator repaints as it recalculates with each new bar
- Channel resets when a new ZigZag pivot is confirmed
- Not suitable for backtesting strategies due to dynamic nature
- Works best on liquid instruments with clear price swings
DISCLAIMER:
This indicator is for educational and informational purposes only. It does not provide trading signals or guarantees of profitability. Past performance is not indicative of future results. Always perform your own analysis and risk management.
SPY Options Targets -IV Expected MoveWhat this indicator is?
This tool turns option implied volatility into two things:
1) Expected move levels on the SPY chart for a chosen time horizon
2) Estimated option premium targets if SPY reaches those levels
It is built to answer three trading questions:
1) How far can SPY reasonably move in my holding window
2) What SPY levels should I use for profit targets or invalidation
3) If SPY hits those levels, what option price is a realistic target
What the bands mean on the SPY chart
The bands are expected move levels on the underlying, recalculated each bar from the selected option’s implied volatility.
One sigma band
The teal band is the expected one standard deviation move over the next Horizon minutes. In practice, this is a normal move zone for that holding window.
Two sigma band
The orange band is the expected two standard deviation move over the next Horizon minutes. In practice, this is a large move zone for that holding window.
How to interpret value
If price is near the middle of the bands, the market is behaving normally for that window.
If price approaches the one sigma band, the move is extended for that window.
If price approaches the two sigma band, the move is unusually large for that window and you should expect either strong continuation or sharp mean reversion depending on market context.
What the table means and how to use it
IV
Implied volatility solved from the selected option price. Higher IV widens the bands and increases option targets.
DTE
Days to expiry of the selected option. Near expiry options can change faster and IV can shift quickly.
H move 1 sigma
The projected one sigma SPY move in dollars for the selected Horizon minutes. This is the key number for planning.
Opt at plus 1 sigma and minus 1 sigma
If SPY reaches the one sigma upper band or the one sigma lower band, the indicator estimates what your selected option should be worth at that moment, assuming implied volatility does not change.
Opt at plus 2 sigma and minus 2 sigma
Same idea for the two sigma bands.
Now opt px
Current option price for reference.
.................................................................................................................
How to trade using it?
Step 1 Pick the right option input
Choose the same expiry you plan to trade and pick a liquid contract, ideally at the money or near the money. This makes the IV reading more representative of the current tape.
Step 2 Set the horizon to your holding time
If you typically hold 15 to 30 minutes, set Horizon minutes to 15 or 30.
If you typically hold 60 to 120 minutes, set it accordingly.
This matters because the bands represent expected move for that exact window.
Step 3 Use the bands to define trade planning
For a long bias
Entry is your setup. The bands are used for targets and risk.
Target 1 is the one sigma upper band.
Target 2 is the two sigma upper band if momentum supports continuation.
Invalidation can be defined as losing the mid zone and failing to reclaim, or a clear level based stop. The indicator does not choose your stop. It gives your realistic upside distance.
For a short bias
Target 1 is the one sigma lower band.
Target 2 is the two sigma lower band if momentum supports continuation.
Invalidation can be defined similarly using your structure.
Step 4 Use the option targets as profit taking levels
Once you enter an option trade, ignore random premium swings and anchor to the table.
Common approach
Take partial profit when the option approaches the plus or minus one sigma target value.
Hold a smaller runner for the plus or minus two sigma target value.
If SPY hits the one sigma band but the option is far below the table target, it usually means implied volatility is dropping. Reduce expectations or exit earlier.
If SPY hits the one sigma band and the option is above the table target, it usually means implied volatility expanded. Consider taking profits sooner because this extra premium can mean revert.
Step 5 Use it to choose strikes
Before entering, check whether your desired option profit requires SPY to travel to the two sigma band within your horizon.
If yes, that is a lower probability trade for that window.
If your plan is achievable around the one sigma band, it is typically more realistic.
..................................................................................................................
Practical examples
Scalp example
Horizon 30 minutes.
If H move 1 sigma is about 1 dollar, then expecting a 3 dollar SPY move in 30 minutes is a two to three sigma expectation and should be treated as a low probability scalp unless a news event is active.
Intraday example
Horizon 120 minutes.
If H move 1 sigma is about 2 dollars, a 2 dollar move is a reasonable target and a 4 dollar move is the stretch target.
Important limitations
Implied volatility changes
The option target prices assume IV stays constant. In real markets IV can change during the move, especially on 0DTE, around news, or during sharp selloffs. Treat option targets as a baseline estimate.
Not a standalone signal
This indicator does not generate buy or sell signals. Combine it with your entry model, structure, or momentum confirmation.
Liquidity matters
Very wide bid ask spreads can distort the inferred IV. Use liquid contracts.
Suggested defaults for SPY
Use a liquid near the money option for the current expiry.
Horizon 30 for scalps, 60 for intraday, 120 for swings.
Keep expiry time at 16:00 New York.
Disclaimer
This script is for educational and informational purposes only and is not financial advice. Options involve risk and may not be suitable for all traders.
Duggan Capital ValueScript with lines for previous Vwaps.
GOD VIEW $$$$$$$$$$ WE ARE SHAKING VOL WHEN YOU SLEEP
Cash-and-Carry Yield (APR)This indicator calculates and visualizes the annualized rate of return for Cash-and-Carry arbitrage strategies by comparing a specific Futures contract against its underlying Spot price. By automatically projecting the current price spread (basis) based on the exact time remaining until expiration, it allows traders to instantly assess the potential "risk-free" yield available in the market.
The script is engineered to support both continuous 24/7 crypto markets and traditional CME futures. It features a smart "Gap Handling" setting that allows users to choose between a strict view that respects market closes (showing "Market Closed" during weekends) or a filled view that carries over the last known price for a seamless chart experience.
Visually, the indicator displays the annualized yield as a histogram; green columns indicate a Contango market (positive yield), while red columns signal Backwardation. A Simple Moving Average (SMA) is overlaid to help identify the broader yield trend amidst volatility. An integrated dashboard table in the corner provides a real-time summary of the Spot Price, Future Price, absolute spread, and the precise number of days left until expiration. Please ensure the Futures Ticker and the corresponding Expiration Date are correctly entered in the settings for accurate time-weighted calculations.
USDC/USDT PremiumUSDC/USDT Premium Index
Overview
This indicator tracks the premium or discount of USD Coin (USDC) relative to Tether (USDT) using data from Binance. It serves as a barometer for sentiment within the stablecoin market. A premium on USDC often suggests a flight to quality or higher demand for a stablecoin perceived as more transparent and regulated.
Key Features
•
Premium Calculation: The premium is calculated as (USDC/USDT Price - 1) * 100 to represent the deviation from parity in basis points. For example, a value of 0.1 means USDC is trading at a 0.1% premium to USDT (i.e., a price of 1.001).
•
Dynamic Coloring: The indicator's line color changes based on its position relative to a moving average (MA):
•
Green: The premium is currently above its moving average, suggesting bullish momentum for USDC.
•
Red: The premium is below its moving average, indicating bearish momentum.
•
Zero Line: A zero line is plotted to clearly distinguish between a premium (above zero) and a discount (below zero).
•
Customizable MA: You can adjust the moving average period and type (SMA, EMA, etc.) to fine-tune the indicator's sensitivity.
How to Use
1.
Gauge Stablecoin Sentiment: A rising premium (green line) can indicate that traders are favoring USDC over USDT, which might happen during times of market uncertainty or concerns about USDT's reserves.
2.
Identify Shifts in Momentum: Look for the color to flip from red to green as a sign that the USDC premium is gaining strength. A flip from green to red may signal a weakening trend.
3.
Spot Extremes: Extreme deviations from the zero line can signal market stress or significant capital flows between the two major stablecoins.
Interpretation
•
Green Line (Premium > MA): Suggests that the short-term trend for the USDC premium is positive and strengthening.
•
Red Line (Premium < MA): Suggests that the short-term trend is negative, with USDC's value declining relative to its recent average against USDT.
•
Above Zero Line: USDC is trading at a premium to USDT.
•
Below Zero Line: USDC is trading at a discount to USDT.
This tool provides a nuanced view of the stablecoin ecosystem, helping traders understand capital flows and risk appetite. It is most effective when used to complement a broader market analysis strategy.
Multi-Symbol RSI Portfolio Simulator [Honestcowboy]The Multi-Symbol RSI Portfolio Simulator was build to test a theory, does the RSI indicator work in FOREX assets. Does it have predictive power. In this example the security function is used to fetch data for 40 different Forex pairs and it executes a very simple trading strategy. Sell when RSI hits 80, flatten if back below. Buy when RSI hits 20, flatten if back above. All executed on bar closes so no intra bar stuff.
🟦 🟦 🟦 Very Important Disclaimer
This is a very crude indicator which does not calculate trading costs and assumes perfect execution of trades with zero slippage. Forex markets carry high risk and most CFD brokers ask high spreads and trading costs so this approach will most likely only work on the H4 or above Daily charts. We are observing market behaviour here, it's a study of price action not an executable ready strategy. Do your own cost analysis, simulation if you want to take this idea further.
🟦 What is the point?
I build this indicator to prove that RSI indeed causes price action reactions especially on the intraday level in forex. Just like any study or paper not accounting for trading costs, this is just hypothetical and a starting point.
🟦 CALCULATION
On each bar close it will check RSI value for each pair in the list. If one of the pairs meets the condition for a long or short it will open that trade on next bar open and hold it till close. Add the profits/losses to the equity line. And if condition still true on next bar do it again, this is a very crude simple form of testing. Tradingview strategy tester is superior but does not allow for multi-pair trading.
Short Condition: RSI above 80
Short Exit: RSI below 70
Long Condition: RSI below 20
Long Exit: RSI above 30
The indicator also has 2 modes: Mean reversion and Trend mode. On default it uses Mean Reversion which is explained above. Trend mode does the exact opposite, so long above 80 short below 20.
I've also included a table with a heatmap showing all the trading pairs the indicator uses, it's current RSI value and color based on how close indicator is to shorting or longing it from green to red with gray being middle so no direction.
🟦 USE CASES
You can tweak the setting for different RSI values. Different RSI lengths and also freely change any trading pair inside the list to make your own test. I'm including some screenshots of tests here below:
StO Price Action - Panel US Economy DataShort Summary
- Displays selected us economic data as a time series graph
- Economic indicator name shown in the upper-right corner
- Designed as a lightweight fundamental context overlay
Full Description
Overview
- Plots economic macro data as a continuous graph
- Combines visual trend context with clear textual identification
Supported Economic Data
- CPI – Consumer Price Index
- CIR – Core Inflation Rate (YoY)
- IRYY – Inflation Rate (YoY)
- IJC – Initial Jobless Claims
- JC4W – Jobless Claims (4-Week Average)
- NFP – Nonfarm Payrolls
- UR – Unemployment Rate
Graph Behavior
- Selected economic series is rendered as a line graph
- Graph color is user-configurable
Label Display
- Full descriptive name of the selected indicator
- Fixed position in the upper-right corner
Usage
- Helps identify macro trends alongside price action
- Useful for bias alignment on higher timeframes
- Works well with Trend-following Systems or higher-timeframe structure analysis
Notes
- Economic data is informational and non-predictive
- Not a signal or timing tool
- Best used as contextual background not standalone input






















