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

[amibroker] TimeFrame Problem



PureBytes Links

Trading Reference Links

Hi All,
This is causing me a real headache.
The plot of weekly and/or daily data doesn't align. I'm at a loss.
Suggestions most welcome. Here is the code.
I want to plot any symbol and see the weekly and/or daily plot. First,
I get the weekly variable, then expand to obtain the daily.  Finally I
plot the sybol itself. The symbol and weekly plots are exactly the
same whether timeframe weekly or daily!!!! More confusing, the
expanded plot,....well no idea really as it isn't related at all.  I
must be coding incorrectly. Comments please.  New remarks/banter
welcome. Many thanks.

TimeFrameSet(inWeekly);
wTik = Foreign("XAO", "C");
TimeFrameRestore();

TimeFrameSet(inDaily);
Tik = TimeFrameExpand(wTik,inWeekly,expandLast);

if (Status("action") == actionIndicator )
{
 GraphXSpace  = 10;
 BackGround   = colorBlack;
 Plot(Close,"CLOSE",colorWhite,styleBar);
 Plot(wTik,"wTik",colorBlue,styleDots|styleLine|styleThick);
 Plot(Tik,"Tik",colorSeaGreen,styleLine);
} // End actionIndicator
TimeFramerestore();



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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