|
allan nathan
2014-08-19 12:55:28
|
|
Hi,
How would I go about coding a "counter" which sums up the number of occurences over X days?
Would it be a combination of the IFFstring and Sum function? Would it be SumIf??
i am trying to set up a signal if there are 4 or more distribution days for the last 20 days with increasing volume.Its a short sell signal.
distribution day is a day where the close is down .2% or more from previuos close on increasing volume
dist=volume>ref(volume,1)and perf(close,1) <-0.20;
baddist=Sumif(dist>4,20);
thanks,
Allan
|
|