Expert Adviser draw in chart

 

How can I do the EA draw in chart using a function?


I want to get to this here: 


lineinchart

 
You don't. There are no buffers in EAs.