Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 4 Scripts | InitAllIndicators.mq4 | MQL5 Code

RobotFX curates the best open-source MetaTrader code to inspire your trading automation.

Image for InitAllIndicators.mq4

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".

Never miss news-driven moves – use the News OCO Expert Advisor to place pending orders safely around economic releases. Find out more.

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:


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.


Thanks for reading. Discover premium MetaTrader solutions at RobotFX.

8370

Best MetaTrader Indicators + Profitable Expert Advisors