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

Re: [amibroker] TimeNum = No shape ?



PureBytes Links

Trading Reference Links

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 <laurent@xxxxxxxxxxx> 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


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/