You have only set one element of the DateNumofBuy array to show the date you wish to buy on... DateNumofBuy[1] specifically... as you step through the data, you will be comparing elements of DateNumofBuy with DateNum() which will never match...
--- In [email protected], "Herman" <[EMAIL PROTECTED]> wrote: > > Where do you get your trades-to-plot dates from? > > h > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] > Behalf Of murthysuresh > Sent: July 27, 2008 9:42 AM > To: [email protected] > Subject: [amibroker] Re: plot all my trades > > > i would appreciate some help here as i am stuck. > > --- In [email protected], "murthysuresh" <money@> wrote: > > > > i am trying to chart my trades including the buy and sell points. so > my > > feed into afl is going to be like following as it may be multiple > > trades. > > DateNumOfBuy[0] = 1080722; > > DateNumOfBuy[1] = 1080723; > > > > Buy=IIf(DateNum()==DateNumOfBuy,True,False); > > > > when i actually scan it, the buy signal never gets a true. i am > > obviously missing something. appreciate your response. > > > > > > ------------------------------------ > > 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 >
