Indicator · Pine Script v6 · On the chart

AI Renko Supertrend + Trend State Engine

by ankurksoni

A price-chart overlay, short title Renko Rocket, that merges a Renko-based Supertrend with a Kalman-filter trend state engine.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code413
Settings40inputs
LicenceNone stated
Last update2 days ago27 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

An entry shows as a stack of triangles when the engine turns bullish or bearish and the Renko Supertrend agrees. Exits occur when the engine leaves that state or, optionally, when the Renko line flips. Brick size can be automatic from ATR or manual. Signals after a set exchange-time cutoff are greyed out and can be blocked, and entries on the first candle of the day can be skipped. A gradient fill shades the trend. It places no orders.

Details

Published by

ankurksoni on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Trend, Volatility & bands, Sessions & time

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
ATR Lengthint10atrLen
Base Factorfloat3.0baseFactor
Auto Brick SizebooltrueautoBox
Manual Brick Sizefloat10.0manualBox
Grey out late signalsbooltruelateOn
Cutoff Hour (exchange time, 0-23)int14lateHour
Cutoff Minuteint30lateMin
Late Signal Colorcolorcolor.graylateCol
Block new entries after cutoff time (exits still allowed)booltrueblockLate
Skip entries on the day's first candlebooltrueskipFirst
Bullcolor#008000bullCol
Bearcolor#FF0000bearCol
Show all 40 settings
SettingTypeDefaultVariable
Paint Trend Gradient FillbooltruepaintGradient
Volatility Lookbackint20volLen
Observation Noisefloat1.0observationBase
Process Noisefloat0.05processNoise
Spike Noise Sensitivityfloat2.0spikeSensitivity
Efficiency Lookbackint12efficiencyLen
Velocity Scalefloat1.5velocityScale
Displacement Scalefloat2.0displacementScale
Velocity Weightfloat0.60weightVelocity
Efficiency Weightfloat0.25weightEfficiency
Displacement Weightfloat0.15weightDisplacement
Adaptive Lookbackint20bandLen
Entry Band Multiplierfloat1.5entryBandMult
Exit Band Multiplier (0 = Mean)float0.0exitBandMult
Minimum Absolute Thresholdfloat0.10minThreshold
Consecutive Confirmation Barsint1confirmBars
Show Entry RocketsbooltrueshowRockets
Triangles per Rocketint6rocketCount
Gap from Candle (x ATR)float0.8rocketMargin
Triangle Spacing (x ATR, equal between all)float0.22rocketStep
Enter when Renko agrees later (engine already in state)booltruecatchUp
Exit when Renko flips against tradebooltrueexitOnRenko
Show Exit MarkersbooltrueshowExits
Limit entries per day (no new signal after the limit until next session)booltruelimitDaily
Max Entries per Dayint1maxPerDay
Show Supertrend Line / FillbooltrueshowSupertrend
Exit Colorcolorcolor.orangeexitCol
Require price above VWAP (long) / below VWAP (short)booltrueuseVwap
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

92 stars

This indicator classifies the market into gamma regime types (negative gamma trend, positive gamma mean-reversion, or transition) by calculating a composite score based on daily ATR ratios, session VWAP crossover frequencies, and opening range displacement. It

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · Custom licence GitHub repository of Moon Dev GEX Regime & Trap

42H Map

by aurorascarlet1102
4 stars

42H Map calculates custom time cycle structures and session ranges directly on the price chart. It partitions market action into forty-two-hour cycles, ten-and-a-half-hour micro-sessions, half-week periods, and quarter-month segments to track highs, lows, and

Indicator v5 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of 42H Map

Inverse Choppiness Index

by ryangaraygay
2 stars

This indicator calculates the Choppiness Index to gauge market consolidation versus trending conditions. When the Choppiness Index indicates high choppiness above a threshold of 50 during a defined trading session, the script plots a transparent rectangle over

Indicator v5 TrendVolatility & bands
Updated 1 year ago · MIT GitHub repository of Inverse Choppiness Index

This indicator plots several linear regression channels on the price chart. Each channel can be hidden or drawn as a channel, bands, or both, and its lookback is anchored to price, volume, oscillator extremes, calendar periods, sessions, or corporate events. P

Indicator v6 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Multi-Anchored Linear Regression Channels [TANHEF]

4x4 Futures Ghost Matrix

by knectardev
1 stars

This indicator generates intraday trading signals by combining dual-sigma standard deviation bands, Heikin Ashi candle vectors, and a four-bar confluence score. It triggers long and short signals during defined trading sessions using either mean-reversion boun

Indicator v5 Volatility & bandsMean reversion
Updated 9 months ago · None stated GitHub repository of 4x4 Futures Ghost Matrix

Gold Dominator Pro

by thanvish21
1 stars

Gold Dominator Pro is a multi-indicator overlay designed primarily for gold trading. It combines higher-timeframe exponential moving averages with momentum oscillators like RSI, MACD, and StochRSI, alongside volatility tools such as ATR, Bollinger Bands, and A

Indicator v5 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Gold Dominator Pro

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers