sp2432

Debug_Window_Library

sp2432 Telah dikemas kini   
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)
Nota Keluaran:
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.
Nota Keluaran:
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)
Nota Keluaran:
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 .
Nota Keluaran:
v5
Perpustakaan Pine

Di dalam semangat sebenar TradingView, pengarang telah menerbitkan kod Pine ini sebagai perpustakaan sumber terbuka, jadi pengaturcara-pengaturcara Pine yang lain dari komuniti kami boleh menggunakannya semula. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara peribadi atau pada penerbitan-penerbitan sumber terbuka lain, tetapi penggunaan semula kod ini di dalam penerbitan adalah ditadbir oleh Peraturan Dalaman.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Mahu gunakan perpustakaan ini?

Salin garisan ini dan tampalkan ia di dalam skrip anda.