Math by Thomas - SMC OB + FVG📄 Description
This script is designed for traders following the Smart Money Concepts (SMC) methodology. It automatically detects:
✅ Bullish and Bearish Order Blocks (OBs) based on structural breakouts, displacement, and volume conditions.
✅ Fair Value Gaps (FVGs) using a 3-candle price imbalance model.
🔄 Both OBs and FVGs clean up dynamically when invalidated by price action.
Built with institutional logic, this tool helps identify areas of interest for potential reversals, liquidity grabs, or mitigation plays.
⚙️ How It Works
🔷 Order Blocks (OB)
A Bullish OB is marked after a Break of Structure (BOS) to the upside.
A Bearish OB is marked after BOS to the downside.
Filters like displacement candle and volume spike can be toggled in settings.
Boxes are drawn from the opposing candle in the move, and will disappear once broken or expired.
🟥 Fair Value Gaps (FVG)
FVGs are detected when the middle candle leaves a price imbalance between the first and third candle.
Zones are marked with transparent boxes.
Labels (FVG) appear only once every 20 bars to reduce clutter.
Gaps are removed only after a full candle closes through the zone (conservative logic).
🛠️ User Settings
Choose volume multiplier and ATR period for OB displacement logic.
Set box extension, label transparency, and cleanup behavior.
Full control over colors and midline display.
📈 How to Use
Apply the indicator to any chart (works best on indices, forex, crypto).
Use OBs as points of interest for potential reaction zones or mitigation setups.
Use FVGs to identify imbalances that may attract price.
Watch for confluence between OBs and FVGs for high-probability entries.
📚 Best Practice
Use on 15m–1h timeframe for clean structure.
Align with higher TF bias for direction.
Combine with liquidity sweeps, EQH/EQL, or breaker blocks for refinement.
Educational
Zigzag Simple [SCL]🟩 OVERVIEW
Draws zigzag lines from pivot Highs to pivot Lows. You can choose between three different ways of calculating pivots:
• True Highs and Lows
• Williams pivots
• Oscillator pivots
🟩 HOW TO USE
This indicator can be used to understand market structure, which is arguably the primary thing you need to be aware of when trading. The zigzag by itself does not display a market structure bias, nor any information about prices of pivots, HH and HL labels, or anything like that. Nevertheless, a simple zigzag is perhaps the easiest and most intuitive way to understand what price is doing.
Choose a pivot style that you like, customise the colours and line style, and enjoy!
🟩 PIVOT TYPES EXPLAINED
True Highs and Lows
This is not an invention of mine (all credit to my humble mentor), but I haven't seen anyone else code them up. A true High is a close below the low of the candle with the highest high. A true Low is a close above the high of a candle with the lowest low. These are solid, price action-based pivots that can sometimes confirm quickly.
Williams pivots
This is how most people calculate pivots. They're simply the highest high for x bars back and x bars forwards. They're the vanilla of pivots IMO: serviceable but not very interesting. They're very convenient to code because there are built-in Pine functions for them: ta.pivothigh and ta.pivotlow . They confirm a predictable number of bars after they happen, which is great for coding but also makes the trader wait for confirmation.
Oscillator pivots
This is a completely different concept, which uses momentum in order to define pivots. For example, when you get a rise in momentum and momentum then drops a configurable amount, it confirms a pivot high, and vice versa for a pivot low. I don't know if anyone else does it –- although some indicators do mark pivots in momentum itself, and plenty do divergences, I wasn't able to find one that specifically marked *pivots in price* because of pivots in momentum 🤷♂️
Anyway, while this approach needs a whole investigation on its own, here we simply plot some pivots in a smoothed RSI. This indicator doesn't plot the actual momentum values -- for a more visual understanding of how this works, refer to the examples in the OscillatorPivots library.
🟩 UNIQUE ADVANTAGES
In contrast to other zigzag indicators available, this one lets you choose between the standard and some more unique methods of generating the zigzags. Additionally, because it's based on libraries, it is relatively easy for programmers to use as a basis for experimentation.
🟩 GEEK STUFF
Although there is considerable practical use for pivot-based zigzags in trading, this script is primarily a demonstration in coding -- specifically the power of libraries!
Most of the script consists of setup, especially defining inputs. The final section sacrifices some readability for conciseness, simply to emphasise how little code you need when the heavy lifting is done by libraries .
The actual calculations and drawing are achieved in just 8 lines.
The equivalent code in the libraries is ~250 lines long.
All libraries used are my own, public and open-source:
• MarketStructure
• DrawZigZag
• OscillatorPivots
Math by Thomas SMC Swing Range + Premium/Discount ZonesDescription:
"Math by Thomas – SMC Swing Range + Premium/Discount Zones" is a Smart Money Concepts (SMC) based indicator designed to help traders visually understand market structure and value zones.
This tool automatically detects and marks:
🔺 Recent Swing Highs and Lows
🟧 Midpoint Line between swing high and low
🟥🟩 Premium/Discount Zones for value-based entries
🔤 HH, HL, LH, LL Labels to identify trend structure
🔁 BoS (Break of Structure) and CHoCH (Change of Character) confirmations
Built with Pine Script v6, this indicator is optimized for both intraday and positional traders who rely on structure-based decision-making.
🛠️ How to Use:
Apply to any chart – Works on all timeframes and instruments.
Swing High/Low Detection:
Uses pivot logic with adjustable strength to find recent key turning points.
Displays shaded horizontal boxes for visual clarity.
Midpoint Line:
Automatically drawn between the last high and low.
Acts as the fair value level for identifying overbought/oversold zones.
Premium/Discount Zones:
Above midpoint = Premium (consider shorting).
Below midpoint = Discount (consider buying).
Structure Labels:
HH (Higher High), HL (Higher Low), LH (Lower High), LL (Lower Low).
Color-coded to reflect bullish or bearish trends.
BoS & CHoCH:
Structural breaks are labeled automatically to signal possible trend continuation or reversal.
⚙️ Settings:
🎯 Pivot Strength – Adjusts how far back/forward candles must confirm a swing.
✅ Toggle visibility of:
Swing Lines
Labels
BoS / CHoCH
Premium / Discount zones
🎨 Customize colors for each visual component.
🧠 Best Practices:
Use in combination with Order Blocks, Fair Value Gaps, or Volume Imbalances.
Ideal for traders applying Smart Money Concepts (SMC) with a structure-first mindset.
Intraday Volume by Saurabh Maggoinspired by volume indicator by nitin
Key Features
Dynamic Volume Visualization: Features thicker volume bars with color-coded insights—grey for normal volume (0.5x-1.5x baseline), orange for low volume (<0.5x), blue for Intraday Pocket Pivots (IPP), green for high up volume, and red for high down volume.
Snort Signals: Identifies strong moves with green Bull Snorts (below bars) and red Bear Snorts (above bars), triggered by volume exceeding 2.0x the baseline with significant price action.
Highest/Lowest Volume Markers: Blue squares mark the highest volume bar, and a single orange square marks the first lowest volume bar, aiding trend identification.
Enhanced Table Metrics: A 2x3 table displays Trend Strength (TS, green >100%, red <100%), Buy/Sell Signal (BS, green "Buy", red "Sell", grey "Neutral"), and Net Pressure (NP, green >0%, red <0%), offering a comprehensive view of volume and price pressure, reset daily at 9:15 AM IST.
Relative Strength vs VNINDEX (63d & 5d) – by [Linh]Relative Strength vs VNINDEX 3 months and 1 week
This indicator / pine screener compare/scan stocks outperform the VNINDEX for the last 3 months and the last 1 week.
Technical Strength Index (TSI)📘 TSI with Dynamic Bands – Technical Strength Index
The TSI with Dynamic Bands is a multi-factor indicator designed to measure the statistical strength and structure of a trend. It combines several quantitative metrics into a single, normalized score between 0 and 1, allowing traders to assess the technical quality of market moves and detect overbought/oversold conditions with adaptive precision.
🧠 Core Components
This indicator draws from the StatMetrics library, blending:
📈 Trend Persistence: via the Hurst exponent, indicating whether price action is mean-reverting or trending.
📉 Risk-Adjusted Volatility: via the inverted , rewarding smoother, less erratic price movement.
🚀 Momentum Strength: using a combination of directional momentum and Z-score–normalized returns.
These components are normalized and averaged into the TSI line.
🎯 Features
TSI Line: Composite score of trend quality (0 = weak/noise, 1 = strong/structured).
Dynamic Bands: Mean ± 1 standard deviation envelopes provide adaptive context.
Overbought/Oversold Detection: Based on a rolling quantile (e.g. 90th/10th percentile of TSI history).
Signal Strength Bar (optional): Measures how statistically extreme the current TSI value is, helping validate confidence in trade setups.
Dynamic Color Cues: Background and bar gradients help visually identify statistically significant zones.
📈 How to Use
Look for overbought (red background) or oversold (green background) conditions as potential reversal zones.
Confirm trend strength with the optional signal strength bar — stronger values suggest higher signal confidence.
Use the TSI line and context bands to filter out noisy ranges and focus on structured price moves.
⚙️ Inputs
Lookback Period: Controls the smoothing and window size for statistical calculations.
Overbought/Oversold Quantiles: Adjust the thresholds for signal zones.
Plot Signal Strength: Enable or disable the signal confidence bar.
Overlay Signal Strength: Show signal strength in the same panel (compact) or not (cleaner TSI-only view).
🛠 Example Use Cases
Mean reversion traders identifying reversal zones with statistical backing
Momentum/Trend traders confirming structure before entries
Quantitative dashboards or multi-asset screening tools
⚠️ Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument.
This AI is not a financial advisor; please consult your financial advisor for personalized advice.
GeeksDoByte/Rayen Kamta ORB Clean
This script is an advanced, all-in-one technical analysis tool designed primarily for intraday traders who use the Opening Range Breakout (ORB) strategy. Its main purpose is to automatically identify the key high and low levels established at the market open, provide clear trading signals based on breakouts, and keep the chart exceptionally clean by focusing only on the current trading day's action.
Here is a breakdown of what it does:
Core Functionality
Customizable Opening Range Breakout (ORB)
The script automatically calculates and draws the high and low of the market's opening period.
You can choose a standard period (like the first 5, 15, or 30 minutes) or define a completely custom time session (e.g., "0930-1030") in the settings.
Breakout Signals with Volume Confirmation
When the price closes above the ORB High or below the ORB Low, a distinct triangle arrow appears, signaling a potential trade entry.
To filter out weak signals or "fakeouts," these breakout signals can be qualified by volume. You can require the volume on the breakout candle to be a certain multiple (e.g., 1.5x) of the recent average volume, indicating strong conviction behind the move.
RSI Momentum Signals
A built-in Relative Strength Index (RSI) provides additional momentum context.
The script generates its own unique circle-shaped signals when the RSI crosses your defined upper or lower thresholds, helping to identify overbought or oversold conditions that might support or contradict a breakout trade.
Automatic Profit Targets
When the opening range is established, the script automatically projects a 1:1 risk/reward profit target.
It calculates the height of the opening range and projects that distance from the high (for a long target) and from the low (for a short target).
Key UI & UX Features (User Interface & Experience)
"Current Day Only" by Default
This is the script's most important feature. To keep your chart clean and prevent "indicator clutter," all drawings (lines, zones, targets, signals) are automatically cleared at the start of each new trading day. This ensures you are only ever looking at today's relevant levels.
Optional Historical View
If you need to analyze past performance or see how the indicator behaved on previous days, there is a simple checkbox in the settings ("Show Historical Drawings") to toggle the visibility of all past signals.
Enhanced Visuals
ORB Zone: The opening range itself is drawn as a distinct, shaded gray box.
Extended Lines: Dashed lines for the high (green) and low (red) extend from this zone across your screen for the rest of the day.
Clean Targets: Profit targets are not messy plots; they are clean, dotted horizontal lines with a "T1" label, making them easy to see without cluttering price action.
Modern Info Panel
A professional, easy-to-read panel in the bottom-right corner provides critical data at a glance:
ORB High & Low: The exact price levels.
Range Size: The size of the opening range in both points (e.g., $1.50) and as a percentage (e.g., 0.75%).
Live Status: A dynamic field that tells you if the current price is in a "Breakout Up," "Breakout Down," or still "Inside Range."
How to Use & Configure
All features can be turned on or off in the indicator's settings menu (the gear icon).
The settings are organized into logical groups like "ORB," "Confirmation & Signals," and "RSI" for easy navigation.
Every setting includes a tooltip explaining what it does.
Alerts
You can set up proactive alerts for key events so you don't have to watch the chart all day. Alerts can be created for:
ORB Established: Notifies you when the day's range is set.
ORB Confirmed Breakout Up/Down: Notifies you when a volume-confirmed breakout occurs.
RSI Buy/Sell Signal: Notifies you when an RSI momentum signal triggers.
In summary, this script consolidates multiple essential trading concepts into a single, clean, and highly configurable indicator, perfect for traders looking to systematize their approach to opening range strategies.
Dual SMA Crossover StrategyDual SMA Crossover Strategy with Advanced Risk Management
This Pine Script strategy utilizes a Dual Simple Moving Average (SMA) Crossover system for identifying trend changes, enhanced with comprehensive money and risk management features.
Strategy Logic
The core of the strategy is based on the interaction of two SMAs: a Fast SMA (default 24 periods) and a Slow SMA (default 48 periods).
Long Entry: Triggered when the Fast SMA crosses above the Slow SMA.
Short Entry: Triggered when the Fast SMA crosses below the Slow SMA.
Exit: Positions are closed when an opposite crossover signal occurs.
All trading decisions are made on the close of the candle to prevent any look-ahead bias, ensuring realistic backtest results.
Key Risk Management Features
Money Management:
Risk Per Trade (%): Defines the maximum percentage of account equity to risk on any single trade (default 2.0%). Position sizing is automatically calculated to ensure this risk limit is not exceeded when the Stop Loss is hit.
Stop Loss (SL):
A fixed Stop Loss (%) (default 0.8%) from the entry price is set immediately upon trade entry to limit potential losses.
Take Profit (TP):
A Risk-Reward Ratio (default 2.0) is used to calculate the Take Profit target. For instance, a 2.0 RRR with a 0.8% SL means a 1.6% TP target.
Advanced Trailing Stop Loss (TSL):
Trailing Stop Start (%): The TSL only activates once the trade reaches a predefined profit percentage (default 1.0%).
Trailing Stop Trail (%): Once activated, the TSL moves to lock in profits by trailing the highest (for long) or lowest (for short) price by a specified percentage (default 0.5%). This ensures that the TSL level never falls below the initial Stop Loss, providing continuous risk protection while allowing for further profit accumulation.
This strategy provides a robust framework for trend-following with built-in risk controls, aiming to protect capital and manage potential gains effectively.
Pionex Signal Bot (Single/Multi Position)Guide: Integrating Your TradingView Strategy with a Signal Bot
This guide provides step-by-step instructions for connecting a TradingView strategy script with a compatible signal bot platform for automated execution, such as Pionex.
This script is based on DCA strategy execution, with the capability of customizable signal indicators by modifying the script section for modularity with minimal adjustments to adapt other source code. The default indicator is the moving average.
You will need an account on a compatible bot execution platform to execute the trades.
You will need a TradingView account with at least an Essential subscription for Alert and Webhook URL access.
A desktop browser is required to access the TradingView Pinescript Editor and the Signal bot configuration page on the execution platform.
1. Configuring the “Signal” on the Bot Execution Platform
Log in to your bot execution platform account (e.g., Pionex).
Navigate to the Futures → Futures Bot → Signal Bot section.
Click on the “Add signal” button and set the name and description for this signal, then click “Confirm.”
Once the signal has been created, directly click on the “I have completed the configuration” and “I have created the alert” buttons on the bot platform.
Signal setup on the bot execution platform has been completed.
2. Add a Strategy Script to the TradingView Chart
Log in to your TradingView account.
Choose the desired trading pair on your integrated exchange, and click the “ Launch chart “ button.
Click “Indicators”, select the Signal bot script you want to use.
Click the “Gear” icon to open the strategy settings, on the “Input” tab, copy the “Message” provided by your bot execution platform into the “Pionex Message” (or equivalent) textbox within the script's inputs.
On the “Properties” settings, refer to the recommended settings as follows:
• Initial capital: Keep this value at "100".
• Base currency: Keep this value at “Default”.
• Order size: 1 ~ 100 USDT. Keep the value within 1 to 100 USDT. 50 USDT may be translated as 50% fund utilization on the execution platform, such as Pionex .
• Pyramiding: 1 ~ any value. This value is for multi-position entry settings.
• Margin for long positions: Keep this value at "0".
• Margin for short positions: Keep this value at "0".
• Other parameters can be ignored as they do not impact the core configuration.
Strategy configuration in the TradingView chart has been completed.
3. Configuring the Strategy Alert on TradingView for Bot Connection
Log in to your TradingView account.
Click on the “Alarm” icon in the upper right corner, and click the “+” icon to create a new alert.
In the “Settings” tab, choose the desired strategy from the list.
Note: The latest configuration will typically be at the bottom of the list and may need to be updated every time there are changes to the strategy “Input” configuration.
In the “Message” tab, keep the value unchanged as the default content.
Note: This variable will produce the necessary JSON code for the trading instruction.
In the “Notification” tab, enable the “Webhook URL” and paste the Webhook URL obtained from your bot execution platform into the “Webhook URL” field in TradingView.
Click the “Create” button to complete the setup, and the alert will appear in the “Alert” list.
Strategy Alert configuration in the TradingView chart has been completed.
4. Creating the Signal Bot on the Execution Platform with the Linked Strategy
Log in to your bot execution platform account (e.g., Pionex).
Navigate to Futures → Futures Bot → Signal Bot.
On the “Signal Bot” page, click the “Automate signal” button to configure the bot settings, and then click the “Create the bot.”
The Signal bot creation on the execution platform has been completed.
5. Checking Signal Transmission Between TradingView and Bot Platform
Log in to your TradingView account.
Click on the “Alarm” icon in the upper right corner, and click the “Log” tab to check the alert history.
Log in to your bot execution platform account (e.g., Pionex).
Click on “Details” for your bot and then navigate to the “Signal Log” tab.
Compare the TradingView Alert log with the bot execution platform's Signal Log to ensure the signals are received properly.
To understand the raw Message content, manual interpretation or platform-specific tools may be required.
6. How to Add Other Indicator into the Strategy Script for the Signal Bot
Log in to your TradingView account.
Obtain the open-source indicator, such as “RSI”, into the TradingView chart, and copy its Pine Script™ source code.
Open the Signal bot strategy script in the Pine Script™ Editor. This script is typically optimized for integration with the bot execution platform.
Paste the custom indicator source code into the specific designated section for custom indicators within the Signal bot strategy script.
Define the conditions for “Long” (buy) and “Short” (sell) entries from your custom indicator into the pre-defined “longCondition” and “shortCondition” variables within the script.
Click the “Add to chart” or “Update on chart” button to complete the script configuration and apply changes to your chart.
Integrating a custom indicator into the strategy script has been completed.
Failed 2 Candle Detector (Highlight)This indicator detects failed 2-bar candles, defined by a close above or below the 50% midpoint of the previous candle.
Magnificent 7 OscillatorThe Magnificent 7 Oscillator is a sophisticated momentum-based technical indicator designed to analyze the collective performance of the seven largest technology companies in the U.S. stock market (Apple, Microsoft, Alphabet, Amazon, NVIDIA, Tesla, and Meta). This indicator incorporates established momentum factor research and provides three distinct analytical modes: absolute momentum tracking, equal-weighted market comparison, and relative performance analysis. The tool integrates five different oscillator methodologies and includes advanced breadth analysis capabilities.
Theoretical Foundation
Momentum Factor Research
The indicator's foundation rests on seminal momentum research in financial markets. Jegadeesh and Titman (1993) demonstrated that stocks with strong price performance over 3-12 month periods tend to continue outperforming in subsequent periods¹. This momentum effect was later incorporated into formal factor models by Carhart (1997), who extended the Fama-French three-factor model to include a momentum factor (UMD - Up Minus Down)².
The momentum calculation methodology follows the academic standard:
Momentum(t) = / P(t-n) × 100
Where P(t) is the current price and n is the lookback period.
The focus on the "Magnificent 7" stocks reflects the increasing market concentration observed in recent years. Fama and French (2015) noted that a small number of large-cap stocks can drive significant market movements due to their substantial index weights³. The combined market capitalization of these seven companies often exceeds 25% of the total S&P 500, making their collective momentum a critical market indicator.
Indicator Architecture
Core Components
1. Data Collection and Processing
The indicator employs robust data collection with error handling for missing or invalid security data. Each stock's momentum is calculated independently using the specified lookback period (default: 14 periods).
2. Composite Oscillator Calculation
Following Fama-French factor construction methodology, the indicator offers two weighting schemes:
- Equal Weight: Each active stock receives identical weighting (1/n)
- Market Cap Weight: Reserved for future enhancement
3. Oscillator Transformation Functions
The indicator provides five distinct oscillator types, each with established technical analysis foundations:
a) Momentum Oscillator (Default)
- Pure rate-of-change calculation
- Centered around zero
- Direct implementation of Jegadeesh & Titman methodology
b) RSI (Relative Strength Index)
- Wilder's (1978) relative strength methodology
- Transformed to center around zero for consistency
- Scale: -50 to +50
c) Stochastic Oscillator
- George Lane's %K methodology
- Measures current position within recent range
- Transformed to center around zero
d) Williams %R
- Larry Williams' range-based oscillator
- Inverse stochastic calculation
- Adjusted for zero-centered display
e) CCI (Commodity Channel Index)
- Donald Lambert's mean reversion indicator
- Measures deviation from moving average
- Scaled for optimal visualization
Operational Modes
Mode 1: Magnificent 7 Analysis
Tracks the collective momentum of the seven constituent stocks. This mode is optimal for:
- Technology sector analysis
- Growth stock momentum assessment
- Large-cap performance tracking
Mode 2: S&P 500 Equal Weight Comparison
Analyzes momentum using an equal-weighted S&P 500 reference (typically RSP ETF). This mode provides:
- Broader market momentum context
- Size-neutral market analysis
- Comparison baseline for relative performance
Mode 3: Relative Performance Analysis
Calculates the momentum differential between Magnificent 7 and S&P 500 Equal Weight. This mode enables:
- Sector rotation analysis
- Style factor assessment (Growth vs. Value)
- Relative strength identification
Formula: Relative Performance = MAG7_Momentum - SP500EW_Momentum
Signal Generation and Thresholds
Signal Classification
The indicator generates three signal states:
- Bullish: Oscillator > Upper Threshold (default: +2.0%)
- Bearish: Oscillator < Lower Threshold (default: -2.0%)
- Neutral: Oscillator between thresholds
Relative Performance Signals
In relative performance mode, specialized thresholds apply:
- Outperformance: Relative momentum > +1.0%
- Underperformance: Relative momentum < -1.0%
Alert System
Comprehensive alert conditions include:
- Threshold crossovers (bullish/bearish signals)
- Zero-line crosses (momentum direction changes)
- Relative performance shifts
- Breadth Analysis Component
The indicator incorporates market breadth analysis, calculating the percentage of constituent stocks with positive momentum. This feature provides insights into:
- Strong Breadth (>60%): Broad-based momentum
- Weak Breadth (<40%): Narrow momentum leadership
- Mixed Breadth (40-60%): Neutral momentum distribution
Visual Design and User Interface
Theme-Adaptive Display
The indicator automatically adjusts color schemes for dark and light chart themes, ensuring optimal visibility across different user preferences.
Professional Data Table
A comprehensive data table displays:
- Current oscillator value and percentage
- Active mode and oscillator type
- Signal status and strength
- Component breakdowns (in relative performance mode)
- Breadth percentage
- Active threshold levels
Custom Color Options
Users can override default colors with custom selections for:
- Neutral conditions (default: Material Blue)
- Bullish signals (default: Material Green)
- Bearish signals (default: Material Red)
Practical Applications
Portfolio Management
- Sector Allocation: Use relative performance mode to time technology sector exposure
- Risk Management: Monitor breadth deterioration as early warning signal
- Entry/Exit Timing: Utilize threshold crossovers for position sizing decisions
Market Analysis
- Trend Identification: Zero-line crosses indicate momentum regime changes
- Divergence Analysis: Compare MAG7 performance against broader market
- Volatility Assessment: Oscillator range and frequency provide volatility insights
Strategy Development
- Factor Timing: Implement growth factor timing strategies
- Momentum Strategies: Develop systematic momentum-based approaches
- Risk Parity: Use breadth metrics for risk-adjusted portfolio construction
Configuration Guidelines
Parameter Selection
- Momentum Period (5-100): Shorter periods (5-20) for tactical analysis, longer periods (50-100) for strategic assessment
- Smoothing Period (1-50): Higher values reduce noise but increase lag
- Thresholds: Adjust based on historical volatility and strategy requirements
Timeframe Considerations
- Daily Charts: Optimal for swing trading and medium-term analysis
- Weekly Charts: Suitable for long-term trend analysis
- Intraday Charts: Useful for short-term tactical decisions
Limitations and Considerations
Market Concentration Risk
The indicator's focus on seven stocks creates concentration risk. During periods of significant rotation away from large-cap technology stocks, the indicator may not represent broader market conditions.
Momentum Persistence
While momentum effects are well-documented, they are not permanent. Jegadeesh and Titman (1993) noted momentum reversal effects over longer time horizons (2-5 years).
Correlation Dynamics
During market stress, correlations among the constituent stocks may increase, reducing the diversification benefits and potentially amplifying signal intensity.
Performance Metrics and Backtesting
The indicator includes hidden plots for comprehensive backtesting:
- Individual stock momentum values
- Composite breadth percentage
- S&P 500 Equal Weight momentum
- Relative performance calculations
These metrics enable quantitative strategy development and historical performance analysis.
References
¹Jegadeesh, N., & Titman, S. (1993). Returns to buying winners and selling losers: Implications for stock market efficiency. Journal of Finance, 48(1), 65-91.
Carhart, M. M. (1997). On persistence in mutual fund performance. Journal of Finance, 52(1), 57-82.
Fama, E. F., & French, K. R. (2015). A five-factor asset pricing model. Journal of Financial Economics, 116(1), 1-22.
Wilder, J. W. (1978). New concepts in technical trading systems. Trend Research.
Multi Stochastic Alert (No Repeats)This indicator is based on daytraderrockstar strategy , when all the 4 stochastics 9 3. 14 3 , 40 40 and 60 10 are below 20 , the indicator give OS ( over sold ) and when the 4 stochastics are above the 80 line , it give OB ( over bought ) signal . one the signal is generated , look for bullish or bearish divergence
Synthetic CHF Index (24/5) - CustomizableThis script creates a synthetic index to visualize the overall strength or weakness of the Swiss Franc (CHF) by aggregating 7 major CHF pairs:
CHFEUR, CHFGBP, CHFUSD, CHFCAD, CHFAUD, CHFNZD, CHFJPY
The index uses the logarithmic product of these pairs to generate OHLC values, providing a normalized and proportional view of CHF performance across the forex market. Optional Heikin Ashi candles help smooth price action, and a custom timeframe input allows flexible multi-timeframe analysis.
Use this tool to:
Gauge CHF strength/weakness across the board
Add directional bias to CHF-related trades
Spot divergence or confluence with other assets or indexes
Ideal for traders who want a clean and data-driven way to assess currency strength without relying on traditional indicators.
📊 Asset Quality BoardThe Asset Quality Board ranks up to 10 selected assets based on their risk-adjusted performance over time.
It evaluates each asset relative to a benchmark using the following factors:
✅ Alpha (annualized) – excess return vs. benchmark
✅ Information Ratio – consistency of outperformance
✅ Max Drawdown – historical downside risk
These components are normalized and combined into a composite quality score, updated on each bar. The table highlights:
📈 The highest-quality assets (ranked by score)
⚠️ Statistically strong or weak performers (via dynamic thresholds)
🎯 Optional plots for historical scoring trends
This tool is designed for portfolio monitoring, asset selection, or as a signal component in rotational strategies.
💡 How to Use
Select up to 10 assets and a benchmark (e.g. BTCUSDT)
Monitor the ranked table to identify top candidates
Use the dynamic score thresholds (mean ± 1σ) to spot extremes
⚠️ Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice. Please consult a financial advisor for personalized advice.
ADR by Saurabh MaggoADR levels for intraday
This Pine Script v5 indicator plots Average Daily Range (ADR) levels on a 5-minute NSE chart, ideal for intraday traders. It marks key price levels (L3+, L3-, L2+, L2-, L1+, L1-) at 9:15 AM IST each day, based on the daily open and a customizable ATR period.
Features:
Configurable Levels: Adjust ATR period (default 5) and multipliers (L3=0.5, L2=0.25, L1=0.125) to set price targets.
Today Only Option: Toggle Show Recent to display only the current day’s levels or all historical levels.
Visual Customization: Choose vibrant colors for each level via settings, with a glow effect
(toggleable, transparency=20) and adjustable circle size (default 2, range 1–5) for enhanced visibility, optimized for dark chart backgrounds.
Clean Design: Single-point plotting at 9:15 AM IST ensures a clutter-free chart, with dynamic points that move with the chart.
Usage: Perfect for NSE intraday trading, this indicator helps identify high-probability price targets. Customize levels, colors, and visuals to suit your strategy.
previous day H/L 15 min backtesterworks on 15 min and 5 min charts.
This indicator visualizes critical daily price levels to support intraday and swing trading decisions. Specifically, it calculates and displays the Previous Day High (PDH), Previous Day Low (PDL), and the midpoint (PDM) — the average of the high and low — based on price data from the prior trading day.
Each level line is anchored to start precisely at 6 PM New York time, marking the start of the trading day for many major markets. The lines then extend forward for a fixed duration, ensuring these key support and resistance zones remain visible well into the current trading session, giving traders a persistent frame of reference.
This persistent extension helps traders monitor price interaction with important levels throughout the day without cluttering the chart with obsolete lines. Labels indicating PDH, PDL, and PDM are displayed clearly on the left or right side of the chart, customizable to user preference.
By using this indicator, traders can better gauge potential reversal points, breakout zones, and price consolidation areas grounded on significant daily market structure, improving timing and risk management in their trading strategies.
Devrat Kumar EMA 9 / 50 / 100//@version=5
indicator("Devrat Kumar EMA 9 / 50 / 100", overlay=true)
// === EMAs ===
ema9 = ta.ema(close, 9)
ema50 = ta.ema(close, 50)
ema100 = ta.ema(close, 100)
// === Plot EMAs ===
plot(ema9, color=color.white, linewidth=1, title="EMA 9")
plot(ema50, color=color.orange, linewidth=1, title="EMA 50")
plot(ema100, color=color.aqua, linewidth=1, title="EMA 100")
Synthetic GBP Index (24/5) - CustomizableSynthetic GBP Index (24/5) – Customizable
This script creates a synthetic index to measure the overall strength or weakness of the British Pound (GBP) by aggregating 7 major GBP pairs:
GBPEUR, GBPCHF, GBPUSD, GBPCAD, GBPAUD, GBPNZD, GBPJPY
The index is calculated using the logarithmic product of these pairs, giving a single, tradable view of GBP movement across the forex market. You can toggle Heikin Ashi candles for smoother trend visualization and set a custom timeframe independent of your chart.
Ideal for confluence, directional bias, and strength analysis across multiple timeframes.
Sesiones de Bolsas MundialesIt shows the opening and closing times of stock markets around the world (Tokyo, Hong Kong, Singapore, Shanghai, Frankfurt, London, NYSE and NASDAQ).
Presenta la apertura y cierre de bolsas en el mundo
Dogshit RSIThis is a "pretty good oscillator" on top of a basic RSI.
It's basically a dogshit indicator, and was created for educational purposes.
Accurate 1-Min Trend System [Dr.K.C.Prakash]Accurate 1-Min Trend System — Indicator Overview
This 1-minute trend-following system is designed to identify high-probability intraday entries using a combination of EMA-based trend direction, swing structure, and price action strength. It is optimized for option buying or scalping entries in strong directional moves.
🧠 Core Logic:
1. Trend Filter (Context Check)
Uses 50 EMA (fast) and 200 EMA (slow) to determine the market trend.
Only takes buy entries in uptrends and sell entries in downtrends.
Additional filters ensure both EMAs are rising or falling, avoiding sideways noise.
2. Swing Structure Confirmation
Uses swing high/low over a lookback period to ensure price is breaking structure favorably.
Buy: Price closes above previous swing low in an uptrend.
Sell: Price closes below previous swing high in a downtrend.
3. Candle Strength Filter
Ensures only strong bullish or bearish candles (large body relative to ATR) are used for entries.
Filters out weak or indecisive candles, increasing precision.
4. Entry Gapping
Avoids overtrading by restricting entries within a set number of bars (gapBars) since the last trade.
Prevents back-to-back signals during chop or fakeouts.
📊 Visual Components:
🔶 Orange Line: 50 EMA (short-term trend)
🟦 Teal Line: 200 EMA (long-term trend)
🟢 BUY Label: Signals a strong bullish entry
🔴 SELL Label: Signals a strong bearish entry
✅ Best Use Cases:
1-minute scalping in index options (e.g., NIFTY/BankNIFTY)
Filtering trades only in strong directional bias
Combining with manual support/resistance or higher-timeframe SMC zones
SmartPhase Analyzer📝 SmartPhase Analyzer – Composite Market Regime Classifier
SmartPhase Analyzer is an adaptive regime classification tool that scores market conditions using a customizable set of statistical indicators. It blends multiple normalized metrics into a composite score, which is dynamically evaluated against rolling statistical thresholds to determine the current market regime.
✅ Features:
Composite score calculated from 13+ toggleable statistical indicators:
Sharpe, Sortino, Omega, Alpha, Beta, CV, R², Entropy, Drawdown, Z-Score, PLF, SRI, and Momentum Rank
Uses dynamic thresholds (mean ± std deviation) to classify regime states:
🟢 BULL – Strongly bullish
🟩 ACCUM – Mildly bullish
⚪ NEUTRAL – Sideways
🟧 DISTRIB – Mildly bearish
🔴 BEAR – Strongly bearish
Color-coded histogram for composite score clarity
Real-time regime label plotted on chart
Benchmark-aware metrics (Alpha, Beta, etc.)
Modular design using the StatMetrics library by RWCS_LTD
🧠 How to Use:
Enable/disable metrics in the settings panel to customize your composite model
Use the composite histogram and regime background for discretionary or systematic analysis
⚠️ Disclaimer:
This indicator is for educational and informational purposes only. It does not constitute financial advice or a trading recommendation. Always consult your financial advisor before making investment decisions.