My local MT5 installation was just updated to build 2361. After that, tests with my EA started failing on placing new orders, always with "not enough money" error. Why this is happening? The exact test with the same EA was working until yesterday
I´m trying python package but got I problem right in the first line of my script. After importing the necessary packages I´m calling MT5Initialize(), but I have more than one MT5 installed in my computer and the one being loaded is not the one I
I have an EA that I already use both on demo and production accounts. The EA works as expected on those accounts. However, I´m having issues with strategy tester. On ST the trade results are not accounted. All the trades appear in the history tag
Weird behavior here. CiLow.GetData( 0 , Bars ( _Symbol , _Period , initialTime, TimeCurrent () ), buffer ); The previous call, when run in back tests, returns a buffer with n elements, where the first of these elements is the low of bar at
After accepting MT5 advice to upgrade to version 5.00 build 1629 (14 jul 2017) my bot stopped working. Compilation goes fine, but, after a successful order execution , HistoryOrdersTotal() now returns zero instead of 1, that was the correct
Suppose a situation where the EA places an order with lot 2. If this order is partially executed then a full execution should produce two deals. The first one is notified in the OnTrade() method as being related to an order with status
CExpert has some event handler methods, namely TradeEventPositionOpened, TradeEventPositionVolumeChanged, TradeEventPositionModified, among others. The question is: when these methods are called? Taking TradeEventPositionOpened as example, in my
I'm using standard library 's base classes for creating an EA. After opening a new position, I'd like to post some pending orders for partial TPs, as well as a stop order. The doubt is what is the more elegant way of doing this using the standard