Download MetaTrader 5

Global Class instances (to use across EA or script)

To add comments, please log in or register
chinaski
922
chinaski  

Hello,

anyone knows how to achieve this: instantiate a custom class object in script1 and use same instance in script2 ?

Thank you 

phi nuts
2181
phi nuts  
chinaski:

Hello,

anyone knows how to achieve this: instantiate a custom class object in script1 and use same instance in script2 ?

Thank you 

I never try this : use import
phi nuts
2181
phi nuts  
phi.nuts:
I never try this : use import

I thing this is what you need to "instantiate a custom class object in script1 and use same instance in script2". Use include, so when you compile the script, the code in include will be merged with your script. 

To add comments, please log in or register