Download MetaTrader 5
To add comments, please log in or register
Publish your article. We will translate it into other languages!
MetaQuotes Software Corp.
Moderator
180177
MetaQuotes Software Corp. 2011.06.10 14:41 

New article Using Self-Organizing Feature Maps (Kohonen Maps) in MetaTrader 5 is published:

One of the most interesting aspects of Self-Organizing Feature Maps (Kohonen maps) is that they learn to classify data without supervision. In its basic form it produces a similarity map of input data (clustering). The SOM maps can be used for classification and visualizing of high-dimensional data. In this article we will consider several simple applications of Kohonen maps.


Author: MetaQuotes

Karlis Balcers
6573
Karlis Balcers 2011.06.10 15:03  

Excellent article! Thank you a lot!

 /tsaktuo 

barnix
20
barnix 2011.06.27 15:28  
On Windows 7 64 bit don't work.
Files:
Untitled1.jpg 246 kb
Alexey Da
Moderator
6562
Alexey Da 2011.06.27 17:29  

The reason of this error is User Access Control on Windows Vista, Windows 7.

Please change

aFromFileName=TerminalInfoString(TERMINAL_PATH)+"\\MQL5\\Files\\"+CheckExtension(aFromFileName);
aToFileName=TerminalInfoString(TERMINAL_PATH)+"\\MQL5\\Images\\"+CheckExtension(aToFileName);

 

to

aFromFileName=TerminalInfoString(TERMINAL_DATA_PATH)+"\\MQL5\\Files\\"+CheckExtension(aFromFileName);
aToFileName=TerminalInfoString(TERMINAL_DATA_PATH)+"\\MQL5\\Images\\"+CheckExtension(aToFileName);

 

in file "cIntBMP.mqh".

We will fix it in article. 

Automated-Trading
Admin
97387
Automated-Trading 2011.06.27 17:31  
We will fix it in article.
Fixed.
Robert Simon
44
Robert Simon 2011.06.28 12:16  

Hi!

Thanks for this article.

Q: is it possible to do RPCL implemention also? (Xinyu Guo has some great publication...)

williamwong
631
williamwong 2011.06.30 07:12  

I notice the pattern is practically defined after awhile but the iteration is fixed at 10000 so it still continues to run until 10000.

Is it possible for the algorithm to detect and stop the iteration when the pattern is more or less defined? 

 

williamwong
631
williamwong 2011.06.30 13:41  

I downloaded found these garbage characters ("?,"?,...) at the end of the definition and encountered compilation errors with cintbmp.h:

string CA[]={"!","\"","#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","file://%22,%22]%22,%22%5e%22,%22_%22,%22%60%22,%22a%22,%22b%22,%22c%22,%22d%22,%22e%22,%22f%22,%22g%22,%22h%22,%22i%22,%22j%22,%22k%22,%22l%22,%22m%22,%22n%22,%22o%22,%22p%22,%22q%22,%22r%22,%22s%22,%22t%22,%22u%22,%22v%22,%22w%22,%22x%22,%22y%22,%22z/

"j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","","€","?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,"?,""};
 

but if i open with MT4 editor, I can see the characters.  Any idea how to fix it?

Automated-Trading
Admin
97387
Automated-Trading 2011.06.30 14:15  
Try this version (saved as Unicode).
Files:
cIntBMP.mqh 79 kb
williamwong
631
williamwong 2011.07.03 10:33  

Is the following a bug?  If the 1st element is max or min, it is never included in the range calculation resulting in wrong classification:

void CSOM::Train(bool bShowProgress) // training method
  {
    ...

   for(int j=0; j<m_dimension; j++)
     {
      double maxv=m_set[m_dimension+j]; // should this be double maxv=m_set[m_dimension*j];
      double minv=m_set[m_dimension+j]; // should this be double minv=m_set[m_dimension*j];

Get in touch with developers using Service Desk!
  • www.mql5.com
We therefore attach great importance to all user reports about issues in our programs and try to answer each one of them.
supercoder2006
26
supercoder2006 2012.07.26 19:26  

Does this article include everything to get a expert advisor?

 

Im interested in implementing Neural Network Expert Advisor.

/
To add comments, please log in or register