simwai

VHF Adaptive Linear Regression KAMA

simwai ที่อัปเดต:   
Introduction
Heyo, in this indicator I decided to add VHF adaptivness, linear regression and smoothing to a KAMA in order to squeeze all out of it.

KAMA:
Developed by Perry Kaufman, Kaufman's Adaptive Moving Average (KAMA) is a moving average designed to account for market noise or volatility. KAMA will closely follow prices when the price swings are relatively small and the noise is low. KAMA will adjust when the price swings widen and follow prices from a greater distance. This trend-following indicator can be used to identify the overall trend, time turning points and filter price movements.

VHF:
Vertical Horizontal Filter (VHF) was created by Adam White to identify trending and ranging markets. VHF measures the level of trend activity, similar to ADX DI. Vertical Horizontal Filter does not, itself, generate trading signals, but determines whether signals are taken from trend or momentum indicators. Using this trend information, one is then able to derive an average cycle length.

Linear Regression Curve:
A line that best fits the prices specified over a user-defined time period.
This is very good to eliminate bad crosses of KAMA and the pric.

Usage
You can use this indicator on every timeframe I think. I mostly tested it on 1 min, 5 min and 15 min.

Signals
Enter Long -> crossover(close, kama) and crossover(kama, kama)
Enter Short -> crossunder(close, kama) and crossunder(kama, kama)

Thanks for checking this out!

--

Credits to
▪️@cheatcountry – Hann Window Smoohing
▪️@loxx – VHF and T3
▪️@LucF – Gradient


เอกสารเผยแพร่:
Removed unncessery code
Fixed color-related bug when gradient is turned off
เอกสารเผยแพร่:
Added minval to some inputs
Replaced unicode character with normal character to support mobile phones (etc.)
Added gradient lookback input field to adjust the sensitivity of the gradient
Fixed custom resolution support
Fixed KAMA calculation error
Updated signal logic
Updated KAMA angle/slope calculation for the gradient
เอกสารเผยแพร่:
Added enter long and short alerts
เอกสารเผยแพร่:
Upated smoothing default value
เอกสารเผยแพร่:
Updated default values
เอกสารเผยแพร่:
Updated comments

สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?