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

[amibroker] The happy bunch of guys we are and so happy to help.......



PureBytes Links

Trading Reference Links

Yuki,
It seems you want the first and the last trading bars of a month.
If 29 is Sat, 30 is Sun and 31 is a holiday then Day()>29 would make 
no sense...the interesting bars would be 26, 27 and 28.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, Yuki Taga <yukitaga@xxxx> wrote:
> Hi DT,
> 
> Sunday, July 4, 2004, 5:14:47 PM, you wrote:
> 
> DT> PrimeA=1; m=1000000*(10+3*PrimeA); Filter=1;
> DT> AddColumn(m/C,"Shares",1.0);
> 
> DT> Set [manually] your PrimeA to 1 [when true] or 0 [when false] 
and
> DT> then explore for the n=1 last quotations. Dimitris Tsokakis PS:
> DT> If you describe [in words] your PrimeA condition[s] we may
> DT> probably code it [to avoid manual operation]
> 
> Thanks for coming in here.  Sure, I can give you exactly what PrimeA
> is, but, I think floating holidays cause a problem.
> 
> PrimeA = Day() > 29 OR (Month()==2 AND Day() > 26) OR Day() < 5;
> 
> I have found a relationship between these dates and my system than 
is
> simply too strong to be coincidence.  So, I want to increase 
position
> size in this period.  Trades outside the period are still very much
> worth taking, but these trades are very much worth increasing the 
bet
> size.
> 
> Yuki



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/