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

[amibroker] Re: Trading Days per week



PureBytes Links

Trading Reference Links

Anthony,
The tading bars per week may be a continuous function per day or a 
final # every Friday [or every last trading day for a week].
X=DayOfWeek()>Ref(DayOfWeek(),1);
// Plot(X,"",2,2);
Tradingbars=1+Ref(BarsSince(X),-1);
Plot(Tradingbars,"",4,1);
Plot(X*Tradingbars,"",5,2);
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> You could try this if you do not have padded data
> 
> Recent = ValueWhen( DayOfWeek()<Ref(DayOfWeek(),-1) , BarIndex() );
> Previous = ValueWhen( DayOfWeek()<Ref(DayOfWeek(),-1) , BarIndex
(),2 );
> Tradedays = Recent - Previous;
> 
> 
> Cheers,
> Graham
> http://groups.msn.com/ASXShareTrading
> http://groups.msn.com/FMSAustralia
> 
> -----Original Message-----
> From: Anthony Faragasso [mailto:ajf1111@x...] 
> Sent: Friday, 14 March 2003 9:39 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Trading Days per week
> 
> Is it possible to find the number of trading days per week ?
> 
> It escapes me at the moment.....
> 
> Thank you
> Anthony
> 
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Web Hosting makes it easy to build a professional web site.
Sign up today and get free set-up, domain name, and more (up to a $100 value)
http://us.click.yahoo.com/m3JvCD/wCpFAA/46VHAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/