Indicators: Price prediction by Nearest Neighbor - page 2

 

q_import:
Very Nice

 

Thanks.

 

I can't add comments to your most recent nearest neighbor post so I'm going to ask a question in this one.  First off, thank you for submitting this, I find it very interesting, but how do you get the future indicator values using this?  I'm using the code below to get the indicator's prediction 50 bars in the future, but this is just an intuitive guess as to how it should work, is this right?   

int nearestNeighborHandle = iCustom(_Symbol,_Period,"nearest_neighbor_-_weighted_corr",300,50);

double  indicatorValues[];

if( CopyBuffer(nearestNeighborHandle,0,-50,50,indicatorValues) < 0 )  {} 

 

Thank you. 

 

 

many thanks for your interesting indicator.
If I use your indicator in a strategy, I get the following output:

I suspe
ct that the calculation nearst neighbor with the number of bars starts. Is that correct?

Regards

dee544  

 

Thank You

 
Great
 
Is this version also available for MT4?