East Lyme +CT/USA
Posts: 1 since Sep 2017
Thanks Given: 0
Thanks Received: 0
|
Hi there,
I am wondering how to create a for next loop to continue calculating volume spikes. The code below can only find the last spike. If I want to count the total # of the spikes every 5 minutes for the whole day. What should I change? Thanks!
def afterStart = secondsfromtime(930)>0;
def beforeEnd = secondstilltime(1600)>0;
def conditionTrue = volume > 1.5*average(volume, 300);
plot scan = afterStart and beforeEnd and conditionTrue;
|