Here I’ve wrote a python script using MQL5 to get total history order from MetaTrader5. here’s the code, what my requirement is I need to get from_date and to_date parameter from user. so I passed these parameter from Postman Using POST request.here is the payload And it says, history_orders = mt.history_orders_total(datetime(fromDate), datetime(toDate)) TypeError: an integer is required (got type str)
Tag: mql5
sending order to open a position via MetaTrader5 python module and nothing happens
I followed Metatrader5 python documentation and this answer in stack overflow I try to open a sell position: Nothing happens and there is no reaction in applications terminal. I also check Trade and History section in Metatrader5 to find some related information but I find out nothing. how can I monitor the logs in Metatrader5 to debug the code and