CLOSE Chart when Target profit for current pair achieved

 

Hi,

Is it possible TO CLOSE CHART when TARGET PROFIT ACHIEVED for today? If there are 6 charts opened and out of 6 charts, One Pair has been achieved TARGET PROFIT ( for that pair only), can it be closed programatically?

 

Yes you can use 

ChartClose();
Reason: