【发布时间】:2022-10-17 19:20:12
【问题描述】:
我正在努力在表格中绘制一个向上或向下的箭头,具体取决于条件。
我尝试了这段代码,但我认为参数 plotshope 和 fillcell 都不合适。
请有人可以帮助我了解如何执行此操作。
f_fillCell(_table, _column, _row, _title, _value, _bgcolor, _txtcolor) =>
_cellText = _title + '\n' + _value
table.cell(_table, _column, _row, _cellText, bgcolor=_bgcolor, text_color=_txtcolor)
// Draw table
var bgcolor = color.new(color.black, 0)
if drawTable
if barstate.islastconfirmedhistory
// Update table
if tf1bull == true
plotshape(divTable, 0, 1, (lbrTF1), tf1bull ? style=shape.arrowup, color=color.green : shape.arrowdown, color=color.red)```
【问题讨论】:
标签: pine-script