RSI premium trend - CZ INDICATORSThe indicator draws swings on candlesticks based on price action and RSI.
You can also see in the labels whether the current swing is higher or lower relative to the previous swing.
Ideal for working together with premium structure -
HH stands for Higher High
LL stands for Lower Low
LH stands for Lower High
HL stands for Higher High
Индикатор рисует свинги на свечах, основываясь на ценовом действии и RSI.
Также в метках можно увидеть, выше или ниже текущий свинг по отношению к предыдущему.
Идеальный вариант для совместной работы с -
HH означает Higher High
LL означает Lower Low
LH означает Lower High
HL означает Higher High
מתנדים
RSI + Divergences new look - CZ INDICATORSA new look at divergence
This indicator gives you the trend changes (Designed with the basics of Vash's RSI advanced and the Fikira divergence indicator)
This indicator will only give you regular divergences.
Please keep in mind that a trading plan is not only built with momentum but also with location and structure.
Новый взгляд на дивергенцию
Этот индикатор показывает изменения тренда (разработан с основами расширенного RSI Вэша и индикатора дивергенции Фикира).
Этот индикатор будет давать вам только регулярные дивергенции.
Помните, что торговый план строится не только на основе импульса, но и на основе местоположения и структуры.
RSI + Volume - CZ INDICATORSRSI + VOLUME
This idea adds volume to the RSI indicator. Because volume offers one means of determining whether money is entering or leaving a market, this would provide additional information with which to make trading decisions.
Эта идея добавляет объем к индикатору RSI. Поскольку объем - это один из способов определить, входят ли деньги в рынок или покидают его, это даст дополнительную информацию для принятия торговых решений.
RSI & 5 EMARSI & 5 EMA Reversal Trading Indicator
📌 Category: Reversal Trading
🔹 Overview
This script is designed to identify potential reversal points using the Relative Strength Index (RSI) and the 5-Period Exponential Moving Average (EMA). It helps traders spot short-term exhaustion in price movements and provides clear entry signals when momentum shifts against the prevailing move.
🔹 How It Works
5-Period EMA (Blue Line):
Used to gauge short-term price direction.
RSI-Based Reversal Setup:
Helps filter trade setups to avoid false signals.
A buy preparation level is set when RSI is below 40, and the high is below the 5 EMA, indicating a potential oversold condition.
A sell preparation level is set when RSI is above 60, and the low is above the 5 EMA, signaling a possible overbought condition.
Reversal Entry Conditions:
A buy signal occurs if the price closes above the buy preparation level within the next 3 candles.
A sell signal occurs if the price closes below the sell preparation level within the next 3 candles.
Visual Enhancements:
Signal candles are highlighted with a white wick and border to make reversals easy to spot.
The 5 EMA is plotted in blue to track short-term trends.
🔹 How to Use This Indicator
✅ Best for traders looking to catch short-term reversals.
✅ Works well on 5-min, 15-min, 1-hour, and daily charts.
✅ Can be used in range-bound markets or at key support/resistance levels.
🔹 Customization Request
Even the conditions are met, no signal is plotted by this script. I will be very happy if anyone correct the script for better and accurate result.
RSI divergence signal BULL/BEAR - CZ INDICATORSRSI divergence signal BULL/BEAR - CZ INDICATORS: It automatically shows divergence, being much useful for detecting future changes in the tendency of the current stock, and weakness in the actual tendency.
Different timeframes can be set up to meet your needs.
RSI divergence signal BULL/BEAR - CZ INDICATORS: Автоматически показывает дивергенции, что очень полезно для обнаружения будущих изменений в тенденции текущей акции, а также слабости в фактической тенденции.
Различные таймфреймы могут быть настроены в соответствии с вашими потребностями.
Volatility-Enhanced Williams %R [AIBitcoinTrend]👽 Volatility-Enhanced Williams %R (AIBitcoinTrend)
The Volatility-Enhanced Williams %R takes the classic Williams %R oscillator to the next level by incorporating volatility-adaptive smoothing, making it significantly more responsive to market dynamics. Unlike the traditional version, which uses a fixed calculation method, this indicator dynamically adjusts its smoothing factor based on market volatility, helping traders capture trends more effectively while filtering out noise.
Additionally, the indicator includes real-time divergence detection and an ATR-based trailing stop system, providing traders with enhanced risk management tools and early reversal signals.
👽 What Makes the Volatility-Enhanced Williams %R Unique?
Unlike the standard Williams %R, which applies a simple lookback-based formula, this version integrates adaptive smoothing and volatility-based filtering to refine its signals and reduce false breakouts.
✅ Volatility-Adaptive Smoothing – Adjusts dynamically based on standard deviation, enhancing signal accuracy.
✅ Real-Time Divergence Detection – Identifies bullish and bearish divergences for early trend reversal signals.
✅ Crossovers & Trailing Stops – Implements Williams %R crossovers with ATR-based trailing stops for intelligent trade management.
👽 The Math Behind the Indicator
👾 Volatility-Adaptive Smoothing
The indicator smooths the Williams %R calculation by applying an adaptive filtering mechanism, which adjusts its responsiveness based on market conditions. This helps to eliminate whipsaws and makes trend-following strategies more reliable.
The smoothing function is defined as:
clamp(x, lo, hi) => math.min(math.max(x, lo), hi)
adaptive(src, prev, len, divisor, minAlpha, maxAlpha) =>
vol = ta.stdev(src, len)
alpha = clamp(vol / divisor, minAlpha, maxAlpha)
prev + alpha * (src - prev)
Where:
Volatility Factor (vol) measures price dispersion using standard deviation.
Adaptive Alpha (alpha) dynamically adjusts smoothing strength.
Clamped Output ensures that the smoothing factor remains within a stable range.
👽 How Traders Can Use This Indicator
👾 Divergence Trading Strategy
Bullish Divergence Setup:
Price makes a lower low, while Williams %R forms a higher low.
Buy signal is confirmed when Williams %R reverses upward.
Bearish Divergence Setup:
Price makes a higher high, while Williams %R forms a lower high.
Sell signal is confirmed when Williams %R reverses downward.
👾 Trailing Stop & Signal-Based Trading
Bullish Setup:
✅ Williams %R crosses above trigger level → Buy signal.
✅ A bullish trailing stop is placed at Low - (ATR × Multiplier).
✅ Exit if price crosses below the stop.
Bearish Setup:
✅ Williams %R crosses below trigger level → Sell signal.
✅ A bearish trailing stop is placed at High + (ATR × Multiplier).
✅ Exit if price crosses above the stop.
👽 Why It’s Useful for Traders
Adaptive Filtering Mechanism – Avoids excessive noise while maintaining responsiveness.
Real-Time Divergence Alerts – Helps traders anticipate market reversals before they occur.
ATR-Based Risk Management – Stops dynamically adjust based on market volatility.
Multi-Market Compatibility – Works effectively across stocks, forex, crypto, and futures.
👽 Indicator Settings
Smoothing Factor – Controls how aggressively the indicator adapts to volatility.
Enable Divergence Analysis – Activates real-time divergence detection.
Lookback Period – Defines the number of bars for detecting pivot points.
Enable Crosses Signals – Turns on Williams %R crossover-based trade signals.
ATR Multiplier – Adjusts trailing stop sensitivity.
Disclaimer: This indicator is designed for educational purposes and does not constitute financial advice. Please consult a qualified financial advisor before making investment decisions.
TTM Squeeze Pro Pine ScreenerThis script is extension of TTM Squeeze Pro originally published by Beardy_Fred to scan conditions of TTM Squeeze and moving averages alignment on pine screener.
Overview:
This indicator combines the classic TTM Squeeze methodology with a robust set of Exponential Moving Averages (EMAs) and advanced scanning capabilities. Designed for traders who want to monitor momentum, squeeze conditions, and trend alignments simultaneously, it provides a comprehensive toolkit for technical analysis.
Key Features:
1. **TTM Squeeze Logic**:
- Uses Bollinger Bands and Keltner Channels to identify four squeeze states: No Squeeze (Green), Low Squeeze (Black), Mid Squeeze (Red), and High Squeeze (Orange).
- Plots squeeze dots and a momentum histogram in a lower pane for easy visualization.
2. **Exponential Moving Averages (EMAs)**:
- Overlays 7 EMAs on the price chart: 8, 21, 34, 55, 89, 144, and 233.
- Trend-based coloring: Rising EMAs in bright shades (e.g., Lime, Yellow, Fuchsia), falling in darker shades (e.g., Green, Orange, Red).
3. **Scan Alerts**:
- Transition Alerts: Squeeze Started, High Squeeze Started, Squeeze Fired, High Squeeze Fired, plus individual Low/Mid/No Squeeze Fired events.
- EMA Alignment Alerts: EMA 8>21, EMA 34>55>89, and EMA 89>144>233 for spotting bullish trends.
- State Alerts: Current squeeze condition (No, Low, Mid, High).
4. **Scan Columns (Data Window)**:
- Days since last No, Low, Mid, High Squeeze, and High Squeeze Fired.
- Percentage distance from the 52-week low (% From 52wk Low).
Usage:
- **Chart**: Apply to any symbol to see squeeze states, momentum, and EMAs in action.
- **Alerts**: Set up alerts for squeeze transitions, firings, or EMA alignments to catch key moments.
- **Watchlist**: Use scan columns in a watchlist (Premium feature) to monitor multiple symbols.
- **Customization**: Adjust squeeze length and multipliers via inputs to suit your trading style.
Inputs:
- TTM Squeeze Length (default: 20)
- Bollinger Band STD Multiplier (default: 2.0)
- Keltner Channel Multipliers: High (1.0), Mid (1.5), Low (2.0)
- Alert Toggles: Price Action Squeeze, Squeeze Firing
Notes:
- Optimized for daily charts (252 bars ≈ 52 weeks), but works on any timeframe—interpret "days" as bars.
- Colors are TradingView-standard and distinct for clarity.
Enjoy trading with this all-in-one squeeze and trend tool!
Death Metal 144A part of the DMM Face-Melter Pro indicator suite, available as a standalone package.
A Fibonacci 144 moving average (either SMA or EMA) that displays as a double-smoothed Heikin-Ashi candle pattern or as direct copies of Heiken-Ashi candles.
Heikin-Ashi candles were created in the 1700s by Munehisa Homma, who also created the standard candles.
Heikin-Ashi candles are widely used for interpreting the overall trend of price action, while the Fibonacci 144 moving average provides a useful support/resistance level and medium-term trend direction.
Includes the 200 day moving average cloud feature.
200 Day SMA and EMA moving averages displayed together to create a highly reliable cloud of support and resistance.
The 200 day moving averages are gold standard for serious traders. Price action nearly always reacts to them, whether on the way down or back up.
Utilizing both the 200 day SMA and EMA together provides a logical range (or cloud) to work with, rather than a cut-and-dry single line.
RSI 50% planZ
RSI Settings:
RSI Length: The Relative Strength Index (RSI) is calculated using the specified length. In this code, the value 89 is set as the RSI length.
Level 50: Level 50 is considered a neutral level, representing a balance of momentum between bullish and bearish trends.
Buy and Sell Conditions:
Buy Signal: A buy signal is generated when the RSI crosses from below to above level 50.
Sell Signal: A sell signal is generated when the RSI crosses from above to below level 50.
Drawing on the Candle:
When a buy or sell signal occurs, a box is drawn around the candle that represents the signal.
A line is extended through the middle of the candle between the high and low values. This line is drawn through the midpoint of the candle to highlight the position.
Background Color Change:
The background color of the chart is changed based on the signal:
Green for a buy signal.
Red for a sell signal.
How the Indicator Works:
RSI is calculated using the 89-period length, and it watches for a crossover of the 50 level:
If RSI crosses above 50 from below, a buy signal is plotted below the candle.
If RSI crosses below 50 from above, a sell signal is plotted above the candle.
A box is drawn around the candle with the signal, and a line is extended across the middle of the candle to highlight the position.
The background of the chart changes based on the signal (green for buy, red for sell).
Adjustable Features:
You can adjust the RSI Length in the indicator settings to change the period for RSI calculation.
Usage:
This indicator is useful for identifying momentum shifts in the market.
Traders or investors can use it to determine buy and sell points based on RSI crossovers.
Chande Trend Meter OscillatorThis is an implementation of the Chande Trend Meter that I developed using ChatGPT. It is free for you to use.
The Chande Trend Meter (CTM) is a technical analysis indicator developed by Tushar Chande to assess the strength and direction of a security's trend. By consolidating various technical indicators across multiple timeframes into a single numerical score ranging from 0 to 100, the CTM simplifies trend evaluation.
CHARTSCHOOL.STOCKCHARTS.COM
Calculation Components:
The CTM incorporates several technical measures:
Bollinger Bands Positions: Evaluates the relative positions of the high, low, and close prices within Bollinger Bands over four distinct periods: 20-day, 50-day, 75-day, and 100-day.
Price Change Relative to Standard Deviation: Assesses price movements in relation to the standard deviation over the past 100 days.
14-day Relative Strength Index (RSI): Measures the speed and change of price movements to identify overbought or oversold conditions.
Short-term Price Channel Breakouts: Identifies any breakouts from short-term (2-day) price channels.
These components are combined and scaled to produce the CTM score.
CHARTSCHOOL.STOCKCHARTS.COM
Interpreting CTM Scores:
The CTM score indicates the strength of a security's trend:
90-100: Very strong uptrend
80-90: Strong uptrend
60-80: Weak uptrend
20-60: Flat or weak downtrend
0-20: Very strong downtrend
Traders often seek securities with CTM scores above 80, indicating robust upward momentum.
Advantages of the CTM:
One notable benefit of the CTM is its absolute scoring system, allowing for direct comparison across different securities without adjustments. This feature enables traders to evaluate and rank various assets uniformly, facilitating more informed decision-making.
By providing a consolidated view of multiple technical indicators, the CTM offers traders a streamlined tool to assess trend strength, aiding in the identification of potential trading opportunities.
ReadyFor401ks Stoch + RSIThis indicator is a powerful tool that combines the classic Relative Strength Index (RSI) with a Stochastic RSI to provide traders with a more nuanced view of market momentum and potential reversal points. By blending these two techniques, the script offers a detailed insight into price action, highlighting when a market might be overbought or oversold. The RSI is calculated once and then used both for a traditional RSI plot and to derive the Stochastic RSI, ensuring consistency and efficiency in your analysis.
One of the standout features of this indicator is its dynamic visual presentation. A gradient color scheme is applied to the RSI line, which changes based on its position between customizable overbought and oversold levels. This visual cue allows traders to quickly identify critical zones without having to constantly monitor numerical values. Additionally, the background fill between these levels enhances clarity, making it easier to spot when conditions are ripe for a potential reversal.
The indicator is highly customizable, allowing you to adjust parameters such as the RSI period, Stochastic length, and smoothing factors. This flexibility means you can fine-tune the tool to suit different market conditions, whether you’re trading trending markets or range-bound environments. For example, an RSI crossover above the oversold level can signal an emerging upward trend, while a crossover below the overbought level may indicate a downturn, providing actionable alerts that can be integrated into your trading strategy.
Overall, the ReadyFor401k Stoch + RSI indicator is designed to offer a clear, concise, and visually engaging method for monitoring market momentum. It serves as an excellent complement to other technical analysis tools and can help improve your decision-making process by providing early warning signals for potential market reversals. Whether you’re a seasoned trader or just starting out, this indicator can be a valuable addition to your TradingView toolkit.
Weekly AWR Indicatorthis is a weekly rang awr use full in breakout tradind buy at the ether side of level breakout
DMM Face-Melter ProThe DMM Face-Melter Pro is a FREE full-featured stock and crypto indicator package based on tried-and-true trading and analysis methodologies (and looks super cool).
Uses highly-reactive moving averages
The 9 ma (SMA or EMA), Fibonacci moving averages, 200 days moving averages
200 day moving average cloud
200 Day SMA and EMA moving averages displayed together to create a highly reliable cloud of support and resistance.
The 200 day moving averages are gold standard for serious traders. Price action nearly always reacts to them, whether on the way down or back up.
Utilizing both the 200 day SMA and EMA together provides a logical range (or cloud) to work with, rather than a cut-and-dry single line.
Death Metal 9
A 9 period moving average (either SMA or EMA) that is wrapped in a 3-10-16 oscillator histogram.
The 3-10-16 oscillator is a MACD variant popularized by famed trader Linda Raschke and used since 1981.
This oscillator is great for identifying shorter-term trend shifts in price action momentum, especially when paired with a 9 period moving average.
Death Metal 89
A Fibonacci 89 moving average (either SMA or EMA) that is wrapped in a standard MACD histogram.
The MACD is great for identifying the overall trend in price action momentum, while the Fibonacci 89 moving average provides a useful support/resistance level and medium-term trend direction.
Death Metal 144
A Fibonacci 144 moving average (either SMA or EMA) that displays as a double-smoothed Heikin-Ashi candle pattern or as direct copies of Heiken-Ashi candles.
Heikin-Ashi candles were created in the 1700s by Munehisa Homma, who also created the standard candles.
Heikin-Ashi candles are widely used for interpreting the overall trend of price action, while the Fibonacci 89 moving average provides a useful support/resistance level and medium-term trend direction.
Death Metal Bands
Uses standard Bolinger Bands (visible or invisible) to color-code the candles, indicating price action extremes without the annoying clutter of additional lines on your chart.
Candles get sequentially brighter or darker as they close above or below the bounds of Bolinger Bands. When a candle closes within the bands, the sequence resets.
Available in Standard Candle Colors or Low-Stress Candle Colors.
Cool 9
A 9 period moving average (either SMA or EMA) with a cool gradient extending to the Fibonacci 34 moving average.
Easily enable the Cool 21 and Cool 55 Fibonacci moving averages to complete your setup of highly useful indicators while maintaining aesthetic glory.
Pair it with Low-Stress Bollinger Bands Candle Coloration for the ultimate in cool, clutter-free styling.
Boring 9
A simple 9 period moving average (either SMA or EMA), and options to enable the Boring 21 and Boring 55 Fibonacci moving averages.
Easy-to-read default colors (customizable) without any of the fancy do-dads.
Still pairs well with either the Standard or Low-Stress Bolinger Bands Candle Coloration features, as they give useful information but without any added chart clutter.
ADX and DI EnhancedADX and DI Indicator: Enhanced Market Trend Analysis Tool
The ADX and DI Indicator is designed to provide traders with a comprehensive view of market trend strength and direction using the Average Directional Index (ADX) along with the Directional Movement Indicators (DMI). This enhanced version not only calculates and visualizes ADX and DI values but also incorporates a dynamic histogram to highlight the difference between positive and negative directional movements, making it easier to identify potential trend reversals.
Key Features:
Directional Movement Calculation: Tracks and smooths directional movements to derive DI+ and DI−, providing a clear picture of market bias.
ADX Computation: Utilizes the ADX to gauge the strength of the current trend, allowing traders to filter out weak or choppy market conditions.
Dynamic Histogram: Visualizes the difference between DI+ and DI− with color-coded columns, enhancing the visual representation of market direction.
Threshold Bands: Displays upper and lower threshold bands to indicate significant ADX levels, helping traders identify strong trends and potential breakouts.
User-Defined Colors: Customizable fill colors for different ADX bands, offering a personalized look and feel to match your trading style.
This indicator is particularly useful for day traders and swing traders seeking to identify and capitalize on strong market trends. By combining ADX and DI calculations with clear visual cues, the ADX and DI Indicator provides an intuitive and powerful tool for trend analysis.
Stoch RSI Multi-Timeframe Buy & Sell SignalСкрипт. Сигнал стрелочкой показывать только тогда когда на таймфреймах 5мин 15мин 30мин и 1час одновременно Stoch RSI ≤ 5. И также давать сигнал на продажу когда на таймфреймах 5мин 15мин 30мин и 1час одновременно Stoch RSI больше или равно 95
RSI Strategy//@version=6
indicator("Billy's RSI Strategy", shorttitle="RSI Strategy", overlay=true)
// Parameters
overbought = 70
oversold = 30
rsi_period = 14
min_duration = 4
max_duration = 100
// Calculate RSI
rsiValue = ta.rsi(close, rsi_period)
// Check if RSI is overbought or oversold for the specified duration
longOverbought = math.sum(rsiValue > overbought ? 1 : 0, max_duration) >= min_duration
longOversold = math.sum(rsiValue < oversold ? 1 : 0, max_duration) >= min_duration
// Generate signals
buySignal = ta.crossover(rsiValue, oversold) and longOversold
sellSignal = ta.crossunder(rsiValue, overbought) and longOverbought
// Calculate RSI divergence
priceDelta = close - close
rsiDelta = rsiValue - rsiValue
divergence = priceDelta * rsiDelta < 0
strongBuySignal = buySignal and divergence
strongSellSignal = sellSignal and divergence
// Plotting
plotshape(series=buySignal and not strongBuySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="Buy")
plotshape(series=sellSignal and not strongSellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="Sell")
plotshape(series=strongBuySignal, title="Strong Buy Signal", location=location.belowbar, color=color.green, style=shape.triangleup, text="Strong Buy")
plotshape(series=strongSellSignal, title="Strong Sell Signal", location=location.abovebar, color=color.red, style=shape.triangledown, text="Strong Sell")
Multi-Timeframe RSI with Table📌 Описание индикатора "Multi-Timeframe RSI with Table"
🔹 Краткое описание
Этот индикатор анализирует индикатор RSI (Relative Strength Index) на нескольких таймфреймах и отображает таблицу с RSI внутри окна индикатора.
Он помогает отслеживать перекупленность/перепроданность актива на разных временных промежутках, что полезно для скальпинга, среднесрочной и долгосрочной торговли.
📌 Основные функции
✅ График RSI (Relative Strength Index)
Текущий RSI отображается на стандартном графике индикатора.
Линии уровней:
🔴 70 – Перекупленность (возможен разворот вниз).
🟢 30 – Перепроданность (возможен разворот вверх).
⚪ 50 – Средний уровень (баланс между покупателями и продавцами).
✅ Мультифреймовая таблица RSI
Показывает RSI на 5 разных таймфреймах:
🕐 5m (5 минут)
🕐 15m (15 минут)
🕐 1h (1 час)
🕐 4h (4 часа)
🕐 1d (1 день)
Изменяет цвет фона:
🔴 Красный – RSI выше 60 (потенциальная перекупленность).
🟢 Зелёный – RSI ниже 60 (нормальное значение).
Обновляется раз в 5 баров для снижения нагрузки.
✅ Расположение таблицы
Таблица расположена в правой части окна RSI, чтобы не мешать графику.
📌 Как использовать индикатор?
Добавить в TradingView:
Скопировать код в Pine Editor.
Нажать Добавить на график.
Выбрать актив (например, HBAR/USDT).
Открыть нужный таймфрейм (например, 1h).
Оценить RSI на разных таймфреймах:
Если большинство RSI > 60 (🔴 красные ячейки) → возможен откат вниз.
Если большинство RSI < 40 (🟢 зелёные ячейки) → возможен рост.
📌 Как интерпретировать данные?
Когда RSI на всех таймфреймах высок (> 60) → актив перекуплен, может начаться коррекция вниз.
Когда RSI на всех таймфреймах низкий (< 40) → актив перепродан, возможен рост.
Если RSI на младших таймфреймах (5m, 15m) падает, а старшие (1h, 4h, 1d) высокие → возможен разворот вниз.
Если RSI на младших таймфреймах растёт, а старшие всё ещё низкие → возможен разворот вверх.
🔥 Этот индикатор даёт мощный инструмент для мультифреймового анализа RSI и помогает принимать более обоснованные торговые решения! 🚀
Death Metal 89A part of the DMM Face-Melter Pro indicator suite, available as a standalone package.
A Fibonacci 89 moving average (either SMA or EMA) that is wrapped in a standard MACD histogram.
The MACD is great for identifying the overall trend in price action momentum, while the Fibonacci 89 moving average provides a useful support/resistance level and medium-term trend direction.
Includes the 200 day moving average cloud feature.
200 Day SMA and EMA moving averages displayed together to create a highly reliable cloud of support and resistance.
The 200 day moving averages are gold standard for serious traders. Price action nearly always reacts to them, whether on the way down or back up.
Utilizing both the 200 day SMA and EMA together provides a logical range (or cloud) to work with, rather than a cut-and-dry single line.
Stochastic RSI with Custom Level//@version=6
indicator("Stochastic RSI with Custom Level", overlay = false)
// Input parameters
rsiLength = input.int(14, title="RSI Length")
stochLength = input.int(14, title="Stochastic Length")
kSmooth = input.int(3, title="K Smoothing")
dSmooth = input.int(3, title="D Smoothing")
customLevel = input.float(80, title="Custom Level for True/False Output")
timeframe = input.timeframe("2D", title="Timeframe")
// Calculate RSI
rsi = ta.rsi(close, rsiLength)
// Calculate Stochastic RSI
stochRsi = ta.stoch(rsi, rsi, rsi, stochLength)
k = ta.sma(stochRsi, kSmooth)
d = ta.sma(k, dSmooth)
// Plot Stochastic RSI
plot(k, title="Stochastic RSI %K", color=color.blue)
plot(d, title="Stochastic RSI %D", color=color.red)
// True/False output based on custom level
output = k > customLevel
plotshape(output, title="Output", location=location.top, color=color.green, style=shape.labelup, text="True")
// Screener functionality
if (output)
label.new(bar_index, high, "Selected", color=color.green, textcolor=color.white, style=label.style_label_up)