The solution that zznbrm provides you (1 year later... sorry to be so late ;-) ) works fine... but if you really want that 'an Expert Advisor automatically start a script' I will recommend you to use "include" and put "shared" functions in a ...