I have looked at the code for WMA in NT 8 and understand that the calculation uses a triangular number for the denominator. For clarity, a Parabolic Weighted Moving Average(PWMA) is the same as a Weighted Moving Average except that each period is squared and multiplied by Price instead of WMA, where each period is multiplied by Price. The rest of the WMA logic remains the same. I couldn't find any solutions on the web for a triangular denominator which could be used for the PWMA. Does anyone know what values should be used?(in WMA the denominator is n(n+1)/2 where n = period).
Or if this isn't possible within the OnBarUpdate() method, how would you suggest I implement this?
Any help appreciated!
Kind Regards,
/george

Comment