sp2432

Debug_Window_Library

sp2432 Mis à jour   
Library "Debug_Window_Library"
Provides a framework for logging debug information to a window on the chart.

consoleWrite(txt, maxLines) Adds a line of text to the debug window. The text is rolled off the bottom of the window as it fills up.
  Parameters:
    txt: - this is the text to be appended to the window
    maxLines: - this is the size of the window in lines.
  Returns: nothing





The example above shows the close value for the last 10 bars.
Here's the code.

//@version=5
indicator("Debug Library test Script", overlay=true)
import sp2432/Debug_Window_Library/1 as dbg

// add some text to the debug window
dbg .consoleWrite( str .tostring(close), 10)
Notes de version:
v2

Added:
Log(txt, maxLines) Adds a line of text to the debug window. The text is rolled off the bottom of the window as it fills up.
  Parameters:
    txt: - this is the text to be appended to the window
    maxLines: - this is the size of the window in lines.
  Returns: nothing

Removed:
consoleWrite(txt, maxLines) Adds a line of text to the debug window. The text is rolled off the bottom of the window as it fills up.
Notes de version:
v3
Cleaned up teh code and updated the text code below.

//@version=5
indicator("Debug Library test Script", overlay=true)
import sp2432/Debug_Window_Library/2 as console

// add some text to the debug window
console.Log(str.tostring(close), 10)
Notes de version:
v4

Updated:
Log(txt, maxLines, textColor) Adds a line of text to the debug window.
  Parameters:
    txt: - this is the text to be appended to the window
    maxLines: - Optional - size of the window in lines. Default=15
    textColor: - Optional - color of the text. Default=color.green .
Notes de version:
v5
Bibliothèque Pine

Dans le véritable esprit de TradingView, l'auteur a publié ce code Pine en tant que bibliothèque open-source afin que d'autres programmeurs Pine de notre communauté puissent le réutiliser. Bravo à l'auteur ! Vous pouvez utiliser cette bibliothèque à titre privé ou dans d'autres publications open-source, mais la réutilisation de ce code dans une publication est régie par notre Règlement.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser cette bibliothèque?

Copiez le texte dans le presse-papiers et collez-le dans votre script.