Automatically open a chart
-
Can't you make a block "Create Array", with string, int, decimal as a drop down for the array item type, then in the same category "Add Array Item" block, and "Print array" to print on chart, "For X Item" with dropdown as 0, 1, 2 to select array item, "For each Array Item" block, Etc etc
-
Is it possible to generate an EA that, running in a control chart, checks a list of symbols and timeframes for a certain condition and opens a chart for each symbol/timeframe where the condition has been found to be true? I don't see an 'open chart' function in the block panel.
How can the Current Market and Current Timeframe values be accessed for use in prints and alerts?
Also, I have one particular condition title that refuses to be changed. I can edit the title, but whenever I reload the project, after having saved it, the title has reverted to its default 'Condition'. Is this a bug? ---Forget this, it doesn't like chevrons in the title, probably to do with XML misinterpreting them.
Cheers.
-
I'm not sure if other charts can be opened from an EAs anyway. At least I don't know for a MQL function to do that, and I don't know for something else as well. And the list of... anything... means that arrays will be used, but in fxDreema the work with arrays is hardly possible. Even the work with variables is too much. There are some things that are easier to do in code generator like this, and other things that are easier to do in plain code, I think that arrays are more suitable for plain code

CurrentSymbol() and CurrentTimeframe() - these are custom functions that I use for the "Current..." blocks. You can use them, but if some day I decide to remove them or change their names, they will stop to work

-
open chart function: https://docs.mql4.com/chart_operations/chartopen