Download MetaTrader 5

permanent array

To add comments, please log in or register
How to buy a product in MetaTrader AppStore? Read the article!
APeng
359
APeng 2013.12.11 17:51 

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
30734
Alain Verleyen 2013.12.11 17:54  
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 2013.12.11 17:56  

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 2013.12.11 17:58  
thx!
To add comments, please log in or register