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

[amibroker] Re: Need help with Explore code



PureBytes Links

Trading Reference Links


In the line below I know you forgot the EMA for WklyMA1_d but I think 
the EMA Syntax also needs the period defined.  I am currently getting 
an AFL error message.

Alan,



Filter=Cross(WklyMA1_d), EMA(WklyMA2_d) );

--- In amibroker@xxxxxxxxxxxxxxx, wrzec <wrzecha1@xxxx> wrote:
> Alan,
> It just so happens that,with the help of Anthony F., I just got
> this figured out. Try this.
> <==code starts here==>
> // switch to Weekly time frame//
> TimeFrameSet(inWeekly);
> WklyMA1=EMA(C,7);
> WklyMA2=EMA(C,35);
> //Restore Original Time Frame//
> TimeFrameRestore();
> WklyMA1_d=TimeFrameExpand( WklyMA1, inWeekly);
> WklyMA2_d=TimeFrameExpand( WklyMA2, inWeekly);
> 
> Filter=Cross(WklyMA1_d), EMA(WklyMA2_d) );
> AddColumn(Close,"Close",1.2);
> <==code ends here==>





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