Straddle Charts - Live (Enhanced)Track options straddles with ease using the Straddle Charts - Live (Enhanced) indicator! Originally inspired by @mudraminer, this Pine Script v5 tool visualizes live call, put, and straddle prices for instruments like BANKNIFTY. Plotting call (green), put (red), and straddle (black) prices in a separate pane, it offers real-time insights for straddle strategy traders.
Key Features:
Live Data: Fetches 1-minute (customizable) option prices with error handling for invalid symbols.
Price Table: Displays call, put, straddle prices, and percentage change in a top-left table.
Volatility Alerts: Highlights bars with straddle price changes above a user-defined threshold (default 5%) with a yellow background and concise % labels.
Robust Design: Prevents plot errors with na checks and provides clear error messages.
How to Use: Input your call/put option symbols (e.g., NSE:NIFTY250814C24700), set the timeframe, and adjust the volatility threshold. Monitor straddle costs and volatility for informed trading decisions.
Perfect for options traders seeking a simple, reliable tool to track straddle performance. Check it out and share your feedback!
Penunjuk dan strategi
Multi-Time BoxesDraws individually tickableboxes at user-selected times, each with its own extendable length and a dashed midline. Optional labels show the time on the left edge with selectable white or black text.
Simple Turnover + TOMCAP (Version 1)This indicator calculates stock Turnover, highlights Quarterly High Turnover (HTQ) levels, and shows TOMCAP and Float % of Total Shares Outstanding in a table.
Formulas used:
Turnover = Average Closing Price (over N bars) × Average Volume (over N bars)
Quarterly High Turnover (HTQ) = Turnover ≥ highest turnover in the current quarter
Market Cap = Total Shares Outstanding × Current Price
TOMCAP = (Turnover ÷ Market Cap)
Float % of TSO = (Float Shares Outstanding ÷ Total Shares Outstanding)
Financial data is requested via request.financial() and may return N/A for unsupported symbols.
Primes_2These libraries (Primes_1 -> Primes_4) contain arrays of reduced Prime Numbers to minimize the amount of tokens, allowing more information to be exported.
Values, for example:
7001, 7013, 7019, 7027, 7039, 7043, 7057, 7069, 7079, 7103, 7109, 7021
are reduced to:
7001, 13, 19, 27, 39, 43, 57, 69, 79, 7103, 9, 21
With the restoreValues() function found in the Primes_4 library, the reduced values can be restored back to its original state.
7001, 13, 19, 27, 39, 43, 57, 69, 79, 7103, 9, 21
is restored back to:
7001, 7013, 7019, 7027, 7039, 7043, 7057, 7069, 7079, 7103, 7109, 7021
The libraries contain all Prime Numbers from 2 to 1.340.011
------------------------------------------------------------
Library "Primes_2"
Prime Numbers 340.007 - 712.981
primes_a()
Prime numbers 340.007 - 441.971
primes_b()
Prime numbers 442.003 - 545.959
primes_c()
Prime numbers 546.001 - 650.987
primes_d()
Prime numbers 651.017 - 712.981
RiskOnRiskOff-UpdatedRisk On / Risk Off Dashboard (Composite Z-Score)
This indicator measures global market risk appetite by combining multiple "Risk-On" and "Risk-Off" assets into a single composite signal. It calculates the momentum (ROC) of each selected asset, normalizes them using a rolling Z-Score, and averages them into two baskets:
Risk-On basket includes equity indices (S&P 500, Nasdaq 100, Russell 2000, DAX), high yield bonds, growth-sensitive commodities (oil, copper), and crypto assets (BTC, ETH, total crypto market cap).
Risk-Off basket includes volatility (VIX), the US Dollar Index (DXY), Gold, US 10Y yield, and USDT dominance.
The difference between the Risk-On and Risk-Off composites produces the main signal:
Above the Risk-On threshold → markets are in risk-seeking mode (green background).
Below the Risk-Off threshold → markets are in risk-averse mode (red background).
Between thresholds → neutral / indecisive regime (yellow background).
How to use:
In Risk-On mode, long setups generally have higher probability of success.
In Risk-Off mode, prioritize defensive strategies, hedges, or shorts.
Neutral regime suggests reducing position size or waiting for a clearer trend.
All symbols are customizable via the input panel to fit your preferred market focus (equities, crypto, FX, etc.). The indicator works on any timeframe, with recommended use on daily charts for macro regime analysis.
Note: ROC lookback, Z-Score window, and smoothing length can be adjusted for more responsive or more stable signals.
twitter: @0xdonomar
Davide - Breakout and Exit StrategyCatch powerful breakouts, ride the trend, and protect gains — all in one complete strategy.
Smart entries: Breakout confirmation with volume, candle strength, and gap detection (earnings bonus included).
Trend filter: Stay aligned with the Supertrend and 200 SMA.
Pro exits: Pivot-based reversal detection, optional MACD filter, trailing stops, and dynamic drawdown alerts.
Clean visuals & alerts: Instant signals for entries, exits, and risk thresholds.
Fully backtestable. Fully customizable.
9:55 - 10:10 AM High/Low// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © YourUsername
//@version=5
indicator("9:55 - 10:10 AM High/Low", overlay=true)
// Define the session time
sessionStart = timestamp(year(timenow), month(timenow), dayofmonth(timenow), 9, 55)
sessionEnd = timestamp(year(timenow), month(timenow), dayofmonth(timenow), 10, 10)
// Variable to store the high and low of the session
var float sessionHigh = na
var float sessionLow = na
// Check if the current bar is within the specified time session
isSession = time >= sessionStart and time <= sessionEnd
// Logic to find the high and low of the session
if (isSession)
if (na(sessionHigh) or high > sessionHigh)
sessionHigh := high
if (na(sessionLow) or low < sessionLow)
sessionLow := low
else
// Reset the session variables at the end of the session
if (na(sessionHigh) == false and time <= sessionEnd and time > sessionEnd)
sessionHigh := na
sessionLow := na
// Plot horizontal lines for the high and low
plot(sessionHigh, "Session High", color.green, style=plot.style_linebr, linewidth=2)
plot(sessionLow, "Session Low", color.red, style=plot.style_linebr, linewidth=2)
Smart Wick AnalyzerSmart Wick Analyzer (SWA)
Purpose: Highlight potential liquidity‑grab candles (long wicks) and turn them into actionable, rule‑based buy/sell signals with trend, volume, and cooldown filters.
Type: Indicator (not a strategy). Educational tool to contextualize wick events.
🧠 What This Script Does
SWA looks for candles where the wick is large relative to its body—a common signature of liquidity sweeps / rejection. It then adds three confirmations before marking a trade signal:
1. Wick Event
• Upper‑wick event (possible rejection from above)
• Lower‑wick event (possible rejection from below)
• Condition: wick length > body × Wick‑to‑Body Ratio
2. Context Filters
• Trend filter : closing price vs. SMA of lookbackBars
• Volume filter : current volume vs. average volume × volumeThreshold
3. Signal Hygiene
• Cooldown : prevents clustering; a minimum number of bars must pass before a new signal is allowed.
If a candle passes these checks:
• Buy Signal (triangle up): long lower wick + price above SMA + relative‑high volume + cooldown passed
• Sell Signal (triangle down): long upper wick + price below SMA + relative‑high volume + cooldown passed
The signal candle is also bar‑colored black for quick visual focus.
⸻
✳️ What the Dotted Lines Mean (including the green one)
On every signal bar the script draws two dotted horizontal levels, extended to the right:
• Open line of the signal candle
• Close line of the signal candle
• They use the signal color: green for Buy, red for Sell.
How to interpret (example: green = Buy signal):
• The green dotted close line represents the momentum validation level. If subsequent candles close above this line, it indicates follow‑through after the wick rejection (buyers defended into the close).
• The green dotted open line is a risk context / invalidation reference. If price falls back below it soon after the signal, the wick event may have failed or devolved into chop.
In your annotated chart: the candle initially looked constructive (“closing above could be positive momentum”), but later price failed and rotated down—hence a sell signal interpreted when an upper‑wick event occurred under down‑trend conditions.
⸻
⚙️ Inputs & What They Control
• Wick‑to‑Body Ratio (wickThreshold): how “extreme” a wick must be to count as a liquidity‑grab.
• Lookback Period (lookbackBars):
• SMA period for trend context
• Volume MA for relative‑volume check
• Volume Multiplier (volumeThreshold): strengthens/loosens volume confirmation.
• Cooldown Bars (cooldownBars): minimum spacing between consecutive signals.
• Enable Alerts (showAlerts): turns on alert conditions.
⸻
🔔 Alerts (exact titles)
• “SWA Buy Alert” — potential reversal / Buy signal detected
• “SWA Sell Alert” — potential reversal / Sell signal detected
⸻
📌 How to Use (practical guide)
1. Scan for the black‑colored signal candle and its dotted lines.
2. For Buy signals (green): Prefer continuation if price closes above the green close line within the next few bars. Manage risk using the open line or your own level.
3. For Sell signals (red): Prefer continuation if price closes below the red close line.
4. Avoid chasing during low‑volume / counter‑trend signals; the filters help, but structure (HTF trend, S/R, session context) still matters.
5. Use the cooldown to reduce noise on fast time frames.
⸻
✅ Why This Isn’t Just “Another Wick Indicator”
• The script does not flag every long‑wick; it requires trend alignment and relative volume to suggest participation.
• The two reference lines (open/close) provide post‑signal state tracking—a simple, visual framework to judge follow‑through vs. failure without additional tools.
• Cooldown logic discourages clustered, low‑quality repeats around the same zone.
⸻
⚠️ Notes & Limitations
• Works across markets/time frames, but wick behavior varies by instrument and session. Parameters may need adjustment.
• Signals are contextual, not guarantees. Consolidation and news spikes can invalidate wick reads.
• This indicator is not a strategy; it does not backtest performance on its own.
⸻
📄 Disclaimer
This tool is for educational purposes only and should be combined with personal analysis and risk management. Markets are uncertain; past behavior does not guarantee future results.
NG Scalp Strategy — 25% SL (v5 clean):
📌 NG Scalp Strategy — Breakout / Breakdown + VWAP + Supertrend + Volume Spike Filter
Intraday scalping strategy for Natural Gas designed for fast breakout & breakdown moves.
Features:
Breakout/Breakdown based on highest/lowest price over a set lookback period
Optional 1-bar retest confirmation
Filters: Supertrend, VWAP bias, RSI range, Volume Spike
Fixed Stop Loss (20–25%) and configurable Take Profit
Live SL/TP plot lines on chart
Buy/Sell labels + alert conditions for automation
Background shading to indicate open positions
⚠️ Note: Optimized for NG 5-min charts (MCX / CME), but can be adapted for other instruments. Always backtest before live trading.
Asian Session Breakout with Retest (put an rr of 1)1 — Customizable Parameters
sess1 & sess2: The two time ranges that define the Asian session (e.g., 20:00–23:59 and 00:00–08:00).
Important: format is HHMM-HHMM.
rr: The risk/reward ratio (default = 3.0, meaning TP = 3× risk size).
onePerSess: Toggle to allow only one trade per Asian session or multiple.
bufTicks: Extra margin for the SL beyond the signal candle.
2 — Detecting the Asian Session
The script checks if the candle’s time is inside the first range (sess1) or inside the second range (sess2).
While inside the Asian session, it updates the current high and low.
When the session ends, it locks in these levels as rangeHigh and rangeLow.
3 — Step 1: Detecting the Initial Breakout
Bullish breakout → close above rangeHigh → flag breakoutUp is set to true.
Bearish breakout → close below rangeLow → flag breakoutDown is set to true.
No trade yet — this is just the breakout signal.
4 — Step 2: Waiting for the Retest
If a bullish breakout occurred, wait for the price to return to or slightly below rangeHigh and then close back above it.
If a bearish breakout occurred, wait for the price to return to or slightly above rangeLow and then close back below it.
5 — Entry & Exit
When the retest is confirmed:
strategy.entry() is triggered.
SL = behind the retest confirmation candle (with optional bufTicks margin).
TP = entry price ± RR × risk size.
If onePerSess is enabled, no further trades happen until the next Asian session.
6 — Chart Display
Green line = locked Asian session high.
Red line = locked Asian session low.
Light blue background = active Asian session hours.
Trade entries are shown on the chart when retests occur.
Per-Time ExtensionDraws individually tickable 5-minute boxes at user-selected times, each with its own extendable length and a dashed midline. All times are converted to UTC+2 and boxes older than 10 days are automatically removed to keep the chart clean
RiffleFX MA Trend RibbonThe RiffleFX MA Trend Ribbon is a simple but powerful trend-following tool for all markets and timeframes.
Features:
• Dual Moving Averages (SMA or EMA, customizable)
• Trend-based background coloring (Green = Bullish, Red = Bearish)
• BUY/SELL arrows on MA crossovers
• Works with Forex, Crypto, Stocks, Indices, and Commodities
How to use:
• Green background + BUY arrow → Look for long trades
• Red background + SELL arrow → Look for short trades
• Best combined with support/resistance and price action for confirmation
Simplest MA Oscillator - visually improvedSimplest MA Oscillator - visually improved
Universal Moving Average Oscilator
SPX Sector Net Strength with SMAThis is my first script attempt. It shows the net SPX sector strength with a 13 period SMA
BIST Elyot Endeksi (XU010)Elyot is perfect for those who count. Instead of dealing with unnecessary stocks, we can count two-thirds of the total weight by counting just this index. Learn and teach Elyot. Good luck.
RSI va 3 ngon nen lung linhThe combined indicator of RSI, RSI divergence, and the "3 Sparkling Candles" indicator is used to identify the end of a trend or to catch a reversal.
OC Algo Price LevelsThis indicator plots horizontal lines at price levels ending with specific values you choose (e.g., 00, 20, 40, 60, 66, 80). It’s designed for traders who want to visually mark and monitor “key price endings” that often act as psychological levels or liquidity zones.
Features:
Custom Target Endings: Enter any list of price endings (comma-separated) to watch for.
Dynamic Level Detection: Automatically finds the nearest levels above and below the current price.
Configurable Line Display: Choose line color, thickness, and the number of levels to plot.
Proximity Alerts: Receive alerts when the current price moves within your specified distance from any target level.
Visual Clarity: Lines are drawn directly on the main chart overlay for easy reference.
Use Cases:
Intraday scalping at round numbers and common price endings
Swing trading around psychological support/resistance zones
Liquidity sweep and breakout traders tracking reaction points
How to Use:
Add the indicator to your chart.
Set your desired Target Price Endings (e.g., “00,25,50,75”).
Adjust the Alert Proximity Distance to define how close price must get before alerting.
Create a TradingView alert using the condition "Price Near Target Level".
Note: This indicator works on all timeframes and instruments where price endings are relevant.
Trend & Dynamic S/R (5m Day-Trade Helper)Trend & Dynamic S/R (5m Day-Trade Helper)
Identify market regime, track intraday structure, and plot dynamic support/resistance — all in one tool.
This indicator is built for intraday traders (optimized for the 5-minute chart) who need fast, reliable read-outs of trend direction and key price levels without repainting.
Core features
Trend detection engine – Combines multi-timeframe EMAs, VWAP slope, price structure (HH/HL vs LL/LH), and ADX strength into a single trend score.
Clear regime states – Side panel shows UPTREND, DOWNTREND, or NO TREND, along with current score, ADX value, and nearest support/resistance.
Dynamic support/resistance – Auto-detects confirmed pivots, clusters them within an ATR-scaled range, and tracks the strongest levels as right-extended lines.
Non-repainting logic – All higher-timeframe values are locked to prior bars; pivots only register when confirmed; calculations are done per bar with no future-bar lookahead.
Intraday visual clarity – Bar-tinting optional; EMA and VWAP overlays; panel display can be positioned anywhere on chart.
Adjustable sensitivity – Four presets (Conservative → Turbo) adapt thresholds for different market conditions.
How to use
Apply to a 5-minute chart (works on any TF, but tuned for intraday).
Use the trend panel to align with market regime before entering trades.
Watch dynamic S/R lines for potential reversal zones, breakout targets, or pullback entries.
Combine with your own execution rules and risk management.
Best for: scalpers, momentum traders, and short-term swing traders who want a fast, at-a-glance market read without sifting through multiple indicators.
Z-LevelsThis simple indicator allows you to render price bands easily using a comma-separated list of price ranges as input. Visualize each range as a distinct zone on the chart (using random colors for distinction)
An example use case is if you have a calculation of price bands from your external analysis, and you want to apply these value on TradingView to assist with your trading.
You can use the format
-,-
So for the above code we added.
144.68-147.59,154.99-158.01,....
(There is no calculation or analysis, this script is purely intended to help visualize price bands.)
np finalremember: this is purely for educational/study purposes. always test any strategy thoroughly before considering real trading.