permanent array

 

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!

 
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.
 

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.
 
thx!
Reason: