Download MetaTrader 5

Only add lines to Onint or Ondeinit usintg includes

To add comments, please log in or register
Register at MQL5.community and leave your comments!
Luis
226
Luis 2015.02.21 17:08 

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
14503
whroeder1 2015.02.21 17:32  
Of course.
Ex Ovo Omnia
3149
Ex Ovo Omnia 2015.02.21 18:56  
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