Electrified

PivotPointsDailyTraditional

Electrified Atualizado   
Library "PivotPointsDailyTraditional"
Provides the traditional daily pivot values and a pivot vacinity function.

P(level, daysPrior) Returns the P value.
  Parameters:
    level: The level to caclulate.
    daysPrior: The number of days in the past to do the calculation.

R(level, daysPrior) Calculates the R value for a given pivot level.
  Parameters:
    level: The level to caclulate.
    daysPrior: The number of days in the past to do the calculation.

S(level, daysPrior) Calculates the S value for a given pivot level.
  Parameters:
    level: The level to caclulate.
    daysPrior: The number of days in the past to do the calculation.

vacinity(value, daysPrior, maxLevel) Returns a value representing where the provided value is in relation to each pivot level.
  Parameters:
    value: The value to compare against.
    daysPrior: The number of days in the past to do the calculation.
    maxLevel: The maximum number of pivot levels to include.
Notas de Lançamento:
v2 Updated "DailyLevels" reference.
Notas de Lançamento:
v3 Referenced API Update
Notas de Lançamento:
v4 Updated with latest Daily version.
Notas de Lançamento:
Library "PivotPointsDailyTraditional"
Provides the traditional daily pivot values and a pivot vacinity function.

P(daysPrior)
  Returns the P value.
  Parameters:
    daysPrior (simple int): The number of days in the past to do the calculation.

R(level, daysPrior)
  Calculates the R value for a given pivot level.
  Parameters:
    level (int): The level to caclulate.
    daysPrior (simple int): The number of days in the past to do the calculation.

S(level, daysPrior)
  Calculates the S value for a given pivot level.
  Parameters:
    level (int): The level to caclulate.
    daysPrior (simple int): The number of days in the past to do the calculation.

vacinity(value, daysPrior, maxLevel)
  Returns a value representing where the provided value is in relation to each pivot level.
  Parameters:
    value (float): The value to compare against.
    daysPrior (simple int): The number of days in the past to do the calculation.
    maxLevel (simple int): The maximum number of pivot levels to include.
Biblioteca do Pine

No verdadeiro espírito TradingView, o autor publicou este código de Pine como uma biblioteca de código aberto para que outros programadores de Pine de nossa comunidade possam reutilizá-lo. Um brinde ao autor! Você pode usar esta biblioteca em particular ou em outras publicações de código aberto, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Gostaria de usar essa biblioteca?

Copie a seguinte linha e cole-a em seu script.