There are different ways, but this - ChartSetSymbolPeriod(0, NULL, PERIOD_H4); - added to custom code when you want the timeframe changed should do it. So when you have worked out the drawdown.