PureBytes Links
Trading Reference Links
|
Hi,
I'm trying to learn how to use the timeframe features. I decided to use an exploration to check my work. Below you will see the code I have used in my attempt. I don't think it produces correct the results . Is there something I need to change in the code or maybe it is a settings problem. Ultimately what I would like to do is to trade signals on an hourly timeframe and take stoploss signals from a 10 minute timeframe.
Any help with this would be greatly appreciated
Thanks,
Greg
//Switch to Monthly Timeframe //
TimeFrameSet( inMonthly );
Cm = MA(C,10) ;
TimeFrameRestore();
//Switch to Weekly Timeframe //
TimeFrameSet( inWeekly );
Cw = MA(C,10) ;
TimeFrameRestore();
//Switch to Daily Timeframe //
TimeFrameSet( inWeekly );
Cd = MA(C,10) ;
TimeFrameRestore();
// Expand data for use in system //
Cd = TimeFrameExpand(Cd,inDaily);
Cw = TimeFrameExpand(Cw,inWeekly);
Cm = TimeFrameExpand(Cm,inMonthly);
// Explore //
Filter = 1;
AddColumn(Cd,"Cd");
AddColumn(Cw,"Cw");
AddColumn(Cm,"Cm");
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/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/
|