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

Re: [amibroker] filter for: lastbardate == today's date: Help [All]



PureBytes Links

Trading Reference Links

Terry
 

Filter= Date() == Now(1);

 
This returns no results.
I think this is because this is weekend and the Now() returns today's date(Sunday).
 
I will test this to see if it works tomorrow, however.
 
This can be done in AA by going to range: from / to and setting the dates to eg 29Oct04.

However I want to set this up in all my Explorations in code so I have less clicking to do.
 
 
I am beginning to think I will need to reference the barindex/lastvalue/functions.
Or perhaps use the last date traded of the Baseindex via the Foreign function.
 
Bit bleary eyed right now: will look at this again tomorrow.
 
Any other ideas of how I can go about this?
 
Regards
ChrisB


Terry <MagicTH@xxxxxxxxxxx> wrote:
I think you just need to do:

    Date() == Now(1);

Which is the date without the time.

>From HELP:

Returns current date / time in numerous of formats
format = 0 "returns string...current date/time"
Format = 1 "returns string...current dat only"

Both Date() and Now() returns strings, but you should test the format of
each since you're equating them.
-- 
Terry


From: kris45mar <kris45mar@xxxxxxxxx>
Reply-To: amibroker@xxxxxxxxxxxxxxx
Date: Sun, 31 Oct 2004 03:22:55 -0800 (PST)
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] filter for: lastbardate == today's date: Help [All]

Hi all;

I cannot figure out how to use Date(), or DateNum() functions to help me
here.

I want Explorations to only look at End of Day stocks which are currently
trading;

I need something like:

filter = blah blah
AND yeah yeah
AND date of last bar is equal todays date;

I have tried
Date() == now; // does not work.

I have tried
Datenum() ==1041029;

whilst this does work it means I have to change the date number for each
exploration.

What is the clever way around this?

Regards to all.

ChrisB

            
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.

[Non-text portions of this message have been removed]



Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html


Yahoo! Groups Sponsor

ADVERTISEMENT
<http://us.ard.yahoo.com/SIG=129p8s88f/M=315388.5543473.6613715.3001176/D=g
roups/S=1705632198:HM/EXP=1099308177/A=2372354/R=0/SIG=12id813k2/*https://ww
w.orchardbank.com/hcs/hcsapplication?pf=PLApply&media=EMYHNL40F21004SS>


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
<mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
*  
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .




Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 


Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
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 the Yahoo! Terms of Service. 


		
---------------------------------
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

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/