Hidden Bearish Divergence [1H]Detects Hidden Bearish Divergence on the 1-hour timeframe using RSI. This is the opposite of hidden bullish — it suggests bearish continuation in a downtrend. Price forms a Lower High. RSI forms a Higher High. Suggests bearish continuation (ideal in a downtrend).
Candlestick analysis
Multi-TF S/R Lines by Pivots - 15min Chart//@version=5
indicator('Multi-TF S/R Lines by Pivots - 15min Chart', overlay=true, max_lines_count=32)
// تنظیمات کاربری
pivot_lookback = input.int(5, 'تعداد کندل دو طرف پیوت')
search_bars = input.int(200, 'تعداد کندل چکشونده در هر تایمفریم')
line_expire = input.int(40, 'حداکثر کندل بیتست تا پنهان کردن سطح')
h4_color = color.new(color.teal, 0)
h1_color = color.new(color.green, 0)
d1_color = color.new(color.blue, 0)
w1_color = color.new(color.red, 0)
plot_labels = input.bool(true, 'نمایش لیبل')
label_size = input.string('tiny', 'سایز لیبل', )
var float w1_pivothighs = array.new_float(0)
var float w1_pivotlows = array.new_float(0)
var float d1_pivothighs = array.new_float(0)
var float d1_pivotlows = array.new_float(0)
var float h4_pivothighs = array.new_float(0)
var float h4_pivotlows = array.new_float(0)
var float h1_pivothighs = array.new_float(0)
var float h1_pivotlows = array.new_float(0)
//----------------------
// تابع پیوتی (true اگر کندل مرکزی، پیوت سقف/کف باشد)
pivot(cF, length, dir) =>
// dir = 'high' یا 'low'
var bool isP = true
for i = 1 to length
if dir == 'high'
isP := isP and cF > cF and cF > cF
if dir == 'low'
isP := isP and cF < cF and cF < cF
isP
// جمعآوری پیوتها در تایمفریم انتخابی
get_pivots(tf, bars_limit, look, dir) =>
var float pivs = array.new_float(0)
pivs := array.new_float(0) // reset each call: همیشه آخرین ۲۰۰ کندل
h = request.security(tf, 'high', high)
l = request.security(tf, 'low', low)
arr = dir == 'high' ? h : l
// فقط کندلهای وسط برگردد (نه اول و آخر)
for i=look to (bars_limit - look)
if pivot(arr, look, dir)
array.unshift(pivs, arr )
pivs
// بروزرسانی آرایه پیوتها (آخرین سطوح)
if barstate.islastconfirmedhistory
w1_pivothighs := get_pivots('W', search_bars, pivot_lookback, 'high')
w1_pivotlows := get_pivots('W', search_bars, pivot_lookback, 'low')
d1_pivothighs := get_pivots('D', search_bars, pivot_lookback, 'high')
d1_pivotlows := get_pivots('D', search_bars, pivot_lookback, 'low')
h4_pivothighs := get_pivots('240', search_bars, pivot_lookback, 'high')
h4_pivotlows := get_pivots('240', search_bars, pivot_lookback, 'low')
h1_pivothighs := get_pivots('60', search_bars, pivot_lookback, 'high')
h1_pivotlows := get_pivots('60', search_bars, pivot_lookback, 'low')
//--------------
// تابع رسم سطح
draw_lines(pivArr, line_color, label_txt, expiry) =>
int count = math.min(array.size(pivArr), 8)
for i=0 to (count-1)
y = array.get(pivArr, i)
// بررسی در 40 کندل اخیر برخورد بوده یا نه؟
touched = false
for c=0 to (expiry-1)
touched := touched or (low <= y and high >= y)
if touched
l = line.new(bar_index-expiry, y, bar_index, y, color=line_color, width=2, extend=extend.right)
if plot_labels
label.new(bar_index, y, label_txt, color=line_color, style=label.style_label_right, textcolor=color.white, size=label_size)
// اگر طی پیشفرض expiry کندل برخورد نشده بود، خط و لیبل رسم نشود (مخفی شود)
// رسم همه خطوط
draw_lines(w1_pivothighs, w1_color, 'W1', line_expire)
draw_lines(w1_pivotlows, w1_color, 'W1', line_expire)
draw_lines(d1_pivothighs, d1_color, 'D1', line_expire)
draw_lines(d1_pivotlows, d1_color, 'D1', line_expire)
draw_lines(h4_pivothighs, h4_color, 'H4', line_expire)
draw_lines(h4_pivotlows, h4_color, 'H4', line_expire)
draw_lines(h1_pivothighs, h1_color, 'H1', line_expire)
draw_lines(h1_pivotlows, h1_color, 'H1', line_expire)
Clean Day Separator (Vertical Only)Clean Day Separator (Vertical Only) is a minimalist indicator for traders who value clarity and structure on their charts.
This tool draws:
✅ Vertical dashed lines at the start of each new day
✅ Optional day-of-week labels (Monday, Tuesday, etc.)
It’s designed specifically for clean chart lovers — no horizontal lines, no boxes, just what you need to mark time and keep your focus.
Perfect for:
Intraday traders who track market rhythm
Price action purists
Anyone who wants to reduce visual noise
Customizable settings:
Toggle day labels on/off
Choose line and text colors
Set label size to match your chart style
RSI Overbought ScannerRSI Overbought Scanner
Description
The RSI Overbought Scanner is a Pine Script indicator designed to identify potential overbought conditions across multiple timeframes (1-minute, 5-minute, and 15-minute) using the Relative Strength Index (RSI). This tool is ideal for traders looking to spot stocks or assets that may be overextended to the upside, potentially signaling a reversal or pullback opportunity.
Key Features
Multi-Timeframe Analysis: Evaluates RSI on 1m, 5m, and 15m timeframes to confirm overbought conditions (RSI > 70).
Visual Output: Plots a binary result (1 for overbought, 0 otherwise) for easy integration with TradingView's screener.
Debugging Table: Displays a table in the top-right corner showing RSI values and overbought status for each timeframe, with color-coded indicators (red for overbought, green for not overbought).
Alert Integration: Includes an alert condition that triggers when all three timeframes are overbought, providing a customizable message with the ticker symbol.
How It Works
RSI Calculation: Computes RSI with a default length of 14 for the 1m timeframe and retrieves RSI values for 5m and 15m timeframes using request.security.
Overbought Condition: Checks if RSI exceeds 70 on all three timeframes.
Output: Plots a value of 1 when all conditions are met, otherwise 0. A table updates on the last confirmed bar to show RSI values and overbought status.
Alerts: Triggers an alert when all timeframes are overbought, notifying users of potential trading opportunities.
Usage
Add the indicator to your chart and use it with TradingView's screener to filter assets meeting the overbought criteria.
Customize the RSI length or overbought level (default 70) in the indicator settings to suit your trading strategy.
Set up alerts to receive notifications when the overbought condition is met across all timeframes.
Notes
This script is written in Pine Script v6.
Best used in conjunction with other technical analysis tools to confirm signals.
The table is for debugging and visual confirmation, updating only on the last confirmed bar to avoid performance issues.
Samrat AlertThis indicator generates buy sell signal on different timeframe on all instruments based on price and sma combination
📈 Linearity (ER 0–1) + ADRMAX % Table
This indicator combines two powerful concepts to help traders assess trend efficiency and intraday thrust strength:
🔹 1. Linearity (Kaufman Efficiency Ratio)
Measures how efficiently price has trended over a selected lookback period.
Values range from 0 to 1, where:
1.0 = perfectly trending market (no noise)
0.0 = completely choppy market (all noise)
Optional method: New High Persistence (fraction of bars in the period that hit a new high).
🔹 2. ADRMAX % (Average Daily Range Max as %)
Calculates the average of top % biggest green daily candles (measured as % range: (high - low) / low × 100) over a given lookback.
Projects this ADRMAX % above current lows as a thrust-level expectation.
Marks candles exceeding this dynamic threshold, helping identify unusual momentum.
📊 On-Chart Table Display
Real-time display of:
Linearity (0–1 scale)
ADRMAX %
Table is color-coded and position-customizable.
🛠️ Use Cases:
Trend-following filters: only act when ER > 0.75.
Thrust detection: breakout days with range > ADRMAX.
Adaptive entries: combine both for better timing.
Enhanced Smoothed Heiken Ashi CandlesSmooth Heikin Ashi is a modified version of the traditional Heikin Ashi candlestick charting technique that applies additional smoothing to reduce noise and provide clearer trend signals.
Traditional Heikin Ashi Basics
Heikin Ashi (Japanese for "average bar") transforms regular candlesticks using these formulas:
Close = (Open + High + Low + Close) / 4
Open = (Previous HA Open + Previous HA Close) / 2
High = Maximum of (High, HA Open, HA Close)
Low = Minimum of (Low, HA Open, HA Close)
Smooth Heikin Ashi Enhancement
The smooth version applies moving averages to the Heikin Ashi values, typically using:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Weighted Moving Average (WMA)
Common smoothing periods range from 5 to 21, with 14 being popular.
Key Benefits
Noise Reduction: Further filters out market noise compared to standard Heikin Ashi, making trends more apparent.
Clearer Signals: Produces smoother transitions between bullish and bearish phases, reducing false signals.
Trend Identification: Makes it easier to identify the dominant trend direction and potential reversals.
Trading Applications
Trend Following: Green/white candles indicate uptrends, red/black indicate downtrends
Entry/Exit Points: Color changes can signal potential trade entries or exits
Support/Resistance: Smoother price action helps identify key levels
Multiple Timeframe Analysis: Works well across different timeframes
The main tradeoff is that increased smoothing creates more lag, so signals may come later than with traditional Heikin Ashi or regular candlesticks.
4H Crypto System – EMAs + MACD//@version=5
indicator("4H Crypto System – EMAs + MACD", overlay=true)
// EMAs
ema21 = ta.ema(close, 21)
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
// MACD Settings (standard)
fastLength = 12
slowLength = 26
signalLength = 9
= ta.macd(close, fastLength, slowLength, signalLength)
// Plot EMAs
plot(ema21, title="EMA 21", color=color.orange, linewidth=1)
plot(ema50, title="EMA 50", color=color.blue, linewidth=1)
plot(ema200, title="EMA 200", color=color.purple, linewidth=1)
// Candle coloring based on MACD trend
macdBull = macdLine > signalLine
barcolor(macdBull ? color.new(color.green, 0) : color.new(color.red, 0))
// Buy/Sell signal conditions
buySignal = ta.crossover(macdLine, signalLine) and close > ema21 and close > ema50 and close > ema200
sellSignal = ta.crossunder(macdLine, signalLine) and close < ema21 and close < ema50 and close < ema200
// Alerts
alertcondition(buySignal, title="Buy Alert", message="Buy Signal: MACD bullish crossover and price above EMAs")
alertcondition(sellSignal, title="Sell Alert", message="Sell Signal: MACD bearish crossover and price below EMAs")
AZ Dynamic Trend Indicator with Heikin-Ashi### Dynamic Trend Indicator with Heikin-Ashi (v2.7)
**Effortlessly identify trends and reversals** with this versatile tool combining multi-timeframe analysis, adaptive moving averages, and Heikin-Ashi smoothing. Here's what it offers:
#### 🔍 **Core Features**
1. **Dual Timeframe Analysis**:
- Track trends on higher timeframes (e.g., 1H/D) while viewing signals on your current chart.
- Toggle between **Heikin-Ashi** or standard candles for cleaner trend visualization.
2. **8 Customizable MAs**:
- Choose from **ALMA, HMA, SMA, SWMA, VWMA, WMA, ZLEMA, or EMA** with adjustable periods.
- Unique "Trend Strength" metric: `(MA_Close - MA_Open) / (MA_High - MA_Low)` highlights momentum direction.
3. **Smart Signals**:
- **Entry/Exit**: Triangles mark crossovers between MA Close/Open.
- **Reversal Alerts**: Detects counter-trend moves within a user-defined window (default: 3 bars) after signals.
- Color-coded plots: Bullish (🟢), Bearish (🔴), Reversal Bull (🔵), Reversal Bear (🟠).
#### 🎨 **Visual Customization**
- Toggle **High/Low MA lines**, **Close line**, and **fill colors**.
- Adjust colors for all elements to match your chart theme.
- Hide signals or reversal markers as needed.
#### ⚙️ **Practical Use**
- **Trend Following**: Use the MA Close/Open crossover with trend fill colors to confirm direction.
- **Reversal Trading**: Capitalize on pullbacks with reversal signals (e.g., after a bearish signal, watch for Bull Reversal markers).
- **Multi-Timeframe Confirmation**: Avoid false signals by aligning higher-timeframe trends with your entries.
*Ideal for swing traders and trend riders!*
**Note**: Adjust `MA Period`, `Reversal Window`, and `Trend Timeframe` for your strategy. Disable Heikin-Ashi in choppy markets for faster reactions.
---
*Code v2.7 updates: Optimized reversal logic, added ALMA/ZLEMA support, and enhanced visual controls.*
محدد الأوقات المطور جداً v6
Determine the candle times at any hour you want. If the strategy you are working on is CRT, specify the 4-hour frame and choose the time 1-5-9.
Candle Pattern Detector By Prashanth
Bullish Signal (🟢 below candle):
Plotted when any of the following occur:
✅ Bullish Engulfing
✅ Bullish Three-Line Strike
✅ Bottom wick ≥ % threshold (default: 80%)
Bearish Signal (🔴 above candle):
Plotted when any of the following occur:
❌ Bearish Engulfing
❌ Bearish Three-Line Strike
❌ Top wick ≥ % threshold (default: 80%)
Only one signal per candle (🟢 or 🔴)
If both bullish and bearish conditions happen on same candle → no signal
Helps simplify visual clutter while scanning for strong candle patterns
First 15 Min High/Low//@version=5
indicator("First 15 Min High/Low", overlay=true)
// Define the session start time (adjust according to your market)
startHour = 9
startMinute = 30
endMinute = startMinute + 15
// Track the first 15 minutes of the day
isFirst15 = (hour == startHour and minute >= startMinute and minute < endMinute)
// New day logic
newDay = ta.change(time("D"))
// Hold values
var float first15High = na
var float first15Low = na
var bool isLocked = false
// Capture high/low during first 15 min
if newDay
first15High := na
first15Low := na
isLocked := false
if isFirst15 and not isLocked
first15High := na(first15High) ? high : math.max(high, first15High)
first15Low := na(first15Low) ? low : math.min(low, first15Low)
if not isFirst15 and not isLocked and not na(first15High) and not na(first15Low)
isLocked := true
// Plot
plot(isLocked ? first15High : na, title="First 15 Min High", color=color.green, linewidth=2, style=plot.style_line)
plot(isLocked ? first15Low : na, title="First 15 Min Low", color=color.red, linewidth=2, style=plot.style_line)
Simple Bollinger BandsBollinger Bands are a popular technical analysis indicator used to measure market volatility and identify potential overbought or oversold conditions.
This script plots:
A middle band (20-period Simple Moving Average)
An upper band (SMA + 2 standard deviations)
A lower band (SMA – 2 standard deviations)
Alt Market Index (Halving-Adjusted BTC Supply, EMA)
암호화폐 알트코인 시총 상위 125개를 모아서
나스닥 기반의 계산식을 활용한 알트코인지수125를 만들었습니다.
반감기에 따른 비트코인 하루 채굴량 갯수 추가까지 포함한 버전입니다.
일봉이 기준이 됩니다.
I created the Altcoin Index 125 by compiling the top 125 altcoins by market capitalization in the cryptocurrency market, using a calculation method based on the Nasdaq index.
This version also includes adjustments for Bitcoin’s halving events, reflecting changes in daily mining output. The index is based on daily candles.
Avg 30-min High-Low Pips (Bar Chart)Analyses movements over 30 days and plots possible movement windows.
Fisher Transform Background StripesThe "Fisher Transform Background Stripes" indicator is an easy-to-use tool that helps traders identify extreme market conditions using the Fisher Transform, a technical indicator that normalizes price data to highlight potential reversals. It displays colored background stripes on your chart to show when the market is oversold or undersold, making it simple to spot trading opportunities.
How It Works:Fisher Transform Calculation: The indicator calculates the Fisher Transform based on a user-defined period (default: 9), using the average of high and low prices to measure market momentum and identify extreme price movements.
Oversold/Undersold Levels: It highlights when the Fisher Transform is above a user-set oversold level (default: 3.0) with red background stripes, or below an undersold level (default: -2.0) with green background stripes.
Visual Feedback: Red and green stripes appear on the chart to mark oversold or undersold conditions, helping you quickly understand market extremes.
Customization: You can adjust the Fisher Transform period, oversold/undersold levels, background colors, and transparency. You can also enable an optional Fisher Transform plot or display values on the chart for debugging.
Wait for Close Option: You can choose whether the indicator waits for the timeframe’s candle to close before showing stripes, ensuring more reliable signals.
Alerts: Optional alerts notify you when the Fisher Transform crosses into oversold or undersold zones (always using confirmed values for accuracy).
Who It’s For: This indicator is ideal for beginner and intermediate traders looking for a clear, visual way to track extreme market conditions and potential reversals using the Fisher Transform.
Key Features:Colored background stripes for oversold (red) and undersold (green) conditions.
Customizable settings for period, levels, colors, and transparency.
Option to wait for candle close for more accurate signals.
Optional Fisher Transform plot and value display for analysis.
Alerts to notify you of key Fisher Transform level crossings.
This indicator provides a straightforward way to monitor market extremes and make informed trading decisions.
Hourly Markers 09:00 - 20:00 Adjusted for UTC+2A line for every hour from 0900 to 2200
Description:
This TradingView Pine Script plots small red markers (downward arrows) at the top of the chart for every full hour between 09:00 AM and 08:00 PM (20:00) based on UTC+2 time. The markers appear precisely at the opening minute of each hour within the defined range, helping traders visually track key time intervals during the day.
Features:
✔ Displays markers from 09:00 to 20:00 local time (UTC+2 adjustment)
✔ Only plots markers at the first minute of each hour
✔ Uses clear, unobtrusive triangle-down symbols above the bars
✔ Works on any chart timeframe that captures hourly intervals
Use Case:
Ideal for traders who want a quick visual reference of hourly intervals during the main trading hours, especially when working with charts set to UTC or different time zones.
Highlight Highest Volume CandleHow it works:
lookback: how many bars to look back for highest volume (default 50).
highestVol: the maximum volume in that range.
isHighestVol: true if the current candle’s volume equals that maximum.
plotcandle: draws the candle in bright yellow.
plotshape: adds a small triangle below the bar for extra visibility.
EMA Crossover with DiamondsGreen diamond when 20 exponential moving average crosses over 50 exponential moving average, and shows a red diamond when 50 moving average crosses over 20 exponential moving average
Opening Candle Indicator FinalAll previous versions were subject to bugs after review, so this final version has been released with the same features as previous versions and is error-free.
Note for those trading outside the Saudi and US markets: You can track any market with a specific trading session start and end time by selecting "Custom" from the settings menu and then setting the start and end times for the trading session.
جميع الاصدارات الماضية كانت بعد الفحص تصدر بعض الأخطاء البرمجية لذلك تم إصدار هذا الاصدار النهائي بنفس المميزات للإصدارات الماضية ولا يوجد بها أخطاء.
ملاحظة لكل من يتدوال خارج السوق السعودي والأمريكي : يمكن متابعة أي سوق له وقت بداية ونهاية جلسة تدوال وذلك عن طريق إختيار مخصص من قائمة الاعدادت ثم وضع وقت بداية ونهاية جلسة التدوال