Discussion of article "Using Self-Organizing Feature Maps (Kohonen Maps) in MetaTrader 5" - page 3

 

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?

 
Try this version (saved as Unicode).
Files:
cIntBMP.mqh  79 kb
 

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];
 
Enlighten me why it is necessary to unload data into a file with a script and then read it from the Expert Advisor? Why can't the Expert Advisor take data from the terminal on its own?
 
Graff:
Enlighten me why it is necessary to unload data into a file using a script and then read it from the Expert Advisor? Why can't the Expert Advisor independently take data from the terminal?

nobody forbids, and it is even encouraged to do it the best way :)

 
sergeev:

no one forbids, and even encouraged to do what's best :)

This is understandable. What is not clear is the logic of such an implementation.

Why was it necessary to write the function ParseString(s,";",stringsarr);? when there is a standard ushort sep[]; StringToShortArray(";",sep,0,-1); StringSplit(s,sep[0],stringsarr);

 
Graff:

That's understandable. What I don't understand is the logic behind this implementation.

What does this have to do with scripts?
 
Graff:
Enlighten me why it is necessary to unload data into a file using a script and then read it from the Expert Advisor? Why can't the Expert Advisor take data from the terminal on its own?
IMHO, this is a more universal solution. Imagine that the data are generated not by the terminal.
 
sergeev:
What does this have to do with scripts?

I don't understand what they're for. After all, you can get information directly from the terminal.

Dima_S:
IMHO, this is a more universal solution. Imagine that the data is formed not by the terminal.

It is even scary to imagine with what exactly, probably someone counted them manually.

SZY: can someone post a mod for EA to pull in information directly from the terminal, without a script?

 

Graff:

SZY: can someone post a mod so that the Expert Advisor can pull in information directly from the terminal, without a script?

what information do you need?