By loading "Template", if you mean "Layouts", then you can simply double-click on that "Layout" for it to load. But you are looking for "Hot keys", eh! It's simple... Let me know if you face any issue for the steps below.
Step 1: Set your Layouts in Global Layouts
section of the Layouts
Menu. You'll also notice them (as .awl
file types) appearing in AmiBroker install location under the Layouts folder. For instance:
Step 2: Save .js
files for each of your layouts with the below code syntax respectively using a Notepad preferably in AmiBroker\Scripts
folder.
JustPriceLayout.js
var FilePath = "C:\\Trading Apps\\Charting Platforms\\AmiBroker\\Layouts\\JustPrice.awl"; App = new ActiveXObject("Broker.Application"); App.LoadLayout( FilePath );
Price-n-VolumeLayout.js
var FilePath = "C:\\Trading Apps\\Charting Platforms\\AmiBroker\\Layouts\\Price-n-Volume.awl"; App = new ActiveXObject("Broker.Application"); App.LoadLayout( FilePath );
Step 3: Repeat this process for each one of your layout from main AmiBroker application window:
Tools -> Customize -> Tools -> New -> Type [Name of your Tool] -> Type "Command" as [Full File Path of .
js
that you just created] -> Close
Step 4: Now assign "Hot Keys" for each one of those Tools
that you just created:
Tools -> Customize -> Keyboard
Done!