Option Contract Size CalculatorOption Contract Size Calculator
This indicator helps you to figure out the ideal number of contracts for your trade and its only used for options day trading.
The indicator needs to fill the input section in order to give you the information table that includes Contract size .
The input section consists of two sections. The first section requires user entry of the delta of the options contract from the broker chain and the stop loss size on the chart.
The second section allows you to enter your account balance and risk per trade
(2% recommended) .
There is also the option for where you wish to display your table like bottom right , bottom left or top right, top left.
special thanks to @Mohamedawke for the open source script this code is based off
Indikatoren und Strategien
Market Clock with Inline HoursThis script displays a powerful, configurable market session clock that shows the open/closed status and trading hours for major global financial markets — including specialized logic for NY Futures (Globex).
🔑 Key Features:
✅ Real-Time Session Status:
Shows whether each selected market is currently OPEN or CLOSED, based on the user’s selected time zone.
✅ NY Futures Weekend Logic:
Built-in logic ensures NY Futures are marked CLOSED:
Friday after 5:00 PM ET
All of Saturday
Sunday until 6:00 PM ET
This reflects the true CME Globex trading schedule.
✅ 12-Hour Format + Timezone Labels:
Session hours are displayed in 12-hour AM/PM format alongside their associated timezone (EST, GMT, JST, etc.) for clarity.
✅ Fully Configurable Markets:
You can choose to display:
NY Market (RTH)
NY Futures (Globex)
London
Tokyo
Frankfurt
And you can easily toggle them on/off in the settings.
✅ Text Size & Position Customization:
Easily control the text size (tiny → huge) and screen position (top/bottom, left/center/right).
✅ Auto Timezone Offset Support:
Select from a list of common time zones (EST, UTC, JST, etc.), or enter your own custom UTC offset for global flexibility.
✅ Compact & Clean Design:
The layout groups each market’s:
Real-time OPEN/CLOSED status
Trading hours
All into a single column, making the layout clean and dashboard-ready.
🧠 Who is this for?
Day traders
Futures traders
Forex traders
Anyone who tracks multiple time zones or global markets
📌 Notes:
Clock updates based on chart timeframe (e.g., every 1m on a 1-minute chart)
Pine Script doesn't support real-time per-second updates, but works well for market status tracking
💬 Feedback Welcome!
This script was designed to be lightweight and user-friendly. Suggestions and improvements are always welcome — feel free to leave a comment or reach out directly.
Prior LevelThe "Prior Level" indicator displays the previous day's key price levels (Open, High, Low, Close) directly on your chart. These reference levels are essential for intraday trading strategies, support/resistance analysis, and breakout identification.
Key features:
- Shows previous session's Open, High, Low and Close values
- Customizable line colors for better visual distinction
- Adjustable line length for cleaner chart appearance
- Optional data table showing exact values
- Simple and lightweight design for easy chart reading
This indicator helps traders identify important price zones from the previous trading session, allowing for more informed trading decisions based on how current price action interacts with these established levels.
D3m4h GIFVGDescription
D3m4h GIFVG is an indicator designed to automatically detect market imbalances—often referred to as FVGs (Fair Value Gaps)—and potential pivot-based shifts in market structure. It offers a dynamic approach to visualizing supply/demand inefficiencies and pivot-based trend changes. Key features include:
1. Pivot-Based Bullish/Bearish Detection
The indicator identifies higher-high/lower-low pivot logic as well as “outside bar” pivots.
It tracks when the market transitions from bullish to bearish ranges, or vice versa, by using multiple checks:
Pivot low/high detection
Break-of-structure (when price crosses the last pivot)
Opposing FVG detection to confirm an intraday pivot shift
2. FVG (Fair Value Gap) Detection
The script automatically scans for bullish or bearish FVG conditions:
Bullish FVG: Candle at position (bar_index - 2) has a high below the current candle’s low.
Bearish FVG: Candle at position (bar_index - 2) has a low above the current candle’s high.
When it detects an FVG, it draws a box on the chart to highlight the price gap (yellow boxes by default).
3. Pivot Range FVG
If an FVG forms while the market is in a bullish pivot range, the script can paint a special “blue” FVG to underscore its significance. The same logic applies if a newly formed FVG appears in a bearish pivot range.
4. Filled Gap Cleanup
You can optionally hide standard FVG boxes once they’re filled. For example, if the candle’s body (or candle range) covers that gap, the box is removed to keep your chart clean.
5. Pivot-Range FVG “Raided” Cleanup
If the pivot-based FVG is later filled from the opposing direction, it turns green and can optionally remove itself after a set number of bars.
6. Informative Table
A small table on the chart optionally displays whether or not the pivot-based FVG has been “raided”. You can toggle this table on/off in the settings.
How It Works
1. Pivot Shifts
The script tracks the last pivot high/low using a combination of candle-based pivot detection and break-of-structure checks (when price crosses the last pivot in the opposite direction).
When a shift is detected, the pivot range ID increments—this helps the script know when to remove old pivot-based FVGs or draw new ones.
2. FVG Formation
Each new bar checks if a bullish or bearish FVG formed (comparing the high of bar two bars ago to the current low, or the low of bar two bars ago to the current high).
If one is found, a box is drawn to highlight the imbalance. Its color and extension depend on script settings.
3. Imbalance or Pivot FVG
Standard imbalance boxes appear in yellow.
If the new imbalance coincides with a bullish or bearish pivot range, a special “pivot imbalance” box in blue is drawn.
3. Hide Filled
If a newly formed candle’s body fully covers the FVG, the box is considered filled. If Hide Filled Gaps is enabled, the box is deleted once it’s covered.
4. Raid Status
For the pivot-based (blue) FVG, once price invalidates it from the opposite side, it changes color to green and gets removed after a user-defined number of bars.
How to Use
1. Look for FVGs
Observe yellow boxes to identify potential intraday imbalances. Watch for price returning to fill these zones.
If you see a “blue” box, it signifies a pivot-based FVG in line with a recognized shift in structure—arguably a higher-probability zone.
2. “Hide Filled Gaps”
Turn this on if you only want to see currently active or partially filled imbalances. The script cleans up old, fully covered boxes to keep your chart neat.
3. Pivot Shifts
Note the script’s internal pivot logic. Each new pivot re-defines bullish or bearish states. Use these states to gauge the short-term trend shifts.
4. Toggle the Table
You can show or hide the chart table by enabling/disabling “Show Table” from the inputs. This table indicates if the pivot-based “GIFVG” has been “raided” or not.
5. Extend Count
Adjust the extendCount in the code if you want FVG boxes to extend further or shorter in time.
Underlying Concepts
Fair Value Gaps
Market inefficiencies that occur when price jumps, leaving a “gap” from the candle 2 bars ago to the current candle. They can act like mini supply/demand zones where price may revisit for balance.
Pivot Ranges
The script tries to maintain an internal sense of whether the market is in a bullish or bearish pivot range. When it sees a contrary FVG or break-of-structure, it flips the pivot state.
Outside Bars
A candle that has both a higher high and a lower low than the previous bar. The script uses these to mark significant pivot shifts.
By combining pivot-based logic with FVG detection, the D3m4h GIFVG indicator helps highlight potential areas of liquidity or unfilled value. Traders can use these zones to plan entries/exits or to confirm short-term trend shifts.
The Silver Lining – GSR🍯 This tool converts the Gold/Silver Ratio (GSR) into a precision timing lens for short-term traders operating inside digital silver markets. It reveals structural dominance, trend exhaustion, and regime inflection by comparing the GSR to its smoothed baseline and historical percentile rhythm. On high timeframes (1D+), it reflects macroeconomic sentiment shifts 📈.
🧐 The lower the timeframe, the higher the alpha; the 15m and 1h charts are where you will the hidden pots of gold. For LTF traders, it becomes a hyper-responsive bias filter — especially when paired with volatility-based confirmation systems like SUPeR TReND 2.718, as shown.
🧠 The core logic compares the GSR (gold ÷ silver) against a user-defined moving average (VWMA or EMA). A color-coded fill shifts based on direction: amber when gold leads, teal when silver gains strength. Percentile bands (20th, 50th, 80th) map structural zones — helping traders anchor trades based on confluence, not hype.
📊 In the example chart, four theoretical long trades are shown on the 1h chart, manually drawn on the 15m timeframe. Each begins when the GSR reverses from the 80th percentile or breaks below its MA. The trades occur precisely as silver tested support, with confirmation from SUPeR TReND’s trend shift. Although idealized, these aren’t guesses — they are compression-to-expansion sequences backed by macro relative strength flow. Several yielded gains exceeding 4%.
🏆 Best-case long trades occur when GSR rotates down through the 50th percentile and silver catches a reactive bid. Shorts appear when GSR rises through the upper percentile band while silver fails to hold key intraday levels. The percentile bands function like behavioral tiers:
🥈 Below 20th = Silver Dominance
⚠️ Around 50th = Crossover Area
🥇 Above 80th = Gold Dominance
🥈 Why silver? It’s faster, more emotional, and more manipulated than gold — which paradoxically makes it more tradable on low timeframes. Its range-bound nature is ideal for rinse-and-repeat systems. Because we trade the derivative (XAGUSD), there’s no friction or delivery constraint — just price action, clean and liquid.
⚖️ The underlying strategy isn’t just technical; it’s alchemical. The system begins with short-term trading in digital silver and funnels gains into physical gold — converting volatility into wealth. Over time, this establishes a perpetual motion model: when profits allow, trade silver, extract value, cash out and convert into gold. The account stays active, and the hedge keeps growing.
🔁 The Silver Lining isn’t a signal engine. It’s a structural overlay. It tells you when the market’s invisible bias is shifting — so your tactics stay aligned with macro rhythm.
🌊 Silver moves fast. Gold moves first. The Silver Lining helps you bridge that gap — with clarity, confluence, and edge.
TP/SL Percentage & RR Visual ToolThis tool is designed to help traders visually and statistically assess their trade setup by calculating Stop Loss (SL), Take Profit (TP), and Risk-to-Reward (RR) based on percentage inputs from the current price.
🔧 How It Works:
Uses the current candle’s close price as your entry.
Calculates TP and SL as percentage-based levels (e.g., 1% SL, 1.5% TP).
Displays horizontal lines and labels on the chart for TP and SL (only on the latest candle to reduce clutter).
Shows a compact table in the top-right corner with all key values:
Entry Price
Current Price
TP Price (+%)
SL Price (-%)
TP Distance from current price
RR Ratio (e.g., 1:1.5)
💡 Use Cases:
Quickly validate if a trade setup meets your desired RR profile (e.g., 1:2).
Perfect for scalpers, swing traders, and position traders who rely on structured risk management.
Combine with your entry signal strategy to visualize targets and stops without manual calculations.
⚙️ Inputs:
Stop Loss % – Sets how far your SL is from the entry.
Take Profit % – Sets how far your TP is from the entry.
QT NY Session High/LowShows Asia & London High/Low which are key liquidity points price will react to.
You can also adjust the NY AM 6am - 12pm EST range to divide the time frames into 4 quarters
It delivers NY AM true open and the true day open
It gives you previous day high & previous day low
2013-2025 EclipsesIndicator Description: 2013-2025 Eclipses
This Pine Script (version 5) indicator overlays solar and lunar eclipse events on a TradingView chart, covering the period from 2013 to 2025. It is designed for traders and astrology enthusiasts who wish to visualize these significant astronomical events alongside price action, potentially identifying correlations with market movements or key turning points.
Features:
Eclipses:
Visualization: Displayed as a semi-transparent aqua background highlight across the chart.
Data: Includes 48 specific eclipse dates (both solar and lunar) from April 25, 2013, to September 21, 2025.
Purpose: Highlights dates of eclipses, which are often considered powerful astrological events associated with sudden changes, revelations, or significant shifts in energy and market sentiment.
Technical Details:
Overlay: The indicator is set to overlay=true, ensuring it displays directly on the price chart rather than in a separate pane.
Date Matching: Utilizes a helper function is_date(y, m, d) to determine if the current chart date matches any of the predefined eclipse dates, using TradingView's year, month, and dayofmonth variables.
Visualization Method:
bgcolor: Applies a light aqua background (using color.new(color.aqua, 85)) on the specific dates of eclipses. The transparency level of 85 allows price action to remain visible through the highlight.
Time Range: Spans from April 2013 to September 2025, covering a 12+ year period of eclipse events.
Usage:
Add the script to your TradingView chart to see eclipse dates highlighted with an aqua background on your chosen symbol and timeframe.
The background highlight appears only on the exact dates of eclipses, making it easy to spot these events amidst price data.
Ideal for those incorporating astrological analysis into trading or studying the potential impact of eclipses on financial markets.
Notes:
The script uses a single-line definition for eclipse_dates to ensure compatibility with Pine Script v5 syntax and avoid line continuation errors.
The aqua color matches the original circle-based visualization, with transparency adjustable via the color.new(color.aqua, 85) parameter (0 = fully opaque, 100 = fully transparent).
Works best on daily or higher timeframes for clear visibility of individual eclipse dates, though it functions on any TradingView-supported timeframe.
Eclipse dates should be cross-checked with astronomical sources for critical applications, as the script relies on the provided data accuracy.
Purpose:
This indicator provides a straightforward way to track eclipses over a 12-year period, offering a visual representation of these potent celestial events. By using a background highlight instead of markers, it maintains chart clarity while emphasizing the specific days when eclipses occur, potentially aiding in the analysis of their influence on market behavior or personal trading strategies.
2013-2025 Moon Phases & Mercury RetrogradesIndicator Description: 2013-2025 Moon Phases & Mercury Retrogrades
This Pine Script (version 5) indicator overlays key astrological events on a TradingView chart, specifically tracking full moons, new moons, and Mercury retrograde periods from 2013 to 2025. It is designed to help traders and astrology enthusiasts visualize these celestial events alongside price action, potentially identifying correlations or patterns.
Features:
New Moons:
Visualization: Plotted as small white circles above the price bars.
Data: Includes 156 specific new moon dates from January 11, 2013, to December 20, 2025.
Purpose: Marks the start of the lunar cycle, often associated with new beginnings or shifts in energy.
Full Moons:
Visualization: Plotted as small orange circles above the price bars.
Data: Includes 157 specific full moon dates from January 27, 2013, to December 15, 2025.
Purpose: Highlights the peak of the lunar cycle, often linked to heightened emotions or market volatility in astrological analysis.
Mercury Retrogrades:
Visualization: Displayed as a light red background highlight across the chart.
Data: Covers 39 Mercury retrograde periods, with precise start and end timestamps from February 23, 2013, to November 29, 2025.
Purpose: Indicates periods traditionally associated with communication issues, delays, or reversals, which some traders monitor for potential market impacts.
Technical Details:
Overlay: The indicator is set to overlay=true, meaning it displays directly on the price chart rather than in a separate pane.
Date Matching: Uses a helper function is_date(y, m, d) to check if the current chart date matches any of the predefined event dates, leveraging TradingView's year, month, and dayofmonth variables.
Visualization Methods:
plotshape: Used for new moons (white circles) and full moons (orange circles), positioned above bars for clear visibility.
bgcolor: Used for Mercury retrograde periods, applying a semi-transparent red highlight (transparency level 85) to the background during active retrograde periods.
Time Range: Spans from January 2013 to December 2025, providing a comprehensive 13-year view of these astrological events.
Usage:
Add the script to your TradingView chart to see new moons, full moons, and Mercury retrograde periods overlaid on your chosen symbol and timeframe.
The white and orange circles appear on specific dates, while the red background highlights extend across the duration of each Mercury retrograde period.
Useful for traders incorporating astrology into their analysis or anyone interested in tracking these celestial events alongside financial data.
Notes:
The script assumes accurate date data as provided; users should verify dates against astronomical sources if precision is critical.
The transparency of the Mercury retrograde background can be adjusted by modifying the value in color.new(color.red, 85) (0 = fully opaque, 100 = fully transparent).
Best viewed on daily or higher timeframes for clarity, though it works on any timeframe supported by TradingView.
This indicator provides a visual tool to explore the potential influence of lunar phases and Mercury retrograde periods on market behavior, blending astrology with technical analysis in a clear, customizable format.
Chonky ATR Levels 2.0Show ATR based high/low projections.
Choose a custom ATR calculation in the indicator's settings.
The default is a 20day RMA based ATR.
----------How projections are calculated----------
To project the ATR High, the ATR value is added to the low of the current candle that matches the ATR's timeframe.
To project the ATR Low, the ATR value is subtracted from the high of the current candle that matches the ATR's timeframe.
Example:
If a 20day RMA ATR is used:
- the ATR High will be the current day's low + the ATR value.
- the ATR Low will be the current day's high - the ATR value.
*However*, if the price action exceeds either ATR projection, the opposite ATR level will be fixed to the extreme of the period.
See the AUDUSD screenshot above for an example.
The ATR Low was exceeded, so the ATR High projection is capped at the high of day.
If the ATR High is exceeded, the ATR Low would be capped at the low of day.
Rachas ATR AssistHey Traders!
This indicator is a simple, it uses Average True Range (ATR) data from the daily chart and the current timeframe to estimate potential range and volatility.
This indicator compares the daily ATR to the current daily wick range (from low to high), helping you gauge how much "room" might be left for price movement within the day. Alongside that, it shows the ATR over the last 14 candles and 5 candles on your current chart for intraday volatility awareness—ideal for setting stops, targets, or position sizing.
Gauge Daily Potential Movement:
The "Day Range Difference" cell shows how much of the expected daily range (based on ATR) is still unfilled. If the market has moved less than the average, there's still potential for expansion. If it's close to or above the ATR, expect a slowdown or reversal.
Position Sizing & Stop Losses:
Use the 14-period ATR and 5-period ATR on your current timeframe to understand recent volatility. This helps in choosing logical stop loss levels and adjusting position sizes based on market conditions.
Volatility Awareness:
Knowing the average daily range and how much of it has been used lets you avoid entering trades too late in the move or placing stops in overly tight spots.
Table Position & Font:
You can adjust the table location (top/bottom left/right) and font size to best fit your chart layout.
Custom NYSE Hourly Intervals (Gris Extra Claro/T)NYSE Custom Hourly Intervals (Background Shading)
Indicator Overview:
This TradingView indicator visually highlights specific hourly intervals during the NYSE trading session (9:30 AM - 4:00 PM ET) using background shading. Its purpose is to help traders easily identify these key periods while analyzing price action.
Features:
Hourly Segmentation: Clearly marks the following hourly blocks within the NYSE session:
9:30 - 10:00 ET
10:00 - 11:00 ET
11:00 - 12:00 ET
12:00 - 13:00 ET
13:00 - 14:00 ET
14:00 - 15:00 ET
15:00 - 16:00 ET
Alternating Background: Uses a subtle, alternating background pattern for visual distinction:
Transparent: Applied during the 9:30-10:00, 11:00-12:00, 13:00-14:00, and 15:00-16:00 intervals (shows your default chart background).
Very Light Gray: Applied during the 10:00-11:00, 12:00-13:00, and 14:00-15:00 intervals.
Timeframe Restriction: The background shading is active only on chart timeframes of 30 minutes or less (e.g., 30m, 15m, 5m, 1m). It will not appear on higher timeframes.
Session Restriction: Shading only occurs during the defined NYSE session hours (9:30 AM - 4:00 PM ET).
Customization: The color and transparency level of the "Very Light Gray" shading can be adjusted in the indicator's settings.
Purpose & Use Case:
This indicator is ideal for intraday traders who want a clean visual guide to track price movement within specific hourly segments of the NYSE trading day, without needing complex overlays.
Coppock Curve
The Coppock Curve is a long-term momentum indicator, also known as the "Coppock Guide," used to identify potential long-term market turning points, particularly major downturns and upturns, by smoothing the sum of 14-month and 11-month rates of change with a 10-month weighted moving average.
Here's a more detailed breakdown:
What it is:
The Coppock Curve is a technical indicator designed to identify long-term buy and sell signals in major stock market indices and related ETFs.
How it's calculated:
Rate of Change (ROC): The indicator starts by calculating the rate of change (ROC) for 14 and 11 periods (usually months).
Sum of ROCs: The ROC for the 14-period and 11-period are summed.
Weighted Moving Average (WMA): A 10-period weighted moving average (WMA) is then applied to the sum of the ROCs.
Interpreting the Curve:
Buy Signals: A buy signal is often generated when the Coppock Curve crosses above the zero line, suggesting a potential transition from a bearish to a bullish phase.
Sell Signals: While primarily designed to identify market bottoms, some traders may interpret a cross below the zero line as a sell signal or a bearish warning.
Origin and Purpose:
The Coppock Curve was introduced by economist Edwin Coppock in 1962.
It was originally designed to help investors identify opportune moments to enter the market.
Coppock's inspiration came from the Episcopal Church's concept of the average mourning period, which he believed mirrored the stock market's recovery period.
Limitations:
The Coppock Curve is primarily used for long-term analysis and may not be as effective for short-term or intraday trading.
It may lag in rapidly changing markets, and its signals may not always be reliable.
Risk-On vs Risk-Off Meter (Pro)Risk-On vs Risk-Off Meter (Pro)
This macro-based tool analyzes capital flows across key assets to gauge overall market risk sentiment. It does not use ES, SPY, or stock data directly—making it a powerful confirmation tool for ES traders looking to align with macro forces.
🔹 Core Idea:
Tracks capital rotation between copper/gold, bonds, dollar, crude oil, VIX, and yield spreads to generate a normalized risk score (0–1). This score reflects whether macro money is flowing into risk or safety.
🔹 Use:
Use this indicator as confirmation of directional bias when scalping or day trading ES.
– Green Zone (>0.75): Risk-On environment. Favor long setups.
– Red Zone (<0.45): Risk-Off. Favor short setups or stand aside.
– Yellow Zone: Neutral, use caution.
– Divergence Alerts: Signals when ES price disagrees with macro risk trend—potential reversals or exhaustion zones.
HOT TO USE
– Combine with your existing price action or order flow signals
– Avoid trading against the macro sentiment unless strong setup
– Use divergence as a heads-up for fading or exiting trades
This gives you a macro-informed lens to validate or filter your entries.
Triple RSI DivergenceTriple rsi divergence
Sure! Here's a clear explanation in English of the Triple RSI Divergence Pine Script I shared earlier:
---
Explanation of the Triple RSI Divergence Pine Script
This Pine Script is designed to detect triple divergence patterns between the RSI (Relative Strength Index) and price action, which can signal potential trend reversals.
---
What is Triple Divergence?
Triple divergence occurs when price creates three consecutive higher highs (in an uptrend) or lower lows (in a downtrend), while the RSI moves in the opposite direction — forming lower highs or higher lows respectively.
This pattern is considered a strong reversal signal because it indicates momentum is weakening despite price continuing its trend.
---
What This Script Does:
Calculates RSI (14-period)
Identifies three recent highs/lows in price and RSI
Checks for:
Bearish triple divergence: price makes 3 higher highs, RSI makes 3 lower highs.
**Bullish
Risk-On / Risk-Off ScoreRisk-On / Risk-Off Score (Macro Sentiment Indicator)
This indicator calculates a custom Risk-On / Risk-Off Score to objectively assess the current market risk sentiment using a carefully selected basket of macroeconomic assets and intermarket relationships.
🧠 What does this indicator do?
The score is based on 14 key components grouped into three categories:
🟢 Risk-On Assets (rising = appetite for risk)
(+1 if performance over X days is positive, otherwise –1)
NASDAQ 100 (NAS100USD)
S&P 500 (SPX)
Bitcoin (BTCUSD)
Copper (HG1!)
WTI Crude Oil (CLK2025)
🔴 Risk-Off Assets (rising = flight to safety)
(–1 if performance is positive, otherwise +1)
Gold (XAUUSD)
US Treasury Bonds (TLT ETF) (TLT)
US Dollar Index (DXY)
USD/CHF
USD/JPY
US 10Y Yields (US10Y) (yields are interpreted inversely)
⚖️ Risk Spreads / Relative Indicators
(+1 if rising, –1 if falling)
Copper/Gold Ratio → HG1! / XAUUSD
NASDAQ/VIX Ratio → NAS100USD / VIX
HYG/TLT Ratio → HYG / TLT
📏 Score Calculation
Total score = sum of all components
Range: from –14 (extreme Risk-Off) to +14 (strong Risk-On)
Color-coded output:
🟢 Score > 2 = Risk-On
🟠 –2 to +2 = Neutral
🔴 Score < –2 = Risk-Off
Displayed as a line plot with background color and signal markers
🧪 Timeframe of analysis:
Default: 5 days (adjustable via input)
Calculated using Rate of Change (% change)
🧭 Use Cases:
Quickly assess macro sentiment
Filter for position sizing, hedging, or intraday bias
Especially useful for:
Swing traders
Day traders with macro filters
Volatility and options traders
📌 Note:
This is not a buy/sell signal indicator, but a contextual sentiment tool designed to help you stay aligned with overall market conditions.
Pre-Market High/Low (Static Lines + Labels)
Pre-Market Range ✅
Draws the Pre-Market High & Low from 4:00 AM to 9:30 AM ET using accurate 1-minute intraday data.
Static Lines 📏
Plots dashed horizontal lines that remain visible all day across all timeframes — including 1m, 5m, 15m, 1h, 4h, and Daily.
Price Labels 🔖
Includes real-time price labels so you can easily reference exact pre-market levels on the chart.
Session Lock 🕒
Lines are locked in after 9:30 AM and remain visible even if you switch timeframes or turn off extended hours.
Trading Utility 🎯
Ideal for identifying key breakout levels, intraday support/resistance zones, and setting risk parameters.
Pin Bar Detector (v1.0.0) Description:
This script detects Pin Bar candlestick patterns based on their shadows and body size.
It analyzes the candle's structure and trend direction using moving averages
to determine valid Pin Bars in an uptrend or downtrend.
The purpose of this script is to help traders identify potential reversal points
by spotting Pin Bar formations in line with the prevailing market trend.
Momentum Charge Theory (MCT)-(TechnoBlooms)The Momentum Charge Theory (MCT) Indicator is an advanced physics and mathematics-inspired trend detection system designed to identify market energy shifts with precision. Unlike traditional indicators that rely on static formulas, MCT integrates entropy, volatility, kinetic energy, and wavelet transforms to map price dynamics in real time.
Built on Scientific Principles – This indicator applies quantum-inspired charge-discharge mechanics to spot early trend formations and reversals. Think of price action like an energy system: it charges (builds momentum) before an explosive move and discharges when that energy dissipates.
Core Concepts Behind MCT
1️⃣ Directional Market Entropy – Measuring Trend Strength
Entropy quantifies market randomness – is the trend structured or chaotic?
✅ A high-entropy market is uncertain (choppy price action), while a low-entropy market signals a strong directional trend.
✅ MCT normalizes entropy, allowing traders to differentiate trend acceleration from market noise.
2️⃣ Information Flow Volatility – Identifying Breakout Zones
Inspired by Econophysics, this component measures volatility based on information flow rather than simple price movements.
✅ Helps spot high-volatility breakout conditions before they occur.
✅ Filters out false breakouts caused by random market noise.
3️⃣ Kinetic Energy Momentum (KEM) – The Physics of Price Acceleration
Just like in physics, momentum is a function of mass and velocity – in trading, this translates to volume and price change.
✅ Uses kinetic energy equations to identify price acceleration zones.
✅ Helps detect momentum shifts before price visibly reacts.
4️⃣ Hilbert Transform Approximation – Slope & Trend Direction Analysis
Applies Hilbert Transforms to estimate trend angle shifts.
✅ Detects momentum decay and early reversal signals.
✅ Captures the true trend slope rather than relying on lagging moving averages.
5️⃣ Wavelet Transform – Advanced Noise Filtering & Trend Confirmation
Market movements contain multiple frequencies – wavelet transforms isolate dominant trends while removing short-term price noise.
✅ Improves trend clarity by reducing false signals.
✅ Acts as a final confirmation filter before generating Charge & Discharge signals.
Charge & Discharge – The Energy Behind Market Moves
🔹 Charge (Uptrend Activation)
A blue triangle appears below the candle when market conditions align for a strong bullish move.
📈 Indicates momentum buildup, low entropy, and trend strength confirmation.
🔸 Discharge (Downtrend Activation)
A purple triangle appears above the candle when price momentum weakens and market entropy increases.
📉 Suggests a potential trend exhaustion or reversal.
Best Use Cases for Traders
✅ Momentum Traders – Catch trend initiations before they gain full traction.
✅ Breakout Traders – Identify high-information flow zones with volatility-driven signals.
✅ Trend Followers – Avoid false signals by relying on entropy-driven confirmations.
The MCT indicator can be combined with any of your usual indicators for trend confirmation.
Log Regression Oscillator Channel [BigBeluga]
This unique overlay tool blends logarithmic trend analysis with dynamic oscillator behavior. It projects RSI, MFI, or Stochastic lines directly into a log regression channel on the price chart — offering an intuitive way to detect overbought/oversold momentum within the broader price structure.
🔵Key Features:
Logarithmic Regression Channel:
➣ Draws a trend-based channel using logarithmic regression, adapting to price growth curvature over time.
➣ Features upper, lower, and optional midline boundaries to visualize trend flow and range extremes.
Oscillator Overlay (RSI / MFI / Stochastic):
➣ Projects your chosen oscillator inside the channel using dynamic polylines.
➣ Allows switching between RSI, Money Flow Index, or Stochastic for versatile momentum insight.
Threshold-Based Scaling:
➣ The top and bottom of the channel represent traditional oscillator thresholds (e.g., RSI 70/30).
➣ Users can modify the scale in settings to customize what "overbought" or "oversold" means visually.
Signal Line Integration:
➣ Adds a yellow moving average (signal line) for smoother confirmation of oscillator turns.
➣ Helps identify divergence, momentum shifts, and fakeouts with better clarity.
Live Oscillator Readout:
➣ Displays the real-time oscillator value at the right edge of the chart.
➣ Ensures traders stay aware of current momentum levels without switching panels.
🔵Usage:
Momentum Context:
➣ When the oscillator touches the upper regression band, it may signal local overbought pressure.
➣ Touching the lower band may indicate oversold conditions within the current log trend.
Divergence Detection:
➣ Use the oscillator’s behavior relative to the channel slope to spot divergence from price.
➣ For example, RSI rising inside a falling channel can flag early trend shifts.
Trend-Sensitive Entries:
➣ Combine oscillator signals with log channel direction to filter trades in trend alignment.
➣ Signal line crossovers inside the channel act as early warning for momentum turns.
The Log Regression Oscillator Channel transforms how traders view classic momentum tools. By embedding oscillators into a logarithmic trend structure, it offers unmatched clarity on momentum positioning relative to price expansion. Ideal for swing traders, mean-reverters, or trend followers looking to sharpen entries and exits with style.
Smart Dynamic Levels [ATR-Based]Smart Dynamic Levels
Automated Support & Resistance Levels Based on Market Volatility
Overview:
This advanced indicator automatically plots dynamic support and resistance levels based on the Average True Range (ATR), creating meaningful price zones that adapt to changing market conditions. Unlike static round-number levels, these volatility-adjusted zones provide more relevant technical reference points.
Key Features:
Volatility-Responsive: Levels automatically adjust based on the asset's ATR
Smart Visualization:
Color gradient shows strength of each level (darker = stronger)
Bullish (green) levels below price, bearish (red) levels above
Customizable Settings:
Adjust ATR length (14-period default)
Modify level sensitivity with ATR multiplier (1.5x default)
Choose number of levels to display (5 above/below default)
Toggle labels and line extensions
How It Works:
Calculates the asset's true volatility using ATR
Rounds to significant price intervals based on current volatility
Plots equidistant levels above and below current price
Colors levels based on their position relative to price
Automatically updates as market conditions change
Recommended Use:
Day Trading: Identify intraday support/resistance zones
Swing Trading: Spot potential reversal areas
Breakout Trading: Watch for moves beyond key levels
Works on all markets: Stocks, Forex, Crypto, Futures
Settings Guide:
ATR Length: Higher values for smoother levels (14-20)
Multiplier: Increase for wider levels (1.5-3x)
Levels Count: More levels for higher timeframes (3-10)
Pro Tips:
Combine with trend analysis - levels are more significant when aligned with trend
Watch for price reactions at these levels for confirmation
Use wider levels (higher multiplier) for volatile assets
Rolling ATR Momentum
Rolling ATR Momentum Indicator – User Manual
---
🔍 Overview
The Rolling ATR Momentum Indicator is a simple yet powerful tool designed to detect shifts in market volatility. It compares the current Average True Range (ATR) with the ATR from a previous point in time to measure how market volatility is changing.
This indicator is especially useful for:
- Spotting the beginning or fading of a momentum phase
- Filtering out low-volatility market conditions
- Enhancing timing for entries and exits in trending or breakout trades
---
📊 Key Components
✅ ATR Delta (Rolling)
- Definition: `ATR Delta = Current ATR - Past ATR`
- Inputs:
- ATR Period (default: 14): The base ATR calculation window
- Lookback Period (default: 5): How many bars ago to compare ATR
- Interpretation:
- Positive ATR Delta (Green Line): Market volatility is increasing
- Negative ATR Delta (Red Line): Market volatility is decreasing
📈 Zero Line
- A horizontal baseline at zero helps you easily see when ATR momentum shifts from negative to positive (or vice versa).
🟩/🟥 Background Color
- Green Background: ATR Delta is positive (rising volatility)
- Red Background: ATR Delta is negative (falling volatility)
🔵 Optional: ATR Reference Lines
- You can optionally display raw Current ATR and Past ATR by changing their visibility settings.
---
✅ How to Use It
Entry Timing (Futures/Options)
- Use ATR Delta as a filter:
- Only take trades when ATR Delta is positive → confirms momentum is building
- Avoid trades when ATR Delta is negative → market might be slow, sideways, or losing steam
Breakout Anticipation
- A rising ATR Delta after a tight range or consolidation can suggest that a breakout is underway
Stop-loss Strategy
- Use high ATR periods for wider stops (to avoid noise)
- Use low ATR periods for tighter stops or skip trading
---
🧠 Pro Tips
- This indicator doesn’t predict direction—combine with trend or price structure tools (like EMA, PPMA, candlesticks)
- Works best in trending or breakout environments
- Add it to multi-timeframe layouts to see volatility buildup on higher timeframes
---
⚙️ Settings
| Parameter | Description |
|----------|-------------|
| ATR Period | Length of the ATR calculation (default 14) |
| Lookback Period | How many bars back to compare ATR values |
---
🧭 Best For:
- Index futures (Nifty, BankNifty)
- Option buyers needing volatility confirmation
- Intraday & swing traders looking to trade momentum setups
---
Use the Rolling ATR Momentum indicator as your volatility radar—simple, clean, and highly effective for staying on the right side of market energy.
End of Manual
Rolling ATR Momentum - EnhancedATR Rolling Momentum Indicator – User Manual
---
🔍 Overview
The ATR Rolling Momentum Indicator is a dynamic volatility tool built on the Average True Range (ATR). It not only tracks increasing or decreasing momentum but also provides early warnings and confirmation signals for potential breakout moves. It’s especially powerful for futures and options traders looking to align with expanding price action.
---
📊 Core Components
✅ ATR Delta (Rolling ATR)
- Definition: Difference between current ATR and past ATR (user-defined lookback).
- Use: Tells whether volatility is expanding (positive delta) or contracting (negative delta).
- Visual: Green line for rising momentum, red for declining.
🟣 ATR Delta Slope
- Definition: Measures acceleration in momentum.
- Use: Helps identify early signs of breakout buildup.
- Visual: Purple line. Watch for slope turning up from below.
🟡 Volatility Squeeze (Yellow Dot)
- Definition: Current ATR is significantly lower than its 20-period average.
- Use: Indicates the market is coiling—possible breakout ahead.
🔼 Momentum Start (Green Triangle)
- Definition: ATR Delta slope turns from negative to positive.
- Use: Early warning to prepare for volatility expansion.
🔷 Breakout Confirmation (Blue Label Up)
- Definition: ATR Delta exceeds its high of the last 10 candles.
- Use: Confirms volatility breakout—trade opportunity if direction aligns.
🟩/🟥 Background Color
- Green Background: Momentum rising (positive ATR delta)
- Red Background: Momentum falling (negative ATR delta)
- Yellow Tint: Active squeeze zone
---
✅ How to Use It (Futures/Options Focus)
Step-by-Step:
1. Squeeze Detected (Yellow Dot) → Stay alert. Market is coiling.
2. Green Triangle Appears → Momentum is starting to rise.
3. Background Turns Green → Confirmed rising momentum.
4. Blue Label Appears → Confirmed breakout (enter trade if trend aligns).
Directional Bias:
- Use your main chart setup (price action, EMAs, trendlines, etc.) to decide direction (Call or Put, Long or Short).
- ATR Momentum only tells you how strong the move is—not which way.
---
⚙️ Inputs & Settings
- ATR Period: Default 14 (core volatility measure)
- Rolling Lookback: Used to calculate delta (default 5)
- Slope Length: Used to measure acceleration (default 3)
- Squeeze Factor: Default 0.8 — lower = more sensitive squeeze detection
- Breakout Lookback: Checks ATR delta against last X bars (default 10)
---
🧠 Pro Tips
- Works great when paired with EMA stacks, price structure, or breakout patterns.
- Avoid taking trades based only on squeeze or momentum—combine with chart confirmation.
- If background turns red after a breakout, it may be losing momentum—book partials or tighten stops.
---
🧭 Ideal For:
- Nifty/BankNifty Futures
- Option directional trades (call/put buying)
- Index scalping and momentum swing setups
---
Use this tool as your volatility compass—it won't tell you where to go, but it'll tell you when the wind is strong enough to move fast.
End of Manual
Multi-Timeframe S/R & Breakout Projection1) What This Script Does
Collects S/R levels from the 15-minute and 1-hour timeframes, using each timeframe’s pivot detection.
Sorts those pivot-based levels by their distance from the current price, so you see the nearest levels first.
Draws up to a user-defined number of those levels as horizontal rays on the current chart.
Checks breakouts at the nearest S/R line (the one with the smallest distance from price):
Real Breakout: price breaks above a level and sustains above it for the specified number of bars.
False Breakout: price breaks above but quickly closes back below within the specified lookback.
On confirmation of a real or false breakout, that S/R line changes color to green if price is going higher, or red if price is going lower.
Displays a small table in the corner with:
Daily Trend: bullish or bearish, using an SMA on a 30-minute timeframe.
Sentiment: bullish or bearish, using RSI on the same 30-minute timeframe.
2) How It Works
Multi-Timeframe Pivot Detection
The script uses request.security() to fetch pivot highs/lows from two higher timeframes (15m and 60m).
It collects up to a user-specified number of these pivots (numRecent) from each TF.
Sorting & Plotting S/R Lines
Once pivot values are gathered, the script calculates their “distance” from current price.
It sorts them so that the S/R lines drawn on your chart are the nearest ones first.
Each line is drawn with a color and style you can customize:
srRayColor sets the overall color (e.g. yellow).
srRayStyleOptions can be Solid, Dashed, or Dotted.
Breakout Determination
After drawing the lines, the script looks at the nearest line and applies two specialized checks (f_isFalseBreakout & f_isRealBreakout):
A real breakout occurs if price closes above (or below) and remains on that side for breakLook bars.
A false breakout occurs if price closes above (or below) but quickly returns.
When a breakout is confirmed, that nearest line changes color to:
Green if price is ultimately going up,
Red if price is going down.
Daily Trend & Sentiment Table
A small table in the bottom-right corner shows:
Daily Trend: uses a 30-minute SMA to see if your price is above/below on that timeframe.
Sentiment: uses the RSI (also on 30m). A value over 50 suggests bullish sentiment; under 50 suggests bearish.
3) How to Use It
Timeframes & Pivots
Choose how many pivots (numRecent) from each TF to fetch (up to 10 total). A higher number means you’ll see more historical S/R lines.
Customize pivotLeft & pivotRight for how “wide” the pivot detection is.
Line Customization
In the script’s Inputs tab, you’ll find:
S/R Rays Color – sets the hue of the lines.
S/R Line Style – pick from Solid, Dashed, or Dotted.
Liquidity Lines Color – color for the smaller pivot lines from your chart timeframe’s pivot detection.
Breakout Lookback
breakLook determines how many bars must confirm or refute the breakout. Adjust it based on how conservative or aggressive you want the breakout detection.
Check the Table
In the bottom-right, watch the script’s “Daily Trend” & “Sentiment”. This can be a quick filter for trades:
“Bullish” daily trend with a bullish sentiment is often more favorable for long trades.
Conversely, “Bearish” daily trend & sentiment can confirm short ideas.
Scenarios
If you see a “Real Breakout” label near the line, the script recolors that line green or red, indicating a possible continuous move.
A “False Breakout” label suggests the price has quickly retraced.
4) Originality & Concepts
Multi-Timeframe Approach: Many S/R indicators fetch only local pivot lines; here, we explicitly gather pivot points from two separate TFs (15m & 60m) and project them onto your lower timeframe chart.
Distance-Based Sorting ensures you only see the nearest lines on the chart, preventing clutter from excessive lines.
Breakout Logic used is straightforward but effective: it checks if price truly holds beyond a level (real breakout) or fails to hold (false breakout).
Line Recoloring provides immediate visual feedback on the success or failure of the breakout.
5) Chart Usage
Plot this script on a relatively low timeframe chart (like the 1m, 5m, or 15m) to see the higher timeframe S/R lines.
Select how many S/R lines you want to show, choose the line style, set your pivot detection parameters, then watch for breakouts.
Tips:
Start with fewer lines (maxLevels=3 or 5) so the chart remains clear.
You can experiment with a small breakLook if you want more immediate breakout signals, or a higher breakLook if you need stronger confirmation.
Enjoy using the “Multi-Timeframe S/R & Breakout Projection” script! It simplifies the manual process of spotting higher timeframe pivot lines and helps you quickly assess potential breakouts or fakes on your intraday charts, all while giving you a snapshot of the higher timeframe’s trend and sentiment.