AmiBroker is currently running, select “Tools->Plug-ins” from the menu, otherwise just
start AmiBroker. A warning will probably appear about a new plugin being found.
If you wish to use the portfolio file function, create a folder called “Portfolio” under the
AmiBroker root folder. Portfolio files must then have a name like “Pfolio1.csv”,
“Pfolio2.csv”, etc, where the number is used as a portfolio ID (maximum 255) which is
passed to the stop/loss function to obtain the buy date. This allows multiple separate
portfolios to be used with potentially the same stocks in each one, each with different buy
dates. Typically the portfolio ID might match the watchlist number the portfolio is kept
at the top of the indicator. The price can be either with or without the brokerage, with the
gain simply being calculated using the current closing price minus this price. Where
multiple purchases of the same stock exist, the gain for each one is calculated separately
then added together, and the purchase price shown in the indicator will be a weighted
average of each purchase.
Back, and one for a simple EMA stop. Relevant parameters can be set for each one. To
use these indicators, create new indicators with appriopriate names and load the supplied code into them.