stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Chart into alphabetic order script
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5150
Page 1 of 2
Author:  schmurex [ Tue Apr 25, 2017 8:43 pm ]
Post subject:  Chart into alphabetic order script

I found this script somewhere in here.
But I can't find where it come from anymore.
I think it is very useful except it doesn't work anymore.
Can somebody point me where I could find a new version if there is one or have a look in the (very short) code to see what's wrong?
Thanks
Schmurex
Charts Into Alphabetical Order script.mq4
[attachment=0]
Author:  SteveHopwood [ Tue Apr 25, 2017 9:44 pm ]
Post subject:  Chart into alphabetic order script

schmurex » Tue Apr 25, 2017 8:43 pm wrote:I found this script somewhere in here.
But I can't find where it come from anymore.
I think it is very useful except it doesn't work anymore.
Can somebody point me where I could find a new version if there is one or have a look in the (very short) code to see what's wrong?
Thanks
Schmurex
[attachment=0]
I tried to use it earlier tonight and it didn't work for me either. It deleted the charts OK, but did not reload them. I will have a look if nobody else comes up with a solution, but it will be a while before I get around to it.

:xm:
Author:  renexxxx [ Wed Apr 26, 2017 1:09 am ]
Post subject:  Chart into alphabetic order script

I have been using the attached script (OpenCharts.mq4) for the same purpose. The difference (as compared to Arts script), is that OpenCharts does not get its list of charts to open, by looking at the currently open charts at the start of its run. Instead, OpenCharts uses the input parameter IncludeSymbols (which is a comma-separated list of symbol names.

Typically, the way I use it is like this:

1. I first open one chart (usually AUDCAD as it comes first alphabetically) and load the EA of choice and configure all the parameters I want to use.
2. Then, I save a template for this chart, and remember the name of that template.
3. Subsequently, I run OpenCharts on this (AUDCAD) chart, and set its parameters:
  • IncludeSymbols : comma-separated list of symbols to use
  • SortAlphabetically : true/false
  • TemplateName : Name of template set in step (2)
  • TimeFrame : timeframe for the new charts
OpenCharts will then open a new chart for each symbol in IncludeSymbols, in alphabetical order (if so desired), on the timeframe set with TimeFrame, and will load the template TemplateName into this chart.

See if this works for you.
Author:  schmurex [ Wed Apr 26, 2017 8:12 am ]
Post subject:  Chart into alphabetic order script

Thank you Steve for your answer.

Hi Renexxxx,
Thanks a lot for your script.
It works wonderfully and is exactly what I was looking for.
Even better than the one I had.
One question though: in your description on how to use it, you start with a fresh platform with only one chart for the template.
How do you remove all the charts? Is there a script for that?
Removing them one by one is easy but tedious and takes a bit of time when you have 30+ of them opened...
Thanks
Schmurex
Author:  renexxxx [ Wed Apr 26, 2017 8:49 am ]
Post subject:  Chart into alphabetic order script

schmurex » Wed Apr 26, 2017 6:12 pm wrote: How do you remove all the charts? Is there a script for that?
You can do something silly like in the attached script.

R.
Author:  schmurex [ Wed Apr 26, 2017 6:08 pm ]
Post subject:  Chart into alphabetic order script

Thank you so much for your help, Renexxxx.
Without being a suicidal criminal it is very handy ("First kill all the others and now kill yourself" ;) )
Author:  schmurex [ Wed Mar 07, 2018 8:31 pm ]
Post subject:  Chart into alphabetic order script

renexxxx » Tue Apr 25, 2017 6:09 pm wrote:I have been using the attached script (OpenCharts.mq4) for the same purpose. The difference (as compared to Arts script), is that OpenCharts does not get its list of charts to open, by looking at the currently open charts at the start of its run. Instead, OpenCharts uses the input parameter IncludeSymbols (which is a comma-separated list of symbol names.

Typically, the way I use it is like this:

1. I first open one chart (usually AUDCAD as it comes first alphabetically) and load the EA of choice and configure all the parameters I want to use.
2. Then, I save a template for this chart, and remember the name of that template.
3. Subsequently, I run OpenCharts on this (AUDCAD) chart, and set its parameters:
  • IncludeSymbols : comma-separated list of symbols to use
  • SortAlphabetically : true/false
  • TemplateName : Name of template set in step (2)
  • TimeFrame : timeframe for the new charts
OpenCharts will then open a new chart for each symbol in IncludeSymbols, in alphabetical order (if so desired), on the timeframe set with TimeFrame, and will load the template TemplateName into this chart.

See if this works for you.
Hi Renexxxx,
I have used "OpenCharts" a lot, sorting them alphabetically.
But recently I wanted to sort the charts differently: first the major, then the cross pairs.
To do that I listed all the pairs in "IncludeSymbols" in the order I wanted and set "SortAlphabetically" to false, but they continue to sort alphabetically.
I even tried to comment out the line: if ( SortAlphabetically ) ArraySort( pair );
But it doesn't help, they still sort alphabetically.
My coding skills don't go much further than that...
Any Idea how to solve this issue?
Thanks
Schmurex
Author:  renexxxx [ Thu Mar 08, 2018 2:02 am ]
Post subject:  Chart into alphabetic order script

schmurex » Thu Mar 08, 2018 6:31 am wrote: But it doesn't help, they still sort alphabetically.
That is because the list of symbols to work with, is generated from the list of Market Symbols and these are generally in alphabetical order (not always though).

I have made a small modification to the script (as attached) and now it should open the charts in the order you have listed the symbols in the IncludeSymbols parameter (provided you set SortAlphabetically to false). Also, if you provide a symbol on IncludeSymbols that is not currently listed in the Market Watch panel, but does exist at your br0ker, it will silently add it to the Market Watch panel.

Let me know if this works for you.
Author:  schmurex [ Thu Mar 08, 2018 10:35 pm ]
Post subject:  Chart into alphabetic order script

renexxxx » Wed Mar 07, 2018 7:02 pm wrote: That is because the list of symbols to work with, is generated from the list of Market Symbols and these are generally in alphabetical order (not always though).

I have made a small modification to the script (as attached) and now it should open the charts in the order you have listed the symbols in the IncludeSymbols parameter (provided you set SortAlphabetically to false). Also, if you provide a symbol on IncludeSymbols that is not currently listed in the Market Watch panel, but does exist at your br0ker, it will silently add it to the Market Watch panel.

Let me know if this works for you.
Hi Renexxxx,
Thank you so much for taking the time to look into this issue.
Yes it works (mainly).
Strangely enough almost all of my list in IncludeSymbols is respected except for a couple of them at the very beginning and the very end (the second becomes first and the third before last becomes last...).
But that's fine don't spend your time searching to solve the issue as moving a couple of charts is not a big deal.
Cheers
Schmurex
Author:  schmurex [ Thu Mar 08, 2018 10:51 pm ]
Post subject:  Chart into alphabetic order script

Actually, I tried again a few times and it looks like the misplaced pairs could be randomly anywhere not only beginning and end. More often somewhere in the middle and could be more than 2.
But still not a big deal.
I guess it's one of these weird result we find with Empty4.
Thanks again
All times are UTC Page 1 of 2