Many thanks TJ and Keith. I just missed the range parameter....:( Ken _____
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Janeczko Sent: Monday, March 26, 2007 5:09 PM To: [email protected] Subject: Re: [amibroker] Equity() Command Ken, Equity without any parameters uses LAST BACKTEST settings (including the range), so if his settings are for example 1 last bar - then the backtest will be performed on last one bar only. Instruct your friend to adjust settings in AA window (and run backtest). Alternativelly provide PARAMETERS to Equity() to override analysis range. http://www.amibroker.com/f?equity And no, you don't need to run backtest everyday. Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: Ken Close <mailto:[EMAIL PROTECTED]> To: [email protected] Sent: Monday, March 26, 2007 8:45 PM Subject: [amibroker] Equity() Command I understood the Equity() command to act as a builtin Backtest. Accoringly, I create the following simple code to create and plot the Equity. E5 = EMA(C,5); E45 = EMA(C,45); Buy = Cross(E5,E45); Sell = Cross(E45,E5); PlotShapes(Buy*shapeUpArrow,colorGreen); PlotShapes(Sell*shapeDownArrow,colorRed); Eq = Equity(); Plot(Eq,"Equity",colorBlue,styleLine); I loaded this into the Indicator Bulder, and applied it and got my Equity plot. No other steps required. I shared the code with a friend. He did the same thing, applied it, and got an {Empty} array and no plot. He loaded the code into the AA window, clicked Backtest, and the plot of Equity appeared. Question: why did the same code act differently? Next, will it be necessary to run the backtest every day to update the Equity curve? Insights and suggestions will be appreciated. Thanks, Ken
