PureBytes Links
Trading Reference Links
|
Plot the
graph0=lastvalue(c)-c;
then write in Guru commentary
x0=writeval(lastvalue(c)-c);
The first is a curve, the second is always zero.
In Automatic Analysis run the
filter=1;
numcolumns=2;
column0=c;
column1=lastvalue(c);
if you select from Sept 1 to Sept 10,
in column1 you will read the close of Sept 10 and NOT
the close of Sept 19, which is the lastvalue of Close.
D.T.
--- In amibroker@xxxx, "jonf" <jonf_ca@xxxx> wrote:
> Dimitris, I thing the lastvalue inside commentary is the cursor
position !
>
> Tomasz, it will be interesting to have 2 AFL functions that give
consistent result in Commentary, Indicator and AutoAnalysis
> lastvalue(array) : give the value of the last data
> cursorvalue(array) : give the value at the cursor (or closest value
if no data is available at the last cursor position date)
>
> You can also use the cursorvalue date to always leave the chart to
the cursor position when you change Tab, View or Securities !
> Currently the chart are always scrolling back to the last value and
I don't think it's a behavior that most users want !
>
> Best
> Jon
> ----- Original Message -----
> From: Dimitris Tsokakis
> To: amibroker@xxxx
> Sent: Thursday, September 20, 2001 5:45 AM
> Subject: [amibroker] Lastvalue
>
>
> Dear Tomasz,
> I think that there is an inconsistency between Ind. Builder and
Guru commentary when
> we use function Lastvalue.
> The graph of
> graph0=lastvalue(cum(1));
> is a flat line at 385 for example.
> In Guru commentary the
> t1=writeval(lastvalue(cum(1));
> does not give the same result everyday, giving the same as
> t2=writeval(cum(1));
> Is it possible to read in Guru commentary lastvalue(cum(1)) ?
>
> Best Regards
> Dimitris Tsokakis
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
|