PureBytes Links
Trading Reference Links
|
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
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Dimitris
Tsokakis
To: <A title=amibroker@xxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Thursday, September 20, 20015: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
Your
use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
|