Hello!

Im getting errors in my code when i try to put a kalman filter into my forex data. Can someone look at the code and tell me why my spreads/graphs look odd and why its not working? Thank you!