For this article, we rotate from regime classification (determinism) and return to real-time state estimation where we are introducing a custom signal class that is run by the algorithm Unscented Kalman Filter (UKF) and is paired with a Capsule Neural Network. This expands the toolkit library of what is on offer in prototyping and developing trading systems within MetaTrader and as always, is not intended as a silver bullet. This model is meant to bring to the fold trade set ups that work by stripping away market-noise without adding the lagging problems of many indicators such as the moving average.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
If anyone is looking for the links, you can find all the necessary files at:
http://gammarat.com/Forex/BlackBoxes/Kalman/GRFKalmanAGASJW.mq4 (put in the includes folder)
http://www.gammarat.com/Forex/BlackBoxes/Kalman/GRFMatrixMath.mq4 (put in the libraries folder)
http://www.gammarat.com/Forex/BlackBoxes/Kalman/GRFMatrixMath.mqh (put in the include folder)
https://www.mql4.com/go?http://gammarat.com/Forex/BlackBoxes/Kalman/grfkalmanagasjw_hourly.tpl (the template for the hourly timeframe)
See also
Forum on trading, automated trading systems and testing trading strategies
All about MQL5 Wizard : create robots without programming.
Sergey Golubev, 2026.06.24 10:50
MQL5 Wizard Techniques you should know (Part 98): Using an Unscented Kalman Filter and a Capsule Network in a Custom Signal Class