Download MetaTrader 5

Only add lines to Onint or Ondeinit usintg includes

To add comments, please log in or register
Luis
226
Luis  

I dont think this is possible but:


Can you add lines, say at the beggining or the end of Oninit function, via includes?


Meaning: You have an EA with an include named <include.mqh>. Is it possible that inside the code of the include file modify the Oninit function of the EA?


Thank you

This forum is awesome!

BeLikewater

whroeder1
16108
whroeder1  
Of course.
Ex Ovo Omnia
3357
Ex Ovo Omnia  
BeLikeWater:

I dont think this is possible but:


Can you add lines, say at the beggining or the end of Oninit function, via includes?


Meaning: You have an EA with an include named <include.mqh>. Is it possible that inside the code of the include file modify the Oninit function of the EA?


Thank you

This forum is awesome!

BeLikewater

Just a note.

The file content of the included file is inserted only once, in its first #include statement currently, while up to the build 509 the content was inserted at every #include statement.

To add comments, please log in or register