Indicator · Pine Script v6 · Own pane

Kalman_Follow_Trend Strength Oscillator

by ymlee1104

This indicator computes the Kalman filter applied to the chosen source to measure trend strength and generate oscillator values.

View on GitHub

Repaints

GitHub stars1on the repository
Pine versionv6current
Lines of code546
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 plots these values along with optional ZigZag swing points in a separate pane. The script overlays PO3 ghost candles from a higher timeframe and supports a follow-line feature with configurable ATR and Bollinger Band filters. Signals for long/short and buy/sell can be enabled. Primary settings control Kalman sharpness, K factor, ZigZag depth and deviation percentage, fill width, and timeframe selections. The oscillator draws trend strength lines and signals in a separate pane. It may use lookahead data as configured.

Details

Published by

ymlee1104 on GitHub

Type

Indicator, Pine Script v6

Draws

Separate pane below the chart

Category

Oscillators & momentum, Trend

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.5dev
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

Schaff Trend Cycle

by everget
948 stars

This indicator plots the Schaff Trend Cycle in a separate pane. It subtracts a slow exponential moving average from a fast one, applies a stochastic cycle twice, and smooths each result to form a 0–100 oscillator. Line color follows the slope, or the upper and

Indicator v4 Oscillators & momentumTrend
Updated 10 days ago · GPL-3.0 GitHub repository of Schaff Trend Cycle

Beep Boop

by magic8bot
409 stars

This indicator calculates a modified MACD oscillator and signal line alongside a trend EMA filter, plotting the output as a stylized column histogram in a separate pane. Instead of plotting true MACD distance, it quantifies positive and negative histogram mome

Indicator v4 Oscillators & momentumTrend
Updated 3 years ago · MIT GitHub repository of Beep Boop

[RS]Standardized Trend Map

by ricardosantos79
261 stars

Standardized Trend Map calculates series momentum relative to active price range across 40 distinct lookback periods ranging from 2 to 80 bars on an exponential moving average source. Each standardized calculation rounds to an integer values of -1, 0, or 1 to

Indicator v4 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of [RS]Standardized Trend Map

ADX Histogram

by harryguiacorn
219 stars

This indicator calculates and displays the Average Directional Index (ADX) as a column histogram in a separate pane. It evaluates market trend strength by calculating directional movement metrics based on specified smoothing and DI length inputs. When the ADX

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ADX Histogram
218 stars

Multi-Timeframe Analysis Suite calculates trend direction and momentum conditions across five user-selected timeframes using moving averages, RSI, and Stochastic oscillators. It evaluates moving average slope and oscillator levels to compute trend alignment, m

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · None stated GitHub repository of Multi-Timeframe Analysis Suite

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