Unfortunately, How to remove trade history of the current chart is unavailable
The code has been removed. However, the huge code base still remains at your disposal allowing you to find a suitable code.
Check out other MetaTrader 5 codes:
Geometric Moving Average
MQL5 version of geometric moving average.
AUTO PIVOTS for MT5
This is a classic pivots indicator redone for MT5
Custom Bollinger Bands
Standard Bollinger Bands indicator with averaging features added
Manual Backtest Bar Replay Simulator
A simple indicator which may help you in manual backtest by just moving a vertical line to show hide bars.
A BETTER RSI
Relative Strength Index that completely removes noise, works on all markets!