That's it! Thanks, TJ.

--- In [email protected], "Tomasz Janeczko" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> See examples given in the User's Guide for TimeFrameGetPrice
> 
> http://www.amibroker.com/f?timeframegetprice
> 
> Just replace inWeekly with inDaily and you are done.
> 
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "Mike" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Saturday, July 29, 2006 10:29 PM
> Subject: [amibroker] Today's High at opening bar
> 
> 
> > To gather stats, I need to be able to use the daily (EOD) High/Low on
> > any given intraday bar.  However, I get the day's High/Low only on the
> > last bar of the day.  Can anyone see what I'm doing wrong here ?
> > 
> > TIA.
> > 
> > //===================================
> > TimeFrameSet(inDaily);
> > PrevDay_High = H;
> > PrevDay_Low  = L;
> > TimeFrameRestore();
> > PrevDay_High = TimeFrameExpand(PrevDay_High,inDaily);
> > PrevDay_Low = TimeFrameExpand(PrevDay_Low,inDaily);
> > 
> > DateArray = DateNum();
> > EOD = DateArray != Ref(DateArray,1);
> > OpeningBar = DateArray != Ref(DateArray,-1);
> > 
> > Todays_High = ValueWhen(OpeningBar,PrevDay_High,0);
> > Todays_Low  = ValueWhen(OpeningBar,PrevDay_Low,0);
> > Todays_Close = ValueWhen(OpeningBar,Close,0);
> > 
> > printf( "%2.0f OpeningBar\n", OpeningBar );
> > printf( "%2.0f EOD\n", EOD );
> > printf( "%2.2f Todays_High\n", Todays_High );
> > printf( "%2.2f Todays_Low\n", Todays_Low );
> > printf( "%2.2f Today_Close\n", Todays_Close );
> > //================================================
> > 
> > 
> > 
> > 
> > 
> > 
> > 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 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 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/

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



Reply via email to