Hi from Italy!
Can someone help me with the development of a formula extracted from some works of Larry Williams a measure of the flow of price between the primary market we are trading and a secondary market that influences the primary, such as GOLD.
I have little experience of programming so your help would be appreciated
Study Title : Williams Valuation Index
Non-Price Study, Indicator without back testing
Returns a value from 0 to 100
Input: close values of the market we are examining and of the Gold future (symbol ZG #F is ok)
Calculations:
- Divide the close price of the market we are examining by the price of Gold and multiply by 100
- Construct a 2-period exponential average of this spread and a 22-period exponential average of this spread
- Subtract the 2-period average from the 22-period average
- Let's call this reading PVI (Preliminary Valuation Index)
- Let's then take the lowest PVI reading of the last 25 periods and call it lowestPVI, and the highest PVI reading of the last 25 periods and call it highestPVI
- The value to return is given by the formula
Thank you very much for your help
Can someone help me with the development of a formula extracted from some works of Larry Williams a measure of the flow of price between the primary market we are trading and a secondary market that influences the primary, such as GOLD.
I have little experience of programming so your help would be appreciated
Study Title : Williams Valuation Index
Non-Price Study, Indicator without back testing
Returns a value from 0 to 100
Input: close values of the market we are examining and of the Gold future (symbol ZG #F is ok)
Calculations:
- Divide the close price of the market we are examining by the price of Gold and multiply by 100
- Construct a 2-period exponential average of this spread and a 22-period exponential average of this spread
- Subtract the 2-period average from the 22-period average
- Let's call this reading PVI (Preliminary Valuation Index)
- Let's then take the lowest PVI reading of the last 25 periods and call it lowestPVI, and the highest PVI reading of the last 25 periods and call it highestPVI
- The value to return is given by the formula
Code:
(PVI - lowestPVI) / (highestPVI - lowestPVI)
Comment