|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.
The formula for NYSE TRIN using QP2 database is:
The Trin function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.