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

Re: [amibroker] date when?



PureBytes Links

Trading Reference Links

Hi,

Use the following formula:

buy = cross( macd(), 0 );
sell = 0;


WriteVal( ValueWhen( buy, Year() ), 4.0 ) + "-" +
WriteVal( ValueWhen( buy, Month() ), 2.0 ) + "-" +
WriteVal( ValueWhen( buy, Day() ), 2.0 );

Best regards,
Tomasz Janeczko

----- Original Message -----
From: "Steve and Bee Grobler" <sgrobler@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, May 14, 2001 5:28 PM
Subject: [amibroker] date when?


> Dear AFL experts,
>
> How can I get Amibroker to print the date of the last by or sell signal in
a
> guru commentary window?
>
> In the following example, I can print the close at the last buy signal:
> buy=CROSS(ema(c,10),c);
> sell=0;
> writeval(valuewhen( CROSS(ema(c,10),c), c, 1)) + writeval(c);
>
> If I try to do the date, like this, then I get an error:
> writeval(valuewhen( CROSS(ema(c,10),c), date(), 1)) + writeval(c);
>
> Help appreciated
> Steve
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>