Download MetaTrader 5

permanent array

To add comments, please log in or register
APeng
359
APeng  

Is there a way of creating a permantent array? It should not be deleted when the indicator is reset (e.g changing timeframe, restart MT4,...). It is possible to create grafical objects and fit its text with the data but is there another way than this workaround?


Thanks for any help!

Alain Verleyen
Moderator
31620
Alain Verleyen  
APeng:

Is there a way of creating a permantent array? It should not be deleted when the indicator is reset (e.g changing timeframe, restart MT4,...). It is possible to create grafical objects and fit its text with the data but is there another way than this workaround?


Thanks for any help!

Yes by saving the values to a file.
Ubzen
5394
Ubzen  

APeng: Is there a way of creating a permantent array? It should not be deleted when the indicator is reset (e.g changing timeframe, restart MT4,...). It is possible to create grafical objects and fit its text with the data but is there another way than this workaround? Thanks for any help!

Write the values to file. GlobalVariableSet() would also be a good option, except with arrays, you end up creating too many GVs.
APeng
359
APeng  
thx!
To add comments, please log in or register