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

[amibroker] Re: Total Performance question?



PureBytes Links

Trading Reference Links

Bill,

Something like following should work -

cFirst = LastValue(ValueWhen(Status("firstbarinrange"), C));
cLast = LastValue(ValueWhen(Status("lastbarinrange"), C));
gain = (cLast - cFirst) * 100 / cFirst;

Jitu

--- In amibroker@xxxxxxxxxxxxxxx, "bvandyke" <bvandyke@xxxx> wrote:
> Hello,
> 
> I'm trying to figure out how to determine the Total Percent Change
> in the Close from the... From Date thru the To Date in my backtest.
> 
> I'm looking for the value of the Close on the FromDate and also on
> the ToDate, so i can compute Total Percentage Change between the 2 
> dates.
> 
> I obviously don't understand barinrange yet, and if someone can help
> me figure this out i'd truly appreciate it. Thank you.
> 
> 
> Bill


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/