Версия 1
См. Как мне поднять текст plotshape () вверх? в нашем FAQ. Вы можете использовать этот трюк с символами ▼ и ▲.
Версия 2
[2020.04.03 00:39 - LucF]
Этот код показывает различные способы достижения эффекта:
//@version=4
study("Lift text", "", true)
// Use U+200E (Decimal 8206) as a non-printing space after the last "\n".
// The line will become difficult to edit in the editor, but the character will be there.
// You can use https://unicode-table.com/en/tools/generator/ to generate a copy/pastable character.
plotshape(true, "", shape.arrowup, location.abovebar, color.green, text="A")
plotshape(true, "", shape.arrowup, location.abovebar, color.lime, text="B\n")
plotshape(bar_index % 2 == 0, "", shape.arrowdown, location.belowbar, #00000000, text="▼\n▼\n▼\n▼\n▼", textcolor = color.red)
plotchar(bar_index % 2 == 1, "bar_index % 2 == 0", "", location.belowbar, text = "▲\n▲\n▲\n▲\n▲\n")
В редакторе код из часто задаваемых вопросов должен выглядеть следующим образом, с красными квадратами, указывающими символ пробела Unicode.