MACD & Stochastic AlertThis code detects if the following combination has occured in the chart
if MACD has crossed over MACD Signal in the last 4 candles
and
whether the Fast Stochastic K% has exited the channel 80 & 23
Then you can set an alert based on the function call.
Indicadores e estratégias
High/Low Day + Operacionais (com RSI)📌 Indicator Name: High/Low Day + Operational Levels (with RSI)
Short title: HL Day + RSI
Version: Pine Script v6
Overlay: Yes (draws directly on the chart)
🧠 What This Script Does
This indicator is a comprehensive tool designed for intraday and swing traders, combining daily high/low levels, custom operational zones, and a scaled RSI visual directly on the chart. It helps traders identify key price zones for entries or exits and overlays the RSI indicator in a unique way that’s dynamically scaled to the day’s range.
⚙️ Main Features
🔹 Daily High & Low Lines
Automatically detects the current day’s high and low.
Updates dynamically as new highs/lows form.
Optionally displays labels for "High Day" and "Low Day".
🔹 Operational Zones
Two customizable strategies for setting trade zones around the high/low:
Operational 01: Projects levels above the High and below the Low using a user-defined distance (e.g., ±20 points).
Operational 02: Projects levels inside the daily range using a reversed logic (e.g., High - X and Low + X).
Each has customizable visibility and color.
🔹 RSI Visualization
Plots the RSI scaled between the day’s high and low prices.
Highlights overbought (default 80), oversold (default 20), and midpoint (default 50) RSI levels with color-coded lines.
Dynamically places a visual marker and RSI value label aligned to the price chart.
The RSI is smoothed using ATR to account for market volatility.
🛠️ How to Use It
Add the Script: Paste the code into a new Pine Script editor on TradingView and add it to your chart.
Timeframe: Best used on intraday charts (1m to 1h), but works on any timeframe.
Settings Panel:
Toggle the display of High/Low lines.
Adjust point distances for Operational 01 and 02.
Choose whether to show each operational zone and assign their colors.
Enable or disable RSI display, and customize RSI settings (length, ATR smoothing, levels, and colors).
Trade with Context:
Use Operational levels as potential zones for breakout or reversal entries.
Observe RSI in relation to the price range to gauge momentum or overbought/oversold conditions.
Combine the high/low zones and RSI signal for confirmation.
🔍 Example Scenarios
Breakout Strategy: Use Op. 01 levels for buying above the high + 20 pts or selling below the low – 20 pts.
Reversal Strategy: Use Op. 02 to identify potential fade/reversal levels within the day's range.
Momentum Confirmation: When price breaks Op.01 levels and RSI is above 70 or below 30, this may add confluence to the setup.
((Range||Type||Swing))Consecutive Candle range boxes with gradient and number count. Inside Outside and Engulfing color bars plus plots. Strict swing filter plus bonus filter where the 3rd bar in the swing closes below the swing candles high or low respectfully.
How I Use
I use the candle stick patterns to gauge market conditions, the consecutive candle ranges to follow order flow using a closing break of the range and retest and the filtered swings to assist in identifying stronger. If any one wants to create a strategy around this that would be cool i know nothing of coding and do everything with A.I
turns
Multi-TF T1W E1DTest
MA of 3 line cross with multi time frame
This one is for test how stock price react to each moving average
RUBX Индекс рубляThe ruble index, similar to the DXY, offsets the weakness or strength of the dollar in the USD/RUB
индекс рубля на подобии DXY, невелирует слабость или силу доллара в USD/RUB
My script1// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
2// © Lkkahar99
3
4//@version=6
5indicator("My script")
6plot(close)
7
📊 Smart Money Trend Scanner ComboThis script combines EMA price direction with smart money concepts and gives you trading sessions as well with volumetric arrows
🔺 Smart Money Candle HighlightThis highlights SMC Candles red which helps in identifying retracements zones
Auto Step Horizontal LinesAuto Step Horizontal lines by custom range
Create automatic horizontal lines by specifying the price range for each line, with each line serving as an observation point for support and resistance levels.
Nifty/BankNifty Scanner - RSI, MACD, BB, VWAP1. RSI (Relative Strength Index)
Purpose: Measures market momentum and identifies overbought (>70) or oversold (<30) conditions.
Benefit: Helps catch potential reversal zones or trend exhaustion points.
📈 2. MACD (Moving Average Convergence Divergence)
Purpose: Detects changes in trend direction via crossovers of the MACD line and signal line.
Benefit: Flags bullish and bearish momentum shifts, useful for confirming trade entries/exits.
📉 3. Bollinger Bands
Purpose: Shows volatility using a moving average with upper/lower bands.
Benefit: When price touches the upper/lower bands, it may indicate overextended conditions—potential reversal or breakout areas.
🟠 4. VWAP (Volume Weighted Average Price)
Purpose: Tracks the average price traded based on both volume and price.
Benefit: Acts as a dynamic support/resistance level, especially useful for intraday trading in Nifty/Bank Nifty. Crossing VWAP often signals institutional buying/selling zones.
✅ Overall Benefits
Combines momentum, trend, volatility, and volume-based signals
Helps in multi-angle analysis—confirming trades with multiple indicators
Useful for intraday and swing trading on Nifty/Bank Nifty
Clean visuals and alerts make decision-making faster
📈 Volume Surge with EMA Trend ConfirmationVolume Surge Indicator arrows populate - uses 200 ema and 20
market relative strengthOverview
market relative strength is a custom indicator that visualizes how strong or weak a given asset is compared to a selected market benchmark — such as KOSPI, NASDAQ100, BTC dominance, or total crypto market cap.
How It Works
The indicator calculates the relative return between the current asset and the selected benchmark over a user-defined period. It then normalizes the difference into a 0–100 score:
Above 50 = outperforming the market
Below 50 = underperforming the market
Above 70 / Below 30 = strong divergence from market trend
Use Case
This is ideal for identifying assets with strong relative performance, detecting trend leaders or laggards, and rotating positions between sectors or assets based on strength.
Customization
Choose from a list of market indexes or crypto metrics
Set the comparison period and normalization range
Visual cues with background shading for strong/weak zones
Note
This is not the same as RSI. This indicator is based on relative performance to a benchmark, not price momentum.
Top & Bottom Search🧩 ~ Experimental🔧📌 Top & Bottom Search🧩 ~ Experimental🔧
This script is designed to identify potential market reversal zones using a combination of classic candlestick patterns (Piercing Line & Dark Cloud Cover) and trend confirmation tools like EMA positioning and optional RSI filters.
🔍 Core Features:
✅ Detects Piercing Line and Dark Cloud Cover patterns.
✅ Optional EMA filter to confirm bullish or bearish alignment.
✅ Optional RSI filter to confirm oversold or overbought conditions.
✅ Visual plot of the selected EMA (customizable thickness & color).
✅ Clean and toggleable inputs for user flexibility.
⚙️ Customizable Settings:
Enable/disable EMA confirmation.
Enable/disable RSI confirmation.
Choose whether to display the EMA on the chart.
Adjust EMA period, RSI thresholds, and candle visuals.
🧪 Note:
This is an experimental tool, best used as a supplement to your existing analysis. Not every signal is a guaranteed reversal—this script aims to highlight potential turning points that deserve closer attention.
I HIGHLY recommend using this in coherence with many other indicators in a robust system of indicators that meet your desired time frames and signal periods.
NOTES*
1.) An alternative way to view this indicator is as a "Piercing & Dark Cloud Candle Indicator/Strategy w/ EMA & RSI Logic - Either EMA or RSI Logics are Optional."
2.) When toggling between the RSI and EMA Filters, the default is set to EMA filter applied, however you cannot have both RSI signals and EMA filters on the chart at the same time, it can only be one or the other. So be aware that if you have EMA filter ON and select RSI filter, it will only be displaying the RSI filtered outputs. The ONLY WAY to see the EMA filtered outputs is to only have the EMA filter box checked and NOT the RIS filter box.
Volume Indicator - Separate Pane//@version=5
indicator("Volume Indicator - Separate Pane", overlay=false)
// Volume Configuration
var int maLength = input.int(10, "MA Period", minval=5, maxval=50)
var color volumeColor = input.color(#2962FF, "Volume Color")
var color maColor = input.color(#FF6D00, "MA Color")
// Calculations
volumeMA = ta.sma(volume, maLength)
// Plots
plot(volume, "Volume", volumeColor, style=plot.style_columns)
plot(volumeMA, "Volume MA", maColor, 2)
Z-Score V2Z-Score Reversal Indicator for TradingView
Catch Overextended Trends & Potential Reversals Using Statistical Z-Scores
📌 Overview
This indicator calculates the Z-score of price movements, helping traders identify overbought and oversold conditions based on standard deviations from the mean.
Plots the Z-score (forest green line) to visualize momentum strength.
Key levels at ±1, ±2, ±3 standard deviations (dashed white lines) highlight potential reversal zones.
Customizable lookback period to adjust sensitivity.
Ideal for:
Mean-reversion strategies
Trend exhaustion detection
Breakout confirmation
📊 How It Works (The Math Behind It)
The Z-score measures how far the current price is from its mean, normalized by standard deviation.
🔹 Formula:
Z = (X − μ) / σ
X = Current price (or selected source)
μ = Simple Moving Average (SMA) over the lookback period
σ = Standard deviation over the lookback period
🎯 Trading Applications
Reversal Trading (Mean Reversion):
Short near +2 or +3 (expecting a pullback toward the mean).
Long near -2 or -3 (expecting a bounce toward the mean).
Trend Continuation (Breakout Confirmation):
If price breaks above +2 or +3, momentum may continue further.
If price breaks below -2 or -3, downtrend may accelerate.
Divergence Detection:
If price makes a new high but Z-score fails to reach prior highs, weakening momentum (bearish divergence).
If price makes a new low but Z-score fails to reach prior lows, potential bullish reversal.
⚙️ Customization Options
Adjustable Lookback Period – Modify sensitivity (shorter = more responsive, longer = smoother).
Source Selection – Apply to close, open, hl2, etc.
Clean Visuals – Plotlines do not distort scaling (only Z-score affects autofit).
Multi-Timeframe EMA Signal - StyledTrend reminder, what is based on the 39 MA. Looking after 14 CLOSED candles. The minute TF is calculated from the 1m chart, the 1H, 4h, 1D is calculated from the 1h TF.
If you go higher on the minute TF you see that the calculation goes bad, so you dont see the minute TF-s trend if you are on the 5m or on the 15M or higher TF. It's ok for my needs i usualy trade on the 1m chart so i see everything.
It's simple.
I was looking for a srcipt like this, and did not find anything.
It's not my work, its Veronika's script from chatGPT based on my needs. :)
A/E/VWAPA/E/VWAP Indicator Description
The A/E/VWAP (Anchor/Event VWAP) indicator is a versatile tool for traders, designed to calculate and display the Volume Weighted Average Price (VWAP) anchored to specific time periods or events. It supports customizable anchor periods, such as sessions, weeks, months, or significant events like earnings, dividends, splits, or the third Friday of the month (commonly associated with options expiration for SPY). The indicator also includes optional upper and lower bands, which can be calculated using either standard deviation or percentage-based methods, providing additional context for price action relative to the VWAP.
Key Features:
Customizable Anchor Periods:
Choose from a variety of anchor periods: Session, Week, Month, Quarter, Year, Decade, Century, Earnings, Dividends, Splits, or ThirdFriday (specifically for SPY or quarterly options expiration).
Automatically defaults to "Earnings" for non-intraday charts (except for SPY, which uses "ThirdFriday") and "Session" for intraday charts.
Supports event-driven VWAPs by anchoring to earnings, dividends, or splits data when available.
Flexible Source Input:
The VWAP calculation uses a user-defined price source (default: HLC3, the average of high, low, and close prices).
Allows customization to suit different trading strategies.
Offset Adjustment:
Apply an offset to shift the VWAP and bands forward or backward on the chart for better visualization or strategy alignment.
Configurable Bands:
Optionally display up to three sets of upper and lower bands around the VWAP.
Bands can be calculated using:
Standard Deviation: Measures volatility relative to the VWAP.
Percentage: Uses a percentage of the VWAP value (e.g., a multiplier of 1 = 1% deviation).
Each band set has a customizable multiplier (default: 1.0, 2.0, 3.0) to adjust the distance from the VWAP.
Bands are color-coded (green, olive, teal) with transparent fills for easy identification.
Visual and Performance Features:
The VWAP line is plotted in blue (#2962FF) for clear visibility.
Bands are optionally displayed with customizable visibility and color-coded fills for better chart clarity.
Includes error handling for cases where volume data is unavailable from the data vendor.
Use Cases:
Intraday Trading: Anchor the VWAP to the start of the trading session to identify key support/resistance levels.
Swing Trading: Use longer-term anchors (e.g., Week, Month, or Quarter) to track broader price trends.
Event-Based Trading: Anchor the VWAP to earnings, dividends, or splits to analyze price behavior around significant corporate events.
Options Trading: Use the "ThirdFriday" anchor for SPY to monitor VWAP levels during options expiration weeks.
Volatility Analysis: Enable bands to gauge price deviations and identify overbought/oversold conditions.
Settings:
VWAP Settings:
Anchor Period: Select the time or event to anchor the VWAP (e.g., Session, Earnings, ThirdFriday).
Source: Choose the price input for VWAP calculation (default: HLC3).
Offset: Shift the VWAP and bands by a specified number of bars (default: 0).
Bands Settings:
Bands Calculation Mode: Choose between Standard Deviation or Percentage for band calculations.
Bands Multiplier #1, #2, #3: Set the multiplier for each band set (default: 1.0, 2.0, 3.0).
Show Bands: Toggle visibility for each band set individually.
Notes:
The indicator requires volume data to function correctly. If no volume is provided, an error message will be displayed.
Event-based anchors (Earnings, Dividends, Splits) rely on data availability from the data vendor.
The "ThirdFriday" anchor is particularly useful for SPY or instruments tied to quarterly options expiration cycles.
This indicator is ideal for traders seeking a flexible VWAP tool that adapts to both time-based and event-driven trading strategies, with customizable bands to enhance price analysis.
Day of Week and HTF Period SeparatorThis indicator displays vertical lines to separate each day of the week, along with optional 1H and 4H period separators. It also shows day-of-week labels (MON, TUE, etc.) at a specified hour for quick visual reference. Useful for intraday traders who want a clear view of daily and higher timeframe transitions.