Hope this is what you are looking for D1 = abs(O-H); D2 = abs(O-L);
Diff = IIf(D1 <= D2, D1, D2); SmaDiff = MA(Diff,10); Plot(SmaDiff ,"SmaDiff ",colorBlack,styleLine); Jim Hutchison At 06:20 AM 8/29/2009, you wrote:
I need help writing an indicator:The 10 period SMA of the absolute difference between the open and either the high or low, whichever difference is smaller.Any advice appreciated.
