Can we add a script to a chart from an Advisor expert?

 

Is it possible to automatically add a script to a chart using an Expert Advisor?

if yes, what functions should I use?