PureBytes Links
Trading Reference Links
|
Hello,
I'm a newbie and my problem is simple. I obviously don't read the
documentation correctly. I just looking for EMA on a different time
frame. The code I'm using is below. After I do a timeframeset, the
arrays for EMA are empty..at least according to debug with writeline.
Thanks in advance for telling me what I'm doing wrong! Bob_Leonard...
// time frame compress
//wc = TimeFrameCompress( Close, inWeekly );
TimeFrameSet(inWeekly);
wc4em = EMA( Close, 4 ); // note that argument is time-compressed array
wc7em = EMA( Close, 7 ); // note that argument is time-compressed array
TimeFrameRestore(); // restore time frame to original
w4e0 = Ref(wc4em,0);
w4e1 = Ref(wc4em,-1);
w4e2 = Ref(wc4em,-2);
w4e3 = Ref(wc4em,-3);
w7e0 = Ref(wc7em,0);
w7e1 = Ref(wc7em,-1);
w7e2 = Ref(wc7em,-2);
w7e3 = Ref(wc7em,-3);
Filter = (Close > 4) AND (Close < 5);
AddColumn( Close, "Close" );
AddColumn(w4e0,"ema4weekly");
AddColumn(w7e0,"ema7weekly");
------------------------ 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/
|