tar
tar

Reputation: 326

Pine Script: Deactivate display of number(s) when using plotshapes

as I use several plotshapes I would like to know if it is possible to deactivate the display of the corresponding numbers next to the used script displayed within the chart for particular plotshapes?

To better understand what I mean, please check the highlighted area with the numbers in this picture:

Plotshape Numbers

I want to do this as the displayed number for each plotshape does not make any sense for my purposes (they stay on zero as I use the plotshapes to display text/symbol information only, e.g. for a morning star or inverted hammer, etc.).

Perhaps I should use another way to display that information but I have no idea, how. The script is as follows, e.g. to display a hammer:

hammer = (((high - low)>3*(open - close)) and ((close - low)/(.001 + high - low) > 0.6) and ((open - low)/(.001 + high - low) > 0.6))
plotshape(hammer, title="Hammer", text="H", color=#006000, style=shape.diamond, location=location.belowbar, editable=false)
etc.

Upvotes: 0

Views: 417

Answers (1)

Bjorn Mistiaen
Bjorn Mistiaen

Reputation: 6875

This is currently not possible in Pine as far as I know.
Every value you put on the chart will automatically be shown next to the script name and in the data window.
No matter which method you choose, wether it is plot, plotchar, plotshape, plotarrow etc.., the value will always be shown.

Upvotes: 1

Related Questions