App-Chart

 view release on metacpan or  search on metacpan

doc/chart.texi  view on Meta::CPAN

@set CHARTureflongdefined
@end iftex
@c
@ifclear CHARTureflongdefined
@alias CHARTureflong=uref
@end ifclear

@c  @cross{} is a \times symbol in tex, or an "x" in info.
@c  In tex it works inside or outside $ $.
@tex
\gdef\cross{\ifmmode\times\else$\times$\fi}
@end tex
@ifnottex
@macro cross
x
@end macro
@end ifnottex

@c  @alph{} is \alpha symbol in tex, or an "alpha" in info.
@c  In tex it works inside or outside $ $.
@tex
\gdef\alph{\ifmmode\alpha\else$\alpha$\fi}
@end tex
@ifnottex
@macro alph
alpha
@end macro
@end ifnottex

@c  @m{T,N} is $T$ in tex or @math{N} otherwise.
@iftex
@macro m {T,N}

doc/chart.texi  view on Meta::CPAN

@cindex Fosback, Norman
The Negative Volume Index (NVI) and Positive Volume Index (PVI) by Norman
Fosback (@uref{http://www.fosback.com}) track price changes according to
changes in volume.  The NVI tracks closing price changes that occur on days
with lower volume than yesterday, and the PVI conversely tracks those with
higher volume than yesterday.

@tex
$$ NVI = NVI_{prev} \times \left\{ \matrix{
  close \over close_{prev} & \mathop{\rm if} \; vol < vol_{prev} \cr
  1                        & \mathop{\rm if} \; vol \ge vol_{prev} \cr
} \right. $$
@end tex
@ifnottex
@example
                   /   close
                  |  -----------    if vol < vol[prev]
NVI = NVI[prev] * |  close[prev]
                  |
                   \     1          if vol >= vol[prev]

doc/chart.texi  view on Meta::CPAN

@cindex Chande, Tushar
Trendscore by Tushare Chande@footnote{@iquot{Rating Trend Strength}, Technical
Analysis of Stocks and Commodities magazine, 11:9 (382-386)} rates the
strength of a trend.  The calculation is quite simple, today's close is
compared to each close at 11 through 20 days ago and scored @math{+1} for each
it's above and @math{-1} if below.

@tex
$$ Trendscore = \left\{
  \matrix{
    if\,close \ge close[11]\; then\; +1\; else \;-1 \cr
    +\, if\,close \ge close[12]\; then\; +1\; else \;-1 \cr
    \cdots \cr
    +\, if\,close \ge close[20]\; then\; +1\; else \;-1 \cr
} \right. $$

$$ Trendscore = 100 \times { TripleEMA[today] - TripleEMA[yesterday]
                       \over TripleEMA[yesterday] } $$
@end tex
@ifnottex
@example
Trendscore =   if close >= close[11] then +1 else -1
             + if close >= close[12] then +1 else -1
             ...



( run in 0.368 second using v1.01-cache-2.11-cpan-87723dcf8b7 )