[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Volume-weighted Moving Average in SC4



PureBytes Links

Trading Reference Links

>  Plot1:  IFF (C * V <> 0, (C * V) / V,1)
>  Plot2:  Average (Plot1,50)

A couple of points:
1. (C*V)/V is the same as C. Probably not what you want. You are just
calculating an unweighted 50 bar moving average of the close. 
2. I assume the IFF thing is to check for divide by zero. You need to
check the denominator (V), not the numerator (C*V).

Try:

IFF(Average(V,50)<>0, Average(C*V,50)/Average(V,50), Average(C,50))

-- 
  Dennis