RTH Session Range Position (0-100) with EMAA Pine Script indicator designed to help traders understand where the current price is located within the Regular Trading Hours (RTH) session range, from 0 (session low) to 100 (session high). It also plots a smoothed EMA of this position to provide insight into momentum or trend during the RTH session.
What the Indicator Does
Defines RTH (Regular Trading Hours):
Start: 9:30 AM
End: 4:00 PM
These are typical US equity market hours.
Tracks the session's high and low during RTH:
sessionHigh and sessionLow update only during RTH.
Calculates position of the current price within the RTH range:
Formula: ((close - sessionLow) / (sessionHigh - sessionLow)) * 100
Result is a percentage:
0 = at session low
100 = at session high
50 = middle of session range
Calculates an EMA of that position (posEMA):
Smooths out the raw position to help visualize momentum within the range.
Plots and table:
Plots pos and posEMA on a separate chart pane.
Adds horizontal lines at key levels (0, 30, 50, 70, 100).
Table shows current values for Position, EMA, and Range.
Visual cues:
bgcolor highlights when pos crosses over or under the EMA — potential momentum shifts.
Alerts:
Cross above/below 50 (session midpoint).
Cross above/below EMA.
How to Use It Effectively
1. Session Strength & Momentum
Position above 70: Price is near session highs — strong upward momentum.
Position below 30: Price is near session lows — strong downward momentum.
Use the EMA of position to filter out noise and identify trends.
2. Breakout or Reversal Detection
Cross above EMA: Momentum may be turning bullish.
Cross below EMA: Momentum may be turning bearish.
These crosses (especially near mid-levels like 50) can hint at session trend shifts.
3. Range Context for Entries
If you're a mean-reversion trader, look for:
Price > 70 + turning down below EMA → possible short.
Price < 30 + turning up above EMA → possible long.
For breakout traders, you might wait for:
Crosses above 70 with EMA support.
Crosses below 30 with EMA resistance.
4. Confirmation Tool
Use this indicator alongside others to confirm:
Whether price action has strength within the day.
Whether breakouts have real momentum or are extended already.
Breadth Indicators
RTH Session Highs & LowsA Pine Script indicator designed to track and plot the Regular Trading Hours (RTH) session highs and lows on a chart, typically for U.S. equity markets (e.g., S&P 500, Nasdaq, etc.), which operate from 9:30 AM to 4:00 PM Eastern Time.
Session High & Low Lines:
During the RTH session, the indicator draws green and red horizontal lines that represent the highest and lowest price seen so far within that trading session.
These levels help traders identify intraday support (low) and resistance (high) levels.
New High/Low Markers:
Small triangle markers are placed:
Above the bar when a new intraday high is made (green triangle).
Below the bar when a new intraday low is made (red triangle).
This visually flags when momentum may be building or reversing.
Intraday Strategy Support:
Use the session high/low as dynamic support/resistance for scalping or breakout strategies.
For example:
Breakouts above session highs may indicate bullish strength.
Breakdowns below session lows may suggest bearish momentum.
Mean Reversion Tactics:
Prices approaching these lines and then rejecting can be used for mean reversion setups.
Combine with volume or candlestick patterns for confirmation.
Risk Management:
Set stops or targets relative to session highs/lows.
For instance, use session high as a stop-loss level in a short position.
Volatility Gauge:
Tracking how frequently new highs/lows are formed can help assess intraday volatility or range expansion.
Complement with Indicators:
Combine this with our "McGinley Dynamic Channel with Directional Shading" indicator or our "EMA Crossover with Shading" indicator to add context to breakouts or rejections.
🪄 10 in 1MACD RSI Stochastic volume CCI MFI Momentum ADX
You can have all the indicators listed above together.
SP 500 PE Ratio (Loose Date Match)📈 **S&P 500 PE Ratio (from Excel Data)**
This custom indicator visualizes the historical S&P 500 Price-to-Earnings (PE) Ratio loaded from Excel. Each data point represents a snapshot of the market valuation at a specific time, typically on an annual or quarterly basis.
🔹 **What it does:**
- Plots the PE ratio values on the chart aligned with historical dates
- Uses stepwise or linear rendering to account for missing trading days
- Helps identify valuation cycles and extremes (e.g., overvalued vs undervalued)
🔍 **Use case:**
- Long-term market analysis
- Compare PE trends with price performance
- Spot long-term entry/exit zones based on valuation
🛠️ Future plans:
- Add value zone highlighting (e.g., PE > 30 = red, PE < 15 = green)
- Support for dynamic datasets (via Google Sheets or Notion)
Category: `Breadth indicators`, `Cycles`
💡 Source: Manually imported data (can be replaced with any custom macro data series)
Market Timing ModelJust my basic market timing model, based on breadth indicators, as well as the distance from the 50dma on the IWM, with some tweaks. Marking accumulation and distribution days as well.
Pure-ScalpingThe Pure Scalping indicator is a high-precision, momentum-based tool designed specifically for intraday and scalping traders. Built to identify short-term price imbalances, the indicator helps traders catch quick entries and exits during volatile market movements. It focuses on detecting micro-trends, liquidity zones, and reversal signals within tight timeframes like 1-min, 3-min, and 5-min charts.
🔍 Core Features:
Real-time buy/sell signals
Volume and price action confirmation
Minimal lag entries for quick decision-making
Works best in highly liquid instruments (e.g., Nifty, BankNifty, XAUUSD)
Optimized for scalping and fast-paced intraday strategies
Whether you're aiming for 5 to 10 quick trades a day or riding a strong trend for a few minutes, Pure Scalping provides the structure and edge needed to execute with confidence.
استراتيجية الشريف أيمن المتقدمةسكريبت AYMAN ALHSSUEN هو أداة تداول احترافية مصممة لدعم المتداولين في اتخاذ قرارات دقيقة وسريعة بناءً على إشارات فنية مدروسة.
يعتمد المؤشر على عدة عناصر تقنية مجمّعة في واجهة واحدة سهلة الفهم، تشمل:
الاتجاه العام باستخدام المتوسطات المتحركة (EMA 20 و EMA 50).
مؤشر VWAP لمراقبة السعر العادل والمؤسسي.
مؤشر Stochastic لتحديد مناطق التشبع الشرائي والبيعي.
إشارات شموع فنية (ابتلاع شرائي وبيعي، دوجي، وغيرها).
تلوين الخلفية حسب الاتجاه لمساعدة المتداول بصرياً.
دعم تنبيهات ذكية لفرص الدخول والخروج.
مناسب لجميع الفريمات، مع أفضل أداء على فريم 15 دقيقة و1 ساعة.
هذا السكربت مخصص للاستخدام الشخصي أو بدعوة خاصة فقط، ويمنع إعادة النشر أو التعديل دون إذن رسمي
The AYMAN ALHSSUEN script is a professional trading tool designed to help traders make fast and accurate decisions based on advanced technical signals.
This indicator combines several powerful features into one clean interface, including:
Market trend detection using EMA 20 and EMA 50.
VWAP for institutional fair value tracking.
Stochastic Oscillator to detect overbought and oversold conditions.
Smart candlestick patterns (Bullish/Bearish Engulfing, Doji, etc.).
Background coloring to visually guide the overall trend.
Intelligent alerts for optimal entry and exit points.
Works on all timeframes, optimized for 15-min and 1-hour charts.
This script is invite-only and for personal use only.
Reproduction or redistribution is prohibited without explicit permission.
Cambio Diario + Tabla Ordenada + Promedio + Alertas + Predicción📊 Overview
This Pine Script indicator analyzes the daily percentage changes of ten cryptocurrencies from the Bitget exchange. It performs the following key functions:
Data Retrieval: Fetches daily open and close prices for each asset to calculate their daily percentage change.
Data Organization: Sorts the assets based on their daily performance, from highest to lowest percentage change.
Visualization:
Table Display: Presents a table showing each asset's abbreviation and its corresponding daily change percentage.
Line Plots: Plots individual lines for each asset's daily change and a distinct line for the average change across all assets.
TradingView
Alerts: Generates alerts when an asset exhibits the highest or lowest daily change, indicating potential trading opportunities.
Trend Prediction:
Slope Calculation: Determines the slope between the current and previous average daily changes.
Future Projection: Projects the next average change based on the calculated slope.
Visual Indicators: Displays a label with the predicted average change and draws a dashed line connecting the current average to the predicted value.
🔍 Detailed Functionality
Data Retrieval:
Utilizes the request.security() function to obtain daily open and close prices for each specified cryptocurrency.
Calculates the daily percentage change using the formula:
pinescript
Copy
Edit
(close - open) / open * 100
Data Organization:
Stores the calculated percentage changes and corresponding asset names in arrays.
Implements a bubble sort algorithm to arrange the assets in descending order based on their daily changes.
TradingView
Visualization:
Table Display:
Creates a table positioned at the top-right corner of the chart.
Displays each asset's abbreviation and its daily change percentage, color-coded to indicate positive (green) or negative (red) changes.
Includes a row showing the average daily change across all assets.
Line Plots:
Plots individual lines for each asset's daily change, each with a unique color for distinction.
Plots a thicker white line representing the average daily change.
Alerts:
Identifies the assets with the maximum and minimum daily changes.
Sets up alert conditions to notify when an asset reaches the highest (suggesting a potential short opportunity) or lowest (suggesting a potential long opportunity) daily change.
Trend Prediction:
Slope Calculation:
Calculates the difference between the current and previous average daily changes to determine the slope.
Future Projection:
Adds the calculated slope to the current average to project the next average daily change.
Visual Indicators:
Displays a label at a future point on the chart (5 bars ahead) showing the predicted average change. The label's color indicates the direction of the trend: green for an upward trend and red for a downward trend.
Draws a dashed white line connecting the current average to the predicted value, visually representing the projected trend.
📈 Interpretation
An upward slope and a green label suggest a potential bullish trend across the analyzed cryptocurrencies.
A downward slope and a red label indicate a potential bearish trend.
The table and line plots provide a comprehensive view of individual asset performances and the overall market trend.
Alerts help traders identify significant movements, enabling timely decision-making.
This script offers a robust tool for monitoring daily cryptocurrency performance, identifying trends, and making informed trading decisions based on comprehensive data visualization and predictive analysis.
Cambio Diario + Tabla Ordenada + Promedio + Alertas📌 What does this script do?
This Pine Script v6 script, designed for TradingView, performs the following functions:
Calculates the daily percentage change of 10 popular cryptocurrencies on Bitget Perpetual Futures: BTC, ETH, ADA, XRP, AVAX, SOL, HBAR, IOTA, XLM, and XCN.
It sorts these daily changes from highest to lowest and presents them in a visual table in the upper right corner of the chart, updating with each new bar.
It calculates and displays the average daily changes for all analyzed assets.
It draws individual lines (plots) for each asset, representing its daily change in a panel separate from the main chart.
Identifies the asset with the highest and lowest daily change, assigning specific alerts for each. These alerts can be configured to notify you of buy (LONG) or sell (SHORT) opportunities based on the asset's performance.
📈 What does it do?
This script is useful for:
Quickly monitoring the daily performance of multiple cryptocurrencies in a single dashboard.
Identifying general market trends by observing the average daily movements.
Detecting trading opportunities by identifying which asset has seen the largest daily increase or decrease in value.
Receiving automatic alerts when a specific asset leads the day's increases or decreases, facilitating buy or sell decisions.
🔍 How to interpret the average?
The average daily movements provide an overview of market behavior:
Positive average: Indicates that, as a whole, assets are experiencing an increase in value, which may indicate an overall bullish trend.
Negative average: Suggests that most assets are losing value, which may indicate a bearish market trend.
Observing the direction and magnitude of this average can help traders make informed decisions about their investment strategies.
RESHAIndicator Name: RESHA – Static Price Levels
Description:
The RESHA indicator is a simple tool that allows traders to manually define multiple horizontal price levels on the chart. These levels are displayed as horizontal lines, each extending a customizable number of candles forward. Traders can input a comma-separated list of prices, which are then plotted automatically on the chart.
Features:
📍 Custom input box for price levels (comma-separated).
📏 Adjustable line length in bars.
Visual price labels at the end of each level.
Clean and minimalistic design, perfect for support/resistance zones or static analysis.
This tool is ideal for traders who want to keep key price zones visible at all times without relying on dynamic calculations or automated indicators.
HTF ReversalsHTF Reversals — Big Turtle Soup & Relief Patterns
A multi-timeframe reversal indicator based on the logic of how pivots form and how true reversals begin. Designed for traders who want to catch high-probability turning points on higher timeframes, with visual clarity and actionable signals.
“Reversals don’t start from nowhere — they begin with a failed expansion and a reclaim of a prior range. This script helps you spot those moments, before the crowd.”
How It Works
Detects High Timeframe (HTF) “CR” Candles:
The script scans for large-bodied candles (“CR” candles) on higher timeframes (Monthly, Weekly, 3-Day). These candles often mark the end of a trend expansion and the start of a potential reversal zone.
Looks for “Inside” Candles:
After a CR candle, the script waits for a smaller “inside” candle, which signals a pause or failed continuation. The relationship between the CR and inside candle is key for identifying a possible reversal setup.
Engulfing Confirmation (Optional):
If the inside candle doesn’t immediately trigger a reversal, the script can wait for an engulfing move in the opposite direction, confirming the failed expansion and increasing the probability of a reversal.
Entry & Target Calculation:
For each valid setup, the script calculates a retracement entry (using Fibonacci levels like 0.382 or 0.618) and a logical target (usually the CR candle’s high or low).
Visuals: Lines & Boxes:
Each signal is marked with a horizontal line (entry) and a colored box extending from the HTF close to the entry price, visually highlighting the reversal zone for the same duration as the signal’s expected play-out.
Dashboard & Alerts:
A dashboard table summarizes the latest signals for each timeframe. Custom alerts notify you of new setups in real time.
Why It Works
Pivot Logic:
Reversals often start when a strong expansion candle (pivot) is followed by a failed attempt to continue in the same direction. This script codifies that logic, looking for the “pause” after the expansion and the first sign of a reclaim.
Multi-Timeframe Edge:
By focusing on higher timeframes, the indicator filters out noise and highlights only the most significant reversal opportunities.
Objective, Repeatable Rules:
All conditions are clearly defined and repeatable, removing subjectivity from reversal trading.
Visual Clarity:
The combination of lines and boxes makes it easy to see where reversals are likely to start and where your risk/reward lies.
How to Use
Add the indicator to your chart and select your preferred timeframes (Monthly, Weekly, 3-Day).
Watch for new signals on the dashboard or via alerts.
Use the entry line and box as your trade zone; the target is also displayed.
Combine with your own confluence (price action, volume, etc.) for best results.
This indicator is best used as a framework for understanding where high-probability reversals are likely to occur, not as a standalone buy/sell tool. Always use proper risk management.
Cumulative Volume: Today vs YesterdayCumulative Volume: Today vs Yesterday. It is useful for intraday trades in stocks.
Mini Screener (ASniper)The screener score is computed in the function getScoreBias(). It does the following:
Calculates various technical indicators on the current chart:
EMA (9) and EMA (21)
RSI (14)
MACD (histogram from the MACD calculation)
VWAP
MFI (Money Flow Index over 14)
ADX (from DMI with smoothing)
Custom Sector Relative Strength (sector rotation)📌 Indicator Summary for “Custom Sector Relative Strength (sector rotation)”
🔹 Overview:
This Pine Script indicator calculates and displays the relative strength performance of up to 25 customizable sectors or ETFs compared to a user-defined benchmark index (e.g., SPY, TASI.TAD, etc.).
It helps traders and analysts identify which sectors are outperforming or underperforming relative to the benchmark over different time frames.
________________________________________
🔹 Calculation Method:
For each sector, the indicator:
1. Retrieves the current and past closing prices for both the sector and the benchmark.
2. Computes the ratio of the sector's price to the benchmark at both time points.
3. Calculates the percentage change in this ratio over the selected lookback period:
4. Relative Strength (%) = ((Current_Ratio / Past_Ratio) - 1) * 100
5. Assigns a direction symbol:
o ↑ for positive outperformance
o ↓ for underperformance
o → for no significant change
6. Applies a color code for clarity:
o Green for ↑
o Red for ↓
o Gray for →
________________________________________
🔹 How to Use:
1. Set your benchmark index (e.g., SPY or TASI.TAD) from the settings panel.
2. Choose a lookback period: 1 Day, 1 Week, 1 Month, 3 Months, 6 Months, or 1 Year.
3. Define up to 25 sectors:
o Enter the symbol and name of each sector.
o Toggle the Show option on/off to include/exclude any sector.
4. The script will sort the sectors from strongest to weakest based on their relative performance.
5. Results are displayed in a dynamic table on the chart showing:
o Ticker
o Sector Name
o Relative % Performance
o Direction Indicator (↑ ↓ →)
________________________________________
🔹 Practical Uses:
• Sector rotation strategies
• Market breadth analysis
• Benchmark-relative strength monitoring
• Multi-sector ETFs or custom group comparisons
• Saudi, US, or global sector analysis
________________________________________
Let me know if you'd like an Arabic version or want this formatted as a PDF or used as a code comment section.
RSI(2) Pullback StrategyLarry Connors and Cesar Alvarez found through extensive testing that:
RSI(2) < 10 often indicates short-term oversold conditions in strong uptrends.
RSI(2) > 90 indicates short-term overbought.
In a strong uptrend, when RSI(2) drops below 10, it often means a short pullback — a buy opportunity.
JSSTable with MomentumAppears in the top-right (or any selected corner) of the chart.
Row 1: Column headers — names of the indicators.
Row 2: Live values — updated on every new candle.
Color-coded:
RSI: Green if strong, Red if weak
DI+ / DI-: Highlighted based on dominance
ADX: Blue if trend is strong
Momentum: Green if rising, Red if falling
High/Low Digit SumNAMAN SHAH
Its about the high low total of a candle only for gold where if highs total is 9 then its a chance that it will not break the high for a long time and it will be a good opportunity for short
And vise versa
Multi-Timeframe S&R Zones (Shaded)This indicator automatically plots support and resistance zones based on recent price action across multiple timeframes:
🟥 Daily
🟧 4-Hour
🟨 1-Hour
🟩 30-Minute
🟦 5-Minute
Each zone is color-coded by timeframe and represented as a shaded region instead of a hard line, giving you a clearer and more dynamic view of key market levels. The zones are calculated from recent swing highs (resistance) and swing lows (support), and each zone spans ±5 pips for precision.
Only the most recent levels are displayed—up to 3 per timeframe—and are limited to the last 48 hours to avoid chart clutter and keep your workspace clean.
✅ Key Benefits:
Price Action Based: Zones are drawn from actual market structure (swings), not arbitrary levels.
Multi-Timeframe Clarity: View confluence across major intraday and higher timeframes at a glance.
Color-Coded Zones: Instantly distinguish between timeframes using intuitive colour coordination.
Clean Charts: Only shows the latest relevant levels, automatically expires old zones beyond 48 hours.
Flexible & Lightweight: Built for Tradingview Essential; optimized for performance.
FX Majors (+CN) Currency Basket ComparisonDescription:
This indicator shows how individual FX major currencies (including CNY) have performed relative to each other. It calculates each currency's performance against a "Trade Weighted" basket of other major currencies.
I created this because I couldn't find it, and I wanted an easy way to see currency behaviour and flows.
Purpose:
It lets you see the relative strength and weakness of each currency, similar to how the DXY measures USD strength, but for all the major currencies. Each basket and currency weights are based on Trade Weighted values from literature/economics.
This way you can maybe decide which crosses / pairs to trade.
Can helps you visualise how events (economic, news or otherwise) affect currency flows.
Features:
Relative Performance: Focuses on how a currency's value has changed over time, rather than its absolute level.
Normalization: Adjusts currency values to a starting date, making it easy to compare their performance.
Adjustable Start Date: You can set the anchor date to choose the starting point for calculating relative performance.
Customizable Weights: The indicator allows you to use custom weights for each currency basket should you wish.
Enhanced Volume w/ Pocket Pivots, Milestones & LiquiditySure! Here’s a professional and clear **description** you can use when saving or publishing the script on TradingView:
---
## 📄 Script Description: *Enhanced Volume w/ Pocket Pivots, Milestones & Liquidity*
This custom volume indicator enhances the default volume view by combining key institutional-level insights into a single tool. It highlights meaningful volume activity, liquidity conditions, and milestone events to help traders better understand accumulation/distribution and smart money participation.
### 🔍 Features:
* **Color-coded volume bars**:
* 🔵 **Pocket Pivot Volume (PPV)**: Up-day with volume > highest down-day volume of last 10 bars.
* 🟢 **Up Volume**: Up-day with volume > 50-day average.
* 🔴 **Down Volume**: Down-day with volume > 50-day average.
* 🟠 **Dry Volume**: Low-volume bars < 20% of 50-day average.
* ⚫ **Neutral/Other bars**: No significant signal.
* **Volume Milestones**:
* **HVE**: Highest volume ever (20 years lookback).
* **HVY**: Highest volume in the past 1 year (252 bars).
* **HVQ**: Highest volume in the past quarter (63 bars).
* **Projected Volume**:
* Real-time estimate of end-of-day volume based on elapsed session time.
* **Liquidity Metrics**:
* Displays current and 50-day average dollar volume.
* Estimates 1-minute liquidity for large-position feasibility.
* **Relative Volume Label**:
* Displays how today’s volume compares to the 50-day average.
* **Alerts Included**:
* Set alerts for HVE, HVY, and HVQ to catch key breakout or climactic volume events.
---
### 🧠 Ideal For:
* Growth stock traders
* Volume/price analysts
* Intraday & swing traders
* Institutions or prop traders needing liquidity benchmarks
---
Let me know if you'd like a short or promotional version (for sharing with others).
S&P 500 Estimated PE (Sampled Every 4)📊 **S&P 500 Estimated PE Ratio (from CSV)**
This indicator visualizes the forward-looking estimated PE ratio of the S&P 500 index, imported from external CSV data.
🔹 **Features:**
- Real historical daily data from 2008 onward
- Automatically aligns PE values to closest available trading date
- Useful for macro valuation trends and long-term entry signals
📌 **Best for:**
- Investors interested in forward-looking valuation
- Analysts tracking over/undervaluation trends
- Long-term timing overlay on price action
Category: `Breadth indicators`, `Cycles`