Trin
- traders (Arms) index

Composites
(AmiBroker 3.20)


SYNTAX Trin()
RETURNS ARRAY
FUNCTION Calculates TRIN (Arms Index) indicator.

NOTE: All built-in a/d indicators (AdLine/Trin) work only with composites calculated inside AmiBroker http://www.amibroker.com/newsletter/04-2000.html

If you are using QP2 database for example you should use QP2's own symbols for advances/declines.
!NY-A, !NY-D, !NY-AV, !NY-DV

The formula for NYSE TRIN using QP2 database is:

ArmsIndex = ( Foreign("!NY-A", "C") / Foreign("!NY-D", "C") ) / ( Foreign("!NY-AV", "C") / Foreign("!NY-DV","C" ) );
Plot( ArmsIndex, "TRIN", colorRed );

EXAMPLE trin()
SEE ALSO

References:

The Trin function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.