@khacdiepvnc if you use MT5 to add an indicator on the chart in automatic mode, in on init tab open a custom mql block and copy paste this code :
long handle=ChartID();
if(!ChartIndicatorAdd(handle,1,v::atrcurrent))
PrintFormat("Failed to add ATR indicator on %d chart window. Error code %d",
handle,GetLastError());
if(!ChartIndicatorAdd(handle,0,v::imacurrent))
PrintFormat("Failed to add EMA indicator on %d chart window. Error code %d",
handle,GetLastError());
First "if" is for a subwindow indicator like ATR in this case, second "if" is for an indicator in main chart like EMA.
v::atrcurrent and v::imacurrent you have to replace them with the handles of the indicators you want to use.