Help in Understanding OOP of this expertMAMA.mq5 ea. - page 2

 
enivid:

OnInit() creates all those objects, then initializes ExtExpert object with them, then deletes those objects are deleted as OnInit() ends, but the data from them is already within ExtExpert. Methods of CExpert are doing all the job in OnTick() (and other trade functions) using the data initialized in OnInit().

Oh really?, Good Lord!  I believe YOU....I have to, as there really no other way.

So basically we have data stored in ExtExpert object which is of CExpert class type -- so all the variables in this class are assigned respectively, these data processing all done in OnInit(), just ONCE.

Then, with a single ExtExpert.Ontick() ---> which has that Processing() in it.... the EA is beating with every new tick.

I think I am slightly better at this now... thanks enivid


 

 

why do not you trace the code of ExtExpert.xxxxxxxx ? all in there.

these codes os only a frame. 

 
DxdCn:

why do not you trace the code of ExtExpert.xxxxxxxx ? all in there.

these codes os only a frame.

Yes, I did. A dozen times. 

I already somewhat understood what's happening.  Thx to all who help.. this thread is solved ( I think).


Reason: