MetaEditor Help

Navigator

Navigator

Navigator window allows you to work with files and folders inside the trading platform's /MQL4 or /MQL5 directories. They store trading robots, indicators and scripts, as well as source code files and other data for programming on MetaQuotes Language. Press Ctrl+D or execute Navigator Navigator command of the View window or in the Standard toolbar to show/hide the window.

The window resembles a file manager displaying folders and files as a tree list:

Navigator

A similar structure is displayed in the Navigator window of the trading platform. For example, if you create your indicator in the MQL5\Indicators\MyIndicator\ directory, you can launch it in the trading platform from the same directory.

To view the folder contents or open a source file for editing, double-click on an appropriate element in the Navigator. To re-locate a folder/file, select it and drag to a necessary directory while holding the left mouse button (Drag'n'Drop).

External changes to directories and files (via Windows Explorer) are also displayed in the Navigator window.

Project

A separate Navigator tab is designed for managing projects. All used files are arranged into various categories:

  • Dependencies – include files. These are files with the source code, which are used in the project. For example, dependencies may include standard library files.
  • Headers – header files. Such files contain custom identifiers, macros, structures and other constructions used in the project.
  • Sources – source code files of the project.
  • Resources – resource files, such as images, sounds, etc.
  • Settings and files – sets of input parameters (*.set) and other files.

Read more about how to work with projects in the separate section.

Context menu

The following commands can be performed from the context menu:

  • Open Open – open a selected file for editing. The same action can be done by double clicking on the file or by pressing Enter.
  • Open Folder Open Folder – open a selected folder or a folder containing a selected file.
  • New File New File – create a new MQL4/MQL5 program using MQL4/MQL5 Wizard.
  • New Project New Project – create a new project.
  • New Project from Source New Project from Source – create a new project from the selected source file.
  • New Folder New Folder – create a new folder in the current directory. The same action can be performed by pressing Insert.
  • Rename Rename – rename a selected file or folder. The same action can be performed by pressing F2.
  • Delete Delete – delete a selected file or folder. The same action can be performed by pressing Delete.
  • Refresh Refresh – refresh the Navigator window. If files or folders are copied to one of MQL4 or MQL5 sub-folders, these changes are automatically displayed in the Navigator window. However, you can manually re-read the file structure by executing this command or by pressing F5.
  • Compile Compilecompile a selected file. Executing this command for a folder results in compilation of all files contained in it.
  • Show All Files Show All Files – show/hide all files. If the option is disabled, the source code (*.MQ4, *.MQ5, *.MQH, *.CPP and *.H) and text files (*.TXT and *.CSV) are displayed in the Navigator, while executable ones are hidden.
  • Activate MQL5 Storage Activate MQL5 Storage – start using your personal MQL5 Storage for storing source codes.
  • Update from Storage Update from Storagereceive the latest data revision from Storage.
  • Commit to Storage Commit to Storagesend the current data changes to Storage.
  • Add File or Folder Add File or Folderadd a local folder or a file to Storage. A folder or a file is added locally. Execute the Commit to Storage command to insert changes to Storage.
  • Delete File or Folder Delete File or Folderdelete a folder or a file from Storage. Deletion is performed locally (a file or a folder is deleted physically). Execute the Commit to Storage command to insert the changes to Storage.
  • Difference of Versions Difference of Versionssee the current changes in a file compared to the latest revision received from Storage.
  • Revert Changes Revert Changes – revert the changes made in a local copy of a file.
  • Show Storage Log Show Storage Log – show Storage log.