VSTrade OMCThe indicator calculates the ratio of Open Interest (OI) of a futures contract to the market capitalization (Market Cap) of the spot asset. OI is the number of open (unclosed) futures positions in the market, expressed in contracts. Market Cap is the total value of the asset (price * circulating supply). The ratio shows how "overheated" or "interesting" the futures market is relative to the size of the asset.This is not a direct trading signal, but a tool for analyzing liquidity, speculation, and market sentiment.
Индикатор рассчитывает отношение Open Interest (OI) фьючерсного контракта к рыночной капитализации (Market Cap) спотового актива. OI — это количество открытых (незакрытых) фьючерсных позиций на рынке, выраженное в контрактах. Market Cap — общая стоимость актива (цена * circulating supply). Отношение (ratio) показывает, насколько "перегрет" или "интересен" рынок фьючерсов относительно размера актива.
Это не прямой торговый сигнал, а инструмент для анализа ликвидности, спекуляции и рыночных настроений.
Indicators and strategies
TMA Bands with AlertsTMA Bands with Alerts uses bands to indicate the up and downtrend with alerts to show potential reversals. POAYEE
Yearly Highs - 3 Years - GreenmoonYearly highs for current and L2 years. For 2025 would be 2025, 2024, and 2023 yearly highs.
Round Numbers (Plotter) v2The *Round Numbers (Plotter) v2* indicator highlights key psychological price levels on the chart — the so-called *round numbers* (e.g. 1.1000 on EURUSD or23,000 on NASDAQ).
These levels often act as **natural support or resistance zones**, where price tends to react, consolidate, or reverse.
Version 2 introduces the concept of **gravitational zones**, which define a price range surrounding each round level — visualizing how price “gravitates” around these equilibrium areas.
---
### 🧩 **Main Features**
* 🔹 **Dynamic round levels:** plotted automatically based on user-defined *step size* (in points or pips).
* 🔹 **Custom step mode:** switch between “Points” (for indices, commodities, crypto) and “Pips” (for Forex pairs).
* 🔹 **Configurable appearance:** color, width, and line style (solid, dashed, dotted).
* 🔹 **Gravitation zones:** optional secondary lines plotted above and below each round level.
* Distance adjustable as a **percentage of the step size** (default = 25%).
* Help visualize “magnet areas” where price tends to slow down or oscillate before crossing a level.
* 🔹 **Optional fill:** softly shaded area between the upper and lower gravitation lines for clearer visualization of each zone.
* You can enable or disable this with the *“Show gravitation fill”* toggle.
* Fill color and transparency fully customizable.
---
### 📈 **Use Cases**
* Identify **psychological support/resistance** levels on any instrument or timeframe.
* Observe **market equilibrium zones** where price tends to cluster or hesitate before continuing.
* Combine with oscillators or volume indicators to confirm reaction strength near round numbers.
* Use the **gravitational zones** to refine stop-loss or take-profit placement near high-impact levels.
---
### 💡 **Notes**
* The indicator does **not repaint** and updates levels dynamically based on the latest price.
* Works on all asset classes: **Forex, Indices, Crypto, Commodities, Stocks.**
* Designed to be **lightweight** — no accumulation of historical objects.
* Combine this with *Round Number Analyzer* for complete analysis of round numbers level
JASMY - Сетка усреднения"Author’s averaging stack for the JASMY asset.
Entry volume – 0.5
1st average – volume 1
2nd average – volume 1.5
3rd average – volume 3
4th average – volume 6
5th average – volume 12"
---------------------------------------------------------------------
Авторская стека усредyений для актив JASMY.
Объём входа - 0.5
1уср. - объём 1
2 уср. - объём 1,5
3 уср. - объём 3
4 уср. - объём 6
5 уср. - объём 12
ADAM Projection - Efficiency Ratio Adaptive)Overview
The ADAM Projection is a visualization of how a price path might extend from its recent motion, expressed as a continuation (trend reflection) or anti-trend (mean reversion) pattern. This indicator expands upon Jim Sloman’s original ADAM projection—introduced in “The Adam Theory of Markets or What Matters Is Profit” (1983)—by adding a modern quantitative framework for Efficiency Ratio (ER) weighting, time-scaled path normalization, and smooth blending between continuation and anti-trend projections.
What Is the ADAM Theory?
Jim Sloman’s original ADAM projection was designed to model pure trend continuation. He proposed that every market motion could be mirrored around a central anchor price (the “Adam line”), effectively reflecting past price movements forward in time to visualize what a continuation of the same geometric path would look like. This reflection concept captured the idea that market structure exhibits self-similarity and that price trends often extend symmetrically beyond recent pivots.
How This Script Extends It
This version generalizes Sloman’s concept by introducing an adjustable blend between continuation (reflection) and anti-trend (forward paste) behavior, weighted by an adaptive ER domain.
Anchor Axis
The reflection axis (anchorPrice) can be Close, HL2, HLC3, or OHLC4.
The projection is drawn forward from this anchor for a user-defined horizon (len bars).
Dual Paths
Continuation (Reflection): Mirrors historical closes across the anchor.
Anti-trend (Forward Paste): Extends historical closes directly forward without inversion.
Efficiency Ratio (ER)
The Efficiency Ratio measures how directional recent price movement has been: ER = |Net Change| / Σ|Δi|
Values near +1 indicate strong directionality (favoring continuation); values near 0 indicate noise or consolidation (favoring anti-trend behavior).
Signed ER Normalization
ER values are mapped into a user-defined domain between erMin and erMax, with:
erSharp (γ) controlling the steepness of the blend curve
erFloor providing stability when ER ≈ 0
beta (β) weighting volatility across time (β = 0.5 approximates √time scaling)
Blended Projection
Each projected point is a weighted combination of the two paths: y_proj = (1 − w) * y_fade + w * y_cont
The blend factor w is derived from the normalized ER domain and gamma shaping, producing a smooth morph between the anti-trend and continuation geometries.
Visualization
The teal projection line shows the dynamically blended continuation/anti-trend forecast for the next len bars.
The gray anchor line marks the reflection axis.
Each segment adapts in real time based on ER magnitude and recent path structure.
Key Parameters
Core: len, anchorPrice, lineThin — projection horizon and appearance
Lines: showProj, colProj — show or recolor projection
ER Domain: erMin, erMax, erSharp, erFloor, beta — control domain scaling, shaping, and time weighting
Practical Use
High ER values emphasize continuation (trend-following behavior).
Low or negative ER values emphasize fading or mean reversion.
The projection helps visualize whether recent structure supports trend persistence or weakening.
Interpretation
The ADAM Projection is not a predictive indicator but a geometric tool for studying market symmetry and efficiency. It provides a structured way to visualize how recent movements would look if extended forward under both continuation and anti-trend assumptions. This blends Sloman’s original reflection concept with modern ER-based adaptivity.
Summary
Origin: Jim Sloman (1983) — trend continuation via reflection symmetry.
Extension: Adds ER-driven blending to model both continuation and anti-trend regimes.
Concept: Price reflection vs. direct forward extension.
Purpose: Study of geometric price symmetry and efficiency, not a trade signal.
Key Levels :)Key Levels from Anne-Marie Youtube video.
Thanks to her for the time, hope you find it useful.
RSI + Stochastic (Custom by TitikSona)📊 Overview
The RSI + Stochastic Combo is a powerful and clean oscillator that combines two of the most popular momentum indicators - RSI and Stochastic - into a single, easy-to-read window. Designed for traders who want multiple confirmations in one view, this indicator helps identify overbought and oversold conditions with precision.
⚙️ Indicator Components
RSI (Relative Strength Index)
Period: 11 (customizable)
Color: Solid Blue line
Levels: 30 (oversold), 50 (midline), 70 (overbought)
Stochastic Oscillator
%K Period: 100
%D Period: 8
Slowing: 8
Colors: Solid White (%K), Light White (%D)
Levels: 20 (oversold), 80 (overbought)
🎯 Trading Signals
Overbought Conditions:
🔴 RSI above 70 AND Stochastic %K above 80
Red background highlight
Alert notification available
Oversold Conditions:
🟢 RSI below 30 AND Stochastic %K below 20
Green background highlight
Alert notification available
📊 Visual Features
Clear Color Scheme:
Blue: RSI line
White: Stochastic %K and %D lines
Red Dotted: Overbought levels (70 RSI, 80 Stochastic)
Green Dotted: Oversold levels (30 RSI, 20 Stochastic)
Gray Dotted: Midline (50)
Background Highlights:
Red Zone: When either RSI > 70 or Stochastic > 80
Green Zone: When either RSI < 30 or Stochastic < 20
💪 Key Benefits
Dual Confirmation - RSI and Stochastic work together for higher accuracy
Clean Visualization - No clutter, easy to interpret
Customizable Parameters - Adjust all settings to your preference
Automatic Alerts - Get notified when both indicators align
Multi-Timeframe Compatible - Works on all timeframes
🚀 How to Use
For Buy Opportunities:
Look for green background zones
Wait for both RSI < 30 and Stochastic < 20
Consider entering when both indicators start turning up
For Sell Opportunities:
Look for red background zones
Wait for both RSI > 70 and Stochastic > 80
Consider entering when both indicators start turning down
⚡ Pro Tips
Confluence Trading: Use zones where both indicators signal simultaneously
Divergence Detection: Watch for price making new highs/lows while indicators don't confirm
Trend Confirmation: Use in conjunction with trend analysis for better results
Timeframe Analysis: Apply same settings across multiple timeframes for confirmation
🛠 Customization Options
All parameters are adjustable:
RSI length and source
Stochastic periods and slowing
Colors and line styles
Alert conditions
🎯 Ideal For
Swing Traders - Identifying reversal points
Day Traders - Finding intraday extremes
Position Traders - Timing entries and exits
All Market Types - Stocks, Forex, Crypto, Commodities
⭐ If this indicator helps your trading, please give it a like and follow for more tools!
🔔 Enable alerts to never miss trading opportunities when both indicators align!
TAKA Auto Retrace + SL v4.2Automatically detects market trend and displays dynamic retracement zones for buy-the-dip and sell-the-rally setups, with an adaptive Stop-Loss line.
⸻
⚙️ Logic Overview
• Trend Detection: Based on the relationship between SMA 20 and SMA 60
• Uptrend → Blue zone (Buy the Dip)
• Downtrend → Red zone (Sell the Rally)
• Retracement Levels: Auto-draws Fibonacci 0.382 – 0.618 range
• Stop-Loss Mode: Select from
• Fib 0.786 (default)
• Structure (last swing high/low)
• ATR-based (volatility adaptive)
⸻
🎯 How to Use
1️⃣ Add the indicator to your chart
2️⃣ Adjust len to fit the latest swing move
3️⃣ When price enters the zone, wait for a confirmation signal (arrow, BOS, MACD cross)
4️⃣ Enter after the 0.5 breakout
5️⃣ SL = auto-generated line
TP = 0.382 → 0.236 → 1.0 partial targets
⸻
🧩 Recommended Combo
N-Wave or Dow Theory × MACD × TAKA Retrace
= “Wait on the zone, strike on the signal.”
⸻
Short version (for compact description):
Auto trend detection via SMA 20/60.
Draws Fibonacci 0.382–0.618 zones with adaptive Stop-Loss (Fib / Structure / ATR).
Uptrend = Buy zone | Downtrend = Sell zone.
⸻
That fits TradingView’s description box and looks clean when published
市場トレンドを自動で判定し
「押し目買い」「戻り売り」ゾーンを自動表示
さらにボラティリティに対応した損切りラインも描画します
⸻
ロジック概要
• トレンド判定:SMA20とSMA60の関係で方向を判断
• 上昇トレンド → 青帯(押し目買い)
• 下落トレンド → 赤帯(戻り売り)
• リトレース描画:フィボナッチ0.382〜0.618を自動描画
• 損切り方式(選択可)
• Fib 0.786(基本形)
• Structure(直近高安)
• ATR(ボラティリティ対応)
⸻
使い方
1️⃣ チャートに追加
2️⃣ lenを調整し、直近のスイングに合わせる
3️⃣ 価格が帯に入ったらサイン(矢印・BOS・MACDクロス)を待つ
4️⃣ 0.5ライン突破でエントリー
5️⃣ SL=自動ライン / TP=0.382→0.236→1.0で分割利確
⸻
推奨組み合わせ
N波動 or ダウ理論 × MACD × TAKA Retrace
=「ゾーンで待ち、サインで撃つ」戦略
Initial Balance HUYEN 3this is indicator to calculates and draws the initial balance price levels which can be really interesting for intraday activities.
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
//
//──────────────────────────────────────────────────────────────
Global Risk Terminal – Multi-Asset Macro Sentiment IndicatorDescription:
The Global Risk Terminal is a sophisticated macro sentiment indicator that synthesizes signals from three key cross-asset relationships to produce a single, actionable risk appetite score. It is designed to help traders and investors identify whether global markets are in a risk-on (growth-seeking) or risk-off (defensive) regime. The indicator analyzes the behavior of commodities, equities, bonds, and currencies to generate a comprehensive view of market conditions.
Indicator Output:
The Global Risk Terminal produces a normalized risk score ranging from -1 to +1:
Positive values indicate risk-on conditions (growth assets favored)
Negative values indicate risk-off conditions (safe-haven assets favored)
Core Components:
Growth Pulse (Copper to Gold Ratio, HG/GC)
Purpose: Measures investor preference for industrial growth versus safe-haven assets.
Interpretation:
Rising ratio → Copper outperforming gold → Risk-on environment
Falling ratio → Gold outperforming copper → Risk-off environment
Flat ratio → Transitional market phase
Technical Implementation: Dual moving average slope method (fast MA default 20, slow MA default 40). Positive slope = +1, negative slope = -1, flat slope = 0
Equity Rotation (Russell 2000 to S&P 500 Ratio, RTY/ES)
Purpose: Tracks rotation between small-cap and large-cap equities, revealing market risk appetite.
Interpretation:
Rising ratio → Small-caps outperforming → Strong risk-on
Falling ratio → Large-caps outperforming → Defensive positioning
Technical Implementation: Dual moving average slope method (same as Growth Pulse)
Flow Gauge (10-Year Treasury to US Dollar Index, ZN/DXY)
Purpose: Captures liquidity conditions and cross-asset capital flows.
Interpretation:
Rising ratio → Treasury prices rising or USD weakening → Liquidity expansion, risk-on environment
Falling ratio → Treasury prices falling or USD strengthening → Liquidity contraction, risk-off environment
Technical Implementation: Dual moving average slope method
Composite Risk Score Calculation:
Analyze each component for trend using dual moving averages
Assign signal values: +1 (risk-on), -1 (risk-off), 0 (neutral)
Average the three signals:
Risk Score = (Growth Pulse + Equity Rotation + Flow Gauge) / 3
Optional smoothing with exponential moving average (default 3 periods) to reduce noise
Interpreting the Risk Score:
+0.66 to +1.0: Full risk-on – favor cyclical sectors, small-caps, growth strategies
+0.33 to +0.66: Moderate risk-on – mostly bullish environment, watch for fading momentum
-0.33 to +0.33: Neutral/transition – markets in flux, signals mixed, exercise caution
-0.66 to -0.33: Cautious risk-off – favor defensive sectors, reduce high-beta exposure
-1.0 to -0.66: Full risk-off – strong defensive positioning, prioritize safe-haven assets
How to Use the Global Risk Terminal to Frame Trades:
Aligning Trades with Market Regime
Risk-On (+0.33 and above): Look for buying opportunities in cyclical stocks, high-beta equities, commodities, and emerging markets. Use long entries for swing trades or intraday positions, following confirmed price action.
Risk-Off (-0.33 and below): Shift focus to defensive sectors, large-cap quality stocks, U.S. Treasuries, and safe-haven currencies. Prefer short entries or reduced exposure in risky assets.
Entry and Exit Framing
Use the risk score as a macro filter before executing trades:
Example: The risk score is +0.7 (strong risk-on). Prefer long positions in equities or commodities that are showing bullish confirmation on your regular chart.
Conversely, if the risk score is -0.7 (strong risk-off), avoid aggressive longs and consider short or defensive trades.
Watch for threshold crossings (+/-0.33, +/-0.66) as potential inflection points for adjusting position size, stop-loss levels, or sector rotation.
Confirming Trade Decisions
Combine the Global Risk Terminal with price action, volume, and trend indicators:
If equities rally but the risk score is declining, this may indicate a fragile rally driven by few leaders—trade cautiously.
If equities fall but the risk score is rising, consider counter-trend entries or buying dips.
Risk Management and Position Sizing
Strong alignment across components → increase position size and hold with wider stops
Mixed or neutral signals → reduce exposure, tighten stops, or avoid new trades
Defensive regimes → rotate into stable, low-volatility assets and increase cash buffer
Framing Trades Across Timeframes
Use the indicator as a strategic guide rather than a precise timing tool. Even without the MTF table:
Daily trend alignment → Guide swing trade bias
Shorter timeframe price action → Refine entry points and stop placement
Example: Daily chart shows +0.6 risk score → identify high-probability long setups using intraday technical patterns (breakouts, trend continuation).
Sector and Asset Rotation
Risk-On: Focus on cyclical sectors (financials, industrials, materials, energy), small-caps, high-beta instruments
Risk-Off: Focus on defensive sectors (utilities, consumer staples, healthcare), large-caps, safe-haven instruments
Alert Integration
Set alerts on the risk score to notify you when markets move from neutral to risk-on or risk-off regimes. Use these alerts to plan entries, exits, or portfolio adjustments in advance.
Customization Options:
Moving Average Length (5–100): Adjust sensitivity of trend detection
Score Smoothing (1–10): Reduce noise or see raw risk score
Visual Themes: Six preset themes (Cyber, Ocean, Sunset, Monochrome, Matrix, Custom)
Display Options: Show or hide component dashboards, main header, risk level lines, gradient fill, and component signals
Label Size: Tiny, Small, Normal, Large
Alert Conditions:
Risk score crosses above +0.66 → Strong risk-on
Risk score crosses below -0.66 → Strong risk-off
Risk score crosses zero → Neutral line
Risk score crosses above +0.33 → Moderate risk-on
Risk score crosses below -0.33 → Moderate risk-off
Data Sources:
HG1! – Copper Futures (COMEX)
GC1! – Gold Futures (COMEX)
RTY1! – Russell 2000 E-mini Futures (CME)
ES1! – S&P 500 E-mini Futures (CME)
ZN1! – 10-Year U.S. Treasury Note Futures (CBOT)
DXY – U.S. Dollar Index (ICE)
Notes and Limitations:
Works best during clear macro regimes and aligned trends
Use with price action, volume, and other technical tools
Not a standalone trading system; serves as a macro context filter
Equal weighting assumes all three components are equally important, but market conditions may vary
Past performance does not guarantee future results
Conclusion:
The Global Risk Terminal consolidates complex cross-asset signals into a simple, actionable score that informs market regime, portfolio positioning, sector rotation, and trading decisions. Its user-friendly layout and extensive customization options make it suitable for traders of all experience levels seeking macro-driven insights. By framing trades around risk score thresholds and combining macro context with tactical execution, traders can identify higher-probability opportunities and optimize position sizing, entries, and exits across a wide range of market conditions.
Dubbsy's All Time High (D-ATH)Get's the all time high, aligns to price on the right side of the chart
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)")
Final trend following weeklySystem 1 — Weekly Trend Flip Indicator
System 1 (Weekly) is a simple trend-following indicator that uses weekly EMAs with ATR filtering to highlight strong directional shifts.
📈 Uses weekly fast & slow EMAs
🧭 ATR filter removes weak or choppy signals
🟢 Bullish regime = fast EMA above slow + ATR margin
🔴 Bearish regime = fast EMA below slow − ATR margin
⚪ Neutral when neither condition is met
Works on any chart timeframe, but signals are based on weekly data
Ideal for position traders and longer-term swing trading
💡 Tip: Use this indicator to confirm larger trend direction and combine with lower timeframe strategies for entry timing.
Trend following system with ADR and volumeSystem 1 — Trend Flip Strategy
System 1 is a simple trend-following strategy that enters on a bullish EMA flip and exits when the trend weakens or reverses. It’s built to catch clean moves and avoid chop.
Uses fast and slow EMAs with ATR filtering to detect real momentum
Enters long on a bullish flip
Exits on a bearish flip or neutral zone (optional)
Clear signals with easy-to-read entry and exit markers
Great for trending markets and momentum setups
Tip: Test across multiple timeframes and pair with volume or higher-timeframe confluence for stronger signals.
H1 ATR on your chartThis indicator clearly displays (in the bottom left corner) the value of the H1 ATR across all timeframes.
Timebender 369 Time CalculatorOverview
The Timebender Digits indicator visualizes rhythmic price cycles by marking confirmed swing highs and lows with dynamically colored numerical stamps.
Each number is derived from the sum of the current candle’s hour and minute, reduced to a single digit (1–9), providing a visual “time signature” for each structural turn in market flow.
This is a structural-pivot model inspired by LuxAlgo’s swing logic, rebuilt from the ground up in Pine v6 using the Timebender Rulebook framework for flawless compilation and precision label anchoring.
Core Features
Dynamic Swing Detection:
Detects structural highs/lows using ta.pivothigh() and ta.pivotlow(), confirmed after the selected number of bars (len).
Digit Logic (1–9):
Converts the pivot candle’s timestamp into a reduced digit from 1–9, acting as a symbolic rhythm marker.
Phase-Based Coloring:
1-3 → Accumulation (Gray)
4-6 → Manipulation (Green)
7-9 → Distribution (Blue)
Floating or Fixed Labels:
Option to keep digits visually anchored above/below candles (yloc.abovebar/belowbar) or locked to price (yloc.price) with customizable ATR offset.
Clean Visuals:
Transparent background, no boxes, no tooltips — just crisp digits that scale smoothly with zoom.
Master Toggle:
Instantly hide/show all digits without removing the indicator.
Inputs & Customization
Show Digits on Chart: Enable/disable plotting.
Pivot Length: Number of bars used to confirm swings (default 21).
Float Above/Below Bars: Switch between floating or price-anchored mode.
ATR Offset Multiplier: Adjust spacing when price-anchored.
Digit Size: Tiny → Huge (default Large).
Color Controls: Customize the Accumulation, Manipulation, and Distribution color palette.
Use Cases
Visualize time-based rhythm in market structure.
Identify cyclical energy between accumulation, manipulation, and distribution phases.
Study how market timing aligns with structural swing formation.
Engulfing Bars - StrictIdentifies strict definition engulfing bars with a close in the leading 20% of the range.
Advanced HMM - 3 States CompleteHidden Markov Model
Aconsistent challenge for quantitative traders is the frequent behaviour modification of financial
markets, often abruptly, due to changing periods of government policy, regulatory environment
and other macroeconomic effects. Such periods are known as market regimes. Detecting such
changes is a common, albeit difficult, process undertaken by quantitative market participants.
These various regimes lead to adjustments of asset returns via shifts in their means, variances,
autocorrelation and covariances. This impacts the effectiveness of time series methods that rely
on stationarity. In particular it can lead to dynamically-varying correlation, excess kurtosis ("fat
tails"), heteroskedasticity (volatility clustering) and skewed returns.
There is a clear need to effectively detect these regimes. This aids optimal deployment of
quantitative trading strategies and tuning the parameters within them. The modeling task then
becomes an attempt to identify when a new regime has occurred adjusting strategy deployment,
risk management and position sizing criteria accordingly.
A principal method for carrying out regime detection is to use a statistical time series tech
nique known as a Hidden Markov Model . These models are well-suited to the task since they
involve inference on "hidden" generative processes via "noisy" indirect observations correlated
to these processes. In this instance the hidden, or latent, process is the underlying regime state,
while the asset returns are the indirect noisy observations that are influenced by these states.
Session-Conditioned Regime ATRWhy this exists
Classic ATR is great—until the open. The first few bars often inherit overnight gaps and 24-hour noise that have nothing to do with the intraday regime you actually trade. That inflates early ATR, scrambles thresholds, and invites hyper-recency bias (“today is crazy!”) when it’s just the open being the open.
This tool was built to:
Separate session reality from 24h noise. Measure volatility only inside your defined session (e.g., NYSE 09:30–16:00 ET).
Judge candles against the current regime, not the last 2–3 bars. A rolling statistic from the last N completed sessions defines what “typical” means right now.
Label “large” and “small” objectively. Bars are colored only when True Range meaningfully departs from the session regime—no gut feel, no open-bar distortion (gap inclusion optional).
Overview
Purpose: objectively identify unusually big or small candles within the active trading session, compared to the recent session regime.
Use cases: volatility filters, entry/exit confirmation, session bias detection, adaptive sizing.
This indicator replaces generic ATR with a session-conditioned, regime-aware measure. It colors candles only when their True Range (TR) is abnormally large/small versus the last N completed sessions of the same session window.
How it works
Session gating: Only bars inside the selected session are evaluated (presets for NYSE, CME RTH, FX NY; custom supported).
Per-bar TR: TR = max(high, prevRef) − min(low, prevRef).
prevRef is the prior close for in-session bars.
First bar of the session can include the overnight gap (optional; default off).
Regime statistic: For any bar in session k, aggregate all in-session TRs from the previous N completed sessions (k−N … k−1), then compute Median (default) or Mean.
Today’s anchor: Running statistic from today’s session start → current bar (for context and the on-chart ratio).
Color logic:
Big if TR ≥ bigMult × RegimeStat
Small if TR ≤ smallMult × RegimeStat
Colored states: big bull, big bear, small bull, small bear.
Non-triggering bars retain the chart’s native colors.
Panel (top-right by default)
Regime ATR (Nd): session-conditioned statistic over the past N completed sessions.
Today ATR (anchored): running statistic for the current session.
Ratio (Today/Regime): intraday volatility vs regime.
Sample size n: number of bars used in the regime calculation.
Inputs
Session Preset: NYSE (09:30–16:00 ET), CME RTH (08:30–15:00 CT), FX NY (08:00–17:00 ET), Custom (session + IANA timezone).
Regime Window: number of completed sessions (default 5).
Statistic: Median (robust) or Mean.
Include Open Gap: include overnight gap in the first in-session bar’s TR (default off).
Big/Small thresholds: multipliers relative to RegimeStat (defaults: Big=1.5×, Small=0.67×).
Colors: four independent colors for big/small × bull/bear.
Panel position & text size.
Hidden outputs: expose RegimeStat, TodayStat, Ratio, and Z-score to other scripts.
Alerts
RegimeATR: BIG bar — triggers when a bar meets the “Big” condition.
RegimeATR: SMALL bar — triggers when a bar meets the “Small” condition.
Hidden outputs (for strategies/screeners)
RegimeATR_stat, TodayATR_stat, Today_vs_Regime_Ratio, BarTR_Zscore.
Notes & limitations
No look-ahead: calculations only use information available up to that bar. Historical colors reflect what would have been known then.
Warm-up: colors begin once there are at least N completed sessions; before that, regime is undefined by design.
Changing inputs (session window, multipliers, median/mean, gap toggle) recomputes the full series using the same rolling regime logic per bar.
Designed for standard candles. Styling respects existing chart colors when no condition triggers.
Practical tips
For a broader or tighter notion of “unusual,” adjust Big/Small multipliers.
Prefer Median in markets prone to outliers; use Mean if you want Z-score alignment with the panel’s regime mean/std.
Use the Ratio readout to spot compression/expansion days quickly (e.g., <0.7× = compressed session, >1.3× = expanded).
Roadmap
More session presets:
24h continuous (crypto, index CFDs).
23h/Globex futures (CME ETH with a 60-minute maintenance break).
Regional equities (LSE, Xetra, TSE), Asia/Europe/NY overlaps for FX.
Half-day/holiday templates and dynamic calendars.
Multi-regime comparison: track multiple overlapping regimes (e.g., RTH vs ETH for futures) and show separate stats/ratios.
Robust stats options: trimmed mean, MAD/Huber alternatives; optional percentile thresholds instead of fixed multipliers.
Subpanel visuals: rolling TodayATR and Ratio plots; optional Z-score ribbon.
Screener/strategy hooks: export boolean series for BIG/SMALL, plus a lightweight strategy template for backtesting entries/exits conditioned on regime volatility.
Performance/QOL: per-symbol presets, smarter warm-up, and finer control over sample caps for ultra-low TF charts.
Changelog
v0.9b (Beta)
Session presets (NYSE/CME RTH/FX NY/Custom) with timezone handling.
Panel enhancements: ratio + sample size n.
Four-state bar coloring (big/small × bull/bear).
Alerts for BIG/SMALL bars.
Hidden Z-score stream for downstream use.
Gap-in-TR toggle for the first in-session bar.
Disclaimer
For educational purposes only. Not investment advice. Validate thresholds and session settings across symbols/timeframes before live use.