ATR SL
### 📘 **스크립트 설명 — ATR 기반 스탑로스 표시기 (ATR SL)**
이 스크립트는 **캔들 저가(low)와 ATR(평균 진폭 지표)** 를 활용해
트레이딩 시 **동적인 스탑로스 라인과 라벨**을 자동으로 표시해주는 인디케이터입니다.
---
#### 🔧 **기본 로직**
* **각 봉별 ATR(10)** 을 이용하여 변동성 기반 스탑로스 계산
→ `ATR SL = 저가 - ATR(10) × Multiplier`
* **오늘 봉(실시간)** 은 변동성이 작게 잡히는 것을 방지하기 위해
`오늘 ATR`과 `전일 ATR` 중 **더 큰 값**을 사용
* 과거 봉들은 해당 시점의 **그날 ATR**로 계산되어 고정됨
---
#### 🎯 **표시 요소**
| 항목 | 설명 |
| --------------------- | ----------------------------------- |
| **핑크 라인** | 각 봉별 스탑로스 라인 (`저가 - ATR × m`) |
| **오늘 스탑 라벨** | 현재 캔들 위에 표시되는 오늘 기준 스탑 가격 |
| **최근 5일 중 맥시멈 스탑 라벨** | 최근 5일간 가장 높은 스탑로스 값이 발생한 봉 위에 1개 표시 |
---
#### ⚙️ **주요 설정값**
| 이름 | 설명 | 기본값 |
| ------------ | -------------------------------- | ---- |
| `Length` | ATR 계산 기간 | 10 |
| `Smoothing` | ATR 계산 방식 (RMA/SMA/EMA/WMA 중 선택) | RMA |
| `Multiplier` | ATR 배수 (리스크 여유 조절) | 1.01 |
| `Long Base` | 기준가 (보통 저가 low 사용) | low |
| `Lookback` | 최근 N봉 중 최고 스탑 탐색 구간 | 5 |
---
#### 🎨 **색상**
* 라인: 연핑크 (`rgba(255,105,180,0.3)`)
* 라벨: 진한 핑크 (`rgba(255,105,180,0.1)`)
* 텍스트: 흰색
---
#### 📈 **활용 예시**
* **스탑로스 설정:**
ATR 기반의 변동성 대응형 스탑라인을 즉시 시각화
* **리스크 관리:**
변동성이 줄어들 때도 지나치게 좁은 스탑을 방지 (오늘 봉은 `max(오늘ATR, 전일ATR)` 적용)
* **트레일링 스탑 용도:**
상승 추세에서 최근 5일 중 최고 스탑 라벨 참고 가능
---
#### 🧠 **주의사항**
* 라벨은 항상 **2개만 표시됨**
→ 오늘 스탑 1개 + 최근 5일 맥시멈 스탑 1개
* 하단 보조창이 아니라 **메인 차트 위(`overlay=true`)** 에 표시
* 멀티라인 문법 오류 방지를 위해 모든 `label.new()`는 **한 줄로 작성됨**
---
#### 💬 **요약**
> ATR SL = 변동성을 반영한 실전용 스탑로스 표시기
> → 실시간 ATR 보정(`max(오늘, 어제)`)으로 장 초반 왜곡 방지
> → 최근 5일 최고 스탑과 오늘 스탑을 함께 시각화해 추세 파악 용이
---
필요하면 제목 아래에 이런 문구를 추가해도 좋아👇
> “By turtlekim 🐢 — 변동성 기반 리스크 매니지먼트용 Pine Script”
──────────────────────────────────────────────────────────────
// 📘 ATR SL — 변동성 기반 스탑로스 표시기 (by turtlekim)
//
// This script visualizes a **volatility-based stop loss** line
// using each candle's **Low** and **ATR(10)** value.
// Designed for traders who want adaptive, risk-adjusted stop levels.
//
//──────────────────────────────────────────────────────────────
// 🔧 기본 로직 / Core Logic
// - ATR SL = Low - ATR(10) × Multiplier
// - For historical candles → uses that day's ATR(10)
// - For the current (realtime) candle → uses max(Today’s ATR, Previous ATR)
// to prevent unrealistically small stops when volatility is low early in the session.
//
//──────────────────────────────────────────────────────────────
// 🎯 표시 요소 / Display Elements
// • Pink line → ATR-based stop line per candle
// • Pink label → Today’s stop (current candle)
// • Pink label → Highest stop over the past 5 bars (1 label only)
//
//──────────────────────────────────────────────────────────────
// ⚙️ 주요 설정값 / Key Parameters
// Length : ATR period (default = 10)
// Smoothing : Type of ATR averaging (RMA/SMA/EMA/WMA)
// Multiplier : Adjusts distance from Low (default = 1.01)
// Long Base : Reference price (usually Low)
// Lookback : Number of bars for max stop check (default = 5)
//
//──────────────────────────────────────────────────────────────
// 🎨 색상 / Color Scheme
// • Line : Light pink (rgba(255,105,180,0.3))
// • Labels : Solid pink (rgba(255,105,180,0.1))
// • Text : White
//
//──────────────────────────────────────────────────────────────
// 📈 활용 예시 / How to Use
// - Set your stop-loss visually at the pink line (ATR-based distance).
// - For position sizing, use this stop level to calculate volatility risk.
// - Track both today’s stop and the 5-bar max stop to monitor trailing support.
//
//──────────────────────────────────────────────────────────────
// 🧠 주의사항 / Notes
// • Only two labels are shown: Today’s stop + 5-bar max stop.
// • Works only on main chart (overlay=true).
// • All label.new() statements are written in a single line
// to avoid syntax errors in Pine Script.
//
//──────────────────────────────────────────────────────────────
// 💬 요약 / Summary
// ATR SL = Dynamic, volatility-adjusted stop loss visualizer
// → Prevents premature stopouts in early low-volatility periods
// → Highlights both current and recent 5-bar maximum stops
//
//──────────────────────────────────────────────────────────────
Indicators and strategies
Dynamic ATR Based TP/SL Simple tool for creating the stop loss and take profit targets multiplied by ATR value.
Gemini Powerbars v2.1⚙️ Internal Logic — How Powerbars Decides to “Turn On”
Gemini Powerbars analyzes each candle across multiple dimensions — momentum, trend structure, and relative strength context — and produces a binary output: a bar is either “powered” (signal on) or “neutral” (signal off).
Internally, it combines:
RSI velocity (momentum acceleration rather than raw RSI value).
Normalized volume pressure — volume adjusted for average activity over the last n bars, so a quiet day won’t falsely trigger strength.
SMA alignment — where the candle closes relative to the 20- and 50-period SMAs and its own average true range (ATR) position.
Relative Strength (RS) — how the symbol performs versus a market benchmark (like SPY or QQQ).
Only when all these micro-conditions line up does the Powerbar print — meaning the engine sees synchronized energy between price motion, volatility, and strength. This makes the signal highly selective — it doesn’t fade, average, or interpolate. It flips on when aligned, and off when noise dominates.
📊 Dashboard Table — “At-a-Glance Market Engine”
The table in the upper-right corner summarizes what the bars are detecting internally:
Column Description
Momentum A 0-to-5 score derived from the RSI velocity and normalized momentum bursts. Higher = stronger impulse power.
Trend Evaluates whether price is stacked in bullish or bearish order vs. its short and mid-term moving averages. A “5” means full alignment (e.g., price > 20MA > 50MA).
Structure / Zone Indicates whether price is inside a “High-Probability Zone” — areas where recent pullbacks or compression historically lead to expansion. This helps filter continuation setups from false breakouts.
Volume Bias Tracks whether current volume exceeds the rolling 10-bar average, confirming participation.
RS Score The relative strength percentile versus the benchmark. Shows if the ticker is outperforming the overall market trend.
The table dynamically updates each bar, so you can see why a Powerbar fired — for example, Momentum = 5 and RS = 5 with Trend = 4 means you’ve got a textbook momentum thrust. If those start dropping back to 2-3 while bars stay “on,” it’s an early warning of exhaustion or fading participation.
In short, Gemini Powerbars isn’t guessing — it’s measuring engine torque. The bars tell you when ignition happens; the dashboard tells you why.
Initial Balance HUYEN 3this is indicator to calculates and draws the initial balance price levels which can be really interesting for intraday activities.
Session Gap Fill [LuxAlgo]The Session Gap Fill tool detects and highlights filled and unfilled price gaps between regular sessions. It features a dashboard with key statistics about the detected gaps.
The tool is highly customizable, allowing users to filter by different types of gaps and customize how they are displayed on the chart.
🔶 USAGE
By default, the tool detects all price gaps between sessions. A price gap is defined as a difference between the opening price of one session and the closing price of the previous session. In this case, the tool uses the opening price of the first bar of the session against the closing price of the previous bar.
A bullish gap is detected when the session open price is higher than the last close, and a bearish gap is detected when the session open price is lower than the last close.
Gaps represent a change in market sentiment, a difference in what market participants think between the close of one trading session and the open of the next.
What is useful to traders is not the gap itself, but how the market reacts to it.
Unfilled gaps occur when prices do not return to the previous session's closing price.
Filled gaps occur when prices come back to the previous session's close price.
By analyzing how markets react to gaps, traders can understand market sentiment, whether different prices are accepted or rejected, and take advantage of this information to position themselves in favor of bullish or bearish market sentiment.
Next, we will cover the Gap Type Filter and Statistics Dashboard.
🔹 Gap Type Filter
Traders can choose from three options: display all gaps, display only overlapping gaps, or display only non-overlapping gaps. All gaps are displayed by default.
An overlapping gap is defined when the first bar of the session has any price in common with the previous bar. No overlapping gap is defined when the two bars do not share any price levels.
As we will see in the next section, there are clear differences in market behavior around these types of gaps.
🔹 Statistics Dashboard
The Statistics Dashboard displays key metrics that help traders understand market behavior around each type of gap.
Gaps: The percentage of bullish and bearish gaps.
Filled: The percentage of filled bullish and bearish gaps.
Reversed: The percentage of filled gaps that move in favor of the gap
Bars Avg.: The average number of bars for a gap to be filled.
Now, let's analyze the chart on the left of the image to understand those stats. These are the stats for all gaps, both overlapping and non-overlapping.
Of the total, bullish gaps represent 55%, and bearish ones represent 44%. The gap bias is pretty balanced in this market.
The second statistic, Filled, shows that 63% of gaps are filled, both bullish and bearish. Therefore, there is a higher probability that a gap will be filled than not.
The third statistic is reversed. This is the percentage of filled gaps where prices move in favor of the gap. This applies to filled bullish gaps when the close of the session is above the open, and to filled bearish gaps when the close of the session is below the open. In other words, first there is a gap, then it fills, and finally it reverses. As we can see in the chart, this only happens 35% of the time for bullish gaps and 29% of the time for bearish gaps.
The last statistic is Bars Avg., which is the average number of bars for a gap to be filled. On average, it takes between one and two bars for both bullish and bearish gaps. On average, gaps fill quickly.
As we can see on the chart, selecting different types of gaps yields different statistics and market behavior. For example, overlapping gaps have a greater than 90% chance of being filled, whereas non-overlapping gaps have a less than 40% chance.
🔶 SETTINGS
Gap Type: Select the type of gap to display.
🔹 Dashboard
Dashboard: Enable or disable the dashboard.
Position: Select the location of the dashboard.
Size: Select the dashboard size.
🔹 Style
Filled Bullish Gap: Enable or disable this gap and choose the color.
Filled Bearish Gap: Enable or disable this gap and choose the color.
Unfilled Gap: Enable or disable this gap and choose the color.
Max Deviation Level: Enable or disable this level and choose the color.
Open Price Level: Enable or disable this level and choose the color.
ADX - Globx Options & Futures 2.0The ADX Globx Options & Futures is a custom-built trend strength indicator designed to replicate and enhance the classic Average Directional Index (ADX) model, commonly used in professional trading platforms such as IQ Option.
This version is optimized for options and futures trading, providing precise directional strength readings through adaptive smoothing and configurable parameters.
Concept and Logic
This indicator measures the strength of the current trend, regardless of its direction (bullish or bearish), by comparing directional movement between price highs and lows over a defined period.
It uses three main components:
+DI (Positive Directional Indicator): represents bullish strength.
–DI (Negative Directional Indicator): represents bearish strength.
ADX (Average Directional Index): measures the intensity of the prevailing trend, independent of direction.
The script follows the original logic proposed by J. Welles Wilder Jr., but introduces enhanced smoothing flexibility.
Users can choose between EMA (Exponential Moving Average) and Wilder’s RMA (Running Moving Average) for both DI and ADX calculations, allowing closer alignment with various platform implementations (IQ Option, MetaTrader, etc.).
How It Works
Directional Movement Calculation
The script computes upward and downward movements (+DM and –DM) by comparing the differences in highs and lows between consecutive candles.
Only positive directional changes that exceed the opposite side are considered.
This ensures each bar contributes only one valid directional movement.
True Range and Smoothing
The True Range (TR) is calculated using ta.tr(true) to include price gaps—replicating how professional derivatives platforms account for volatility jumps.
Both TR and DM values are smoothed using the selected averaging method (EMA or Wilder).
Directional Index and ADX
The smoothed +DI and –DI values are normalized over the True Range to form the Directional Index (DX), which measures the percentage difference between the two.
The ADX is then derived by smoothing the DX values, providing a stable reading of overall market strength.
Visual Representation
The ADX (white line) indicates the overall trend strength.
The +DI (dark blue) and –DI (dark red) lines show which side (bullish or bearish) is currently dominant.
Reference levels at 20 and 25 serve as strength thresholds:
Below 20 → Weak or sideways market.
Above 25 → Strong and directional trend.
Usage and Interpretation
When ADX rises above 25, the market shows a strong trend — use +DI > –DI for bullish confirmation, or the opposite for bearish momentum.
A falling ADX suggests decreasing trend strength and potential consolidation.
The default parameters (ADX Length = 34, DI Length = 34, both smoothed by EMA) match IQ Option’s internal ADX configuration, ensuring consistency between platforms.
Works on any timeframe or asset class, but is especially tuned for futures and options volatility dynamics.
Originality and Improvements
Unlike many open-source ADX indicators, this version:
Recreates IQ Option’s 34-length EMA-based ADX calculation with exact parameter alignment.
Provides selectable smoothing algorithms (EMA or Wilder) to switch between modern and classic formulations.
Uses dark-theme-optimized visuals with fine line weight and subtle contrast for clean visibility.
Maintains constant guide levels (20/25) rendered globally for precision and style compliance in Pine Script v6.
Is fully rewritten for Pine Script v6, ensuring compatibility and optimized execution.
Recommended Use
Combine with trend-following systems or breakout strategies.
Ideal for identifying market strength before engaging in options directionals or futures entries.
Use the ADX to confirm breakout momentum or filter sideways markets.
Disclaimer
This script is for educational and analytical purposes. It does not constitute financial advice or a trading signal. Users are encouraged to validate the indicator within their own trading strategies and risk frameworks.
SMMA 40/225 Crossover Alert (Bar Close)//@version=5
indicator("SMMA 40/225 Crossover Alert (Bar Close)", shorttitle="SMMA Cross Alert", overlay=true)
// === SMMA Function ===
smma(src, length) =>
sma_ = ta.sma(src, length)
smma = 0.0
smma := na(smma ) ? sma_ : (smma * (length - 1) + src) / length
smma
// === Calculate SMMA 40 & 225 ===
smma40 = smma(close, 40)
smma225 = smma(close, 225)
// === Crossover Conditions (confirmed after bar close) ===
bullishCross = ta.crossover(smma40, smma225)
bearishCross = ta.crossunder(smma40, smma225)
// === Trigger only after bar close ===
bullishSignal = bullishCross and barstate.isconfirmed
bearishSignal = bearishCross and barstate.isconfirmed
// === Alerts ===
alertcondition(bullishSignal, title="SMMA Bullish Crossover", message="✅ SMMA 40 crossed ABOVE SMMA 225 — BUY Signal (Confirmed at Bar Close)")
alertcondition(bearishSignal, title="SMMA Bearish Crossover", message="❌ SMMA 40 crossed BELOW SMMA 225 — SELL Signal (Confirmed at Bar Close)")
BTC – MA20/50/200 (Overlay)//@version=5
indicator("BTC – MA20/50/200 (Overlay)", overlay=true, max_lines_count=500)
// ==== Inputs ====
tf = input.timeframe("", "Multi-TF (để trống = khung hiện tại)")
lenMA1 = input.int(20, "MA1 (ngắn)")
lenMA2 = input.int(50, "MA2 (trung)")
lenMA3 = input.int(200, "MA3 (dài)")
useEMA = input.bool(false, "Dùng EMA thay vì SMA")
// ==== Series ====
src = request.security(syminfo.tickerid, tf == "" ? timeframe.period : tf, close)
// ==== MA helper ====
ma(src,len,ema) => ema ? ta.ema(src,len) : ta.sma(src,len)
ma1 = ma(src,lenMA1,useEMA)
ma2 = ma(src,lenMA2,useEMA)
ma3 = ma(src,lenMA3,useEMA)
// ==== Plots ====
plot(ma1, title="MA20/EMA20", linewidth=2)
plot(ma2, title="MA50/EMA50", linewidth=2)
plot(ma3, title="MA200/EMA200", linewidth=2)
// ==== Labels gợi ý ====
condPullback = close < ma1 and close >= ma2
condTrendUp = close > ma2 and ma2 > ma3
condRisk = close < ma2
if condPullback
label.new(bar_index, high, "Pullback về MA ngắn", textalign=text.align_left)
if condTrendUp
label.new(bar_index, low, "Xu hướng tăng duy trì", textalign=text.align_left)
if condRisk
label.new(bar_index, high, "Mất MA trung – thận trọng", textalign=text.align_left)
Daily/Weekly EMAs on Lower TimeframesThis indicator allows traders to view Daily and Weekly EMAs (Exponential Moving Averages) directly on lower timeframes such as 1m, 5m, 15m, or 1h charts — providing a higher timeframe perspective without switching charts.
The script includes individual checkboxes for each EMA length — 5, 8, 9, 21, 50, and 200 — organized into two clear sections:
🟢 Daily EMAs
🔵 Weekly EMAs
You can selectively enable or disable any EMA to match your trading style and reduce chart clutter.
Each EMA is color-coded for clarity and consistency:
5 EMA: Green
8 EMA: Blue
9 EMA: Blue
21 EMA: Orange
50 EMA: Purple
200 EMA: Red
Weekly EMAs appear slightly transparent to distinguish them from daily ones.
This makes it easy to visualize higher timeframe trend direction, confluence zones, and dynamic support/resistance levels while trading intraday.
💡 Key Features
View Daily and Weekly EMAs on smaller timeframes.
Individual checkbox toggles for all 6 EMA lengths.
Separate sections for Daily and Weekly EMAs.
Color-coded lines for easy visual recognition.
Works seamlessly on any symbol or timeframe below Daily.
Exciting Candles by BitcoinBailyExciting Candles by BitcoinBaily — is a custom indicator that visually highlights "momentum" or "exciting" candlesticks on the chart.
It helps traders quickly identify candles with strong body-to-range ratios, i.e., candles showing strong price momentum (big move between open and close relative to the high-low range).
If the candle’s body is greater than or equal to the threshold percentage (say 85%), the bar is colored yellow. Otherwise, no color is applied.
Yellow Candle = Exciting Candle
The candle’s body occupies ≥ the set % (e.g., 85%) of the total high-low range.
Indicates strong momentum (buyers or sellers dominated most of that period).
No Color = Neutral / Normal Candle
Price moved both ways (upper & lower wicks), but neither buyers nor sellers fully dominated.
1. Range Breakout: When price breaks a sideways range and a yellow (exciting) candle appears,
it confirms that real momentum has entered — a good time to catch the move early.
2. Trend Pullback: If price dips to a moving average (like 20 or 50 SMA) and then forms a yellow
candle, it signals that buyers are regaining control — often a high-probability trend
continuation entry.
3. Exhaustion Top: A yellow bearish candle near a resistance area shows strong selling pressure
— a warning that the uptrend may be ending.
4. Sideways Market: When no yellow candles appear, the market lacks momentum — best to
stay out and avoid choppy trades.
Breakout buy and sell//@version=6
indicator("突破 + 反轉指標(嚴格版)", overlay=true)
// 均線計算
ma5 = ta.sma(close, 5)
ma20 = ta.sma(close, 20)
ma_cross_up = ta.crossover(ma5, ma20)
ma_cross_down = ta.crossunder(ma5, ma20)
// 成交量判斷(嚴格:放量 1.5 倍以上)
vol = volume
vol_avg = ta.sma(vol, 20)
vol_increase = vol > vol_avg * 1.5
// 價格突破(嚴格:創 20 根新高/新低)
price_breakout_up = close > ta.highest(close, 20)
price_breakout_down = close < ta.lowest(close, 20)
// KDJ 隨機指標(抓反轉)
k = ta.stoch(close, high, low, 14)
d = ta.sma(k, 3)
kd_cross_up = ta.crossover(k, d)
kd_cross_down = ta.crossunder(k, d)
// 時間過濾(美股正規交易時段)
isRegularSession = (hour >= 14 and hour < 21) or (hour == 21 and minute == 0)
// 冷卻時間(避免連續訊號)
var int lastEntryBar = na
var int lastExitBar = na
entryCooldown = na(lastEntryBar) or (bar_index - lastEntryBar > 5)
exitCooldown = na(lastExitBar) or (bar_index - lastExitBar > 5)
// 嚴格進場條件
entryBreakout = ma_cross_up and vol_increase and price_breakout_up
entryReversal = kd_cross_up
entrySignal = (entryBreakout or entryReversal) and isRegularSession and entryCooldown
// 嚴格出場條件
exitBreakdown = ma_cross_down and vol_increase and price_breakout_down
exitReversal = kd_cross_down
exitSignal = (exitBreakdown or exitReversal) and isRegularSession and exitCooldown
// 更新冷卻時間
if entrySignal
lastEntryBar := bar_index
if exitSignal
lastExitBar := bar_index
// 顯示訊號
plotshape(entrySignal, location=location.belowbar, color=color.green, style=shape.labelup, title="進場訊號", text="買入")
plotshape(exitSignal, location=location.abovebar, color=color.red, style=shape.labeldown, title="出場訊號", text="賣出")
// 均線顯示
plot(ma5, color=color.orange, title="5MA")
plot(ma20, color=color.blue, title="20MA")
// 提醒條件(alertcondition)
alertcondition(entrySignal, title="買入訊號", message="出現買入訊號")
alertcondition(exitSignal, title="賣出訊號", message="出現賣出訊號")
PnL PortfolioThis script allows you to input the details for up to 20 active positions across various trading pairs or markets. Stop manually calculating your trades—get instant, real-time feedback on your performance.
Key Features:
Multi-Pair Tracking: Monitor up to 20 unique symbols simultaneously.
Required Inputs: Easily define the Symbol, Entry Price, and Position Quantity (size) for each trade in the indicator settings.
Real-Time PnL: Instantly calculates and displays two critical metrics based on the current market price:
% PnL (Percentage Profit/Loss)
Absolute Profit/Loss (in currency)
Color-Coded Feedback: The PnL columns are color-coded (green/teal for profit, red/maroon for loss) for immediate visual confirmation of your trade health.
Customizable Layout: Choose where the dashboard table appears on your chart (top-left, top-right, bottom-left, or bottom-right) to keep your trading view clean.
This is an essential overlay for any trader managing multiple active positions and needing a consolidated, easy-to-read overview.
Algo Trading Signals - Buy/Sell System# 📊 Algo Trading Signals - Dynamic Buy/Sell System
## 🎯 Overview
**Algo Trading Signals** is a sophisticated intraday trading indicator designed for algorithmic traders and active day traders. This system generates precise buy and sell signals based on a dynamic box breakout strategy with intelligent position management, add-on entries, and automatic target adjustment.
The indicator creates a reference price box during a specified time window (default: 9:15 AM - 9:45 AM IST) and generates high-probability signals when price breaks out of this range with confirmation.
---
## ✨ Key Features
### 📍 **Smart Signal Generation**
- **Primary Entry Signals**: Clear buy/sell signals on confirmed breakouts above/below the reference box
- **Confirmation Bars**: Reduces false signals by requiring multiple bar confirmation before entry
- **Cooldown System**: Prevents overtrading with configurable cooldown periods between trades
- **Add-On Positions**: Automatically identifies optimal pullback entries for scaling into positions
### 📦 **Dynamic Reference Box**
- Creates a high/low range during your chosen time window
- Automatically updates after each successful trade
- Visual box display with color-coded boundaries (red=resistance, green=support)
- Mid-level reference line for market structure analysis
### 🎯 **Intelligent Position Management**
- **Automatic Target Calculation**: Sets profit targets based on average move distance
- **Add-On System**: Up to 3 additional entries on optimal pullbacks
- **Position Tracking**: Monitors active trades and remaining add-on capacity
- **Auto Box Shift**: Adjusts reference box after target hits for continued trading
### 📊 **Visual Clarity**
- **Color-Coded Labels**:
- 🟢 Green for BUY signals
- 🔴 Red for SELL signals
- 🔵 Blue for ADD-ON buys
- 🟠 Orange for ADD-ON sells
- ✓ Yellow for Target hits
- **TP Level Lines**: Dotted lines showing current profit targets
- **Hover Tooltips**: Detailed information on entry prices, targets, and add-on numbers
### 📈 **Real-Time Statistics**
Live performance dashboard showing:
- Total buy and sell signals generated
- Number of add-on positions taken
- Take profit hits achieved
- Current trade status (LONG/SHORT/None)
- Cooldown timer status
### 🔔 **Comprehensive Alerts**
Built-in alert conditions for:
- Primary buy entry signals
- Primary sell entry signals
- Add-on buy positions
- Add-on sell positions
- Buy take profit hits
- Sell take profit hits
---
## 🛠️ Configuration Options
### **Time Settings**
- **Box Start Hour/Minute**: Define when to begin tracking the reference range
- **Box End Hour/Minute**: Define when to lock the reference box
- **Default**: 9:15 AM - 9:45 AM (IST) - Perfect for Indian market opening range
### **Trade Settings**
- **Target Points (TP)**: Average move distance for profit targets (default: 40 points)
- **Breakout Confirmation Bars**: Number of bars to confirm breakout (default: 2)
- **Cooldown After Trade**: Bars to wait after closing position (default: 3)
- **Add-On Distance Points**: Minimum pullback for add-on entry (default: 40 points)
- **Max Add-On Positions**: Maximum additional positions allowed (default: 3)
### **Display Options**
- Toggle buy/sell signal labels
- Show/hide trading box visualization
- Show/hide TP level lines
- Show/hide statistics table
---
## 💡 How It Works
### **Phase 1: Box Formation (9:15 AM - 9:45 AM)**
The indicator tracks the high and low prices during your specified time window to create a reference box representing the opening range.
### **Phase 2: Breakout Detection**
After the box is locked, the system monitors for:
- **Bullish Breakout**: Price closes above box high for confirmation bars
- **Bearish Breakout**: Price closes below box low for confirmation bars
### **Phase 3: Signal Generation**
When confirmation requirements are met:
- Entry signal is generated with clear visual label
- Target price is calculated (Entry ± Target Points)
- Position tracking activates
- Cooldown timer starts
### **Phase 4: Position Management**
During active trade:
- **Add-On Logic**: If price pulls back by specified distance but stays within favorable range, additional entry signal fires
- **Target Monitoring**: Continuously checks if price reaches TP level
- **Box Adjustment**: After TP hit, box automatically shifts to new range for next opportunity
### **Phase 5: Trade Exit & Reset**
On target hit:
- Position closes with TP marker
- Statistics update
- Box repositions for next setup
- Cooldown activates
- System ready for next signal
---
## 📌 Best Use Cases
### **Ideal For:**
- ✅ Intraday breakout trading strategies
- ✅ Algorithmic trading systems (via alerts/webhooks)
- ✅ Opening range breakout (ORB) strategies
- ✅ Index futures (Nifty, Bank Nifty, Sensex)
- ✅ High-liquidity stocks with clear ranges
- ✅ Automated trading bots
- ✅ Scalping and day trading
### **Markets:**
- Indian Stock Market (NSE/BSE)
- Futures & Options
- Forex pairs
- Cryptocurrency (adjust timing for 24/7 markets)
- Global indices
---
## ⚙️ Integration with Algo Trading
This indicator is **algo-ready** and can be integrated with automated trading systems:
1. **TradingView Alerts**: Set up alert conditions for each signal type
2. **Webhook Integration**: Connect alerts to trading platforms via webhooks
3. **API Automation**: Use with brokers supporting TradingView integration (Zerodha, Upstox, Interactive Brokers, etc.)
4. **Signal Data Access**: All signals are plotted for external data retrieval
---
## 📖 Quick Start Guide
1. **Add Indicator**: Apply to your chart (works best on 1-5 minute timeframes)
2. **Configure Time Window**: Set your desired box formation period
3. **Adjust Parameters**: Tune confirmation bars, targets, and add-on settings to your trading style
4. **Set Alerts**: Create alert conditions for automated notifications
5. **Backtest**: Review historical signals to validate strategy performance
6. **Go Live**: Enable alerts and start receiving real-time trading signals
---
## ⚠️ Risk Disclaimer
This indicator is a **tool for analysis** and does not guarantee profits. Trading involves substantial risk of loss. Always:
- Use proper position sizing
- Implement stop losses (not included in this indicator)
- Test thoroughly before live trading
- Understand market conditions
- Never risk more than you can afford to lose
- Consider your risk tolerance and trading experience
**Past performance does not indicate future results.**
## 🔄 Version History
**v1.0** - Initial Release
- Dynamic box formation system
- Confirmed breakout signals
- Add-on position management
- Visual signal labels and statistics
- Comprehensive alert system
- Auto-adjusting target boxes
---
## 📞 Support & Feedback
If you find this indicator helpful:
- ⭐ Please leave a like/favorite
- 💬 Share your feedback in comments
- 📊 Share your results and improvements
- 🤝 Suggest features for future updates
---
## 🏷️ Tags
`breakout` `daytrading` `signals` `algo` `automated` `intraday` `ORB` `opening-range` `buy-sell` `scalping` `futures` `nifty` `banknifty` `algorithmic` `box-strategy`
*Remember: The best indicator is combined with proper risk management and trading discipline.* Use it at your own rist, not as financial advie
Multi-Symbol and Multi-Timeframe Supertrend Screener [Pineify]Multi-Symbol and Multi-Timeframe Supertrend Screener
Advanced Supertrend screener for TradingView that monitors 6 symbols across 4 timeframes simultaneously. Features customizable ATR periods, visual alerts, and color-coded trend direction displays for efficient market scanning.
Key Features
The Supertrend Screener is a comprehensive multi-symbol market monitoring tool that displays Supertrend indicator signals across multiple assets and timeframes in a single, organized table view. This screener eliminates the need to manually check individual charts by providing real-time trend analysis for up to 6 symbols across 4 different timeframes simultaneously.
How It Works
The screener utilizes the proven Supertrend indicator methodology, which combines Average True Range (ATR) and price action to determine trend direction. The core calculation involves:
Computing the ATR using a customizable period (default: 10)
Applying a multiplication factor (default: 3.0) to create dynamic support/resistance levels
Determining trend direction based on price position relative to these levels
Displaying results through color-coded cells with customizable text labels
The indicator employs the request.security() function to fetch data from multiple symbols and timeframes, ensuring accurate cross-market analysis without chart switching.
Trading Ideas and Insights
This screener excels in several trading scenarios:
Market Overview: Quickly assess overall market sentiment across major cryptocurrencies or forex pairs
Trend Confirmation: Verify trend alignment across multiple timeframes before entering positions
Divergence Spotting: Identify when shorter timeframes diverge from longer-term trends
Opportunity Scanning: Locate assets showing consistent trend direction across all monitored timeframes
Risk Management: Monitor multiple positions simultaneously to spot potential trend reversals
The screener is particularly effective for swing traders and position traders who need to monitor multiple assets without constantly switching between charts.
How Multiple Indicators Work Together
While this screener focuses specifically on the Supertrend indicator, it incorporates several complementary technical analysis components:
ATR Foundation: Uses Average True Range to adapt to market volatility, making the indicator responsive to current market conditions
Multi-Timeframe Analysis: Combines signals from 1-minute, 5-minute, 10-minute, and 30-minute timeframes to provide comprehensive trend perspective
Price Action Integration: The Supertrend calculation inherently incorporates price action by using high, low, and close values
Volatility Adjustment: The ATR-based calculation ensures the indicator adapts to different volatility regimes across various assets
The synergy between these elements creates a robust screening system that accounts for both momentum and volatility , providing more reliable trend identification than single-timeframe analysis.
Unique Aspects
Several features distinguish this screener from standard Supertrend implementations:
Table-Based Display: Presents data in an organized, space-efficient format rather than overlay plots
Customizable Visual Elements: Full control over text labels, colors, and background styling
Multi-Asset Capability: Monitors 6 different symbols simultaneously without performance degradation
Efficient Resource Usage: Optimized code structure minimizes calculation overhead
Professional Presentation: Clean, institutional-grade visual design suitable for trading desks
How to Use
Symbol Configuration: Input your desired symbols in the Symbol section (default includes major crypto pairs)
Timeframe Setup: Configure four timeframes for analysis (default: 1m, 5m, 10m, 30m)
Supertrend Parameters: Adjust the Factor (sensitivity) and ATR Period according to your trading style
Visual Customization: Set custom text labels and colors for up/down trends
Market Analysis: Monitor the table for consistent signals across timeframes and symbols
Interpretation Guide:
- Green cells indicate uptrend (price above Supertrend line)
- Red cells indicate downtrend (price below Supertrend line)
- Look for alignment across multiple timeframes for stronger signal confidence
Customization
The screener offers extensive customization options:
Factor Setting: Adjust sensitivity (higher values = less sensitive, fewer signals)
ATR Period: Modify lookback period for volatility calculation
Text Labels: Customize up/down trend display text
Color Scheme: Full RGB color control for text and background elements
Symbol Selection: Monitor any TradingView-supported symbols
Timeframe Array: Choose any four timeframes for comprehensive analysis
Conclusion
The Supertrend Screener transforms traditional single-chart analysis into an efficient, multi-dimensional market monitoring system. By combining the reliability of the Supertrend indicator with multi-timeframe and multi-symbol capabilities, this tool empowers traders to make more informed decisions with greater market context.
Whether you're managing multiple positions, scanning for new opportunities, or confirming trend direction before entries, this screener provides the comprehensive overview needed for professional trading operations. The clean interface and customizable features make it suitable for traders of all experience levels while maintaining the analytical depth required for serious market analysis.
Perfect for day traders, swing traders, and anyone requiring efficient multi-market trend monitoring in a single view.
Chikou (Lagging line) vs Price26, IchimokuFor Ichimoku strategy in chart or/also in screens.
Checks if Lagging line actual value is above or below price 26 periods ago.
In superchart label is shown describing if over or below. Colour green/red.
/Håkan from Sweden
30 Day HighDisplay the 30 day high on the chart, based on the highest high (as opposed to the highest close).
TLM HTF CandlesTLM HTF Candles
Higher timeframe candles displayed on your current chart, optimized for The Lab Model (TLM) trading methodology.
What It Does
Plots up to 6 HTF candles side-by-side on the right of your chart with automatic swing detection, expansion bias coloring, and a quick-reference info table. Watch multiple timeframes at once without switching charts.
Swing Detection - Solid lines for confirmed swings, dashed for potential swings. Detects when HTF levels get swept and rejected.
Expansion Bias - Candles colored green (bullish), red (bearish), or orange (conflicted) based on 3-candle patterns showing expected price expansion.
HTF Info Table - Compact dashboard showing time to close, active swings, and expansion direction for all timeframes. Toggle dark/light mode.
Equilibrium Lines - 50% midpoint from previous candle to current, great for mean reversion targets.
Based on "ICT HTF Candles" by @fadizeidan -
Heavily customized with swing analysis, expansion patterns, and info table for TLM trading concepts.
Daily Pivot Points - Fixed Until Next Day(GeorgeFutures)We have a pivot point s1,s2,s3 and r1,r2,r3 base on calcul matematics
RSI VWAP v1 [JopAlgo]RSI VWAP v1 — the classic RSI, made a bit smarter and volume-aware
We know there’s nothing new under the sun and the original RSI already does a great job. But we’re always chasing small, practical improvements—so here’s our take on RSI. Same core idea, clearer visuals, and the option to make it volume-oriented via VWAP smoothing. Prefer the traditional feel? SMA and EMA are still here—pick and compare what fits your market and timeframe. We hope this version genuinely makes your decisions easier.
What you’ll see
The RSI line with 70 / 50 / 30 rails and subtle background.
A smoothing line you can choose: VWAP, SMA, or EMA (drawn over RSI).
Shading that shows RSI vs. its smoothing (above = green tone, below = red tone).
Optional OB/OS highlight (only the portion above 70 / below 30).
Optional divergence detection & alerts (off by default to keep things light).
What’s new, and why it helps
1) VWAP-based RSI smoothing
Instead of smoothing RSI with a plain MA, you can use VWAP computed on RSI. That brings participation (volume) into the picture, which often reads momentum quality better—especially in crypto or during news hours.
2) Adaptive blending for stability
Low-volume periods: gently blends VWAP → EMA so signals don’t get brittle when participation is thin.
Volume spikes (anti-auction): tempers overreactions by blending toward EMA when z-score of volume is extreme.
Reliability guard: if volume looks unreliable, the script can auto-fallback to EMA to keep readings consistent.
3) Clean, readable visuals
A quick glance tells you regime (50 line), trigger (RSI vs. its smoothing), and stretch (70/30). No clutter.
4) Divergence on demand
Regular bullish/bearish divergence detection and alerts are opt-in. If you use them, toggle on; if not, the indicator stays lightweight.
Read it fast (checklist)
Regime: RSI ≥ 50 = bullish bias; ≤ 50 = bearish bias.
Trigger: look for RSI crossing its smoothing in the direction of the regime.
Stretch: near 70/30, avoid chasing; prefer a retest/hold.
Volume context: if the panel falls back to EMA, treat the flow signal as less reliable for the moment.
Simple playbook
Trend-pullback (continuation)
RSI ≥ 50 and RSI crosses up its smoothing → long bias.
Best at real levels (see “Location first” below), not in the middle of nowhere.
Reclaim / reject at a level
Near 70, weak candles and RSI back under its smoothing → mean-revert toward the middle.
Mirror this near 30 for longs.
Divergence as a secondary check
Start with regime + trigger; use divergence only as extra confirmation, especially on 4H/D.
Location first, always
Your timing improves dramatically at objective references: Volume Profile v3.2 (VAH/VAL/POC/LVNs) and Anchored VWAP (session/weekly/event).
No level, no trade. RSI helps time, levels define edge.
Settings that actually matter
RSI Length (default 14)
Lower = faster, noisier; higher = smoother, fewer signals.
Smoothing Type
EMA: fastest trigger; good for intraday.
SMA: calmer bias; popular for swing.
VWAP: volume-weighted RSI baseline; great when participation matters.
VWAP Length & adaptive blend
Too jittery? lengthen VWAP or reduce max blend.
Too sluggish? shorten VWAP or allow a bit more blend.
Anti-auction Z-score thresholds
Higher values = intervenes less often; lower = tames spikes sooner.
Divergence toggle
Enable only if you actually want divergence markers/alerts.
Signal gating (ignore first bars)
Markets can be noisy right after sessions turn. Delay signals a few bars if you prefer clean reads.
Starter presets
Scalp (1–5m): RSI 9–12, EMA smoothing, short lengths.
Intraday (15m–1H): RSI 10–14, EMA or VWAP smoothing.
Swing (4H–1D): RSI 14–20, SMA or VWAP, modest blend.
Works even better with other tools
Volume Profile v3.2: take triggers at VAH/VAL/POC/LVNs; target HVNs or prior swing.
Anchored VWAP: clean reclaims/rejections plus RSI regime + trigger = higher-quality entries.
(Optional) CVDv1: if aggressor flow aligns with your RSI signal, conviction improves.
Common mistakes this version helps avoid
Taking every RSI cross without levels.
Chasing near 70/30 without a retest.
Over-trusting RSI during extreme volume spikes or illiquid patches (the blend/fallback guards against this).
Disclaimer
This indicator and write-up are for educational purposes only and not financial advice. Trading involves risk; results vary by market, instrument, and settings. Backtest first, act at defined levels, and manage risk. No guarantees or warranties are provided.
VWAP Deviation Scalper MTFVWAP Deviation Scalper MTF
A multi-timeframe VWAP scalping indicator that combines Fibonacci deviation zones with trend filtering for cleaner entry signals.
What it does:
Uses anchored VWAP with customizable Fibonacci extensions (default 1.618 and 2.618) to identify reversal zones
Filters trades using a weekly VWAP - only shows long signals above the weekly trend and shorts below it
Colors candles green/red on signal bars for instant visual confirmation
Highlights the channel between your main VWAP and weekly filter with subtle gradient fills
Default settings:
12-hour VWAP anchor (adjustable to any timeframe)
Weekly VWAP trend filter (can be toggled off)
Minimum deviation threshold to filter out weak signals
Clean visual design with optional Fib extensions
Best for:
Scalpers and day traders who want high-probability entries aligned with the higher timeframe trend. Works well on crypto and liquid markets on 5m-1h charts.
The indicator includes alerts for both long and short entries, plus optional exit signals. All colors and settings are fully customizable.
Bitcoin Cycle History Visualization [SwissAlgo]BTC 4-Year Cycle Tops & Bottoms
Historical visualization of Bitcoin's market cycles from 2010 to present, with projections based on weighted averages of past performance.
-----------------------------------------------------------------
CALCULATION METHODOLOGY
Why Bottom-to-Bottom Cycle Measurement?
This indicator defines cycles as bottom-to-bottom periods. This is one of several valid approaches to Bitcoin cycle analysis:
- Focuses on market behavior (price bottoms) rather than supply schedule events (halving-to-halving)
- Bottoms may offer good reference points for some analytical purposes
- Tops tend to be extended periods that are harder to define precisely
- Aligns with how some traditional asset cycles are measured and the timing observed in the broader "risk-on" assets category
- Halving events are shown separately (yellow backgrounds) for reference
- Neither halving-based nor bottom-based measurement is inherently superior
Different analysts prefer different cycle definitions based on their analytical goals. This approach prioritizes observable market turning points.
Cycle Date Definitions
- Approximate monthly ranges used for each event (e.g., Nov 2022 bottom = Nov 1-30, 2022)
- Cycle 1: Jul 2010 bottom → Jun 2011 top → Nov 2011 bottom
- Cycle 2: Nov 2011 bottom → Dec 2013 top → Jan 2015 bottom
- Cycle 3: Jan 2015 bottom → Dec 2017 top → Dec 2018 bottom
- Cycle 4: Dec 2018 bottom → Nov 2021 top → Nov 2022 bottom
- Future cycles will be added as new top/bottom dates become firm
Duration Calculations
- Days = timestamp difference converted to days (milliseconds ÷ 86,400,000)
- Bottom → Top: days from cycle bottom to peak
- Top → Bottom: days from peak to next cycle bottom
- Bottom → Bottom: full cycle duration (sum of above)
Price Change Calculations
- % Change = ((New Price - Old Price) / Old Price) × 100
- Example: $200 → $19,700 = ((19,700 - 200) / 200) × 100 = 9,750% gain
- Approximate historical prices used (rounded to significant figures)
Weighted Average Formula
Recent cycles weighted more heavily to reflect the evolved market structure:
- Cycle 1 (2010-2011): EXCLUDED (too early-stage, tiny market cap)
- Cycle 2 (2011-2015): Weight = 1x
- Cycle 3 (2015-2018): Weight = 3x
- Cycle 4 (2018-2022): Weight = 5x
Formula: Weighted Avg = (C2×1 + C3×3 + C4×5) / (1+3+5)
Example for Bottom→Top days: (761×1 + 1065×3 + 1066×5) / 9 = 1,032 days
Projection Method
- Projected Top Date = Nov 2022 bottom + weighted avg Bottom→Top days
- Projected Bottom Date = Nov 2022 bottom + weighted avg Bottom→Bottom days
- Current days elapsed compared to weighted averages
- Warning symbol (⚠) shown when the current cycle exceeds the historical average
Technical Implementation
- Historical cycle dates are hardcoded (not algorithmically detected)
- Dates represent approximate monthly ranges for each event
- The indicator will be updated as the Cycle 5 top and bottom dates become confirmed
- Updates require manual code maintenance - not automatic
- Users should verify they're using the latest version for current cycle data
-----------------------------------------------------------------
FEATURES
- Background highlights for historical tops (red), bottoms (green), and halving events (yellow)
- Data table showing cycle durations and price changes
- Visual cycle boundary boxes with subtle coloring
- Projected timeframes displayed as dashed vertical lines
- Toggle on/off for each visual element
- Customizable background colors
-----------------------------------------------------------------
DISPLAY SETTINGS
- Show/hide cycle tops, bottoms, halvings, data table, and cycle boxes
- Customizable background colors for each event type
- Clean, institutional-grade visual design suitable for analysis
UPDATES & MAINTENANCE
This indicator is maintained as new cycle events occur. When Cycle 5's top and bottom are confirmed with sufficient time elapsed, the code and projections will be updated accordingly. Check for the latest version periodically.
OPEN SOURCE
Code available for review, modification, and improvement. Educational transparency is prioritized.
-----------------------------------------------------------------
IMPORTANT LIMITATIONS
⚠ EXTREMELY SMALL SAMPLE SIZE
Based on only 4 complete cycles (2011-2022). In statistical analysis, this is insufficient for reliable predictions.
⚠ CHANGED MARKET STRUCTURE
Bitcoin's market has fundamentally evolved since early cycles:
- 2010-2015: Tiny market cap, retail-only, unregulated
- 2024-2025: Institutional adoption, spot ETFs, regulatory frameworks, macro correlation
The environment that created past patterns no longer exists in the same form.
⚠ NO PREDICTIVE GUARANTEE
Historical patterns can and do break. Market cycles are not laws of physics. Past performance does not guarantee future results. The next cycle may not follow historical averages.
⚠ LENGTHENING CYCLE THEORY
Some analysts believe cycles are extending over time (diminishing returns, maturing market). If true, simple averaging underestimates future cycle lengths.
⚠ SELF-FULFILLING PROPHECY RISK
The halving narrative may be partially circular - it works because people believe it works. Sufficient changes in market structure or participant behavior can invalidate the pattern.
⚠ APPROXIMATE DATA
Historical prices rounded to significant figures. Exact bottom/top dates vary by exchange. Month-long ranges are used for simplicity.
EDUCATIONAL USE ONLY
This indicator is designed for historical analysis and understanding Bitcoin's past behavior. It is NOT:
- Trading advice or financial recommendations
- A guarantee or prediction of future price movements
- Suitable as a sole basis for investment decisions
- A replacement for fundamental or technical analysis
The projections show "what if the pattern continues exactly" - not "what will happen."
Always conduct independent research, understand the risks, and consult qualified financial advisors before making investment decisions. Only invest what you can afford to lose.