View Single Post
  #130 (permalink)  
Old 04-12-2008, 04:22 PM
bonechair bonechair is offline
Junior Member
 
Join Date: Sep 2007
Posts: 6
bonechair is on a distinguished road
PNN example

Hi There

Does anybody have a Probability Neural Network example in mql4?
I have looked everywhere for something but only find algorithms which I do not understand.

I am a programmer and unfortunately not a mathematician.
I have worked with this code before:
Code:
  
double ai(string curr){
   double w1 = i1 - 100.0;
   double w2 = i2 - 100.0;
   double w3 = i3 - 100.0;
   double w4 = i4 - 100.0;
   
   double a1 = iAO(curr, 0, 0);
   double a2 = iAO(curr, 0, 7);
   double a3 = iAO(curr, 0, 14);
   double a4 = iAO(curr, 0, 21);
   
   return (w1 * a1 + w2 * a2 + w3 * a3 + w4 * a4);
  }

Last edited by bonechair; 04-12-2008 at 04:25 PM.
Reply With Quote