I had promised that I would rewrite the symbol selection routine. In version 30 and 30L (Post 1) I have fulfilled my promise.
There are now three parameters, to allow you to specify which symbols you want:
(1)
IncludeSymbols: Leave it blank if you want to include all symbols in the market panel, or specify just the symbols you want. The string 'NULL' is translated to the symbol of the current chart.
(2)
ExcludeSymbols: Leave it blank if you don't want to exclude any symbols, or specify the symbols you want to exclude. Again 'NULL' is translated to the symbol of the current chart.
(3)
ExcludeExtensions: This is to specify, which symbol extensions you want to exclude. A symbol extension is defined as the string of characters that appears after the 6th character in the symbol name. Eg. in 'AUDUSD.', the extension is the '.' (dot) character.
The symbols you get are determined as follows:
If IncludeSymbols is empty: You will get all symbols in the market panel, minus those in ExcludeSymbols and minus those which have an extension in the ExcludeExtentions list.
If IncludeSymbols is non-empty: You will only get the symbols in IncludeSymbols, as long as they are listed in the market panel and as long as their extension is not in the ExcludeExtentions list. HGIMatrix will list the symbols in the order they appear in IncludeSymbols.
As an example, NordFX has every symbol three times in their market panel, once with no extension, once with the '.' extension and once with the '-' extension. If you just want to the see the symbols with no extension, you set the parameters like this:
Code: Select all
IncludeSymbols = "";
ExcludeSymbols = "";
ExcludeExtensions = ".,-";
And in order to avoid messages such as "I can't see symbol xxxyyy", I have changed the default value of ShowOnlyHurst to
false 