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
Alternative:   WPR with CCI - indicator MetaTrader 5