Download MetaTrader 5

Can the int Init() function be called from the rest of the functions in the program?

To add comments, please log in or register
macpee
487
macpee  
Can the int init() function be called from the rest of the functions in the program? Thank you in advance.
whroeder1
15351
whroeder1  

Can it? Sure, it's a function just like any other. I did it here How to Draw Cnadle chart in indicator_separate_window ? (XDXD) - MQL4 forum

Should it? Probably not for style. I'd create an second function and have init do only what init should, and have it all the second one.

To add comments, please log in or register