How to code to know if the current volume is greater than the last 3 volume candles?I am an absolute beginner in pinescript Guys..
You can use the ta.highest()
function for this purpose.
Highest value for a given number of bars back.
is_high = volume > (ta.highest(volume, 3)[1])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.