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

Re: [amibroker] Re: Help Needed in this little attempt. Once Again.



PureBytes Links

Trading Reference Links

If you waant the last date of the chart


 Filter = DateNum()==LastValue(DateNum()) AND Close/Lowvalue*100 <= 110;

or if you want todays date only

 Filter = DateNum()==Now(3) AND Close/Lowvalue*100 <= 110;



-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com

On 31/12/06, drk_411 <ramangumber@xxxxxxxxx> wrote:
>
> Dear Graham,
>
> Any way to put in the latest date automatically in this afl, rather
>   than changing this value in afl ???
>
> Filter = DateNum()==1061227 AND Close/Lowvalue*100 <= 110;
>
> regards.
> drk_411
>
>
> >
> > You have already done this, just make small change to what you have
> >
> > LVDate = ValueWhen(L==Lowvalue,DateTime());
> > AddColumn(LVDate,"LV Date",formatDateTime);
> >
> >
> > --
> > Cheers
> > Graham
> > AB-Write >< Professional AFL Writing Service
> > Yes, I write AFL code to your requirements
> > http://www.aflwriting.com
> >
> >
> > On 28/12/06, drk_411 <ramangumber@xxx> wrote:
> > >
> > > Lowvalue=LLV(L,220);
> > > Filter = DateNum()==1061227 AND Close/Lowvalue*100 <= 110;
> > > // this filter is to get only active securities and also only those
> > > // which are close to year's lows ie within 10%.
> > > AddColumn(Lowvalue,"Lowest",1.2);
> > > AddColumn(C," Today'sclose",1.2);
> > > AddColumn((Close/Lowvalue*100)-100," %  Change",1.2);
> > > // this column is for sorting the results.
> > >
> > > LowDate = ValueWhen(L < Ref(LLV(L,200),-1),DateTime());
> > > AddColumn(LowDate,"",formatDateTime);
> > > // now this is where i want help.. I want to know the date of the
> > > lowvalue.  Any kind soul ???
> > >
> > >
> > >
> > >
> > > 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
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
>
>
>
>
> 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
>
> Yahoo! Groups Links
>
>
>
>

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.1/611 - Release Date: 12/31/2006 12:47 PM