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

RE: [amibroker] week() function? 240min() function?



PureBytes Links

Trading Reference Links

Hi,

 

i believe you can do it only through dayofweek.

So newweek = ref(dayofweek(),-1)==7;

 

A new 4hour period goes not that easy way, because there is no function available. (as far as i know)

So you have to write it depending on your timeframe.

 

 

 

- - - - - - - - - - - - - - - - - - - -

Best regards

 

Thomas

www.tradingbasis.com

support@xxxxxxxxxxxxxxxx

- - - - - - - - - - - - - - - - - - - -

 

 

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of firehorse888uk
Sent: Monday, January 23, 2006 5:19 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] week() function? 240min() function?

 

Hi,

 

I can currently determine a new day by

 

Newday = Day() != Ref(Day(),-1);  // to indicate a new day

 

Is there an easy way to code the same for a week, ideally

 

NewWeek = Week() != Ref(Week(),-1);  // to indicate a new week

 

Or similarly for smaller time frames,

 

New4hr = 240min() != Ref(240min(),-1);  // to indicate a new 4 hour period

 

Thanks

 

 

 

 

 

 

 

------------------------ Yahoo! Groups Sponsor --------------------~-->

Try Online Currency Trading with GFT. Free 50K Demo. Trade

24 Hours. Commission-Free.

http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM

--------------------------------------------------------------------~->

 

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 other support material please check also:

http://www.amibroker.com/support.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/

 

 

 



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 other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS