Init All Indicators script for MetaTrader 4

If it is necessary to reinitialize an indicator, a user usually calls to the window of the indicator’s properties in the the current chart window and presses “OK”.

In case there are a lot of indicators to be reinitialized on the screen, the manual reinitialization can take a long time.

The suggested script is intended for automating the procedure of the indicator reinitialization. When it is run, the windows of properties are called sequentially by the list of indicators, and pressing “OK” is emulated. The window of the list is closed as soon as the working of the script is finished.

Disadvantage: The called windows will flicker on the screen during the reinitialization.

Note: You should allow function calls from the system DLL for script to work: Tools -> Options -> Expert Advisors -> Allow DLL imports. It may be necessary for slow computers to increase the latency period of the pop-up windows. To do it, find the ‘#define PAUSE 100 ‘ entry and increase the value. You can completely remove this pause for fast computers, comment the Sleep() function in two places.

Free Download

Init All Indicators script for MetaTrader 4

MT4 Forex Robot Characteristics

Platform: Metatrader 4

Type: Script

Time frames: any.

How to install Screenshot Script in MetaTrader 4 / MT4:

Copy and paste the InitAllIndicators.mql4 into the MQL4 Scripts folder of the Metatrader 4 trading platform.

Restart your MetaTrader 4 application (assuming it’s currently open) … or Launch your MetaTrader 4 application

You can access this folder from the top menu as follows:

File > Open Data Folder > MQL4 > Script (paste here)

On the left hand side, look for the “Navigator” window and under the “Common” tab, look into the “Scripts” section

Locate the indicator which you have just downloaded into the folder stated in Step 1

Drag (Click and drag) the Script onto the chart (when you want the task to be performed)

your task should now be executed…

Leave a Comment