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

Re: [amibroker] MA in differentTimeframes Exploration



PureBytes Links

Trading Reference Links

G'Day Greg,

There was a small typo but it seems to work ok.


//Switch to Daily Timeframe //
TimeFrameSet( inDaily );
Cd = MA(C,10) ;
TimeFrameRestore();


Regards,
William Peters
www.amitools.com



Friday, October 8, 2004, 5:34:59 PM, you wrote:


G> Hi,

G> I'm trying to learn how to use the timeframe features. I
G> decided to use an exploration to check my work. Below you will see
G> the code I have used in my attempt. I don't think it produces
G> correct the results . Is there something I need to change in the
G> code or maybe it is a settings problem. Ultimately what I would
G> like to do is to trade signals on an hourly timeframe and take
G> stoploss signals from a 10 minute timeframe. 

G> Any help with this would be greatly appreciated

G> Thanks,

G> Greg

G> //Switch to Monthly Timeframe //

G> TimeFrameSet( inMonthly );

G> Cm = MA(C,10) ;

G> TimeFrameRestore();

G> //Switch to Weekly Timeframe //

G> TimeFrameSet( inWeekly );

G> Cw = MA(C,10) ;

G> TimeFrameRestore();

G> //Switch to Daily Timeframe //

G> TimeFrameSet( inWeekly );

G> Cd = MA(C,10) ;

G> TimeFrameRestore();

G> // Expand data for use in system //

G> Cd = TimeFrameExpand(Cd,inDaily);

G> Cw = TimeFrameExpand(Cw,inWeekly);

G> Cm = TimeFrameExpand(Cm,inMonthly);

G> // Explore //

G> Filter = 1;

G> AddColumn(Cd,"Cd");

G> AddColumn(Cw,"Cw");

G> AddColumn(Cm,"Cm");
 




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