Recent Guppy Trailing Stop loss Chart for Nifty Hourly chart suggests Stop loss near 5121. Hold longs only if 5121 holds on an hourly basis(i.e exit longs or reverse position if 5121 breaks during End of the hour)
To install the plugin, copy the file “GP_Stops.dll” into the AmiBroker “Plugins” folder.
If 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 in.
A portfolio file contains one line for each stock purchase in the following order: StockCode, BuyDate, Quantity, Price
For example: ABC, 31/12/2004, 10000, 1.71
The quantity and price are used to allow the current gain to be calculated, and to display 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.
Three sample stop AFL indicators are provided, one for ATR, one for Guppy Count Back, and one for a simple EMA stop. Relevant parameters can be set for each one. To use these indicators, create new indicators with appropriate names and load the supplied code into them.