[MT4 Indicator] How to execute a function to all the chart pairs open

To add comments, please log in or register
Naitrisc
15
Naitrisc  

Hi mates,


I have a method that can save the current objects of the chart in a file .csv and another one that can read from this .csv and put it on the chart. This second method is called when the user clicks the key "0". When the key is pressed in the current new chart, all the information contained in the file is loaded. I don't want that the user must change the chart or click any key to actualize. In other words, what I'm looking for is that if I have two different EURUSD charts, independently if they're on the same timeframe or not, and I create a new object in one of the charts (like a line or rectangle), this object should automatically appear in the other char (loaded from the file).

Flux diagram would be:

1. Draw a line in chart 1

2. This line is saved into the .csv file

3. Chart 2 reads automatically the .csv file and draws the line created in chart 1 into chart 2.


Do you know any custom event that triggers this action?


Thx for your time,


Naitrisc.

Keith Watford
Moderator
20526
Keith Watford  

Don't double post.

I have deleted your other topic.

kypa
1079
kypa  
You can draw chart objects directly from one chart to another, no need for a file. For comunicating functions between charts look at Custom Event in Documentation.
To add comments, please log in or register