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

Re: Fw: [amibroker] week() function? 240min() function?



PureBytes Links

Trading Reference Links

Hi,

Thank you very much :-)

Alan

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx>
wrote:
>
> Hello,
> 
> If you are interested rather in equally spaced 4 hour markers rather
> than markers starting with first day during trade it would be better
to use this:
> 
> New4Hour = floor(Hour()/4) != Ref( floor(Hour()/4), -1 ); 
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "Tomasz Janeczko" <amibroker@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Monday, January 23, 2006 5:37 PM
> Subject: Re: [amibroker] week() function? 240min() function?
> 
> 
> > Hello,
> > 
> > There is no "week" function but you can easily emulate it using
DayOfWeek()
> > function:
> > 
> > NewWeek = DayOfWeek() < Ref( DayOfWeek(), -1 );
> > 
> > As for 240 min, it can be done using TimeFrameFunctions
> > 
> > SetBarsRequired(100000, 0 ); 
> > New4Hr = NOT IsNull( TimeFrameGetPrice( "C", 240 * in1Minute, 0,
expandPoint ) ); 
> > 
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> > ----- Original Message ----- 
> > From: "firehorse888uk" <firehorse888uk@xxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Monday, January 23, 2006 5:19 PM
> > 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
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 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
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >>
>







------------------------ 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/