Convert Python KalmanFilter to MQL5

Tarea técnica

In this task, you should translate pykalman (https://github.com/pykalman/pykalman/blob/master/pykalman/standard.py#L920) to MQL5, features that must be translated:


initilization: KalmanFilter(transition_matrices=A,transition_covariance=Q)

function em: kf.em(z)

function smooth: x_mean,x_covar=kf.smooth(z)

function filter_update: kf.filter_update(filtered_state_mean=x_mean, filtered_state_covariance=x_covar)     and variant with "observation"



A and Q is a CMatrixDouble(in test case it's (3,3)) matrix (from <Math/Alglib/matrix.mqh>)

z is a double[] array

x_mean and x_covar is a CMatrixDouble, it's the output of kf.smooth() step


I will provide a copy of test data to execute and validate this task, and a copy of python code too
I don't want to use python, just mql5

Han respondido

1
Desarrollador 1
Evaluación
(46)
Proyectos
80
13%
Arbitraje
11
0% / 91%
Caducado
51
64%
Libre
2
Desarrollador 2
Evaluación
(7)
Proyectos
9
0%
Arbitraje
3
0% / 100%
Caducado
5
56%
Libre
Solicitudes similares
Desejo criar um site, onde, extraia informações da B³, passe-as pelo algoritmo que eu desenvolvi e, apresente o resultado ao usuário. Ele deve possuir uma página de demonstração para não assinantes e uma página de análise para assinantes. Deve apresentar os 5 melhores e os 5 piores investimentos do mês corrente
//+------------------------------------------------------------------+ //| SimpleEA.mq5| //| Copyright 2023, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "2023, MetaQuotes Software Corp." #property link " https://www.mql5.com " #property version "1.00" #property strict input int FastMAPeriod = 12; // Período da média

Información sobre el proyecto

Presupuesto
30 - 100 USD
Para el ejecutor
27 - 90 USD
Plazo límite de ejecución
de 20 a 60 día(s)