Electrified

PivotPointsDailyTraditional

Electrified Aktualisiert   
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.
Versionshinweise:
v2 Updated "DailyLevels" reference.
Versionshinweise:
v3 Referenced API Update
Versionshinweise:
v4 Updated with latest Daily version.
Versionshinweise:
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.
Pine Bibliothek

In echter TradingView-Manier hat der Autor diesen Pine-Code als Open-Source-Bibliothek veröffentlicht, so dass andere Pine-Programmierer aus unserer Community ihn weiterverwenden können. Ein Hoch auf den Autor! Sie können diese Bibliothek privat oder in anderen Open-Source-Publikationen verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie diese Bibliothek nutzen?

Kopieren Sie die folgende Zeile und fügen Sie sie in Ihr Skript ein.