PureBytes Links
Trading Reference Links
|
William,
Thanks for your help. A typo sure can stop a fella dead in his tracks. Now I've got to figure out how to make it work with T3 moving averages. My first attempt didn't work out. Maybe if I leave it for now and try again tomorrow.I'm getting a bit weary. Time for a break.
Thanks again,
Greg
----- Original Message -----
From: William Peters
To: Greg
Sent: Friday, October 08, 2004 7:49 PM
Subject: Re: [amibroker] MA in differentTimeframes Exploration
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");
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
------------------------------------------------------------------------------
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
b.. To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]
------------------------ 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/
|