Import ticks to custom symbol programmatically

 

I created a custom symbol based on a "regular" symbol for testing reasons.

Up to now I'm importing ticks periodically manual from the regular to the custom symbol.

My goal is to import ticks programmatically in the onInit function of the expert advisor.

I had a look at several sources but couldn't find an approach.

Is it possible to import ticks programmatically? Does anybody have an approach of how to do this?