Exactly as a the title suggests, I'm looking to check for the existence of volume spikes of over 150k (150000) in the last 20 one minute bars in a strategy.
My default is creating 20 unique int variables, assigning vol (number) to each of them, and then checking to see with if and elseif for the volume spikes.
I'm sure there's a more elegant way of doing this (including doing a loop check). Can anyone give me some direction?
Thanks in advance!
Yours,
Spider
Comment