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
Sell your CPU capacity and earn money!
macpee
484
macpee 2016.03.30 16:41 
Can the int init() function be called from the rest of the functions in the program? Thank you in advance.
whroeder1
14532
whroeder1 2016.03.31 12:30  

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