PureBytes Links
Trading Reference Links
|
Hello,
As written in the User's Guide - TimeFrameSet compresses
ONLY built-in O, H, L, C, V arrays.
If you want to compress any OTHER array you need to use
TimeFrameCompress.
Alternativelly use SetForeign BEFORE timeframe set
So either use this:
fcb = ROC( TimeFrameCompress( foreign("S&P CNX Nifty","C"), inDaily ), 14 );
OR THIS:
rcc = ROC(C,14);
SetForeign("S&P CNX Nifty");
timeframeset(indaily);
rcb = ROC(c,14);
timeframerestore();
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Raajesh Jariwala" <sarani_in@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, March 26, 2007 3:12 PM
Subject: [amibroker] Foreign in higher timeframe
> Can anybody tell me what I am doing wrong here .......
>
> timeframeset(indaily);
> fc = foreign("S&P CNX Nifty","C");
>
> rcb = ROC(fc,14);
> rcc = ROC(C,14);
>
> timeframerestore();
>
> In auto-analysis for a 10 minute interval;
> addcolumn(timeframeexpand(rcc,indaily,expandfirst),"rcc",1.2);
> addcolumn(timeframeexpand(rcb,indaily,expandfirst),"rcb",1.2);
>
> The result I get is:
>
> Ticker Date/Time Close rcc rcb
>
> S&P CNX NIFTY 3/26/2007 2:59:55 PM 3838.30 4.15 -0.71
>
> Both the values of rcc and rcb should have been the same but they are
> showing different...Can anybody correct me what I am doing wrong in
> the above code??
>
> Regards,
>
> Raajesh
>
>
>
> 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
>
>
>
>
>
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/
|