---
title: "MetaTrader 5 build 2980: Push notifications for trade operations - Release Notes"
description: "If a Take Profit triggers on the server while your computer is turned off, you will receive a notification about a closed position from... - Release Notes"
image: "https://www.metatrader5.com/c/17/0/terminal-1__52.png"
url: "https://www.metatrader5.com/en/releasenotes/terminal/2199"
---

# MetaTrader 5 build 2980: Push notifications for trade operations

## If a Take Profit triggers on the server while your computer is turned off, you will receive a notification about a closed position from the server

18 June 2021

### Terminal

1. Added ability to receive push notifications from the server. You will be notified of executed trading operations even if your terminal is closed.

   ![](https://www.metatrader5.com/c/17/0/terminal-1__52.png)

    In earlier versions, [notifications on a mobile device](https://www.metatrader5.com/en/terminal/help/startworking/settings#notifications) could only be delivered from the trader's desktop terminal. Upon the execution of a trading operation, the terminal sent the relevant notification to MetaQuotes ID specified in settings. Notifications could only be sent from a running terminal. This requirement has been lifted. If a Take Profit triggers on the server while your computer is turned off, you will receive a notification about a closed position from the server. To start receiving notifications from the server, you should:

     - Have a real account as server notifications do not work for demo accounts
     - Install MetaTrader 5 for [iOS](https://www.metatrader5.com/en/mobile-trading/iphone) or [Android](https://www.metatrader5.com/en/mobile-trading/android) on your smartphone
     - Open the Messages section in the mobile terminal, find your [MetaQuotes ID](https://www.metatrader5.com/en/mobile-trading/iphone/help/settings_messages#my_id) and specify it in the desktop terminal settings
     - Enable server notifications in desktop terminal settings

   **The availability of server notifications should be provided by your broker** Three notification types are supported: orders, deals and balance operations. When you enable the option, the available notification types will be displayed in the terminal log:

    '1222': subscribed to deals, orders, balance notifications from trade server
2. Updated [MetaTrader VPS](https://www.mql5.com/en/vps) Showcase. The VPS section has become more convenient:

     - The interface adapts to any screen width.
     - The showcase takes up less space vertically to fit in the workspace.
     - The necessary information appears only when it is needed. Payment details only appear after you select a payment plan.

   ![](https://www.metatrader5.com/c/17/0/terminal-2__44.png)

   Terminal: In the Strategy Tester panel, added commands for quick switching to MQL5 services and to the Toolbox window. The commands are only displayed in the Overview section, while in other tabs the panel is used to manage testing.

   ![](https://www.metatrader5.com/c/17/0/terminal-3__36.png)
3. Added saving of window states for MQL5 services. If you leave the Market open before closing the terminal, the relevant window will be open the next time you launch the terminal.
4. Fixed periodic synchronization of the MQL5 account state. Signal copying could fail under certain conditions due to an error.
5. Fixed display of a selection of recommended Market products.
6. Fixed signals context menu in the Navigator. You can use the menu to view the signal to which you are subscribed or to unsubscribe from a signal.

### MQL5

1. Fixed "-" operator error in the implementation of complex numbers in the Standard Library (file MQL5\Include\Math\Alglib\complex.mqh).
2. Now you can use any expressions in initialization sequences, not just constant ones. This improves usability and compatibility with C ++ code.

   ```
   struct POINT   {    int x,y;   }; int GetYFunc(y)   {    return(y * y);   } void SomeFunction(int x1,int x2,int y)   {    POINT pt={ x1+x2, GetYFunc(y) };    ProcessPoint(pt);   };
   ```
3. Fixed an error which occurred during the compilation of [union](https://www.mql5.com/en/docs/basis/types/classes#union) with huge data arrays.
4. MQL5: Fixed operation of the [StringToCharArray](https://www.mql5.com/en/docs/convert/stringtochararray) function. Now it converts the entire passed string to a Char array instead of stopping at the first terminating [null character](https://en.wikipedia.org/wiki/Null-terminated_string).
5. Added control for the explicit presence of a constructor call for classes/structures if their parent class does not have a default constructor.

### MetaEditor

1. Added display of a call place for inline functions in the [profiler](https://www.metatrader5.com/en/metaeditor/help/development/profiling) report. In the below example, the func(); call is now highlighted as follows:

   ![](https://www.metatrader5.com/c/17/0/metaeditor-1__9.png)

    The func function itself is not highlighted since its full code is placed in OnStart.
2. Added ability to create empty [projects](https://www.metatrader5.com/en/metaeditor/help/mql5storage/projects). This is a useful feature for non-standard development projects with specific file structures for which the default templates are not suitable.

   ![](https://www.metatrader5.com/c/17/0/metaeditor-2__9.png)

    An empty settings file "mqproj" will be created in this case. Source code files should be created manually.
3. Implemented faster launching of MetaEditor.
4. Fixed data display in the list of observed expressions during [debugging](https://www.metatrader5.com/en/metaeditor/help/development/debug). The list could display incorrect variable values under certain conditions.
5. Fixed automatic addition of ".py" extension to [Python](https://www.metatrader5.com/en/metaeditor/help/development/python) script files created using the MQL Wizard.

Updated documentation.

**Earlier publications:**

- [MetaTrader 5 Build 2940: Positioning of MQL5 Services showcases in the workspace and updated design](https://www.metatrader5.com/en/releasenotes/terminal/2196)
- [MetaTrader 5 build 2875: Improvements and fixes](https://www.metatrader5.com/en/releasenotes/terminal/2190)
- [MetaTrader 5 build 2860: Improvements for Wine and SQL integration enhancements](https://www.metatrader5.com/en/releasenotes/terminal/2188)
- [MetaTrader 5 build 2815: Access to the Depth of Market from Python, revamped Debugger, and Profiler improvements](https://www.metatrader5.com/en/releasenotes/terminal/2186)
- [MetaTrader 5 build 2755: Popup Prices window and Debugger improvements](https://www.metatrader5.com/en/releasenotes/terminal/2180)
