I wasn't going to post this because I don't like how this calculates by puling in the Open price, but I'm posting it anyway. This does work in it's current form but there is a. better way to do this. I'll revisit this in the future. Anyway... The k-Nearest Neighbor algorithm (k-NN) searches for k past patterns (neighbors) that are most similar to the current...
Hodrick-Prescott Extrapolation of Price is a Hodrick-Prescott filter used to extrapolate price. The distinctive feature of the Hodrick-Prescott filter is that it does not delay. It is calculated by minimizing the objective function. F = Sum((y(i) - x(i))^2,i=0..n-1) + lambda*Sum((y(i+1)+y(i-1)-2*y(i))^2,i=1..n-2) where x() - prices, y() - filter values....
What is the Modified Covariance AR Estimator? The Modified Covariance AR Estimator uses the modified covariance method to fit an autoregressive (AR) model to the input data. This method minimizes the forward and backward prediction errors in the least squares sense. The input is a frame of consecutive time samples, which is assumed to be the output of an AR...