The beta version of the updated MetaTrader 5 platform will be released on Friday, May 17, 2019. We invite traders to join the new version testing in order to evaluate updated platform features and to help developers fix errors.
To update the MetaTrader 5 platform up to build 2055, navigate to Help \ Check Desktop Updates \ Latest Beta Version:
The final build of the new MetaTrader 5 platform will be released after the public beta testing.
MetaTrader 5 Client Terminal build 2055
Python is a modern high-level programming language for developing scripts and applications. It contains multiple libraries for machine learning, process automation, as well as data analysis and visualization.
MetaTrader package for Python is designed for efficient and fast obtaining of exchange data via interprocessor communication directly from the MetaTrader 5 terminal. The data received this way can be further used for statistical calculations and machine learning.
The update is available through the LiveUpdate system.
On the preamble of one of my EA, there is the following line:
sinput datetime CompileTime = __DATETIME__;// Compile datetime
I found an issue with the TimeCurrent call within the Strategy Tester (This never happens on the live charts)
At the beginning of each bar the TimeCurrent is up to 30 seconds behind the time of the new bar (which means it isn't being kept up to date with the latest simulated time event)
#property indicator_plots 0
int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time,
const double &open,
const double &high,
const double &low,
const double &close,
const long &tick_volume,
const long &volume,
const int &spread)
if (TimeCurrent() < time)
Print("WARNING TimeCurrent()=", TimeCurrent(), " is less than time=", time);
2019.05.29 09:33:31.229 2019.05.27 01:30:00 WARNING TimeCurrent()=2019.05.27 01:29:30 is less than time=2019.05.27 01:30:00
2019.05.29 09:33:31.229 2019.05.27 02:00:00 WARNING TimeCurrent()=2019.05.27 01:59:59 is less than time=2019.05.27 02:00:00
This wasn't an issue a year ago. This regression may have been introduced in the Feb 2019 release
Regarding to 1. Terminal: Added new API enabling request of MetaTrader 5 terminal data through applications using the Python language.
@MetaQuotes Software Corp.
Is there any plans to develop more functions and features for python api? Eg. trading? Now is just acess to the feed. Or this is all what we can have?
Why @MetaQuotes Software Corp. doing some new API and not emulating the curent MQL4/5 API? Eg.
from MetaTrader5 import *
from MetaTrader5 import Trade.PositionInfo
from MetaTrader5 import Trade.Trade
from MetaTrader5 import ctp as MT5
from MetaTrader5 import Feed
ot = MT5.Trade.OrdersTotal()
for x in ot:
open = Feed.Symbol("EURUSD").open
Can this be related to tester_everytick_calculate ?
Why we can't remove from top belt the "Search icon", "MQL5 Community link", "Acheviements" ?
It wasting workspace in case that are not used and need in laptop for more tools.
I tried this setting, but it made no difference
tester_everytick_calculate is forcibly enabled in "Visual Mode". You may have noticed that "Visualisation" is automatically selected when testing indicators, so I doubt the optimization is in play
It's possible the code changes for tester_everytick_calculate were responsible for this regression, but that's just a guess