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

RE: [amibroker] Trading Filter



PureBytes Links

Trading Reference Links

There is a 
highestsince( EXPRESSION, ARRAY, Nth = 1 )
function for this calculation.
The
Filter=1;
AddColumn(HighestSince(DateNum()==1040301,H),"");
will give you the highest H since March1, 2004.
Dimitris Tsokakis
--- 
> 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



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/