I've got an EA that looks at several timeframes and currencies and then is supposed to plot trendlines on the stongest trending currency, provided a chart of that currency is open.
I've figured out how to determine if a chart of X currency is open, but how do I get objectcreate() to plot on the specific chart? I see several fuctions pertaining to windows, but none for charts.
Also the help files say that symbol() returns the symbol of the "current chart" but in actuality symbol() just seems to return the symbol that the EA is attached to. So is there a way to determine which chart I am actually looking at?
I'm afraid that there is no textbook way to accomplish this but I'm hoping someone has some creative ideas on how to acheive these things with mlq4.
Thanks.
I've figured out how to determine if a chart of X currency is open, but how do I get objectcreate() to plot on the specific chart? I see several fuctions pertaining to windows, but none for charts.
Also the help files say that symbol() returns the symbol of the "current chart" but in actuality symbol() just seems to return the symbol that the EA is attached to. So is there a way to determine which chart I am actually looking at?
I'm afraid that there is no textbook way to accomplish this but I'm hoping someone has some creative ideas on how to acheive these things with mlq4.
Thanks.