---
title: "Global Variables - Algorithmic Trading, Trading Robots - MetaTrader 5 Help"
description: "Global variables are used for quick transfer of small amounts of data between Expert Advisors , as well as for providing... - Global Variables - Algorithmic Trading, Trading Robots - MetaTrader 5 Help"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
url: "https://www.metatrader5.com/en/terminal/help/algotrading/service_global"
---

[MetaTrader 5 Help](https://www.metatrader5.com/en/terminal/help) → [Algorithmic Trading, Trading Robots](https://www.metatrader5.com/en/terminal/help/algotrading) → Global Variables

# Global Variables

Global variables are used for quick transfer of small amounts of data between [Expert Advisors](https://www.metatrader5.com/en/terminal/help/algotrading/trade_robots_indicators), as well as for providing conflict-free simultaneous operation of several Expert Advisors in the platform. Features of global variables:

- they exist independently from Expert Advisors as distinct from variables declared (including those declared on the global level) in their source texts;
- they are saved between platform starts;
- any floating point number can serve as a global variable;
- they are available within four weeks since their last call from Expert Advisor or modification.

To manage platform global variables click on "![Global Variables](https://www.metatrader5.com/i/help/terminal/en/global_variables_icon.png) Global Variables" in the [Tools](https://www.metatrader5.com/en/terminal/help/startworking/interface) menu or press F3.

![Global Variables](https://www.metatrader5.com/i/help/terminal/en/global_variables.png)

This tab contains the following information:

- Variable— the name of the global variable;
- Value— the value of the global variable. Any floating point number can be used as a global variable value;
- Time— date and time of the last modification or call of the global variable.

To add a new variable, click Add in the right pane. A new row is added to the table, where you can specify the name of the variable and its value. To edit created global variables, double click on the appropriate cell. The time of the last call is automatically updated for such a variable. To delete a variable, select it and click "Delete".

## In this section

- [Expert Advisors and Custom Indicators](https://www.metatrader5.com/en/terminal/help/algotrading/trade_robots_indicators)
- [Where to Find Trading Robots and Indicators](https://www.metatrader5.com/en/terminal/help/algotrading/algotrading_get_ea_indicator)
- [How to Create an Expert Advisor or an Indicator](https://www.metatrader5.com/en/terminal/help/algotrading/autotrading)
- [Strategy Testing](https://www.metatrader5.com/en/terminal/help/algotrading/testing)
- [How the Tester Downloads Historical Data](https://www.metatrader5.com/en/terminal/help/algotrading/test_preparation)
- [Strategy Optimization](https://www.metatrader5.com/en/terminal/help/algotrading/strategy_optimization)
- [Testing Features](https://www.metatrader5.com/en/terminal/help/algotrading/testing_features)
- [Testing Report](https://www.metatrader5.com/en/terminal/help/algotrading/testing_report)
- [Testing Visualization](https://www.metatrader5.com/en/terminal/help/algotrading/visualization)
- [Journal of Testing](https://www.metatrader5.com/en/terminal/help/algotrading/tester_journal)
- [Optimization Types](https://www.metatrader5.com/en/terminal/help/algotrading/optimization_types)
- [Real and Generated Ticks](https://www.metatrader5.com/en/terminal/help/algotrading/tick_generation)
- [MetaTester and Remote Agents](https://www.metatrader5.com/en/terminal/help/algotrading/metatester)
- Global Variables

```json
{"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ {"@type": "ListItem", "position": 1, "item": {"@id": "https://www.metatrader5.com/en/terminal/help", "name": "MetaTrader 5 Help"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "https://www.metatrader5.com/en/terminal/help/algotrading", "name": "Algorithmic Trading, Trading Robots"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "https://www.metatrader5.com/en/terminal/help/algotrading/service_global", "name": "Global Variables"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: Global Variables", "acceptedAnswer": { "@type": "Answer", "text": "Global variables are used for quick transfer of small amounts of data between Expert Advisors , as well as for providing conflict-free simultaneous..." } }] }
```
