Nifty Range % and Points by Time BlocksPine Script that gives you day-wise intraday range percentage for these 3 time blocks (9:16–10:45, 10:45–1:15, 1:15–3:15), we can:
Detect time blocks during the day
Track High/Low for each block
Calculate range % for each block:
\text{Range %} = \frac{(High - Low)}{\text{Previous Day Close}} \times 100
Plot / Label it on the chart at the end of each block
Indicadores e estratégias
TQ's Support & Resistance(My goal creating this indicator): Provide a way to categorize and label key structures on multiple different levels so I can create a plan based on those observable facts.
The Underlying Concept / What is Momentum?
Momentum indicates transaction pressure. If the algorithm detects price is going up, that would be considered positive momentum. If the algorithm detects price is going down negative momentum would be detected.
The Momentum shown is derived from a price action pattern. Unlike my previous Support & Resistance indicator that used Super Trend, this indicator uses a unique pattern I created. On the first bar bearish momentum is detected a resistance Level is made at the highest point of the previous bullish condition. On the first bar bullish momentum is detected a support Level is made at the lowest point of the previous bearish condition. This happens on 5 different Momentum Levels, (short-term to long-term). I currently use this pattern to trade so the source code is protected.
What is Severity?
Severity is How we differentiate the importance of different Highs and Lows. If Momentum is detected on a higher level the Supply or Demand Level is updated. The Color and Size representing that Level will be shown. Demand and Supply Levels made by higher levels are more SEVERE than a demand level made by a lower level.
Technical Inputs
- to ensure the correct calculation of Support and Resistance levels change BAR_INDEX. BAR_INDEX creates a buffer at the start of the chart. For example: If you set BAR_INDEX to 300. The script will wait for 300 bars to elapse on the current chart before running. This allows the script more time to gather data. Which is needed in order for our dynamic lookback length to never return an error (Dynamic lookback length can't be negative or zero). The lower the timeframe the greater the number of bars need. For Example, if I open up a 1min chart I would enter 5000 as my BAR_INDEX since that will provide enough data to ensure the correct calculation of Support and Resistance levels. If I was on a daily chart, I would enter a lower number such as 800. Don't be afraid to play around with this.
- Toggle options (Close) or (High & Low) creates Support and Resistance Levels using the Lowest close and Highest close or using the Lowest low and Highest high.
Level Inputs
- The indicator has 5 Different Levels indicating SEVEREITY of a Supply and Demand Levels. The higher the Level the more SEVERE the Level.
Display Inputs
- You have the option to customize the Length, Width, Line Style, and Colors of all 5 different
- This indicator includes a Trend Chart. To Easily verify the current trend of any displayed by this indicator toggle on Chart On/Off. You also get the option to change the Chart Position and the size of the Trend Chart
How Trend Is being Determined?
(Close > Current Supply Level) if this statement is true technically price made a HH, so the trend is bullish.
(Close < Current Demand Level) if this statement is true technically price made a LL, so the trend is bearish.
- Fully customize how you display Market Structure on different levels. Line Length, Line Width, Line Style, and Line color can all be customized.
How it can be used?
(Examples of Different ways you can use this indicator): Easily categorize the severity of each and every Supply or Demand Level in the market (The higher Level the stronger the level)
: Quickly Determine the trend of any Level.
: Get a consistent view of a market and how different Levels are behaving but just use one chart.
: Take the discretion from hand drawing support and resistance lines out of your trading.
: Find and categorize strong levels for potential breakouts.
: Trend Analysis, use Levels to create a narrative based on observable facts from these Levels.
: Different Targets to take money off the table.
: Use Severity to differentiate between different trend line setups.
: Find Great places to move your stop loss too.
London Breakout Tracker - Box Style📊 London Breakout Tracker (Pine Script v6)
This script is designed to track the Asian session range and identify breakout opportunities when the London session begins. It highlights high-probability trade setups and helps avoid fakeouts or overly wide ranges.
🧱 1. Session Time Definitions (Adjusted for Kenyan Time)
The Asian session is defined as:
3:00 AM to 11:00 AM (Kenyan Time)
🔐 2. Asian Session High & Low
During the Asian session:
The script tracks the highest high and lowest low to define the range.
These are stored in variables: asianHigh and asianLow.
🧊 3. Box Drawing for the Asian Range
Once the Asian session ends:
A visual box is drawn around the session using box.new().
This box spans from the session start to end bars and from the high to low.
It helps visually see the range price must break out from.
🚨 4. Breakout Signals
After the Asian session:
A Long Breakout signal is generated if:
The candle closes above the Asian High.
A Short Breakout signal is generated if:
The candle closes below the Asian Low.
This corresponds to 00:00 to 08:00 UTC
These are shown with:
✅ Green up label for long breakouts
❌ Red down label for short breakouts
🧯 5. Fakeout Detection
If price breaks out but closes back inside the Asian range, it’s marked as a Fakeout:
Long Fakeout: Price breaks above high, then closes back below.
Short Fakeout: Price breaks below low, then closes back above.
These are marked with orange X-crosses above or below candles.
⚠️ 6. Wide Range Filter
If the Asian session range is too wide (e.g. > 40 pips), a gray background is drawn.
This warns you not to trade that day since breakouts from wide ranges are unreliable.
📣 7. Alert Conditions
The script can trigger alerts in TradingView when:
🔔 A Long or Short Breakout occurs
⚠️ A Fakeout is detected
You can set these up via the TradingView alert system.
🎯 Overall Purpose:
The script helps you:
Clearly see the Asian session range
Identify breakout opportunities at the London open
Avoid trading during fakeouts or wide-range sessions
Get alerted when breakout/fakeout conditions occur
Sahid Strategy v2This script identifies potential buy/sell signals using:
Pivot Points - Detects swing highs/lows (price reversals)
Confirmation Filters - Reduces false signals using:
RSI (momentum)
Moving Average (trend direction)
Optional MACD (trend confirmation)
Key Features
Signal Type Trigger Conditions
BUY - Price makes a swing low (pivot)
Copy
- RSI ≤ 30 (oversold)
- Price above trend MA
- MACD bullish (optional) |
| SELL | - Price makes a swing high (pivot)
- RSI ≥ 70 (overbought)
- Price below trend MA
- MACD bearish (optional) |
Visual Signals
Green "BUY" labels below price bars
Red "SELL" labels above price bars
Purple trend line (20-period EMA/SMA)
Orange/blue circles showing raw pivot points
Optional Tools
Debug Table (top-right): Shows real-time:
RSI value
Price vs MA position
MACD status
Alerts - Triggers audible/visual notifications
Customization
Adjust in settings:
Pivot sensitivity (left/right bars)
RSI levels (30/70 by default)
MA type/length (20-period EMA/SMA)
Toggle MACD filter on/off
Best For: Swing trading in trending markets (1H-4H timeframes). Signals appear faster than classic pivot strategies but still require confirmation from other analysis tools.
Stochastic RSI - PhilStochastic RSI (StochRSI) is a technical analysis indicator used to support stock market prediction by comparing a security's price range and closing price. StochRSI fulfills a unique role in that it concentrates on market momentum and succeeds at providing readings for overbought and oversold market conditions.
Days Live CounterThis quite simply tracks how many days an asset has been on Trading View for.
The indicator calculates the day count based on the timestamp of the first visible bar in your current chart view. Since monthly charts generally load data from further back in time than daily or intraday charts, they'll show a larger day count.
This isn't a bug in the indicator - it's correctly counting the days from the first bar it can see in each timeframe.
[icreature] Various types of MA with Auto-coloured and LabelsHi all,
This MA includes multiple types for you to choose from, with automatic color changes to indicate bullish or bearish trends. It also comes with labels, so you won’t have to remember which MA periods or timeframe you’ve set. Enjoy!
EMAsRaccoon Emas + ribbon
12 - 21 emas with ribbon for low timeframe
50,100, 200, 300 emas for key levels
Million Minority Strategy (Visualizer)This Indicator breaks up the candles on a 1 min chart into 5 minute blocks. THis can then provide an indication of what trade will open the next 5 min block.
SHORT_TRADING📈 EMA34 (Exponential Moving Average - 34 Period)
EMA34 is a technical analysis indicator that calculates the average price of an asset over the past 34 periods, giving more weight to recent prices. This makes it more responsive to recent price changes compared to a simple moving average.
🔍 Key Features:
Period: 34 candles (can be minutes, hours, days, depending on the chart timeframe)
Type: Exponential (faster reaction to price movements)
Purpose: Helps identify the current trend direction and potential support/resistance levels
📊 How Traders Use EMA34:
Trend Identification:
Price above EMA34 → uptrend
Price below EMA34 → downtrend
Dynamic Support/Resistance:
During uptrends, EMA34 often acts as a support
During downtrends, it acts as resistance
Entry/Exit Signals:
Crossovers with other EMAs (like EMA13 or EMA200) can signal potential trade setups
🧠 Common Pairing:
EMA34 is often used with shorter EMAs like EMA13 or longer ones like EMA55/EMA200 to create a moving average ribbon or crossover strategy.
Tetris with Auto-PlayThis indicator is implemented in Pine Script™ v6 and serves as a demonstration of TradingView's capabilities. The core concept is to simulate a classic Tetris game by creating a grid-based environment and managing game state entirely within Pine Script.
Key Technical Aspects:
Grid Representation:
The script defines a custom grid structure using a user-defined type that holds the grid’s dimensions and a one-dimensional array to simulate a two-dimensional board. This structure is used to track occupied cells, clear full rows, and determine stack height.
Piece Management:
A second custom type is used to represent the state of a tetromino piece, including its type, rotation, and position. The code includes functions to calculate the block offsets for each tetromino based on its rotation state.
Collision Detection and Piece Locking:
Dedicated functions check for collisions against the grid borders and existing blocks. When a collision is detected during a downward move, the piece is locked into the grid, and any complete lines are cleared.
AIgo-Driven Placement:
The script incorporates a simple heuristic to determine the best placement for the next tetromino. It simulates different rotations and horizontal positions, evaluating each based on aggregated column height, cleared lines, holes, and bumpiness. This decision-making process is encapsulated in an AI-like function that returns the optimal rotation and placement.
Rendering Using Tables:
The visual representation is managed via TradingView’s table objects. The game board is rendered with a bordered layout, while a separate preview table displays the next piece and the current score. Each cell is updated with text and background colors that correspond to the state of the game.
Execution Flow and Timing:
The main execution loop handles real-time updates by dropping pieces at set intervals and checking for game-over conditions. The code leverages persistent variables and time comparisons to control game speed and manage transitions between piece drops.
Executing:
Add the indicator to the chart
It starts playing itself till game over
There are no parameters to change in this version but the grid in the code directly
p.s. Sadly we have no interactive buttons in the current pinescript versions to play ourself, but its about the possibilitys what we could do ;-)
Maybe in a future version there is more possible, if i find time to enhance and expand the idea
Have fun :-)
Market Open Highlights (9:30 AM ET)This indicator zeroes in on the 9:30 AM Eastern Time market opens for NAS100 and US30, highlighting all market opens with a bold yet subtle yellow background. Tailored for precision backtesting, it uses TradingView’s timezone capabilities to pinpoint the exact 9:30 AM candle, skipping weekends to focus solely on U.S. equity market opens.
What It Does:
The script tracks the bar indices of all market opens at 9:30 AM ET, applying a semi-transparent yellow highlight to those candles. It’s a clean, efficient way to mark key session starts for analyzing price action or testing strategies.
How to Use It:
1. Apply the script to a chart of NAS100 (e.g., FX:NAS100) or US30 (e.g., FX:US30) in TradingView on any timeframe.
2. Set your chart timezone to "America/New_York" (Settings > Timezone/Sessions).
3. Scroll back through trading days to see the yellow highlights on the 9:30 AM candles.
4. While it functions across all timeframes, it’s optimized for 5-minute and 1-minute charts, where the 9:30 AM candle aligns precisely with the U.S. market open for detailed analysis.
5. Use it to study price behavior or refine strategies around this critical daily event.
50-Line Oscillator // (\_/)
// ( •.•)
// (")_(")
25-Line Oscillator
Description:
The 25-Line Oscillator is a sophisticated technical analysis tool designed to visualize market trends through the use of multiple Simple Moving Averages (SMAs). This indicator computes a series of 26 SMAs, incrementally increasing the base length, providing traders with a comprehensive view of price dynamics.
Features:
Customizable Base Length: Adjust the base length of the SMAs according to trading preferences, enhancing versatility for different market conditions.
Rainbow Effect: The indicator employs a visually appealing rainbow color scheme to differentiate between the various trend lines, making it easy to identify crossovers and momentum shifts.
Crossovers Detection: The script includes logic to detect crossover events between consecutive trend lines, which can serve as signals for potential entry or exit points in trading.
Clear Visualization: Suitable for both novice and seasoned traders, the plots enable quick interpretation of trends and market behavior.
How to Use:
Add the indicator to your chart and customize the base length as desired.
Observe the rainbow-colored lines for trend direction.
Look for crossover events between the SMAs as potential trading signals.
Application: This indicator is particularly useful for swing traders and trend followers who aim to capitalize on market momentum and identify reversals. By monitoring the behavior of multiple SMAs, traders can gain insights into the strength and direction of price movements over various time frames.
siaThis script is a combination of several TradingView Pine Script indicators, each designed to provide different types of analysis and visualization for trading strategies. Here's a breakdown of each part:
1. Trendlines with Breaks
Purpose: Identifies trendlines and their breaks.
Key Features:
Detects swing highs and lows.
Calculates trendlines based on ATR, Stdev, or Linreg.
Plots upper and lower trendlines.
Highlights breakouts with shapes and alerts.
2. CM_Ultimate_MA_MTF_V2
Purpose: Plots a multi-timeframe moving average with optional second moving average.
Key Features:
Supports various moving average types (SMA, EMA, WMA, etc.).
Highlights price crossings with the moving averages.
Allows color changes based on direction.
Optional second moving average for additional analysis.
3. HalfTrend
Purpose: Identifies trends and plots trend channels.
Key Features:
Uses ATR for channel deviation.
Plots trend lines and channels.
Highlights trend changes with arrows.
Provides alerts for buy and sell signals.
4. Ichimoku
Purpose: Plots Ichimoku Cloud components and additional lines.
Key Features:
Plots Tenkan-Sen, Kijun-Sen, Chikou Span, and Ichimoku Cloud.
Highlights crosses between Tenkan-Sen and Kijun-Sen.
Includes additional lines like Quality Line and Direction Line.
Provides alerts for cross signals.
How to Use
Trendlines with Breaks: Useful for identifying potential breakout points in the market.
CM_Ultimate_MA_MTF_V2: Helps in understanding the trend across different timeframes.
HalfTrend: Provides a clear visualization of trend channels and potential reversal points.
Ichimoku: Offers a comprehensive view of market trends and potential support/resistance levels.
Integration
These indicators can be used together to create a robust trading strategy. For example, you can use the trendlines to identify breakouts, confirm the trend with the multi-timeframe moving average, and use Ichimoku for additional confirmation.
Customization
Each indicator has several input parameters that can be customized to fit your trading style and preferences.
Multi-Timeframe Reversal StrategyThis is my first published indicator. In spirit of this community it is free and I welcome any input to make it better. working on future projects on volume and taking tips from more experienced developers.
RSI SiaThis script is a custom indicator for TradingView written in Pine Script version 5. It calculates the Relative Strength Index (RSI) and uses it to generate trading signals. Here's a breakdown of what the script does:
Key Features:
RSI Calculation:
The script calculates the RSI using a 14-period window.
It also calculates the momentum of the RSI over a 9-period window (rsi delta) and a simple moving average (SMA) of the RSI over a 3-period window (rsi sma).
Composite Index (CI):
The composite index is calculated as the sum of rsi delta and rsi sma.
Horizontal Lines and Zones:
Several horizontal lines are plotted at different levels (e.g., 20, 40, 60, 80, 120, 150, 180) to indicate overbought and oversold conditions.
Filled zones are created between certain levels to highlight areas of interest.
Moving Averages:
The script plots SMA and EMA of the RSI when Enable RSI ma is set to true.
It also plots moving averages of the composite index.
Crossover Signals:
The script detects bullish and bearish crossovers between the SMA and EMA of the RSI.
It plots shapes (labels) on the chart to indicate buy (BUY) and sell (SELL) signals based on these crossovers.
Usage:
Enable RSIma: This input allows you to enable or disable the plotting of RSI moving averages.
i1: This variable is used to adjust the vertical position of the composite index and its moving averages.
Visualization:
The RSI is plotted in black.
The RSI fast trigger line (SMA of RSI) is plotted in green when enabled.
The RSI slow trigger line (EMA of RSI) is plotted in orange when enabled.
The composite index and its moving averages are plotted in red, green, and orange.
Buy and sell signals are indicated with green and red labels, respectively.
This script can be used to identify potential trading opportunities based on RSI crossovers and the composite index.
Intraday Macro & Flow Indicator# IntraMacroFlow Indicator
## Introduction
IntraMacroFlow is a volume and delta-based indicator that identifies significant price movements within trading sessions. It generates signals when volume spikes coincide with quality price movement, filtered by RSI to avoid overbought/oversold conditions.
> **Note:** This indicator provides multiple signals and should be combined with additional analysis methods such as support/resistance, trend direction, and price action patterns.
## Inputs
### Volume Settings
* **Volume Lookback Period** (14) - Number of bars for volume moving average calculation
* **Volume Threshold Multiplier** (1.5) - Required volume increase over average to generate signals
* **Delta Threshold** (0.3) - Required close-to-open movement relative to bar range (higher = stronger movement)
### Session Configuration
* **Use Dynamic Session Detection** (true) - Automatically determine session times
* **Highlight Market Open Period** (true) - Highlight first third of trading session
* **Highlight Mid-Session Period** (true) - Highlight middle portion of trading session
* **Detect Signals Throughout Whole Session** (true) - Find signals in entire session
* **Session Time** ("0930-1600") - Trading hours in HHMM-HHMM format
* **Session Type** ("Regular") - Select Regular, Extended, or Custom session
### Manual Session Settings
Used when dynamic detection is disabled:
* **Manual Session Open Hour** (9)
* **Manual Session Open Minute** (30)
* **Manual Session Open Duration** (60)
* **Manual Mid-Session Start Hour** (12)
* **Manual Mid-Session End Hour** (14)
## How It Works
The indicator analyzes each bar using three primary conditions:
1. **Volume Condition**: Current volume > Average volume × Threshold
2. **Delta Condition**: |Close-Open|/Range > Delta threshold
3. **Time Condition**: Bar falls within configured session times
When all conditions are met:
* Bullish signals appear when close > open and RSI < 70
* Bearish signals appear when close < open and RSI > 30
## Display Elements
### Shapes and Colors
* Green triangles below bars - Bullish signals
* Red triangles above bars - Bearish signals
* Blue background - Market open period
* Purple background - Mid-session period
* Bar coloring - Green (bullish), Red (bearish), or unchanged
### Information Panel
A dynamic label shows:
* Current volume relative to average (Vol)
* Delta value for current bar (Delta)
* RSI value (RSI)
* Session status (Active/Closed)
## Calculation Method
```
// Volume Condition
volumeMA = ta.sma(volume, lookbackPeriod)
volumeCondition = volume > volumeMA * volumeThreshold
// Delta Calculation (price movement quality)
priceRange = high - low
delta = math.abs(close - open) / priceRange
deltaCondition = delta > deltaThreshold
// Direction and RSI Filter
bullishBias = close > open and entrySignal and not (rsi > 70)
bearishBias = close < open and entrySignal and not (rsi < 30)
```
## Usage Recommendations
### Suitable Markets
* Equities during regular trading hours
* Futures markets
* Forex during active sessions
* Cryptocurrencies with defined volume patterns
### Recommended Timeframes
* 1-minute to 1-hour (optimal: 5 or 15-minute)
### Parameter Adjustments
* For fewer but stronger signals: increase Volume Threshold (2.0+) and Delta Threshold (0.4-0.6)
* For more signals: decrease Volume Threshold (1.2-1.5) and Delta Threshold (0.2-0.3)
### Usage Tips
* Combine with trend analysis for higher-probability entries
* Focus on signals occurring at session boundaries and mid-session
* Use opposite signals as potential exit points
* Configure alerts to receive notifications when signals occur
## Additional Notes
* RSI parameters are fixed at 14 periods with 70/30 thresholds
* The indicator handles overnight sessions correctly
* Fully compatible with TradingView alerts
* Customizable visual elements
## Release Notes
Initial release: This is a template indicator that should be customized to suit your specific trading strategies and preferences.
Grid Level Visualizer v1.0Overview
This indicator draws a customizable grid of horizontal price levels directly on your chart. It's designed to help traders visualize potential support and resistance zones, manage grid trading strategies, or simply divide a price range into equal segments. The script offers interactive controls, extensive customization options, and alert functionality.
Key Features:
Customizable Grid: Draws a grid based on user-defined Upper Price Bound and Lower Price Bound.
Interactive Bounds: Easily adjust the Upper and Lower bounds by dragging the corresponding lines directly on the chart (click the line first to select, then drag). Bounds can also be set numerically in the settings.
Adjustable Levels: Specify the total number of horizontal lines in the grid (Number of Grid Levels), including bounds.
Custom Styling: Independently configure the color, width, and style (Solid, Dashed, Dotted) for the boundary lines and the intermediate grid lines.
Price Labels: Optional display of price values for each grid level, positioned on the right side near the current bar.
Labels for boundary levels automatically inherit the boundary line colors.
Adjustable horizontal offset (Price Label Offset (X)) for labels.
Customizable text size (Text Size) and color (Price Text Color (Mid)) for mid-levels.
Grid Start Time: Define a specific date and time (Grid Start Time) from which the grid lines should start appearing on the chart (defaults to the beginning of the current month).
Line Extension: Grid lines automatically extend to the right margin of the chart.
Alert Condition: Provides a "Grid Level Cross" condition for creating custom alerts when price crosses any active grid level.
Alert Toggle: An option (Enable Alert Condition?) in the settings to enable or disable the availability of the "Grid Level Cross" condition when creating alerts.
Real-time Calculation: Uses calc_on_every_tick=true for responsive alert checking against the current price.
How to Use:
Add the "Improved Grid Level Visualizer" indicator to your chart.
Set Bounds: Adjust the Upper Price Bound and Lower Price Bound lines by clicking and dragging them on the chart, or set precise values in the indicator settings.
Set Levels: Define the Number of Grid Levels you need in the settings.
Set Start Time: Use the Grid Start Time input to control when the grid visualization begins.
Customize: Configure colors, line styles, label visibility, etc., in the settings panel.
Set Alerts (Optional): Follow the steps below.
Notes:
The grid levels are calculated purely based on the mathematical division of the specified price range. They do not automatically adapt to market structure unless you manually adjust the bounds.
When changing the Grid Start Time after the indicator has been running, you might need to refresh the chart or remove/re-add the indicator for the visual starting point to update correctly.
Support & Resistance LevelsSupport & Resistance Levels (MTF) is an indicator that highlights key support and resistance zones using data from higher timeframes. It helps traders spot strong price levels and align entries with the broader market trend.
zigzag all timeThe indicator is applicable across all timeframes, meaning it can be used for short-term (e.g., minutes, hours) or long-term (e.g., days, weeks, months) trading strategies. This ensures that the analysis is versatile and adaptable to different trading styles.
ICEBERG ENTRYThis TradingView indicator is designed to detect hidden block orders or iceberg orders on the NIFTY50 chart using a combination of volume spikes and minimal price movement. It works across all timeframes and in both live and historical (closed) markets.