Traders_Endeavors

Kalman Momentum

Kalman Filter
The Kalman Filter is an algorithm used for recursive estimation and filtering of time-series data. It was developed by Rudolf E. Kálmán in the 1960s and has found widespread applications in various fields, including control systems, navigation, signal processing, and finance.

The primary purpose of the Kalman filter is to estimate the state of a dynamic system based on a series of noisy measurements over time. It operates recursively, meaning it processes each new measurement and updates its estimate of the system state as new data becomes available.

Kalman Momentum Indicator
This indicator implements the Kalman Filter to provide a smoothed momentum indicator using returns. The momentum in this indicator is calculated by getting the logarithmic returns and then getting the expected value.

The Kalman calculation in this indicator is used to filter and predict the next value based on the logarithmic returns expected value.

Here's a simplified explanation of the steps and how they are applied in the Script:
  1. State Prediction: Predict the current state based on the previous state estimate.

    Error Covariance Prediction: Predict the covariance of the prediction error.

  2. Correction Step:

    Kalman Gain Calculation: Calculate the Kalman gain, which determines the weight given to the measurement.

    State Correction: Update the state estimate based on the measurement.

    Error Covariance Correction: Update the error covariance.

In this Script, the Kalman Filter is applied to estimate the state of the system, with two state variables.

When the Kalman Momentum is above 0, there is positive momentum or positive smoothed expected value.

When the Kalman Momentum is below 0, there is negative momentum or negative smoothed expected value.

How to Use:
  1. Trend Identification:
    Positive values of the Kalman Momentum Indicator indicates positive expected value, while negative values suggest negative expected value.
    You can look for changes in the sign of the indicator to identify potential shifts in market direction.

  2. Volatility Analysis:
    Observe the behavior of the indicator during periods of high and low volatility. Changes in the volatility of the Kalman Momentum Indicator may precede changes in market conditions.

  3. Filtering Noise:
    The Kalman Filter is known for its ability to filter out noise in time series data. Use the Kalman Momentum Indicator to filter out the noise in momentum to catch the trend more clearly.

  4. Squeezes:
    At time there may be squeezes, and these are zones with low volatility. What could follow after these zones are expansions and huge trending moves.

Indicator Settings:
  • You can change the source of the calculations.
  • There is also a lookback for the log returns.

Understanding Expected Value in Trading:
The Expected Value is a fundamental concept that shows the potential outcomes of a trading strategy or individual trade over a series of occurrences. It is a measure that represents the average outcome when a particular action is repeated multiple times.

Images of the indicator:



發布通知:
Description Update

僅限邀請腳本

僅限作者授權的用戶訪問此腳本,並且通常需要付費。您可以將其增加到收藏腳本中,但是只有在向作者請求並獲得許可之後,才能使用它。 請與Traders_Endeavors聯繫以獲取更多資訊,或按照以下作者的說明進行操作。

在您100%信任腳本作者並了解腳本的工作原理之前,TradingView不建議您購買腳本並使用它。在很多情況下,您可以在我們的社群腳本庫中免費找到一個不錯的開源替代品。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

作者的說明

Get access here: www.patreon.com/user?u=80987417...

想在圖表上使用此腳本?

警告:請閱讀,然後再請求訪問權限。