Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
for (i = 0; i < ArrayRange(fx, 0); i++) {
fx[i] *= 1 / (MathPow(2 * 3.14159265, length / 2) * MathPow(SIGMA, length)) * (1 / classVectorCount[i]);
Print("check point 1 result fxi = ",fx[i], ", result=",result, ", SIGMA=",SIGMA,", length=",length, ", classvectorcount=",classVectorCount[i]);
if ((fx[i]> result) && (fx[i] != result)){
Print("pre check point 2, fxi = ",fx[i], " > result=",result, ", i=",i,", resultClass=",resultClass);
result = fx[i];
resultClass = i;
Print("after check point 2=fxi = ",fx[i], " , result=",result, ", i=",i,", resultClass=",resultClass);
}
}
Print("check point 2 result fxi = ",fx[i], ",resultClass=",resultClass);
return (resultClass);
}
then I have the output on the trained area, see attached the picture.
when fx[1]=0, result =0, the if (fx[i]> result) gives TRUE! and let it pass the condition check, unbelievable. speakless! And this only happened on the trained period. It's never happend on the untrained period.
The Comez code has problem with the classification there. It only does buy operation outside trained period. Tried to debug whole day, and still not get the real problem solved.
From the russian forum here, get the modified PNN eric code. it uses the parzen window classification. The results is so so from backtest.
As for any Parzen window classificator, your will have the sigma problem, what value for the sigma is best for current priod? I optimized it, and get the result 0.03 for EURUSD M15.
Link here is from codebase, he is using MACD and IMA matrix to calculate the Euclidian distance between trained vector and the test vector, good think so, need to be inproved. He is not using the parzen window classificator, but that just one step away.
What he is doing is he has a function that calcuate euclidean matric. So now we can go back to develope the PNNeric.mq4 above, to handle a matrix with iMA. Am I on the right track?