If you wish to code in MQL5, you can set a global variable and save it to MetaTrader5 (MT5). Global variables are variables that can be used across multiple programs including Expert Advisor (EA) and indicators. Local variables on the other hand get reset every time MT5 reboots, so use global variables if you wish to save the data for later on. Here we'll take a look at how to set global variables on MT5.
Click "Tools" in the menu and select "Global Variables".
To add a global variable, click "Add" and set the variable name and value.
To edit a global variable, double-click the item you wish to change and edit the variable name or value.
To delete a global variable, select the variable you wish to delete and click "Delete".
Manual production consultant, MBA
Nakamaru is a manual production consultant at FINTECS, a company that specializes in creating manuals for their clients.
With a wide range of experience from fintech to entertainment, he presents what user-friendly manuals should be like.
He works with numerous large corporations as an external manual production project manager.
Systems engineer, MetaTrader administrator
After graduating from Computer Science at the Uninove, Brazil, in 2014, he has worked on various systems development projects.
He participated as a developer in the launch of forex services in 2019. Since then, he has also been involved in the development of MetaTrader plugins and APIs. He is certified by MetaQuotes as a MetaTrader5 Administrator and active in consulting and advisory as well.
All information and content provided on this website is provided for informational purposes only and is not intended to solicit any investment. Although all efforts are made in order to ensure that the information is correct, no guarantee is provided for the accuracy of any content on this website. Any decision made shall be the responsibility of the investor and Myforex does not take any responsibility whatsoever regarding the use of any information provided herein.
The content provided on this website belongs to Myforex and, where stated, the relevant licensors. All rights are reserved by Myforex and the relevant licensors, and no content of this website, whether in full or in part, shall be copied or displayed elsewhere without the explicit written permission of the relevant copyright holder. If you wish to use any part of the content provided on this website, please ensure that you contact Myforex.