Top 100 SymbolsHere is a script that displays charts from a list of symbols on a quote page. This is a really neat script that many of you will want to add to your library of examples. An explanation follows the script.procedure ChangeTime(s: string); procedure ChangeSet(w: word); {count how many chart windows are
open} {read quote page symbols} {loop through windows, apply symbols
to charts} {get current
charts extension such as D for daily} begin This is how you use it. A left click on #1 menu will change all open charts to a 1-minute time frame. Now, if you hold down the right mouse button when you left click on the #1 menu, the symbols on all open charts will change to the 1st set of symbols in sequence on your open quote page. The script is self adjusting. If you have 5 charts open, the symbol set will be the 1st five symbols on your quote page. If you hold the right mouse button down, and left click on the #2 menu, the 2nd set of 5 symbols from the quote page will be used. Since I use the Who value to select the symbol set, menu #1 through #9 will select the 1st through 9th symbol set. The symbol set size is controlled by the number of windows that are open. A slick use for this script is display a quote page, such as NYSE and use the Top100 to obtain a list of 100 symbols. Then use this script to open charts for the 1st, 2nd, or 3rd (etc.) set of symbols from the Top100 list. The ChangeSet routine reads the symbols from the quote page and uses them to replace the charts. There are comments showing the breakdown of each step in the process. |