Buffalo![]() Elite ![]() ![]() Posts: 603 Joined: 7/11/2007 Location: Braintree, MA ![]() | ' *************************************************************************** ' * Volatility Price Ratio ' * by Matthew Greenslet ' * ' * Summary: ' * Indicator calculation from OT2009 ' * ' * Parameters: ' * Volatility Periods ' * Smoothing Periods ' ' Copyright 2009 Nirvana Systems, Inc. Austin, Tx, USA. ' *************************************************************************** #Indicator #PARAM "VolatilityPeriods", 14 #PARAM "SmoothingPeriods", 5 Dim fVPR as Single fVPR = 0 If C <> 0 Then fVPR = SMA(ATR(VolatilityPeriods)/C, SmoothingPeriods) End If Plot("VPR", fVPR) Return fVPR ![]() |