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

date when?



PureBytes Links

Trading Reference Links

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