On the preamble of one of my EA, there is the following line:
sinput datetime CompileTime = __DATETIME__;// Compile datetimeIt does not update it's display on Strategy Tester. Is it a bug?
![Build 2045 strange behavior of Tester Build 2045 strange behavior of Tester](https://c.mql5.com/36/26/build-2045-strange-behavior-of.jpg)
- 2019.05.24
- www.mql5.com
On the preamble of one of my EA, there is the following line:
It does not update it's display on Strategy Tester. Is it a bug?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 strict #property indicator_chart_window #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[]) { #ifndef __MQL4__ ArraySetAsSeries(time, true); #endif if (TimeCurrent() < time[0]) { Print("WARNING TimeCurrent()=", TimeCurrent(), " is less than time[0]=", time[0]); } return rates_total; }
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[0]=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[0]=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.
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: Trade.Trade.OrderSelect(x,SELECT_BY_POS,MODE_TRADES) open = Feed.Symbol("EURUSD").open[1] Print(open)
![Welcome to Python.org Welcome to Python.org](https://c.mql5.com/36/26/welcome-to-python-org__2.png)
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)
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[0]=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[0]=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
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
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
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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.
Connection
pip install pytz
Functions
The need for data verification is determined by the broker. If the option is enabled, confirmation codes are automatically sent to the trader during account request and special code fields appear in the dialog box:
Confirmation codes are valid for several minutes. If the code is not entered in the field within this time, the trader will need to repeat the procedure.
Before sending codes, the system checks whether the specified phone/email was previously confirmed. If the trader has already passed verification from his or her computer, account will be opened without additional confirmation. Thus, there will be no additional difficulties for traders during account request.
How it works
After you authorize with your PayPal account when making a purchase, you will be asked to allow further payments to our company:
Confirm this option, and you will be able to perform further purchases with one click, by pressing the previously saved account button:
If you click "Cancel and return to MetaQuotes Software Corp.", you will make payments in a normal way by entering PayPal account details manually for each purchase.
You can always remove your PayPal account link.
We have introduced a large number of hidden improvements and fixed errors to optimize the Strategy Tester operation. The update enables much faster testing of some of the task types and higher operation stability. Major improvements include:
Operations with frames
Operations with frames on local, network and cloud agents have been optimized. Such operations are now processed faster and are never skipped.
Distribution of tasks to agents
The tester can now redistribute tasks to agents during the optimization process. If a new agent has become available (or one of the previously used ones has been released), the tester automatically creates a new package of tasks using those which were earlier distributed among other agents. Tasks can also be redistributed if slow agents are detected. Tasks of such agents are sent to other agents to complete the optimization faster.
Task distribution in math calculation mode has become mush faster.
Optimization statistics in the Journal
Optimization logging has been extended: it includes detailed statistics related to the MQL5 Cloud Network use, to enabling and disabling of cloud agents, among others.
Operation in full optimization log mode
For optimal resource consumption, not all messages from agents are written to the tester log. To display all logs, you can enable the "Full optimization logs" option using the tester log context menu. Previously, this mode significantly slowed down the optimization process. Now the calculation time is not affected.
MQL5 Cloud Network
Optimized operation of cloud testing agents. Now computation tasks are distributed more efficiently.
The economic calendar is available in desktop terminals and websites, as well as on mobile devices. The application can be opened using the Calendar context menu in the terminal:
Select your platform and download the Tradays apps:
In addition to calendar functions available in the desktop platform, the mobile version provides event reminders and access to a complete history of indicators in the form of charts and tables.
Changes concern import of ticks performed via the terminal interface, as well as the update of ticks performed from MQL5 applications using the CustomTicks* function. Any changes in tick data lead to recalculation of corresponding 1-minute bars of the custom symbol.
The update is available through the LiveUpdate system.