In this moment I have one function that save all the objects created in a specific time frame in a csv file. This function is called when a user creates / modify / delete an object. And i have another function that can read from the csv and put all the data in the chart. This function is called when I press the key '0'.
I want to have the same effect without clicking any key, in others words: I want that when a user modify for example a chart of GBPUSD, if there is any other chart with the same pair automatically read from file and put the data in the chart.
The diagram of flow could be:
1: Create a line. OK
2: The line is saved in a csv with all of the information. OK
3: If there are any chart of the same pair, call the function to read from file. ?
Thx for your time.