Download MetaTrader 5

Global Class instances (to use across EA or script)

To add comments, please log in or register
chinaski
890
chinaski 2013.02.18 23:23 

Hello,

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

Thank you 

phi nuts
2184
phi nuts 2013.02.19 11:27  
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
2184
phi nuts 2013.02.20 13:44  
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