OPEN-SOURCE SCRIPT

さくらんぼーいⅢ

80
Sakuranboi III — Indicator Description (English)
Overview

Sakuranboi III visualizes market “trajectory” and timing using an ATR-based Light-Cone projected from a user-defined Anchor (bar & price) and a set of √n convergence stripes placed at quadratic time intervals.
A compact Bias Panel aggregates five independent signals—HTF trend, cone position (z), rail-hug, first fractal inside a stripe, and a simple structure break—into a Bias Score to quickly read UP / DOWN / NEUTRAL conditions.

Key Features

Anchor-driven Light-Cone

Growth modes: Linear n or Diffusive √n.

Height: ATR × multiplier (from Close or Wick range).

Upper / lower cone edges are drawn as infinitely extended diagonal lines.

Optional 0.5c / 1.5c guide lines for mid/outer bands.

√n Convergence Stripes

Stripe centers at anchorBar + stepBars * m² (m = 1..Max M).

Stripe width controlled by halfWindow (center ± halfWindow bars).

Optional vertical center lines (visual aid only).

Fractal Detection

Pivot High/Low (PH/PL) hits inside stripes are counted.

m² Hit Table shows counts per stripe order (PH▲ / PL▼).

Bias Panel (5 cards, ±1 each)

HTF Trend (EMA Fast vs EMA Slow, on a selectable higher timeframe).

Cone z: relative position
z = (Close − AnchorPrice) / (cone height at current distance).

Rail-Hug: ratio of bars touching the 0.5c–1.0c band (upper vs lower).

First Fractal in Stripe after entering a stripe (first PL → +1, first PH → −1).

Structure Break: takeout of recent PH (↑) or PL (↓).

Alerts

Bias UP (score ≥ +3) / Bias DOWN (score ≤ −3).

Fractal High in Convergence / Fractal Low in Convergence.

How to Use

Set the Anchor
Choose Anchor Mode = Time or Bars Ago and select the Anchor Price source (Close/High/Low/Open/Manual).

Shape the Cone
Adjust ATR Length, optional ATR Timeframe, Multiplier, and Growth Mode.

Diffusive √n emphasizes diffusion-like growth.

Linear n gives straight, linear expansion.

Tune Stripes (Time Resonance)

stepBars controls spacing of m² centers.

Max Order M controls how many stripes to draw.

halfWindow controls stripe thickness.

Turn Draw Stripe Center Lines on if you want the exact centers.

Read the Bias Panel

Use +3 or higher → UP, −3 or lower → DOWN as a quick filter.

Set HTF timeframe to your higher-timeframe context (e.g., 15m).

Configure Alerts for your workflow (Bias UP/DOWN, PH/PL in stripe).

Inputs (Highlights)

Anchor (shared): Mode, Time, BarsAgo, Price Mode, Manual Price.

Light-Cone ATR: ATR Length / Timeframe / Horizon / Growth Mode / Multiplier / Height source / Colors.

Guides (0.5c / 1.5c): show/hide, colors, width.

Convergence (√n stripes): stepBars / Max Order M / halfWindow / color / center lines.

Fractal: Left/Right sensitivity for pivots.

Display / Limits: Hit table on/off, screen trimming, past/future draw limits.

Bias Panel: HTF timeframe, EMA Fast/Slow, z threshold, Rail lookback & ratio.

Bias Score Details

HTF Trend: EMA(fast) > EMA(slow) → +1; EMA(fast) < EMA(slow) → −1.

Cone z: z > +threshold → +1; z < −threshold → −1.

Rail-Hug (last N bars):

Upper band (0.5c–1.0c) touch ratio dominant → +1;

Lower band dominant → −1.

First Fractal in Stripe (after entry): PL → +1, PH → −1.

Structure Break: break above recent PH → +1; break below recent PL → −1.

Total: ≥ +3 → UP, ≤ −3 → DOWN, otherwise NEUTRAL.

Alerts

Bias UP — when Bias score >= +3.

Bias DOWN — when Bias score <= -3.

Fractal High in Convergence — PH detected inside a stripe.

Fractal Low in Convergence — PL detected inside a stripe.

Recommended Presets

Scalp / Short-term:
ATR TF = same, Growth = Diffusive √n, Mult = 1.0–1.5,
stepBars = 15–30, halfWindow = 1–2.

Swing:
ATR TF = higher TF, Growth = Linear n, Mult = 1.5–2.5,
stepBars = 60–120, halfWindow = 2–4.

Notes & Limits

Cone edges and guides are drawn as infinitely extended diagonals; the cone fill is rendered between upper/lower edges.

Future plotting respects TradingView’s cap (default max ~500 future bars); governed by futureLimitBars.

Script uses max_bars_back = 5000 and guarded indexing to avoid historical-buffer errors.

If performance is heavy, reduce Max Order M, screenPastBars, or hide the hit table.

Disclaimer

This script is for research and educational purposes only and does not constitute financial advice. Market behavior varies by symbol and timeframe; please backtest and adjust parameters to your own risk tolerance. The author assumes no responsibility for any outcomes.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.