0

I'd like to set an alert in Tradingview pinescript v5, if barcolor(color.green) is true. Can anyone help? Thanks much!

I'd like to set an alert in Tradingview pinescript v5, if barcolor(color.green) is true. Can anyone help? Thanks much!

1 Answers1

0

In pinescript v5, you can't retrieve the color of a bar.
You can just apply a color.

G.Lebret
  • 2,826
  • 2
  • 16
  • 27
  • well I have a script that paints a bar under certain condition, but I would like to set an alert if that condition is true, and unfortunately the script itself is pretty complicated and only way around to get good entry is when the bar is painted. I'm trying to find another way to pinpoint the colored bars, any suggestions would be much appreciated – Snoopy Snoop Nov 22 '22 at 00:08