Indicator · Pine Script v6 · Own pane

Kalman Follow Trend Strength Oscillator

by ymlee1104

This indicator draws a Kalman-based trend strength oscillator in a separate pane.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code548
Settings40inputs
LicenceNone stated
Last update7 months ago13 Mar 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

Kalman Follow Trend Strength Oscillator can plot a Kalman filter and an optional Follow Line filtered by ATR and Bollinger Bands, with an optional fill between those lines. ZigZag swings and higher-timeframe PO3 ghost candles, including wick width, open highlights, and price labels, can be shown. Kalman and Follow Line long and short markers are off by default. Settings change sharpness, periods, timeframes, an EMA band, and a date window. It reads higher-timeframe data with lookahead.

Details

Published by

ymlee1104 on GitHub

Type

Indicator, Pine Script v6

Draws

Separate pane below the chart

Category

Trend, Volatility & bands, Support & resistance, Moving averages

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

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

SettingTypeDefaultVariable
시작일timetimestamp("2026-01-01 00:00 +0900")start_time
종료일timetimestamp("2099-12-31 00:00 +0900")end_time
Zig Zag 사용 ⇛|booltrueuseZZ
ZigZag(%)float0.7dev
Depthint10dep
BG 투명도int75zig_col
PO3지표 On/Offbooltrueuse_po3_tf
HTFtimeframe15po3_tf
Wick폭(%)int33po3_wp
시가(Open) 하이라이트booltruepo3_sO
가격 라벨boolfalsepo3_showL
표시기간(분)int4320po3_limit
Show all 40 settings
SettingTypeDefaultVariable
KM Long/Shortboolfalsekm_showsignals
KALMAN 사용 ⇛|booltrueuse_kalman
Timeframetimeframetf
Sourcesourceclosesrc
Sharpnessfloat1.0Sharpness
Kfloat1.0K
Fill widthint3len
FL Buy/Sellboolfalsefl_showsignals
Follow Line ⇛boolfalseuseFL
Fill Kalman-Flow lineboolfalsefill_kal_fl
ATR Filter On/Offbooltruefl_UseATRfilter
ATR길이int5fl_ATRperiod
BB길이int21fl_BBperiod
BB Deviationfloat1.00fl_BBdeviation
타임프레임 선택timeframetf_input
Wait for timeframe closesbooltruewait_close
EMA Bandboolfalseshow_ema_band
Fast 길이int12fast_length
Slow 길이int24slow_length
VWMA ⇛boolfalseuse_VWMA
VWMA Lengthint7lenSlowVWMA
SMA Lengthint30lenSlowSMA
Kalman Modelenumkso_kf_model_enum.m_stdkso_model
Kalman Sourcesourceclosekso_src
Osc Smoothnessint10kso_smooth_osc
Strength Smoothnessint10kso_smooth_str
Trend Lookbackint10kso_lookback_trend
Measurement Noisefloat500.0kso_meas_noise
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

MA Envelope (MAE)

by mihakralj
99 stars

The MA Envelope indicator calculates upper and lower channel bands shifted by a user-defined percentage around a baseline moving average. It supports Simple Moving Average, Exponential Moving Average, and Weighted Moving Average calculation types. The script p

Indicator v6 Moving averagesSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of MA Envelope (MAE)

Trend Compass 4H

by chris-c-thomas
14 stars

Trend Compass 4H plots a multi-EMA ribbon (10/21/50) along with higher-timeframe reference levels on the price chart. It classifies trend phase into six states and calculates a composite weighted trend score. The script detects RSI and MACD divergences, analyz

Indicator v6 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of Trend Compass 4H
10 stars

My Macro Cycle Indicator plots daily and weekly simple and exponential moving averages on the price chart, plus Pi Cycle and Mayer Multiple levels derived from the 200-day average. Optional toggles add support-band fills, a Keltner channel, CME futures gaps, a

Indicator v4 Moving averagesVolatility & bands
Updated 5 years ago · None stated GitHub repository of My Macro Cycle Indicator

This indicator plots a double-smoothed Supertrend baseline on the price chart, combining a Supertrend midline with WMA and EMA smoothing to show trend direction. Direction uses an ATR-scaled baseline slope with hysteresis, while percentile-ranked slope magnitu

Indicator v6 TrendMoving averages
Updated yesterday · MIT GitHub repository of Smooth Trend Radar [WavesUnchained]

SRI Indicator ft. MSB

by kingmalitha
7 stars

This indicator overlays an all-in-one technical analysis toolkit on the price chart. It plots multiple moving averages, including standard EMAs, SMAs, and a Trend Regularity Adaptive Moving Average, alongside Bollinger Bands, Supertrend, Nadaraya-Watson envelo

Indicator v5 Moving averagesTrend Repaints
Updated 3 years ago · None stated GitHub repository of SRI Indicator ft. MSB

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