Apply Indicator to certain chart id with code

 
I am trying to write code for applying indicators to a chart on MQL4 and have trouble with it, for MT5 we have ChartApplyIndicator()...how can one go about it? Thanks in advance