In order to select certain range of dates in the historical chart, then scroll through the history of tickers, we can mark the range of dates we interested in using Range Markers (double-click on the chart or mark the bars and hit F12, SHIFT+F12). <\/p>
<\/p>
Then, use View->Zoom->Range<\/strong> menu to zoom the chart to our range selection.<\/p>
<\/p>
We can also assign a keyboard shortcut to View->Zoom->Range<\/strong> command or create a custom toolbar button to have it easily accessible (e.g. CTRL+SHIFT+R). This can be done in Tools->Customize<\/strong> (http:\/\/www.amibroker.com\/guide\/h_customizeui.html<\/a>)<\/p>
To use above code follow these steps:<\/p>
Open Notepad
Copy-paste above the code
Save the file with .JS extension (which means that system will treat this as JScript code)
Make sure that AmiBroker is running with desired chart as active one
Double click on .JS file to execute the JScript code<\/ol>
IMPORTANT: if you are running 64-bit Windows and have BOTH 32-bit and 64-bit versions of AmiBroker installed the OLE scripts by default would only talk to 64-bit instance. To use 32-bit version instead you would need to follow advice given in this article: http:\/\/www.amibroker.com\/kb\/2015\/01\/12\/ole-automation-scripts-with-32-and-64-bit\/<\/a><\/em><\/p>
It is worth noting that going through series of charts is not the only way to compare performance of various symbols over time. There are other dedicated built tools for comparing several securities (without switching symbols, but within one chart window), including Price (Foreign) and Relative Performance indicator. These functionalities are shown in the following video:
http:\/\/www.amibroker.com\/video\/TwoSymbolsOneChart.html<\/a><\/p>","protected":false},"excerpt":{"rendered":"