אינדיקטור Pine Script®
Candlestick analysis
BR-DowTheory//@version=6
indicator("BTC道氏趋势指标", overlay=true, shorttitle="BTC Dow", precision=2)
// 1. 参数设置
trend_length = input.int(10, title="趋势周期", minval=5)
vol_length = input.int(15, title="成交量周期", minval=5)
stop_loss = input.float(50.0, title="止损点数")
tp_ratio = input.float(2.0, title="止盈倍数")
vol_threshold = input.float(1.2, title="放量阈值")
// 2. 趋势判断
uptrend = close > ta.highest(high, trend_length)
downtrend = close < ta.lowest(low, trend_length)
// 3. 放量信号
vol_ma = ta.sma(volume, vol_length)
vol_bull = volume >= vol_ma * vol_threshold and close > open
vol_bear = volume >= vol_ma * vol_threshold and close < open
// 4. 开仓信号(去重)
var string last_signal = na
long_signal = uptrend and vol_bull and last_signal != "long"
short_signal = downtrend and vol_bear and last_signal != "short"
if long_signal
last_signal := "long"
if short_signal
last_signal := "short"
// 5. 开仓价与止损止盈
var float long_entry = na
var float short_entry = na
if long_signal
long_entry := close
short_entry := na
if short_signal
short_entry := close
long_entry := na
long_sl = long_entry - stop_loss
long_tp = long_entry + stop_loss * tp_ratio
short_sl = short_entry + stop_loss
short_tp = short_entry - stop_loss * tp_ratio
// 6. 绘制信号与线条
plotshape(long_signal, title="做多", location=location.belowbar, color=color.green, style=shape.labelup, text="L", textcolor=color.white)
plotshape(short_signal, title="做空", location=location.abovebar, color=color.red, style=shape.labeldown, text="S", textcolor=color.white)
plot(long_sl, title="多止损", color=color.red, style=plot.style_linebr)
plot(long_tp, title="多止盈", color=color.blue, style=plot.style_linebr)
plot(short_sl, title="空止损", color=color.red, style=plot.style_linebr)
plot(short_tp, title="空止盈", color=color.blue, style=plot.style_linebr)
// 7. 背景色
bgcolor(uptrend ? color.new(color.green, 90) : downtrend ? color.new(color.red, 90) : na)
אינדיקטור Pine Script®
9 EMA First Full Candle Entry + EMA Cross Exit (Strategy)his strategy is designed to create a simple, mechanical trading system using only the 9 EMA on the 5-minute chart.
Entry Logic
A trade is entered on the first candle that closes completely on one side of the 9 EMA:
Long entry: the candle’s low is above the 9 EMA
Short entry: the candle’s high is below the 9 EMA
Only the first qualifying candle is used, preventing repeated entries during the same move.
Exit Logic
Once in a trade, the position is closed when price crosses back through the 9 EMA:
Long exits when price crosses below the EMA
Short exits when price crosses above the EMA
On the exit candle, the 9 EMA is highlighted yellow to clearly mark the exit point.
Visual Cues
Entry candle is colored yellow
EMA is normally orange and turns yellow on the exit candle only
No background shading, labels, or extra indicators
Purpose
This strategy is built to minimize decisions by:
Using a single timeframe (5-minute)
Using a single indicator (9 EMA)
Defining objective entry and exit rules
Designed for:
SPY and other highly liquid ETFs
Intraday trend continuation
Clean, rules-based execution with minimal discretion
Best performance is typically seen during strong trend periods and reduced during sideways or low-volatility conditions.
אסטרטגיית Pine Script®
9 EMA First Full Candle Entry + EMA Cross Exit (Strategy)This strategy is designed to create a simple, mechanical trading system using only the 9 EMA on the 5-minute chart.
Entry Logic
A trade is entered on the first candle that closes completely on one side of the 9 EMA:
Long entry: the candle’s low is above the 9 EMA
Short entry: the candle’s high is below the 9 EMA
Only the first qualifying candle is used, preventing repeated entries during the same move.
Exit Logic
Once in a trade, the position is closed when price crosses back through the 9 EMA:
Long exits when price crosses below the EMA
Short exits when price crosses above the EMA
On the exit candle, the 9 EMA is highlighted yellow to clearly mark the exit point.
Visual Cues
Entry candle is colored yellow
EMA is normally orange and turns yellow on the exit candle only
No background shading, labels, or extra indicators
Purpose
This strategy is built to minimize decisions by:
Using a single timeframe (5-minute)
Using a single indicator (9 EMA)
Defining objective entry and exit rules
Designed for:
SPY and other highly liquid ETFs
Intraday trend continuation
Clean, rules-based execution with minimal discretion
Best performance is typically seen during strong trend periods and reduced during sideways or low-volatility conditions.
אסטרטגיית Pine Script®
9 EMA Full Candle Highlight (Bars Only)This indicator highlights individual candles that close completely above or completely below the 9 EMA.
A candle turns yellow only when the entire candle (body and wicks) is fully on one side of the 9 EMA:
• Fully above EMA → low is above the 9 EMA
• Fully below EMA → high is below the 9 EMA
Candles that touch or cross the EMA are ignored.
Only the specific candle bar is colored — no background shading, no columns, and no extra signals — keeping the chart clean and distraction-free.
Purpose
Designed for simple, rule-based trading with minimal decisions. It visually marks strong momentum candles while filtering out chop around the EMA.
How to use
• Yellow candle above → bullish momentum
• Yellow candle below → bearish momentum
• No highlight → no clear edge
Best used on:
• 5-minute charts
• SPY / highly liquid ETFs
• Trend-following strategies
אינדיקטור Pine Script®
5M 9EMA Entry & ExitThis indicator highlights high-probability trend shifts using only one rule: how a full candle closes relative to the 9 EMA.
The goal is to remove decision-making and create a clean, mechanical system.
How it works:
• A candle is considered fully under the 9 EMA when its high is below the EMA
→ Signals downside momentum
→ Highlighted as a potential short entry
• A candle is considered fully above the 9 EMA when its low is above the EMA
→ Signals upside momentum
→ Highlighted as a potential exit (or long entry)
The script:
• Plots the 9 EMA
• Highlights entry candles in red
• Highlights exit candles in green
• Optionally supports alerts
Trading logic (simple mode):
Wait for a full candle close completely under the 9 EMA → Enter puts/short
Stay in trade while candles remain below
Exit when a candle closes fully above the 9 EMA
Repeat
Designed for:
• SPY options
• 5-minute timeframe
• Low decision trading
• Quick trend continuation moves
• Minimal indicators, minimal thinking
This system avoids chop by requiring the entire candle body and wick to clear the EMA, reducing false signals and keeping trades aligned with momentum.
Best results during:
• First 2–3 hours after market open
• Strong trend days
• Avoiding midday sideways conditions
אינדיקטור Pine Script®
HTF Candle Projections [LuxAlgo]The HTF Candle Projections indicator projects recent and current higher timeframe candles onto the right side of the chart, providing a clear visualization of macro trends and internal candle composition.
🔶 USAGE
The tool is designed to bridge the gap between lower timeframe execution and higher timeframe context. By projecting HTF candles into the future space (right of the current bar), traders can maintain a clear perspective on the larger trend without constantly switching tabs.
🔹 HTF Trend Alignment
Traders can use the projected candles to ensure their lower timeframe (LTF) entries align with the broader market direction. For instance, a scalp trader might only look for long setups if the current projected Daily candle is bullish. This "Top-Down" filter helps traders avoid "fighting the trend" by providing a constant visual reminder of the HTF candle's polarity and momentum.
🔹 Anticipating Reversals & Level Origins
The indicator includes connection lines that trace back from the projected HTF wicks to the exact LTF bars that established the High and Low of that period. This allows traders to pinpoint the specific price action or "order block" responsible for the HTF extrema. If price returns to the origin of an HTF wick, traders can watch for a reaction, as these levels often represent areas of significant supply or demand.
🔹 Internal Sentiment Divergence
A unique feature of this script is the "Internal Sentiment Bars." These small bars inside the HTF candle body show the ratio of bullish vs. bearish LTF bars that make up that specific HTF candle.
If a bullish HTF candle has a high bearish sentiment bar, it suggests a "weak" or "grinding" trend where sellers are actively fighting the move, potentially signaling exhaustion.
Conversely, if the sentiment bars align strongly with the HTF candle direction (e.g., a bullish candle with almost entirely bullish sentiment), it indicates a high-conviction "power move" with little resistance.
🔹 Range Play & Breakouts
The indicator highlights the absolute highest high and lowest low of the entire projected sequence with solid connection lines. These lines define the current HTF trading range. Traders can use these boundaries to identify mean reversion opportunities within the range or to prepare for high-probability breakout trades once price moves beyond these absolute levels.
🔹 Visualizing Wick Development
By observing the live development of the current HTF candle, traders can see "wicking" behavior as it happens. If the current price is far from the HTF high but the connection line remains anchored there, it visually confirms a rejection from that level. This real-time feedback is crucial for identifying if an HTF candle is closing as a "Pin Bar" or "Shooting Star" before the timeframe actually expires.
🔶 DETAILS
The script uses a custom data structure to track the Open, High, Low, and Close of the selected timeframe. It also tracks the specific bar index of the highs and lows to draw the connection lines accurately. The absolute high and low of the entire projected sequence are highlighted with solid lines to identify the "Range High" and "Range Low" of the projected window.
🔶 SETTINGS
HTF Timeframe: Sets the higher timeframe to be projected (e.g., Daily, Weekly, Monthly).
Candle Width (Bars): Determines how many bars wide each projected candle appears on the right side of the chart.
Gap Between Candles: Sets the horizontal spacing between the projected HTF candles.
Number of HTF Candles: The total number of candles to project (previous completed candles + current live candle).
Show Internal Sentiment Bars: Toggles the visibility of the internal bull/bear composition bars.
🔹 Colors
HTF Bull/Bear Body: Adjusts the colors and transparency of the main projected candle bodies.
Sentiment Bull/Bear: Sets the color for the internal composition bars (ratio of LTF closes).
Wick Color: Customizes the color of the projected candle wicks.
Connection Line: Sets the color for the dotted lines connecting HTF wicks to their LTF origins.
Absolute High/Low Connection: Sets the color for the solid lines marking the highest and lowest points of the projected set.
אינדיקטור Pine Script®
UT Bot Alerts (T-15s Confirm)This script is a modified UT Bot indicator that confirms buy and sell signals near the end of each candle.
If a buy or sell signal appears during the candle and is still valid within the final 15 seconds before close, a confirmation alert is triggered.
אינדיקטור Pine Script®
Multiple Time frame Correlation Structure LabelsBasically nullifying Timeframe correlation mix up
Duplicate the indicator twice on your chart one for Higher TF and one for Lower TFs as one indicator alone will get messy
אינדיקטור Pine Script®
zero lag linreg candleszero lag linreg candles mixed with utlra smooth rma of three layers to make it perfect for trend following(highly prefered to use on heikin ashi chart)
אינדיקטור Pine Script®
Averaged Heikin Ashia good trend following indicator that uses multiple sources like heikin ashi candles for trend direction
אינדיקטור Pine Script®
GreenPen 1.2GreenPen MTF Confirmation
Multi-timeframe price action indicator for M1 scalping (XAUUSD)
How It Works
Draws a range box based on 7AM (GMT+7) candle open ± offset
Detects Bullish/Bearish Engulfing with wick rejection at range edges
Optional Higher TF trend filter (EMA on H2/H4)
Optional M5 confirmation — requires both M1 and M5 PA to align
Signals
🟢🔴 Circle — Raw Engulf + Wick (unfiltered, for reference)
🔺 B / S Triangle — Filtered entry at range edge
🚀 Rocket — MTF BUY Confirmed (M1 + M5 bullish PA aligned)
🔨 Hammer — MTF SELL Confirmed (M1 + M5 bearish PA aligned)
SL / TP
SL placed beyond range edge + ATR buffer
TP calculated using Risk:Reward ratio (default 1:2)
Settings
Range offset — distance from 7AM open to draw upper/lower box
Edge zone % — how much of the range counts as "edge" for entries
Trend filter — toggle higher TF EMA trend filter on/off
MTF confirm — toggle M5 confirmation on/off
Lookback — how many M1 bars to check for M5 PA alignment
Recommended
Timeframe: M1
Symbol: XAUUSD
Trend TF: H2 or H4
אינדיקטור Pine Script®
Daily & Weekly Closing Range % (Screener Compatible)Overview
This indicator calculates the Daily Closing Range (DCR) and Weekly Closing Range (WCR) as a percentage. It measures where the price finishes relative to the session's high and low.
This is a staple metric for trend followers and "CANSLIM" style traders (popularized by platforms like Deepvue and MarketSmith) to identify institutional support.
A high closing range (e.g., >80%) indicates that despite intraday volatility, buyers were aggressive enough to hold price near the highs.
Key Features
Screener Integration : Designed specifically to work with the TradingView Stock Screener (Beta). You can now filter your universe for stocks closing in the top 10% or 25% of their range.
Clean Visuals : Includes a histogram at the bottom of your chart for quick visual confirmation of price "tightness."
How to use for Screening:
Add this script to your chart.
Open the Stock Screener (Beta).
Add a filter and search for "Closing Range Tracker".
Select Daily Closing Range and set the value to Greater than 90 to find stocks finishing at the dead-highs.
אינדיקטור Pine Script®
אינדיקטור Pine Script®
Gold / Silver Ratio (Live Futures Ratio)This gives you the live futures ratio, which is better for intraday traders.
אינדיקטור Pine Script®
אינדיקטור Pine Script®
Previous Day Levels (H/L + O/C)prev day key levels high and low, open and close. testing for custom indicators
אינדיקטור Pine Script®
Qualified S&D CUT&PASTE📌 Indicator Description – Qualified S&D CUT & PASTE
Qualified S&D CUT & PASTE is a minimalistic visualization tool designed to display daily Supply & Demand zones provided by Tr3ndy Edge.
The indicator itself does not generate trading signals, alerts, or calculations.
Its sole purpose is to accurately plot externally provided zones on the chart in a fast and reliable way.
🔹 How it works
Each trading day, Tr3ndy Edge publishes updated Supply & Demand levels in the Easy Trade Telegram Group under “Daily Zone Update”.
These four values:
Demand High, Demand Low, Supply High, Supply Low
can be copied as a single line and pasted directly into one input field inside the indicator:
DemandHigh, DemandLow,SupplyHigh,SupplyLow
Example:
87880,87109,89771,88776
Once pasted, the indicator simply:
displays the Demand zone
displays the Supply zone
keeps the chart clean and uncluttered
No automation.
No recalculation.
No signal logic.
🔹 Intended Use
This indicator is designed for traders who:
follow Tr3ndy Edge daily zone updates
use external alert or execution services
want a clear visual reference of the zones on their chart
All trade qualification, alerts, and execution logic are handled outside of this indicator via the Easy Trade alert service.
🔹 Easy Trade Telegram Group
To receive the daily Tr3ndy Edge zone updates and alert service, you can join the Easy Trade Telegram Group here:
👉 t.me
⚠️ Disclaimer
This indicator is provided for visualization and educational purposes only.
It does not provide trading advice or trade recommendations.
אינדיקטור Pine Script®
Multi-TF S/RHelps identify key levels on multiple time frames please reach out to me in case you need addtyional informaion
אינדיקטור Pine Script®
Multi-TF S/RHelps identify key S/R resistance. Please reach out in case you need additional help or data
אינדיקטור Pine Script®
אינדיקטור Pine Script®
PinBar Finder by cryptokazancevEnglish description:
This script helps traders identify high-probability reversal points based on price action, specifically Pin Bars — a well-known candlestick pattern used in technical analysis.
What does the indicator do?
It detects bullish and bearish Pin Bars using a custom method for wick-to-body ratio and filters based on historical volatility (pseudo-ATR). A label appears on the chart with detailed info on wick and body size when a valid signal is found.
How does it work?
- The indicator calculates a pseudo-ATR based on the percentage range of the last 1000 candles.
- It then multiplies this value by a user-defined factor (default: 1.1) to set a dynamic threshold for wick size.
- Bullish Pin Bars are detected when the lower wick is at least 1.1 times the body and greater than the dynamic ATR.
- Bearish Pin Bars are detected when the upper wick meets similar conditions.
- Signals are shown using chart labels with exact wick/body percentages.
- Alerts are included for automation or integration with trading bots.
How to use it?
- Add the indicator to any timeframe and asset.
- Use the alerts to notify you when a Pin Bar appears.
- Ideal for traders who use candlestick reversal strategies or combine price action with other confluence tools.
- You can adjust the wick length multiplier to fit the volatility of the instrument.
What makes it original?
Unlike many public scripts that use fixed ratios, this script adapts wick length detection based on recent volatility (pseudo-ATR logic). This makes it more dynamic and suitable for different markets and timeframes.
Описание на русском:
Этот скрипт помогает трейдерам находить точки потенциального разворота на основе прайс-экшена, а именно — свечного паттерна «Пин-бар». Индикатор автоматически определяет бычьи и медвежьи пин-бары с учетом адаптивных параметров волатильности.
Что делает индикатор?
Скрипт ищет свечи, у которых тень в несколько раз превышает тело (пин-бары), и отображает на графике точную информацию о длине тела и тени. Это полезно для трейдеров, использующих свечные сигналы на разворот.
Как работает?
- Рассчитывается псевдо-ATR по 1000 последним свечам на основе процентного диапазона high-low.
- Этот ATR умножается на заданный множитель (по умолчанию: 1.1), чтобы динамически задать минимальную длину тени.
- Бычий пин-бар определяется, когда нижняя тень больше тела в 1.1 раза и превышает ATR.
- Медвежий пин-бар — аналогично, но для верхней тени.
- Индикатор отображает лейблы с точными значениями тела и тени.
- Реализованы условия для оповещений (alerts).
Как использовать?
- Добавьте индикатор на нужный график и таймфрейм.
- Настройте alerts, чтобы не пропустить сигналы.
- Особенно полезен для трейдеров, работающих со свечным анализом, стратегиями разворота, а также в сочетании с другими индикаторами.
В чем оригинальность?
В отличие от многих скриптов, использующих фиксированные параметры, здесь используется динамический расчет длины тени на основе волатильности. Это делает скрипт адаптивным к рынку и таймфрейму.
אינדיקטור Pine Script®
Strategy Pack by cryptokazancevStrategy Pack by cryptokazancev
Комплексный инструмент для анализа рыночной структуры / Comprehensive Market Structure Analysis Tool
🇷🇺 Описание на русском
Strategy Pack by cryptokazancev - это мощный набор инструментов для технического анализа, включающий:
• Ордерблоки (Order Blocks) с настройкой количества и цветов
• Пивоты (Pivot Points) различных таймфреймов
• Рыночную структуру с зонами Фибоначчи (0.618, 0.786)
• Разворотные конструкции (пинбары и поглощения)
• Зоны интереса на основе скопления свингов
📊 Основные функции:
1. Ордерблоки
- Автоматическое определение бычьих/медвежьих OB
- Настройка максимального количества блоков (до 30)
- Кастомизация цветов
2. Пивоты
- Поддержка таймфреймов: Дневные/Недельные/Месячные/Квартальные/Годовые
- Уровни Camarilla (P, R1-R4, S1-S4)
3. Рыночная структура
- Четкое определение тренда (UP/DOWN)
- Ключевые уровни Фибо (0.618 и 0.786)
- Настройка глубины анализа (10-1000 баров)
4. Разворотные конструкции
- Обнаружение пинбаров
- Обнаружение поглощений
- Настройка чувствительности
5. Зоны интереса
- Алгоритм кластеризации свингов
- Настройка через ATR-мультипликатор
- Лимит отображаемых зон
🇬🇧 English Description
Strategy Pack is a comprehensive market analysis toolkit featuring:
• Order Blocks with customizable count and colors
• Pivot Points for multiple timeframes
• Market Structure with Fibonacci zones
• Reversal patterns (pinbars and engulfings)
• Interest Zones based on swing clustering
📊 Key Features:
1. Order Blocks
- Auto-detection of bullish/bearish OB
- Configurable max blocks (up to 30)
- Custom color schemes
2. Pivot Points
- Supports: Daily/Weekly/Monthly/Quarterly/Yearly
- Camarilla levels (P, R1-R4, S1-S4)
3. Market Structure
- Clear trend detection (UP/DOWN)
- Key Fibonacci levels (0.618 & 0.786)
- Adjustable analysis depth (10-1000 bars)
4. Reversal Patterns
- Smart pinbar detection
- ATR-based engulfing filter
- Sensitivity adjustment
5. Interest Zones
- Swing clustering algorithm
- ATR-multiplier configuration
- Display limit (up to 10 zones)
⚙️ Technical Highlights:
• Built with Pine Script v5
• Performance-optimized
• Well-commented code
• Flexible settings system
⚠️ Важно / Important:
Индикатор в бета-версии. Тестируйте перед использованием в реальной торговле.
This is BETA version. Please test before live trading.
💬 Поддержка / Support:
Комментарии к скрипту / Script comments section
Developer: ZeeZeeMon
אינדיקטור Pine Script®






















