One click close – EA MetaTrader 4

The code is used to demonstrate how one can create a button on the chart and assign a function to it.Β 

The code is used to delete all orders after clicking on the button.

The deletion takes care of various scenarios and shows error messages.

πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks