I wanted to write a simple line of code to check that todays volume is 3 times the previous day volume. How do you call up the previous days volume?
There you go:
x = volume >= (volume[1] * 3)
Thanks Roberto. I tried that initially but it was not showing any results turns out I was trying to early after the market closed. Just a quick one how do you set a minimum for the market cap of stocks to screen for?
To check it works try replacing 3 with 1, or 1.5 or 2.
Minimum price:
MinPrice = close >= 5
SCREENER[MinPrice](close AS "Price")
Minimum cap (I think you mean volume_traded * price):
Cap = close * volume
MinCap = Cap >= 5000000
SCREENER[MinCap](Cap AS "Volume*Price")