Single day volume greater than 10 million in last year


Category:
0
0

Hello Hahn Tech,

I need help creating a watch list column that displays if a stock traded over 10 million volume in a single day within the last. (255 days candles)

 

If the condition is true, the return value will be display the word “Yes” in red text.

 

Thank you

 

 

Marked as spam
Posted by (Questions: 7, Answers: 3)
Asked on February 1, 2020 6:37 am
70 views
0
IF FALSE, the return value will be ”N.A” in black letters. Also, the formula should always exclude the current day (today) . Thank you
( at February 1, 2020 6:40 am)
0
Private answer

input minimumVolume = 10000000;
input bars = 252;
def volumeCondition = volume > minimumVolume;
def value = Highest(volume[1], bars) > minimumVolume;
AddLabel(yes, if value then "Yes" else "N.A.", if value then Color.RED else Color.CURRENT);

Marked as spam
Posted by (Questions: 37, Answers: 4084)
Answered on February 1, 2020 9:08 am
0
thank you so much
( at February 1, 2020 1:31 pm)