Forum

How to close all Pending orders in same time in Mt5

Hello, I would like to close all pending orders in same time. i tried with open positions and succeeded but dont now how to do with open pending orders. this is my code for open positions: num_positions=mt.positions_total() symbol_info=mt.symbol_info( "EURUSD" ) symbol= "EURUSD"

How to close Pending orders in Mt5 with python

Hello, I would like to close all pending orders in same time. i tried with open positions and succeeded but dont now how to do with open pending orders. this is my code for open positions: num_positions=mt.positions_total() symbol_info=mt.symbol_info( "EURUSD" ) symbol= "EURUSD"

Python program stopped buying

Hello, I have constructed a program for automated trading . It worked without a brake for several days and without change. Today it stopped buying and selling ( short position ). On the code it's everything ok, and on my trading account there are enough money so to trade. What could it be? Ty

[Python] How to limit order requests

Hello, I'm trying to automate trade Eurusd but I can't figure out how to limit order requests. When the program recognize "price in y", it buys as much as possible but i would like that it buys just once. Here is the code symbol= "EURUSD" volume= 0.01 price=mt.symbol_info_tick( "EURUSD" ).ask

[Python] comment=invalid stops

Hello, I'm trying to automate trade Eurusd but every time I send a request it doesn't execute. The error comment is invalid stops . Here is the code: symbol= "EURUSD" volume= 0.01 price=mt.symbol_info_tick( "EURUSD" ).ask sl=price- 0.0001 x=mt.symbol_info_tick( "EURUSD" ).ask y= 1.07234 , 1.07230