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

Re: [amibroker] Equity() Command



PureBytes Links

Trading Reference Links

Hello,
 
Keith you are right that Equity uses last backtest range.
BUT... it is not necessary to use SetOption to change.
All you need is to use SECOND PARAMETER of Equity() function to specify the range
When everything fails - consult the manual:
 
 
RangeType - defines quotations range being used:
-1 : (default) use range set in the Automatic analysis window
0 : all quotes
1 : n last quotes (n defined by 'From' parameter)
2 : n last days (n defined by 'From' parameter)
3 : From/To dates
 
Equity( 0, 0 ) - run over ALL quotes.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
Sent: Monday, March 26, 2007 11:11 PM
Subject: Re: [amibroker] Equity() Command

Ken --
It appears that Equity() uses some of the AA settings, 'Range' being one of them (I don't know about others).  Your friend may have had 'Range' set to the last day or something similar.

I would like to be able to define 'Range' in AFL using SetOption() or some such but I don't think it is possible right now.  I hope I'm wrong, and if so, someone will set me straight.
-- Keith

Ken Close wrote:

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
 
 
__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___