I'm trying to send Custom variable value using plot function inside pine-script.
plot(0.42, title="SL")
alertcondition(condition=b_long , title='L', message='msg_{{plot("SL"}}_{{close}}')
This works only when i dont have long pine-script, more than ~400 lines of code.
Problem is that tradeview does not replace {{plot("SL")}} with value that is circulated inside pine-script. and the message i got is msg_{{plot("SL"}}_8873.34 instead of msg_0.42_8873.34 I have encounters strange problem that makes problem only when i have pinescript is long
Do you have similar problem? Any ideas how to solve it? Posting Support Ticketing on tradeview is currently impossible.