Hello Ken,

I think RazBarry is in bed at the moment.
In the interim here are a couple of examples of intraday HL's.


They show how I go about it:

- copy/paste function from the AFL reference to show me the way (they also come 
up automatically in the Formula Editor but sometimes I find the permanent 
reference helpful the first few times I use a function).

- plot every line (as far as possible) to get a visual on the output from the 
code

- try to write the code to produce the plotted lines that I want.


Try example 2 - there are other and possibly better ways to do it but I think 
that is what you want.





--- In [email protected], Ken H <sfehe...@...> wrote:
>
> Hi
>  
> I have modified the code as layed out below but am getting a sytax error 
> after the important time line of code.   This is set at 9.50am so as to align 
> with the Australian SPI open.
>  
> Ken
>  
> _SECTION_BEGIN( "Price");
> TimeFrameSet( in5Minute ); 
> SetChartOptions( 0,chartShowArrows|chartShowDates );
> _N(Title = StrFormat("{ {NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo 
> %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, 
> SelectedValue( ROC( C, 1 )) ));
> Plot( C, "Close", ParamColor(" Color", colorBlack ), styleNoTitle | 
> ParamStyle(" Style") | GetPriceStyle( ) ); 
> if( ParamToggle( "Tooltip shows", "All Values|Only Prices" ) )
> {
> ToolTip=StrFormat( "Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: 
> "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
> }
> newday = Day() != Ref(Day(), -1);
> highofday = Ref(HighestSince( newday, H, 1), -1); 
> Lowofday = Ref(LowestSince( newday, L, 1), -1); 
> Rangeofday=highofday-lowofday;
> importanttime= 95000;
> 10minuteORhigh = ValueWhen( Cross(TimeNum( ),95000), highofday, 1);
> 10minuteORlow= .....;
> StrFormat("newday = %g \nhighofday = %1.4f \nLowofday = %1.4f \n10MinHi = 
> %1.4f", newday, highofday, Lowofday, HighOr10Min );
> Plot(HighOr10Min , "10 Day", colorRed);
> 
> 
>       Need a Holiday? Win a $10,000 Holiday of your choice. Enter 
> now.http://us.lrd.yahoo.com/_ylc=X3oDMTJxN2x2ZmNpBF9zAzIwMjM2MTY2MTMEdG1fZG1lY2gDVGV4dCBMaW5rBHRtX2xuawNVMTEwMzk3NwR0bV9uZXQDWWFob28hBHRtX3BvcwN0YWdsaW5lBHRtX3BwdHkDYXVueg--/SIG=14600t3ni/**http%3A//au.rd.yahoo.com/mail/tagline/creativeholidays/*http%3A//au..docs.yahoo.com/homepageset/%3Fp1=other%26p2=au%26p3=mailtagline
>


Reply via email to