Only add lines to Onint or Ondeinit usintg includes

 

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

 
Of course.
 
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.

Reason: