OPEN-SOURCE SCRIPT
Aktualisiert

Kalman Ema Crosses - [JTCAPITAL]

303
Kalman Ema Crosses is a modified way to use the Kalman Filter over the price data as well as the EMA itself. It can be used for trend-following purposes.

The indicator works by calculating in the following steps:

1. Perform Kalman Calculations over the chosen source data.

2. Make EMA's from the Kalman Filtered source data.

3. Kalman Filter the EMA's separately

4. Define Buy and Sell conditions based on the crosses from the 2 Kalman Filtered EMA's.


--Buy and sell conditions--

- The buy and sell conditions are simply divined by a crossover of the EMA's


--Features and Parameters--

- Allows the usage of different sources
- Allows the changing of the length of both EMA's
- Allows the changing of the process noise used in the Kalman calculations
- Allows the changing of the measurement noise used in the Kalman calculations
- Allows the changing of which of the 2 Kalman Filters the price filtering is done on.


--Details--
Kalman Ema Crosses uses the Kalman Filter multiple times in an attempt to reduce false signals while maintaining the fast entries and exits we usually get from ema crosses. Also allowing the changing of what Kalman filter gets used for the filtering of price.

Using the Kalman filter calculations from the faster EMA for price increases sensitivity by a huge amount. Having fast EMA's while doing the price calculations on the Kalman filter of the fast EMA will result in an unnecessary amount of noise. On the other hand using the fast Kalman filter for price while using long ema lengths may reduce late entries.

Kalman filter is widely known and used for its ability to predict states of a linear dynamic input in an uncertain period. By using this on a noisy indicator such as EMA crosses we can filter out market noise, getting a more accurate analysis and signal.

The multiple parameters that can be changed can drastically alter the performance and speed of the Kalman filter, I have purposely left this open to allow people to use it on all asset classes and timeframes.

The EMA is a widely known indicator, and paired with another EMA on another length can provide meaningful signals and insights into the market. The downside of this amazing indicator is the amount of noise and false signals it produces. With this approach we have reduced the noise and increased the profitability of the indicator we all know and love.

Enjoy!
Versionshinweise
Cleaned code

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.