timenum uses the time shown for the bars. this depends on your
settings to use either start or finish time. You need to match this
time. It also requires that there be a bar for that required time

-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com


On 02/08/07, laurent_1967 <[EMAIL PROTECTED]> wrote:
> hi there,
>
> on the same script if i have this i have the shape on the chart:
>
> 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() );
> FBuyLong = False;FSell = False;
>
> //FBuyLong = IIf (TimeNum() == 101500 ,True, False);
> FBuyLong = IIf (DayOfWeek() == 1 ,True, False);
> Buy = FBuylong;
>
> //FSell = IIf (TimeNum() == 143500 ,True, False);
> FSell= IIf (DayOfWeek() == 2 ,True, False);
>
> Sell= FSell;
>
> PlotShapes( shapeUpArrow*Buy, colorGreen, 0, L, -10 );
> PlotShapes( shapeDownArrow*Sell, colorRed, 0, H, -10 );
>
> BUT if have as this one, I have no shape :
>
> 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() );
> FBuyLong = False;FSell = False;
>
> FBuyLong = IIf (TimeNum() == 101500 ,True, False);
> //FBuyLong = IIf (DayOfWeek() == 1 ,True, False);
> Buy = FBuylong;
>
> FSell = IIf (TimeNum() == 143500 ,True, False);
> //FSell= IIf (DayOfWeek() == 2 ,True, False);
>
> Sell= FSell;
>
> PlotShapes( shapeUpArrow*Buy, colorGreen, 0, L, -10 );
> PlotShapes( shapeDownArrow*Sell, colorRed, 0, H, -10 );
>
> the only difference it that his time i use TimeNum and not DayOfWeek.
>
> why in one case i have the shape and not in the other case.
> Of course in the both case i have list trade in the backtext trade
> list
>
> any idea ?
>
> many thanks

Reply via email to