I have had some results with these
(amibroker array code but can be any system)
Accumulation = C > Ref(C,-1) AND Volume > Ref(Volume,-1);
Distribution = C < Ref(C,-1) AND Volume > Ref(Volume,-1);
You could add
Accumulation = Accumulation and V> 2 x MA(V,10)
Distribution = Distribution and V> 2 x MA(V,10)
totalupvol = Sum(IIf(accumulation,Sum(Volume,1),0),21);
Totaldownvol = Sum(IIf(Distribution,Sum(Volume,1),0),21);
You could use the crossing of the totalupvol and totaldownvol to
mark a trend change.
Normally I have all numbers as parameters and optimize over
hundreds of stock to see if there is an edge in sample and out of sample.
I think it only has an edge in combination with indicator price data
or price patterns.
|