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

RE: [amibroker] Help with referencing previous prices



PureBytes Links

Trading Reference Links

Hi John,
     Thanks! I would like to calculate HHV from a given date to the 
current date and hence I need to know the "period" parameter to be 
supplied to HHV function. Specifically, I need to know HHV for a 
fund since I purchased. I would not like to go a range-mark on 
Charet each day to get this period.
Is there any way to set the initial and current date in the code 
instead of range-markin in the UI ?

Thanks,
Singh

--- In amibroker@xxxxxxxxxxxxxxx, "john gibb" <jgibb1@xxxx> wrote:
> Hi Singh,
> 
> One way: range-mark the two dates of interest and put this code in 
the
> Analysis | Commentary Formula Window; then click on the Commentary 
tab
> there.
> 
>     Period = EndValue( BarIndex() ) - BeginValue( BarIndex() );
>     "the number of bars between range markers is: "+
> WriteVal(LastValue(period),1.0);
> 
> -john
> ----- Original Message ----- 
> From: "ssingh_01803" <ssingh_01803@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Sunday, March 21, 2004 11:08 AM
> Subject: [amibroker] Period beteween two given dates in AFL
> 
> 
> Hi,
>    How can I get the number of bars or period between two given
> dates in AFL ?
> 
> Thanks,
> Singh
> 
> 
> 
> 
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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
> Yahoo! Groups Links




------------------------ 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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

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