本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。
// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © mattb348
//@version=6
indicator("Custom Text Table", shorttitle="CustomText", overlay = true)
var table myTable = table.new(position = position.middle_left, columns = 1, rows = 1, bgcolor = color.yellow, border_width = 0)
// *NOTE: You Can Edit And Change The Text Below (Where it Says "Custom Text (EDIT THIS IN PINESCRIPT")
// *ALSO NOTE: You Can Edit The Text Color, Background Color, POSITION of The Text, etc. etc.
// *Example 1: in The Line of Code ABOVE, "bgcolor = color.yellow" could be changed to: bgcolor = color.gray)
// *Example 2: in The Line of Code BELOW, "text_color = color.black" could be changed to: text_color = color.red)
// *Example 3: in The Line of Code ABOVE, "position.middle_left" could be changed to: position.bottom_left)
if barstate.islast
table.cell(table_id = myTable, column = 0, row = 0, text = "Custom Text (EDIT THIS IN PINESCRIPT)", text_halign = text.align_left, text_color = color.black)