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

Re: [amibroker] Having problems with Timeframeset



PureBytes Links

Trading Reference Links

You need to use timeframeexpand to change the weekly arrays to match
the daily bars, otherwise the weekly is compressed to the right hand
end of the chart


On Mon, 01 Nov 2004 16:17:24 -0000, bestbobleonard
<bestbobleonard@xxxxxxxxx> wrote:
> 
> 
> 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");
> 
> 
> 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
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


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