Forum

Is there a way to connect to a calendar website to track high impact news and turn the EA on/off

I had a look and it seems it's possible but a lot of the ways I found connected to forex factory but because they have some kind of firewall in place it stopped most EA's that do this from working. Is there any other methods? I just want the EA to pull the news data and be able to turn on/off the

How to close a position from a webhook

Hi, I can't seem to figure out how to add the ability to close a trade to my bot. I am using python. Here it shows SL and TP https://www.mql5.com/en/docs/integration/python_metatrader5/mt5ordersend_py Which I am using, but I cannot see anything related to closing a trade. Right now my bot receives a

My command prompt seems to crash/freeze after a certain amount of time being open

So I have it open accepting JSON messages 24/7 but it seems after being open for a certain period of time (this time it was about 1 week exactly) it just stops accepting new messages until I maximize the command prompt window, then suddenly all the previous messages it should have accepted come

How do I check my order has gone through and if not, do the order again?

I have IOC market orders set up with a sl and tp in place. The sl and tp are based on a point amount not a set price. So it just ads a sl of 100 points for example from wherever the order entry is. Sometimes my orders don't go through. They get rejected with no information as to why. The only thing

What could cause this error retcode: 10006

Hi, My orders go through almost all the time but one order did not overnight and the only thing it says is Request rejected . Along with a retcode of 10006. It doesn't offer anymore details on it. I just tried another order and it went through fine, so I'm a little puzzled by this? I recently went

Is it possible to Export trades from MT5 to Excel in real time

Hi, How would I go about connecting MT5 to Excel and exporting trades in real time to Excel automatically? Thanks