MT5-TradingToolCrypto
                                
                                 MT5-TradingToolCrypto copied to clipboard
                                
                                    MT5-TradingToolCrypto copied to clipboard
                            
                            
                            
                        Canceling orders with ID's
bool MEXC_Cancel_Trade(string sym, string orderId, string clientOrderId) export
input a string
bug in logic (check binance api library ) if(orderId>0)
if(orderId!="") || if(clientOrderId!="")
Orders
- call exchange rest api directly.
- 
- within function call
a. save the order information to global variablesb. create text object label, and buttons to close the orders from the chart.
 
- within function call
a. save the order information to 
- the creation of chart_objects are within the open source file ExchangeHelper.mqh
- the creation of global_variables exist within the *Exchanges.ex5 libraries.
- exchange orderID : order_idchart object
- exchange clientOrderID : client_order_idchart object
- when canceling orders, either the client or order ids can be used. if client_order_idexists, then use this as default else use theorder_id.
- a client_order_idis created automatically when using the CBP Framework.