Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Kalman Filter for Amibroker (AFL)

Rating:
4 / 5 (Votes 4)
Tags:
amibroker

Translated & modified simple Kalman Filter code written in C freely available on internet to amibroker afl. Experts can contribute to the coding by projecting the Kalman filter value one bar ahead into future. Tested on Amibroker 5.6

Screenshots

Similar Indicators / Formulas

Kavach Of Karna v2
Submitted by hbkwarez almost 10 years ago
Advanced Elliott Waves
Submitted by MarcosEn over 12 years ago
3_6Day GuaiLiLv
Submitted by motorfly over 12 years ago
Williams Alligator System
Submitted by durgesh1712 over 12 years ago
*Level Breakout system*
Submitted by Tinych over 12 years ago
Horizontal Live Priceline Tool
Submitted by northstar over 12 years ago

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Kalman Filter");

x_temp_est = 0;
x_est_last = 0;
P_temp = 0;
P_last = 0;
Q = 0.022;
R = 0.617;
P = (H +L)/ 2;
z_real = EMA(EMA(P,3),3) ;
x_est_last = z_real + TSF(P,3);

for (i=0;i<BarCount;i++) 
{
x_temp_est = x_est_last;
P_temp = P_last + Q;
K = P_temp * (1.0/(P_temp + R));
z_measured = z_real;
x_est = x_temp_est + K * (z_measured - x_temp_est); 
P = (1- K) * P_temp;
P_last = P;
x_est_last = x_est;

}

Plot(x_est, "Kalman Filter", colorGreen, styleLine|styleThick);

_SECTION_END();

4 comments

1. algotrader01

Sorry, couldn’t Upload the screenshot !

2. extremist

nice attempt.
good logic.

3. anandnst

This is nothing else.. EMA 3

4. algotrader01

It works well even without EMA 3..I used it to have a smoother line

Leave Comment

Please login here to leave a comment.

Back