New MetaTrader 5 Platform Build 4350: More analytical objects in the Web platform and Welcome page in MetaEditor
massive performance issue in MT5 still NOT fixed in this release!
after release 4232 Metertester have a very big performance issue in case of testing multiple symbols with local agents.
since then, backtesting takes tones of time - in another words: backtesting is still unusable!!
I agree, the releases commes to fast with less quality!!!
massive performance issue in MT5 still NOT fixed in this release!
after release 4232 Metertester have a very big performance issue in case of testing multiple symbols with local agents.
since then, backtesting takes tones of time - in another words: backtesting is still unusable!!
I agree, the releases commes to fast with less quality!!!
My MT5 just updated to version 4331 and now Metatrader 5 switches off "Use Local Network Farm" when the optimizer starts and that makes all "Local Network Farm: #agents" agents go to "not used". I can manually switch it back on and that puts all of the "local network farm: #agents" agents to ready but they remain in ready and their % never changes from ready. All the local: #cores are still running normally. It just won't initialize any of my local network farm agents. I started by downloading the latest optimizer version 4330 from Metatrader website. It's not the firewalls and it happens even after I re-added them new using the "Scan Network" option. Additionally, I've powered down and restarted everything and it still is non functional. Thanks for any assistance.
I found a bug in the latest Mt5 version.
When you loop though deals in OnTester then deal open time ( HistoryDealGetInteger(deal_ticket, DEAL_TIME) ) is the only function that don't returns a value when called in OnTester. When I run the same loop in OnTick, then HistoryDealGetInteger(deal_ticket, DEAL_TIME) returns the correct open time value.
code:
long position_ticket = HistoryDealGetInteger(selected_ticket, DEAL_POSITION_ID); HistorySelectByPosition(position_ticket); double order_open_price = 0.0; double order_close_price = 0.0; double order_lots = 0.0; int order_type = 0; datetime order_close_time = 0; datetime order_open_time = 0; double order_commission = 0.0; long order_magic_number = 0; double order_profit = 0.0; double order_stop_loss = 0.0; double order_swap = 0.0; string order_symbol = ""; double order_take_profit = 0.0; ulong order_ticket = 0; string order_comment = ""; for (int t = HistoryDealsTotal() - 1; t >= 0; t--) { ulong deal_ticket = HistoryDealGetTicket(t); if (HistoryDealGetInteger(deal_ticket, DEAL_ENTRY) == DEAL_ENTRY_IN) { order_open_price = HistoryDealGetDouble(deal_ticket, DEAL_PRICE); order_type = trade_deal_hist.DealType(); // order_open_time = trade_deal_hist.TimeMsc(); order_open_time = (datetime)HistoryDealGetInteger(deal_ticket, DEAL_TIME); order_magic_number = trade_deal_hist.Magic(); order_stop_loss = HistoryDealGetDouble(deal_ticket, DEAL_SL); order_symbol = trade_deal_hist.Symbol(); order_ticket = position_ticket; order_comment = HistoryDealGetString(deal_ticket, DEAL_COMMENT); } if (HistoryDealGetInteger(deal_ticket, DEAL_ENTRY) == DEAL_ENTRY_OUT) { order_close_price = trade_deal_hist.Price(); order_lots += trade_deal_hist.Volume(); order_close_time = trade_deal_hist.Time(); order_take_profit = HistoryDealGetDouble(deal_ticket, DEAL_TP); order_profit += trade_deal_hist.Profit(); } order_commission += trade_deal_hist.Commission(); order_swap += trade_deal_hist.Swap(); }
I found a bug in the latest Mt5 version.
When you loop though deals in OnTester then deal open time ( HistoryDealGetInteger(deal_ticket, DEAL_TIME) ) is the only function that don't returns a value when called in OnTester. When I run the same loop in OnTick, then HistoryDealGetInteger(deal_ticket, DEAL_TIME) returns the correct open time value.
Please format your code properly when you post code.
Which build ?
sorry, I'm not sure what you mean by format properly.
Build 4330

- www.mql5.com

- 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 MetaTrader 5 platform update will be released on Friday, May 31, 2024.
In this update, we have introduced new analytical objects to the web platform. Now, you can utilize the ruler to measure time and prices, draw shapes (rectangle, ellipse, triangle, and circle), and add labels to your charts.
To assist trading app developers, we have included a welcome page in MetaEditor. It will help beginners to delve into a plethora of educational materials while assisting existing developers in staying informed with the latest news and in monitoring their sales.
In addition, AI Assistant's code completion feature now supports the latest ChatGPT model, GPT-4o.
MetaTrader 5 Client Terminal
Materials for beginners
The "Introduction" section presents educational materials available on MQL5.com: language documentation, books, articles, developer forums and code base library. It also introduces services where you can apply and monetize your knowledge: the applications market, freelance and trading signals.
In the documentation and books sections, you can find a more detailed description of the available learning materials.
Useful features for developers
The "What's New" section offers a collection of essential information to keep developers up-to-date:
Additionally, you will find here a list of recently opened files for quick access.
For users actively selling their applications in the Market, the "My Sales" report offers an invaluable tool for assessing their performance. It provides access to:
MetaTrader 5 Web Terminal
The update will be available through the Live Update system.