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

RE: [amibroker] Re: Laptop and Wireless



PureBytes Links

Trading Reference Links

Hi Yuki - I think this should work...

FirstFourDays = Month() != ref( Month(), -4 );
BUY = FirstFourDays AND YourOtherBuyConditions;

Steve

----- Original Message ----- 
From: "Yuki Taga" <yukitaga@xxxxxxxxxxxxx>
To: "Jayson" <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, February 04, 2004 3:37 AM
Subject: Re: [amibroker] modifying day()


> Hi Jayson,
>
> Wednesday, February 4, 2004, 2:22:45 PM, you wrote:
>
> J> Yuki, You could use month() to find the first day of each month
> J> and barssince to count them.....
> J> x=BarsSince(Month()>Ref(Month(),-1))<=3;
>
> J> Plot(x,"",4,2);
>
> Sorry, but you lost me . . . completely. <lol>
>
> Maybe I didn't properly explain (good chance of this) what I'm after.
> I want to test for buys on the first 4 *trading* days of each month,
> as opposed to just calendar days, which may, or may not be, trading
> days.  I have no idea.
>
> Best,
>
> Yuki
>
>
> 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
>
> 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/
>
>
>



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 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/