Previous Day High/Low/Close - Static Daily Lines (Custom Colors)previous day high low closing
statick line can be change with tihe time frame 5 to 15
Pine utilities
Custom EMA 9/21/50/200Chart Screenshots: Include a chart screenshot showing the EMAs with different colors and line styles (e.g., EMA 9 dashed, EMA 21 dotted, EMA 50 solid, EMA 200 solid) to demonstrate the visual output.
Backtest Results: If you want to add credibility, you can mention that the indicator is designed for visual analysis but can be integrated into strategies (though no trading logic is included here).
TradingView Guidelines: Ensure compliance with TradingView’s publishing rules (e.g., original content, no misleading claims).
This description is concise yet comprehensive, highlighting the indicator’s features and usability to attract traders on TradingView. Let me know if you need help with additional publishing steps or want to tweak the description further!
Sessions w/ Forward Close (Asian+LSE+NYSE) SASTIndicator which shows the following
1) NY Open And Close
2) Asian Open and Close
3) London Open and Close
Liquidity Sweep Zones + Triangles (No Shading)Shows institutional sweep zones using volume + wick logic. Highlights clean triangle markers and price zones — no background shading
✅ TrendSniper Pro✅ SPNIPER ENTRY – Precision Trend Reversal Signals
The SPNIPER ENTRY is a smart trend-following and reversal indicator designed for traders who want timely entries, clear trend confirmation, and clean visuals.
Key Features:
✅ Triple TEMA Trend Confirmation (21, 50, 200): Ensures you're entering only when all moving averages agree on direction.
🎯 Dip/Top Detection: Uses pivot analysis and ATR proximity to detect ideal pullback entries in the prevailing trend.
📉 Stop Loss & Take Profit Zones: ATR-based dynamic SL/TP levels plotted automatically.
📛 False Signal Filter: Avoids multiple entries by maintaining a position until an opposite signal occurs.
📊 Clean Chart Coloring: Candles turn green for confirmed uptrend and red for downtrend—easy to follow.
🔔 Built-in Alerts: Be notified when conditions align perfectly for a high-probability trade.
👁️ Optional TEMA Display: Toggle visibility of trend components for deeper insight.
How it Works:
A buy signal occurs only when:
All 3 TEMA slopes are positive
Price pulls back near a recent pivot low (dip)
A valid uptrend is in place
A sell signal occurs only when:
All 3 TEMA slopes are negative
Price nears a recent pivot high (top)
A confirmed downtrend is active
This indicator is ideal for swing traders, intraday traders, and scalpers who want precise entries based on structure, slope, and volatility.
Z-Score Volume with CVD ConfirmationZ-Score Volume with CVD Confirmation is a volume-based confluence tool that enhances traditional volume analysis by combining Z-Score volume anomalies with Cumulative Volume Delta (CVD) confirmation. This indicator helps traders identify unusual volume activity that aligns with directional order flow, offering a cleaner signal for potential breakout or reversal scenarios.
🔍 Key Features:
Z-Score Calculation: Measures how extreme current volume is relative to its recent average, highlighting statistically significant surges or drops.
CVD Confirmation: Uses Cumulative Volume Delta candles (open/high/low/close) to assess buying vs. selling pressure in lower timeframes.
Bar Color Logic:
Green: High Z-Score volume confirmed by CVD bullish candle
Red: High Z-Score volume confirmed by CVD bearish candle
Other color bands show progressively strong or weak volume outliers
Real Volume Bar Heights: Volume bars retain true scale while color reflects underlying order flow strength and direction.
💡 Use Cases:
Breakout validation: Confirm price range breaks when volume surge is supported by CVD direction
Fade setups: Detect unsustainable high-volume moves lacking CVD support
Trend continuation: Spot momentum when both Z-Score and CVD align in the direction of the trend
⚙️ How to Use:
Adjust the Z-Score length to define how far back to measure average and deviation.
Select your anchor timeframe (typically 1D) and a lower timeframe for CVD calculations (e.g., 1-minute).
Use color-coded volume bars to assess volume significance and directional flow at a glance.
Add the standard volume indicator to the chart so one can compare the difference between the standard volume indicator and the Z-Score Volume with CVD Confirmation script. Useful at specific price levels and exiting ranges or not.
PC–BC Trap Detector (Strict A+ Setup)TP/SL zones to be drawn as boxes
Multi-timeframe PC filtering
PC volume divergence check
PC–BC backtest system
Macros, Sessions, and Quarters - psyploThis script was developed for my personal trading workflow, where I rely heavily on macro time windows and session-based timing to guide my strategy. I designed this tool to help visualize important time-based zones that are crucial in my trading approach, and I believe other traders might find it useful as well.
Features
Macro Time Window Boxes: Visual representation of price range within a configurable time window around the top of every hour.
Session Ribbon Boxes: Clearly marks the Asia, London, and New York trading sessions, labeled distinctly for better visual separation.
Session Quarters: Each session is automatically divided into four quarters, providing more granular time segmentation within sessions.
Time Zone: All session calculations are based on UTC +8 (Asia/Singapore) timezone.
This tool helps traders:
Identify volatility zones around hourly opens.
Track session-specific market dynamics.
Recognize shifts in momentum or liquidity during each session quarter.
I created this for my own strategies, but it can serve any trader who benefits from time-based market segmentation.
Feel free to adjust the colors and time window settings to suit your preferences!
Apex Edge - RSI Trend LinesThe Apex Edge - RSI Trend Lines indicator is a precision tool that automatically draws real-time trendlines on the RSI oscillator using confirmed pivot highs and lows. These dynamic trendlines track RSI structure in motion, helping you anticipate breakout zones, reversals, and hidden divergences.
Every time a new pivot forms, the indicator automatically re-draws the RSI trendline between the two most recent pivots — giving you an always-current view of momentum structure. You’ll instantly see when RSI begins compressing or expanding, long before price reacts.
Key Features: • Dynamic RSI trendlines drawn from the last 2 pivots
• Auto re-draws in real-time as new pivots form
• Optional "Full Extend" or "Pivot Only" modes
• Slope color-coded: green = support, red = resistance
• Built-in dotted RSI levels (30/70 default)
• Alert conditions for RSI trendline breakout signals
• Ideal for spotting divergence, compression, and early SMC confluence
This is not your average RSI — it’s a fully reactive momentum edge overlay designed to give you clarity, structure, and timing from within the oscillator itself. Perfect for traders using Smart Money Concepts, divergence setups, or algorithmic trend tracking.
⚔️ Built for precision. Built for edge. Built for Apex.
Apex Edge - VantageApex Edge – Vantage
Quarter-Wick Reversal System | Price Action Based | Non-Repainting | Visual Confirmation Tool
Overview:
Apex Edge – Vantage is a precision price action indicator built to assist traders in identifying high-probability reversal entries — not based on indicators, but on how candles behave at their extremes.
This tool implements a clean, repeatable framework that reflects how I personally trade:
Spot a candle that closes with strong directional intent,
Then wait for a controlled pullback into the outer quarter,
And strike — only if price respects that line.
There’s no magic here — just raw, tactical logic visualized clearly on your chart. It's not designed to predict the market — it's built to respond when price offers you Vantage.
Core Logic:
Dot Detection – Final Quarter Close Candles
A green dot prints below a bullish candle if it closes within the top 25% of its wick-to-wick range.
A red dot prints above a bearish candle if it closes within the bottom 25% of its range.
These dots signify candles that made a strong, deliberate move in one direction — where price was pushed to an extreme and held that extreme into the close. These candles often signal institutional intent or momentum imbalance.
Entry Confirmation – Controlled Wick Rebalance
On the very next candle only, price must wick into the prior dot candle's outer quarter — but must not pass beyond it.
For buy entries, the wick must enter the bottom 25% of the previous green dot candle, but not dip below it.
For sell entries, the wick must reach into the top 25% of the red dot candle, but not exceed it.
This wick into the quarter is seen as a controlled rebalancing — a tactical reaction back into the origin zone before potential continuation.
Arrow Printing – Visual Entry Signal
Once the entry criteria are confirmed, an arrow is printed after the candle closes.
This arrow continues to print on each new candle as long as price does not violate the original entry zone — giving visual confirmation that the trade thesis is still valid.
If price breaks above/below the quarter range, the arrow disappears.
This ongoing confirmation is useful for staying in trades, managing risk, or spotting failed setups early.
Automatic Stop Loss Level
A horizontal Stop Loss line is drawn from the extreme wick of the original dot candle.
For buy entries, SL is placed below the green dot candle's low.
For sell entries, SL is placed above the red dot candle's high.
This provides immediate risk context — perfect for traders using limit orders or looking to scale in.
Coding Logic:
This script uses plotshape() and plot() functions for all visual elements.
Dot candles are identified using quarter-range logic via:
pinescript
Copy
Edit
close >= high - (high - low) * 0.25 // for bullish
close <= low + (high - low) * 0.25 // for bearish
Entry validation logic triggers only on the next candle, using:
pinescript
Copy
Edit
low >= quarterLine and low <= high // for buy entries
high <= quarterLine and high >= low // for sell entries
Arrows and SL lines are plotted only on closed candles, ensuring non-repainting behavior.
alertcondition() is used for real-time alerts on valid buy/sell triggers.
How I Personally Use It:
I wait for a dot to print — this shows directional conviction.
On the next candle, I watch for a tap into the outer quarter.
If the wick meets the criteria and the candle closes, I’ll execute manually at the close of that candle.
As long as the arrow remains on the chart, I know the setup hasn’t been invalidated.
I combine this with market structure, session timing, and liquidity context to build confluence around each trade.
Alerts Included:
Buy Entry Alert: When a green arrow prints (entry confirmed)
Sell Entry Alert: When a red arrow prints (entry confirmed)
These fire once per confirmed signal, allowing you to react in real-time or automate if desired.
Who This Is For:
Manual traders who want clean price-based entries
Anyone who uses market structure, SMC, or liquidity concepts
Traders looking to replace indicators with pure candle logic
Discretionary or semi-systematic traders who want visual tools to guide their decisions
Final Word
Apex Edge – Vantage doesn’t predict price — it shows you where price is offering you control.
This is a surgical tool designed to help you act only when the market gives you a measurable edge — and to stay in the trade as long as that edge holds.
If you're ready to stop chasing trades and start striking from a position of Vantage, then this tool belongs on your chart.
MTF Trend Table - Manual InputMTF Trend Table - Manual Input
Description:
This indicator displays a simple and clear multi-timeframe (MTF) trend table in the upper right corner of your chart. You can manually set the current trend direction (Up, Down, or Neutral) for each timeframe: Monthly, Weekly, Daily, 4h, 1h, and 15min. The table shows the status of each timeframe with colored backgrounds—green for Up, red for Down, and gray for Neutral—making it easy to monitor trend alignment across different timeframes at a glance.
Features:
Manual selection of trend direction for each timeframe.
Color-coded status: green (Up), red (Down), gray (Neutral).
Quickly visualize trend alignment across Monthly, Weekly, Daily, 4h, 1h, and 15min.
Table is positioned in the top right corner of the chart for easy reference.
How to use:
Open the indicator settings and select the trend direction for each timeframe based on your own analysis. Use this tool as a visual aid to track and confirm trend bias in your trading system.
NEPALI DASHBOARD NEPALI DASHBORAD - All-In-One Sentiment Dashboard
Overview
The NEPALI DASHBORAD is a comprehensive, all-in-one dashboard designed to give day traders a quick yet powerful overview of market sentiment. Instead of cluttering your chart with dozens of individual indicators, this tool consolidates the signals from 11 different technical indicators into a single, easy-to-read table. It calculates an overall bull/bear sentiment score and provides a trading recommendation based on the confluence of these signals, helping you make more informed decisions at a glance.
The dashboard is fully customizable, allowing you to adjust indicator settings, change the table size, and move it to any corner of your chart.
Key Features
Multi-Indicator Analysis: Gathers data from 11 essential indicators covering trend, momentum, volume, and volatility.
Sentiment Score: Calculates a simple "Bull vs. Bear" score to instantly gauge market sentiment.
Actionable Recommendations: Provides a clear trading recommendation (Strong Buy, Buy, Sell, Strong Sell, Hold) based on the strength of the confluence.
Higher Timeframe (HTF) Context: Includes an HTF trend analysis to ensure your trades align with the bigger picture.
Customizable Dashboard: Easily change the size and position of the dashboard to fit your workspace.
How to Use
Check the Market Sentiment: Look at the "Bull vs. Bear" score first. A high score (e.g., 8 vs. 3) indicates strong confluence in one direction.
Verify the HTF Trend: Ensure your intended trade direction aligns with the higher timeframe trend for better probability. For example, be cautious about taking "SELL" signals if the HTF Trend is strongly "BULL."
Use the Recommendation as a Guide: The "Recommendation" and "Confidence" % give you a summary of the indicator signals. A "STRONG BUY" or "STRONG SELL" means that a significant majority of the indicators are in agreement.
Drill Down into Indicators: Use the individual indicator statuses in the table to understand why the market sentiment is bullish or bearish. For example, you might see that momentum indicators (RSI, Stoch) are bullish, but trend indicators (MA, MACD) are still lagging.
Combine with Your Strategy: This dashboard is a powerful confirmation tool. Use its signals to confirm entries and exits for your existing trading strategy. Do not use it as a standalone signal provider.
Disclaimer
In simple terms: This is a tool for analysis, not a signal to trade. Your money is your responsibility.
This script is for educational and informational purposes only. I am not a financial advisor; I am just a learner sharing my work. The information and tools provided are not, and should not be construed as, financial advice, an offer, or a solicitation to buy or sell any securities.
Trading and investing in financial markets involve substantial risk of loss and is not suitable for every investor. I do not guarantee the accuracy, completeness, or profitability of this script. All trading decisions you make are your own, and you are solely responsible for any resulting profits or losses.
Always conduct your own research and seek advice from a qualified financial advisor before making any investment decisions. By using this script, you agree that I am not liable for any and all losses you may incur.
Ticker Industry and Competitor LookupThe Ticker Industry and Competitor Lookup is a comprehensive indicator that provides instant access to industry classification data and competitive intelligence for any ticker symbol. Built using the advanced SIC_TICKER_DATA library, this tool delivers professional-grade sector analysis with enterprise-level performance. It's a simple yet great tool for competitor research, sector studies, portfolio diversification, and investment decision-making.
This indicator is a simple tool built on based on our SIC_TICKER_DATA library to demonstrate the use cases of the library. In this case, you enter a ticker and it displays the sector, SIC or Standard Industrial Classification which is a SEC identifier, and more importantly, the competitors that are listed to be in the exact same SIC by SEC.
There isn't much to say about the indicator itself but we strongly recommend checking out the SIC_TICKER_DATA library we just published to learn more about the types of indicators you can build using it.
Profitable Loser Model [MMT]Profitable Loser Model
Overview
The Profitable Loser Model is a powerful PineScript v6 indicator designed to enhance your trading by visualizing key price levels, session open zones, Fibonacci retracements, and premium/discount zones. This overlay indicator provides traders with a customizable toolkit to analyze market structure across any timeframe, making it ideal for intraday and swing trading strategies.
Features
Open Zone Visualization
- Plots a box based on the open and close of the first candle in a user-defined timeframe (default: 5-minute).
- Customizable box color, projection offset, and label size (Tiny, Small, Normal, Large).
- Displays a timeframe label (e.g., "5m Open Zone") for quick reference, toggleable on/off.
Session Open Lines
- Optionally draws horizontal lines at key session opens (8:30 AM, 9:30 AM, 1:30 PM, Midnight, New York time).
- Customize line color, style (Solid, Dashed, Dotted), width, and label size for each session.
- Perfect for identifying critical intraday price levels.
Premium and Discount Zones
- Highlights premium (above midpoint) and discount (below midpoint) zones based on session high/low.
- Toggleable with customizable colors and projection offsets.
- Helps traders spot overbought/oversold areas for potential mean-reversion trades.
Fibonacci Retracement Levels
- Plots user-defined Fibonacci levels (default: 0.23, 0.35, 0.5, 0.62, 0.705, 0.79, 0.886, 1, 1.1).
- Customizable line style, width, color, and labels (showing percentage and/or price).
- Dynamically adjusts based on price movement relative to the open zone.
Take Profit (TP) and Stop Loss (SL) Levels
- Highlights TP (default: 0.23) and SL (default: 1.1) Fibonacci levels with distinct colors.
- Fully customizable to align with your risk-reward strategy.
How It Works
- Session Detection : Resets daily (or per user-defined timeframe) to capture the first candle's open, high, low, and close.
- Open Zone : Draws a box between the open and close, extended forward by the projection offset.
- Session Lines : Plots lines at specified session opens with customizable styles and labels.
- Fibonacci Retracement : Adjusts levels dynamically based on session high/low and price action.
- Premium/Discount Zones : Calculated from the session range midpoint, updated in real-time.
Settings
- Open Zone :
- Timeframe (default: 5m), Calculate Timeframe (default: Daily).
- Toggle label, adjust size, box color, and projection offset.
- Session Open Lines :
- Enable/disable lines for 8:30 AM, 9:30 AM, 1:30 PM, Midnight.
- Customize color, style, width, label size, and vertical offset.
- Premium/Discount Zones :
- Toggle visibility, set colors, and adjust projection offset.
- Fibonacci Retracement :
- Toggle visibility, set custom levels, line style, width, color, and label options.
- Adjust projection offset.
- TP/SL :
- Set TP/SL Fibonacci levels and colors.
Use Cases
- Intraday Trading : Use session open lines and open zones to trade key market hours.
- Swing Trading : Leverage Fibonacci levels for potential reversal or continuation zones.
- Risk Management : Set precise TP/SL levels based on Fibonacci retracements.
- Market Structure : Identify overbought/oversold zones with premium/discount areas.
Notes
- Optimized with `dynamic_requests = true` for efficient real-time data handling.
- Visual elements (boxes, lines, labels) are cleaned up at the start of each new session.
- Session lines use New York time (`America/New_York`) for alignment with major markets.
AshishBediSPLThis tool, called "AshishBediSPL," is a special indicator for traders using TradingView. Its main purpose is to help you track and trade the combined price of a Call and a Put option at the same strike price, a strategy known as a Short Straddle.
What It Does:
Tracks Straddle Prices: You can select a specific Indian index or a stock like Reliance, choose a strike price and expiry date, and the indicator will show you the combined price of that Call and Put option as a single line on your chart.
Calculates Everything for You: You don't need to manually add the prices. The indicator automatically does the math to show you the total premium of the straddle.
Adds Trading Signals: You can turn on various popular trading tools (like VWAP, EMA, Supertrend, etc.). The indicator will then use these tools to automatically show "Buy" and "Sell" signals directly on the chart, helping you decide when to enter or exit a trade.
Customizable: You can choose which trading tools you want to use and adjust their settings to fit your personal trading style.
What is it Used For?
This indicator is specifically for traders who:
Trade a Short Straddle: This is a neutral options strategy where you expect the market to stay in a small range. The indicator helps you monitor the total premium you've collected.
Want to Simplify Analysis: Instead of looking at a Call chart and a Put chart separately, this tool combines them into one easy-to-read chart.
Use Technical Analysis: It helps you apply standard technical indicators directly to the combined premium price, giving you clear signals for your straddle trades.
Normalized Fibonacci Retracement (MTF/LOG)A question: Instead of creating indicators that constantly plot Fibonacci Retracement levels in a visually overwhelming way, why don't we redefine them on a different scale? 🤨
Overview
The Normalized Fibonacci Retracement indicator converts price data to a 0-100 scale based on the selected timeframe's high-low range, displaying normalized candlesticks alongside standard Fibonacci levels (23.6%, 38.2%, 50%, 61.8%, 78.6%). This normalization reveals patterns that may be hidden in absolute price charts and allows consistent analysis across different instruments.
Originality
By normalizing prices to percentages, this indicator enables pattern recognition independent of absolute price levels. The same formation at $10-$20 and $1000-$2000 appears identical on the normalized scale, helping traders identify recurring structures across various assets and timeframes.
Concepts
The indicator uses a simple formula to transform price data into percentages. This creates a bounded scale where patterns become comparable regardless of the underlying asset's price range. The normalized view often reveals symmetries and relationships not visible in traditional price charts.
Mechanics
The system tracks highs and lows within the selected timeframe as anchor points. When a new period begins, fresh boundaries are established and prices recalculated. Trend direction is determined by timing of extremes. Linear scaling uses direct percentage calculation, while logarithmic scaling applies exponential interpolation for assets with large percentage moves.
Functions
Timeframe Selection: Higher timeframe analysis on any chart resolution
Normalized Display: OHLC data converted to 0-100 percentage scale
Fibonacci Levels: Standard retracement levels plotted automatically
Scaling Options: Linear or logarithmic calculation methods
Pattern Recognition: Reveals formations hidden in absolute price charts
Moving Average: Optional 20-period SMA overlay
Notes
Ensure chart data covers the full selected timeframe for accurate calculations. Use logarithmic scaling for volatile assets with large percentage moves. The normalized scale is effective at revealing patterns and structures that remain consistent across different price ranges, making it particularly useful for comparative analysis and pattern-based trading strategies.
I hope it helps everyone. Do not forget to manage your risk. And trade as safely as possible. Best of luck!
SMA+Volume Buy AlertsOverview
This lightweight indicator combines trend and momentum filters to pinpoint high-conviction, oversold entries on ETFs or stocks. It plots your choice of two SMAs (default 100- & 200-day) and a 20-day volume moving average, then only flags a “BUY” when price crosses below an SMA and daily volume exceeds its average.
Use it to capture institutional-strength reversals without alert noise, and receive a single, clear signal exactly when market participants step in.
Key Features
Dual SMA Trend Lines (100/200-day by default)
Volume Filter (20-day avg): only overshoots on above-average volume signal
One-Shot Buy Markers: triangles appear beneath the precise bar that crosses under your SMA on high volume
Alert Conditions: “Buy 100 SMA + High Vol” and “Buy 200 SMA + High Vol” ready for desktop, mobile, or webhooks
Show/Hide Toggle for your SMA lines
100% Pine v6, optimized for speed and compatibility
Inputs
Short SMA Length (default 100)
Long SMA Length (default 200)
Volume MA Length (default 20)
Show SMA Lines toggle
How to Use
Add to Chart: Copy & paste this script into TradingView’s Pine editor, then Save & Add to Chart.
Configure Inputs: Adjust SMA and volume-MA lengths to your trading style.
Create Alerts:
Open “Create Alert,” select the “SMA-VOL-BUY” indicator.
Choose “Buy 100 SMA + High Vol” or “Buy 200 SMA + High Vol.”
Set trigger to “Once Per Bar Close.”
Trade with Confidence: Only the most significant, high-volume overshoots get flagged—no spam, just high-quality setups.
Best Practices
Frame Alignment: Combine daily signals with a weekly SMA trend filter for multi-timeframe confirmation.
Volume Context: Ensure that “high” volume truly represents above-average activity in your chosen security.
Risk Management: Use the signal bar’s low as your stop, and size positions to match your risk tolerance.
Review & Iterate: Tweak SMA or volume lengths to suit fast-moving sectors (e.g. 50/100 SMAs) or slower large-caps.
SMA Undervalue Buy AlertsSMA Undervalue Buy Alerts
Free, open-source Pine v6 indicator for spotting undervalued ETF/stock entries
This simple yet powerful indicator plots two user-configurable Simple Moving Averages (default 100- and 200-day) on your chart and automatically marks any bar where price closes below those SMAs with an on-chart “BUY” triangle. It’s ideal for ETF traders who want a systematic, price-action-based signal whenever a major trend filter is breached to the downside—often a sign of short-term overselling in an otherwise up-trending market.
Key Features
Dual SMA Lines (default 100/200): Smooth out noise and highlight medium- and long-term trend backdrops
Automatic Buy Markers: Triangles appear beneath any candle that closes under your chosen SMA, so you never miss an overshoot
Built-in Alert Conditions: Four alert hooks—“Buy 100 SMA” and “Buy 200 SMA”—let you receive desktop, mobile or webhook notifications the moment a close beneath your SMAs occurs
Show/Hide Toggle: Quickly turn the SMA lines on or off without removing the script
100% Pine v6: Fast, lightweight, and compatible with all TradingView chart types
How to Use
Add to Chart: Copy & paste the Pine v6 code into TradingView’s Pine editor, then Save & Add to Chart.
Configure Inputs: Adjust “Short SMA Length” and “Long SMA Length” to your preferred look-back periods (e.g. 50/200, 20/50, etc.).
Create Alerts: In the Create Alert dialog, choose your indicator, then select “Buy 100 SMA” or “Buy 200 SMA” under Series. Set it to “Once Per Bar Close” for reliable signals.
Trade Management: Use the buy markers as entry triggers or confirm with volume, RSI, or other confluence tools before committing.
Best Practices
Trend Confirmation: Combine with a higher-TF trend filter (e.g. 200 SMA on weekly) to stay aligned with the broader market
Volume Check: Look for above-average volume on overshoot candles to validate institutional interest
Risk Control: Always define your stop (e.g. below the low of the signal bar) and position-size responsibly
Sector SPDR ETFsThis script automatically identifies the SPDR sector ETF that corresponds to the currently viewed US stock ticker. It maps over 500 US-listed stocks to their respective SPDR sector ETFs — such as XLK (Technology), XLF (Financials), XLY (Consumer Discretionary), and others — based on pre-defined symbol lists.
When applied to a chart, the script displays a label below the last candle showing the SPDR sector symbol (e.g., "XLE" for Energy stocks like XOM). This allows traders and investors to quickly understand the sector classification of any stock they analyze.
Key Features:
Maps tickers to SPDR sector ETFs: XLC, XLY, XLP, XLE, XLF, XLV, XLI, XLB, XLRE, XLK, and XLU.
Displays the corresponding sector label on the chart.
Helpful for sector rotation strategies, macro analysis, or thematic investing.
Scalping Candle [Crak x MMT]The Scalping Candle is a TradingView indicator designed for scalping strategies, identifying potential bullish and bearish engulfing patterns on price charts. It overlays directly on the chart and marks specific candle patterns with visual signals, helping traders spot short-term trading opportunities. The indicator includes a customizable bias filter to focus on bullish, bearish, or neutral market conditions.
Features
Overlay Indicator : Displays bullish and bearish signals directly on the price chart.
Bias Filter : Allows users to select a market bias ('Bullish', 'Bearish', or 'Neutral') to filter signals based on their trading preference.
Visual Signals : Plots green upward triangles below bullish candles and red downward triangles above bearish candles.
Alerts : Generates alerts for bullish and bearish engulfing patterns, enabling timely notifications for trade setups.
How It Works
The indicator analyzes the relationship between the current and previous candles to detect engulfing patterns:
Bullish Engulfing : Triggered when the current candle's low is at or below the previous candle's low, and its close is at or above the previous candle's midpoint. This signal is displayed only if the bias filter is set to 'Neutral' or 'Bullish'.
Bearish Engulfing : Triggered when the current candle's high is at or above the previous candle's high, and its close is at or below the previous candle's midpoint. This signal is displayed only if the bias filter is set to 'Neutral' or 'Bearish'.
The previous candle's midpoint is calculated as the average of its high and low prices.
Usage
- Add to Chart : Apply the indicator to any TradingView chart.
- Configure Bias Filter :
Neutral : Displays both bullish and bearish signals.
Bullish : Displays only bullish signals.
Bearish : Displays only bearish signals.
- Interpret Signals :
Green upward triangle below a candle indicates a potential bullish reversal.
Red downward triangle above a candle indicates a potential bearish reversal.
- Set Alerts : Use the built-in alert conditions to receive notifications when bullish or bearish engulfing patterns are detected.
Settings
Bias Filter : Choose between 'Neutral', 'Bullish', or 'Bearish' to control which signals are displayed.
Shape Size : Signals are plotted as small triangles for minimal chart clutter.
Alert Conditions : Enable alerts for 'Bullish Engulfing Detected' or 'Bearish Engulfing Detected' to stay informed of new signals.
Ideal Use Case
This indicator is tailored for scalpers and short-term traders looking to capitalize on quick price movements driven by engulfing candle patterns. It works best on 15-minute chart and can be combined with other technical tools for confirmation.
NQ Position Size CalculatorNQ Position Size Line Calculator is designed specifically for Nasdaq 100 futures (NQ) and micro futures (MNQ) traders who want to maintain disciplined risk management. This visual tool eliminates the guesswork from position sizing by displaying distance lines and contract calculations directly on your chart.
The indicator creates horizontal lines at 10-tick intervals from your stop loss level, showing you exactly how many contracts to trade at each distance to maintain your predetermined risk amount. Whether you're trading regular NQ contracts or micro MNQ contracts, this calculator ensures you never risk more than intended while providing instant visual feedback for optimal position sizing decisions.
How to Use the Indicator
Step 1: Configure Your Settings
Stop Loss Price: Enter your exact stop loss level (e.g., 20000.00)
Risk Amount ($): Set your maximum dollar risk per trade (e.g., $500)
Contract Type: Choose between:
NQ (Regular): $5 per tick - for larger accounts
MNQ (Micro): $0.50 per tick - for smaller accounts or conservative sizing
Display Options:
Max Lines: Number of distance lines to show (default: 30)
Show Labels: Toggle tick distance and contract count labels
Line Color: Customize the color of distance lines
Label Size: Choose tiny, small, or normal label sizes
Step 2: Read the Visual Display
Once configured, the indicator displays:
Stop Loss Line:
Thick yellow line marking your exact stop loss level
Yellow label showing the stop loss price
Distance Lines:
Dashed red lines at 10-tick intervals above and below your stop loss
Lines appear on both sides for long and short position planning
Labels (if enabled):
Green labels (right side): For long positions above your stop loss
Red labels (left side): For short positions below your stop loss
Format: "20T 5x" means 20 ticks distance, 5 contracts maximum
Step 3: Use the Information Tables
The indicator provides two helpful tables:
Position Size Table (top-right):
Shows common tick distances (10, 20, 40, 80, 160 ticks)
Displays risk per contract at each distance
Contract count for your specified risk amount
Total risk with rounded contract numbers
Settings Table (bottom-right):
Confirms your current risk amount
Shows selected contract type
Displays current settings for quick reference
Step 4: Apply to Your Trading
For Long Positions:
Look at the green labels on the right side of your chart
Find your desired entry level
Read the label to see: distance in ticks and maximum contracts
Example: "30T 8x" = 30 ticks from stop, buy 8 contracts maximum
For Short Positions:
Look at the red labels on the left side of your chart
Find your desired entry level
Read the label for tick distance and contract count
Example: "40T 6x" = 40 ticks from stop, sell 6 contracts maximum
Step 5: Trading Execution
Before Entering a Trade:
Identify your stop loss level and input it into the indicator
Choose your entry point by looking at the distance lines
Note the contract count from the corresponding label
Verify the risk amount matches your trading plan
Execute your trade with the calculated position size
Risk Management Features:
Contract rounding: All position sizes are rounded down (never up) to ensure you don't exceed your risk limit
Zero position filtering: Lines only show where position size is at least 1 contract
Dual-sided display: Plan both long and short opportunities simultaneously
Rolling Log Returns [BackQuant]Rolling Log Returns
The Rolling Log Returns indicator is a versatile tool designed to help traders, quants, and data-driven analysts evaluate the dynamics of price changes using logarithmic return analysis. Widely adopted in quantitative finance, log returns offer several mathematical and statistical advantages over simple returns, making them ideal for backtesting, portfolio optimization, volatility modeling, and risk management.
What Are Log Returns?
In quantitative finance, logarithmic returns are defined as:
ln(Pₜ / Pₜ₋₁)
or for rolling periods:
ln(Pₜ / Pₜ₋ₙ)
where P represents price and n is the rolling lookback window.
Log returns are preferred because:
They are time additive : returns over multiple periods can be summed.
They allow for easier statistical modeling , especially when assuming normally distributed returns.
They behave symmetrically for gains and losses, unlike arithmetic returns.
They normalize percentage changes, making cross-asset or cross-timeframe comparisons more consistent.
Indicator Overview
The Rolling Log Returns indicator computes log returns either on a standard (1-period) basis or using a rolling lookback period , allowing users to adapt it to short-term trading or long-term trend analysis.
It also supports a comparison series , enabling traders to compare the return structure of the main charted asset to another instrument (e.g., SPY, BTC, etc.).
Core Features
✅ Return Modes :
Normal Log Returns : Measures ln(price / price ), ideal for day-to-day return analysis.
Rolling Log Returns : Measures ln(price / price ), highlighting price drift over longer horizons.
✅ Comparison Support :
Compare log returns of the primary instrument to another symbol (like an index or ETF).
Useful for relative performance and market regime analysis .
✅ Moving Averages of Returns :
Smooth noisy return series with customizable MA types: SMA, EMA, WMA, RMA, and Linear Regression.
Applicable to both primary and comparison series.
✅ Conditional Coloring :
Returns > 0 are colored green ; returns < 0 are red .
Comparison series gets its own unique color scheme.
✅ Extreme Return Detection :
Highlight unusually large price moves using upper/lower thresholds.
Visually flags abnormal volatility events such as earnings surprises or macroeconomic shocks.
Quantitative Use Cases
🔍 Return Distribution Analysis :
Gain insight into the statistical properties of asset returns (e.g., skewness, kurtosis, tail behavior).
📉 Risk Management :
Use historical return outliers to define drawdown expectations, stress tests, or VaR simulations.
🔁 Strategy Backtesting :
Apply rolling log returns to momentum or mean-reversion models where compounding and consistent scaling matter.
📊 Market Regime Detection :
Identify periods of consistent overperformance/underperformance relative to a benchmark asset.
📈 Signal Engineering :
Incorporate return deltas, moving average crossover of returns, or threshold-based triggers into machine learning pipelines or rule-based systems.
Recommended Settings
Use Normal mode for high-frequency trading signals.
Use Rolling mode for swing or trend-following strategies.
Compare vs. a broad market index (e.g., SPY or QQQ ) to extract relative strength insights.
Set upper and lower thresholds around ±5% for spotting major volatility days.
Conclusion
The Rolling Log Returns indicator transforms raw price action into a statistically sound return series—equipping traders with a professional-grade lens into market behavior. Whether you're conducting exploratory data analysis, building factor models, or visually scanning for outliers, this indicator integrates seamlessly into a modern quant's toolbox.
Live Price Watermark (Flashing Overlay)Displays the current price as a large, centered watermark directly on your chart. The text color updates dynamically:
- Green when price rises
- Red when price falls
- Translucent black when unchanged
Gold DynamicThis is a custom-made TradingView indicator designed to visualize "sequential price levels" based on a user-defined step value, dynamically centered around the current gold price. It draws horizontal lines at multiples of a chosen step value (e.g., 7) both above and below the current price.
Key Features:
Dynamic Price Levels: Lines are calculated relative to the live price, providing relevant support/resistance or structural levels for the current market context.
Customizable Step Value: Easily adjust the Sequence Step Value (e.g., 7, 10, 14) from the indicator settings to align with your trading theory.
Adjustable Line Count: Control the Number of Lines ABOVE Current Price and Number of Lines BELOW Current Price to show as many or as few levels as desired.
Extended Lines: Horizontal lines extend indefinitely to both the left (historical data) and right (future projection) for comprehensive visualization.
Clear Price Labels: Each line displays its exact price value, positioned at the far right of the chart for quick reference.
Customizable Appearance: Modify line color, width, and style (solid, dotted, dashed) to suit your charting preferences.
Exact Values: All displayed price labels are rounded to whole numbers for clear, precise visualization without decimal values.
This indicator is ideal for traders looking to apply a fixed-step price theory to their gold analysis.