Download MetaTrader 5
To add comments, please log in or register
Does your signal already have a lot of of subscribers? It's time to think about the paid subscription!
Stephen Njuki
5147
Stephen Njuki 2014.02.19 22:18 
These seem to compile easily in meta editor however the arrays at the nodes do not store values. 

Has any one some experience in using these?

Ubzen
Moderator
5394
Ubzen 2014.02.19 22:41  
ssn:
These seem to compile easily in meta editor however the arrays at the nodes do not store values. 

Has any one some experience in using these?

How about some codes to assist the people trying to help you.
Stephen Njuki
5147
Stephen Njuki 2014.02.20 08:24  
Ubzen:
How about some codes to assist the people trying to help you.
Sorry for the bother. I got this to work.
Alain Verleyen
Moderator
28702
Alain Verleyen 2014.02.20 11:08  
ssn:
Sorry for the bother. I got this to work.
As it seems, you don't worry to share your experience. Next time you ask help, we will have to think about that.
Stephen Njuki
5147
Stephen Njuki 2014.02.20 13:05  
angevoyageur:
As it seems, you don't worry to share your experience. Next time you ask help, we will have to think about that.
You want to see the code?
Alain Verleyen
Moderator
28702
Alain Verleyen 2014.02.20 14:20  
ssn:
You want to see the code?
It's up to you to see if your problem and the solution can be of any interest for the community. Nothing personal.
Stephen Njuki
5147
Stephen Njuki 2014.02.20 14:36  
angevoyageur:
It's up to you to see if your problem and the solution can be of any interest for the community. Nothing personal.

the community… ok.

 

Here is a sample that may be of interest. I think it puts across the idea.  

int                     _NODES;
struct SNode
  {
      double            test;
  };
int                     _NESTS;
struct SNest
  {
      SNode             node[];
  };
SNest                   _nests[];

//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
      _NESTS=7;_NODES=5;
      ArrayResize(_nests,_NESTS);
      for(int i=0;i<_NESTS;i++){
         ArrayResize(_nests[i].node,_NODES); // THIS WAS MY OMISSION.
         for(int j=0;j<_NODES;j++){
            _nests[i].node[j].test=MathRand()%7; }}
         
      for(int i=0;i<_NESTS;i++){
         for(int j=0;j<_NODES;j++){
            Print(" in nest ",i," at node: ",j,", is value ",_nests[i].node[j].test); }}
  }
Alain Verleyen
Moderator
28702
Alain Verleyen 2014.02.20 18:32  
ssn:

the community… ok.

 

Here is a sample that may be of interest. I think it puts across the idea.  

Thank you.
/
To add comments, please log in or register