robbatt

lib_math

Library "lib_math"
a collection of functions calculating without history operator to avoid max_bars_back errors

mean(value, reset)
  Parameters:
    value (float): series to track
    reset (bool): flag to reset tracking
@return returns average/mean of value since last reset

vwap(value, reset)
  Parameters:
    value (float): series to track
    reset (bool): flag to reset tracking
@return returns vwap of value and volume since last reset

variance(value, reset)
  Parameters:
    value (float): series to track
    reset (bool): flag to reset tracking
@return returns variance of value since last reset

trend(value, reset)
  Parameters:
    value (float): series to track
    reset (bool): flag to reset tracking
@return where slope is the trend direction, correlation is a measurement for how well the values fit to the trendline (positive means ), stddev is how far the values deviate from the trend, x1 would be the time where reset is true and x2 would be the current time
Biblioteca Pine

Siguiendo el verdadero espíritu de TradingView, el autor de este código de Pine lo ha publicado como biblioteca de código abierto, para que el resto de programadores de Pine de esta comunidad puedan volver a utilizarlo. ¡Un hurra por el autor! Puede utilizar esta biblioteca de forma privada o en otras publicaciones de código abierto, pero debe ceñirse a lo establecido en las Normas internas.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar esta biblioteca?

Copie la siguiente línea y péguela en su script.