Preparations
The very first place where everything need to be properly set in order to use MQL Programs is Setting Menu. The menu is available under Ctrl+O combination of keys. Choose Expert Advisors tab. If any settings has not been changed in platform since installation then the window with settings set like below should appear:
In order to use MQL Programs in comfortable way, it is needed to change settings. The changed settings are in red rectangles.

After pressing the OK button, setting should be preserved.
Caution notice
Why you should be extra cautious when running program from unknown source. Why it is better to use scripts from trusted sources. (Like us or our affiliates)
Setting properties of program
Most of the MQL Programs have properties which can be set before starting the program. It’s extremely important to check and understand these properties. Some properties can change totally program behavior. It’s possible, for example, that the expert advisor will enter the position when completely opposite market conditions will appear.
Starting the program
Every program in MQL is attached to the chart on which is started. This means that some properties are taken directly from the chart to which is attached. It also means that user can, and have to choose the chart on which the MQL Program will be executed. I need to note here two important things. Changing the chart (i.e. changing the period of the chart) will cause the restart of the MQL Program. This is imminent and cannot be prevented. There are some scripts that have Instrument and timeframe hardcoded. This means that no matter on what chart such program will be executed. It will do exactly the same work. (first important attention still occurs for this case).
Expert Advisors
Expert Advisor can be run by double clicking selected Expert Advisor in Navigator window in Expert Advisors subtree.

Then the properties window will appear:

The window has got two tabs: “Common” tab and “Inputs” tab. Let’s focus on ”Common” tab. The most important properties which have to be set are market by the red rectangles. User can choose how independent the Expert Advisor is. Top left red rectangle shows option there can be chosen whether the Expert Advisor is able to open Long Positions, Short Positions or both. It is useful if user want to limit the Expert Advisor to only one type of trade. “Allow live trading” is the most important setting for Expert Advisors. When this option is set, then the Expert Advisor is able to manipulate orders (opening orders, closing orders and modifying orders). “Ask manual confirmation” option is additional to the option above. Setting this option forces manual confirmation of the user for each action regarding orders started by Expert Advisor. The program works in advise only mode. Most users turns this option off.
The last option, which is very important for users of commercial Expert Advisors is “Allow DLL imports” option. Setting this option allows Expert Advisor using external libraries named DLL files.

When everything is set and ready to run, then click OK. If everything is in order, then name of the Expert Advisor and smiled face should appear in top-right corner of the chart. If instead of smiled face, sad face is present, then Expert Advisor is working but from some reason it cannot trade. The reason could be unset property “Allow live trading” or closed market for the instrument on chart. If instead of smiles crossed lines has appeared in top-left corner of the chart, then it means that it is needed to turn on Expert Advisors in Option window described earlier.
Indicators
Indicator can be run by double clicking selected Indicator in Navigator window in Custom Indicators subtree. The following window should appear:
If Indicator uses external DLL files, then option Allow DLL imports HAVE TO be turned on.

“Inputs” tab shows parameters that can be set for chosen indicator. The number of settings and the meaning of each one depends on programmer who coded the indicator. For example the indicator which is shown on window above have only one settings – period for which each calculation of indicator is made. The rest of tabs are responsible for visual properties of indicator and therefore will be omitted.
Press OK for starting the indicator. The indicator should be now placed on chart.
Scripts
Indicator can be run by double clicking selected Script in Navigator window in Scripts subtree.
Stopping the program
Each type of program have their own way of stopping execution. The scripts should end their work without user intervention. In case this not happens the script can be stopped by right-clicking the chart to which the script is attached and clicking “Remove Script” option.

In order to remove indicator from the chart user need remove the indicator from the “Indicators List” of the chart. To achieve that right-click on the chart, choose “Indicators List” option. In window which has been shown choose the indicator you want to delete, and click the “Remove” button. Close the window. The indicator should disappear.


In order to stop Expert Advisor user have two possibilities:
- Use “panic button” which turns off all Expert Advisors on the platform:

- Turn off one Expert Advisor by Right-click on chart to which Expert Advisor is attached and choose “Remove” from “Expert Advisors” submenu:
