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

[amibroker] Foreign in higher timeframe



PureBytes Links

Trading Reference Links

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

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