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

[amibroker] Re: Need help with Explore code



PureBytes Links

Trading Reference Links


Well I thought I understood the TimeFrameSet function.  Here is the 
code that should identify when the 7 week EMA crosses above the 35 
week EMA.  However it doesn't work.  Can someone correct the code so 
it works correctly?

<==code starts here==>
TimeFrameSet(inWeekly);
Filter=Cross( EMA(Close,7), EMA(Close,35) );
AddColumn(Close,"Close",1.2);
AddColumn(Volume,"Volume",1.0);
<==code ends here==>

Thanks,
Alan 

--- In amibroker@xxxxxxxxxxxxxxx, "alannortham" <anortham@xxxx> wrote:
> 
> Thanks for the help.  The TimeFrameSet function is what I was 
looking 
> for.  I have placed it above the Filter in the following 
exploration 
> code and it works like I want.  I hope I have placed it in the 
> correct place in the code.  Is this correct or should it be 
> after "Filter =" ?
>  
> <==code ==>
> TimeFrameSet(inWeekly);
> Filter = EMA(Close,26) > EMA(Close,13) AND Cross(Close,EMA
(Close,13)) 
> AND Close < EMA(Close,26) AND Close > 20;
> <==end code==>
> 
> Thanks again,
> Alann
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Christoper" <turkey@xxxx> wrote:
> > 
> > Search for "Multiple Time Frame support in AFL" in Help.
> > 
> > You can just follow example 1 at the bottom of the page.
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "alannortham" <anortham@xxxx> 
> wrote:
> > > 
> > > I'm trying to do a simple exploration of stocks in my Watchlist 
> and I 
> > > need help with the code.  The following filter is what I want 
> only I 
> > > want it to filter weekly data instead of daily.
> > > 
> > > Filter = Cross(Close,EMA(Close,26)) AND Close > 20;
> > > 
> > > Thanks,
> > > Alann





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