update the prica data for a custom instrument with script

 

Hi , 

is it possible to update the price data for a custom instrument using code instead of manually importing the price data ? 

now when I do it manually the MT5 is hanging and the only solution to get it work again is to reinstall it 

Regards