Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Pine Script highest volume of the last 20 days but only for negative days

Hi!

I have a Pine Script and I want to show the highest volume of the last 20 days. I do this with the function "highest (volume, 20)". So far no problem.
Now I just want to show the highest volume of a negative days in that timeframe.
But somehow I don't get it. I use the function "open> = close" for this, but somehow I don't know how to combine these two functions.

Can anyone help me please?

Thank you in advance!

Greetings
2 people have
this question
+1
Reply