While using a 1 min data set I am trying to pull last nights close on
a daily time frame for use in an intraday calculation. The code below
just keeps pulling the last minute's close instead of last nights. The
main symbol is fine, it just screws up the Foreign function symbol.
Could anyone point me in the right direction?
Thank you!
QQQQ = Foreign("QQQQ" , "C" , 1); /*Close On a One Min bar*/
_TRACE("QQQQ : " + QQQQ );
_SECTION_BEGIN("Yesterday's Foreign close");
TimeFrameSet(inDaily); //switch to daily time frame.
YQQQQ = Foreign("QQQQ" , "C" , 1);//YestQQQQClose = YQQQQ ;
TimeFrameRestore();
_SECTION_END();
QQQQRefPoint = TimeFrameExpand(YQQQQ , inDaily) ; /* Referencing
yesterdays daily close for use in todays intraday chart.*/
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:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/