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

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