Store values used by a user of an indicator

 

Greeting,

Given MQL5 (or 4),  is there a way to store the values choosen by a user so the next time my indicator is used those values are in the input form?

Hope to hear, Adriaan.

 
Adriaan Abraham SlingerlandGiven MQL5 (or 4),  is there a way to store the values choosen by a user so the next time my indicator is used those values are in the input form?

In the actual input fields? No!

But the parameters set by the user, can be saved to a file and loaded back (by the user).



Another option is to save them to Global Terminal Variables and loaded programmatically the next time, ignoring the inputs set in the Inputs window.

Documentation on MQL5: Global Variables of the Terminal
Documentation on MQL5: Global Variables of the Terminal
  • www.mql5.com
There is a group set of functions for working with global variables. Global variables of the client terminal should not be mixed up with variables...
 
Fernando Carreiro #:

In the actual input fields? No!

But the parameters set by the user, can be saved to a file and loaded back (by the user).



Another option is to save them to Global Terminal Variables and loaded programmatically the next time, ignoring the inputs set in the Inputs window.

Thank you Fernando. Going to work on User Instructions :-)