[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Maximum Loss in Trade in an Exploration



PureBytes Links

Trading Reference Links

I have tried without success to define some code that will let me display a
column of values for each ticker in a watchlist which shows the maximum loss
in any one trade over the date range.  I have not been able to "capture" the
closing price on the day of a buy, maintain it, then capture the closing
price on the day of the next sell, compute the percent change of these two
values, then finally get the minimum or lowest of these values over the
range of the test (over various buy/sell round trips.
 
Is there any way to do this, short of stepping into the custom backtester
(which I doubt would do the job anyway on a watchlist of tickers)?
 
I could post some code attempts but they have all been way off the mark.
Maybe because it is not possible.
 
Any suggestions??
 
Thanks,
 
Ken

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.14/637 - Release Date: 1/18/2007 1:03 PM