I am trying to send back a custom variable through the Pinescript alerts.
top = input(title="Top", type=input.float, defval=10000, minval=1)
bottom = input(title="Bottom", type=input.integer, defval=5000, minval=0)
failedmessage = " \"processing\":\"NONE\" "
basemessage = " \"processing\":\"COMPLETED\", \"top\":{{top}}, \"bottom\":{{bottom}} "
alertcondition( top > bottom, title="test", message=basemessage )
When the alert condition pops up, the values for "top" and "bottom" are not filled in. I have also tried:
basemessage = " \"processing\":\"COMPLETED\", \"top\":{{\"Top\"}}, \"bottom\":{{\"Bottom\"}} "
but this did not work either.
What can I do here?
Thanks!