Will Val Indicator
Forums › ProRealTime English forum › ProBuilder support › Will Val Indicator
- This topic has 3 replies, 2 voices, and was last updated 7 years ago by
Nicolas.
-
-
11/02/2017 at 4:08 PM #5133511/02/2017 at 5:20 PM #51343
I think you are talking about the Will Val indicator, this is a description found on internet:
Divide the price of any commodity by the price of Gold (this shows the spread relationship) and
multiply this by 100 to normalize. Then construct either a 2 week or 2 period exponential
average of this spread. Also construct a 22-week average or 22-period exponential of the spread.
It does not make much difference which mathematical formula you use. Finally, subtract the 2
period averages from the 22 period averages this produce the Pal.
Then, [(using this week’s Pal – lowest pal of the last 3 years) divided by (highest pal of the last 3 years – lowest pal of the last 3 years)] times 100Unfortunately, this indicator is not possible to be made through ProBuilder, because there is no possibility to compare 2 securities with code… But, we can construct spread chart (with CTRL+R), so I assume there might something possible by constructing spread chart with any commodity divided by Gold price. Then on this spread chart, add the Will Val indicator.
This solution would need to make many spread charts to be build by yourself with the desired instrument (any commodity / Gold). Is that ok for you? (never made that before, but sounds like a good idea .. 🙂 )
11/02/2017 at 7:44 PM #51351I think that we can compare 2 securities in ProBuilder with the indicator Relative strength (Comparison).
I agree that the Will val indicator is something more complicated but can we modify the Relative strength (Comparison) indicator?11/24/2017 at 11:31 AM #53833but can we modify the Relative strength (Comparison) indicator?
No, this is a built-in indicator, that’s not possible. So I created the indicator with the idea I came across in my previous post:
123456789101112131415161718192021222324252627282930//PRC_WillVal-indicator | indicator//24.11.2017//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledge//attempt to create the Williams Valuation Index on ProRealTime//using spread chart (CTRL+R).//firstly, create a spread chart with any commodity divided by gold//then apply this indicator on a weekly timeframe of the resulted spread chartnorm = close*100ema2weeks = average[2,1](norm) //10 days (2 weeks)ema22weeks = average[22,1](norm) //110 days (22 weeks)pal = ema2weeks-ema22weeksh3 = max(h3,pal)l3 = min(l3,pal)if year<>year[1] thencount=count+1if count=3 thencount=0h3 = pall3 = palendifendifwillval = ((pal-l3)/(h3-l3))*100return willval coloured(0,0,255) style(line,2), 75 style(dottedline,1) as "level 75", 15 style(dottedline,1) as "level 15"Instruction:
Using spread chart (CTRL+R). Firstly, create a spread chart with any commodity divided by gold, then apply this indicator on a weekly timeframe of the resulted spread chart.
I don’t know if the result can be considered as the correct WillVal indicator, so please consider its information with great precaution.
Example attached is CrudeOil / Gold valuation index.
-
AuthorPosts
Find exclusive trading pro-tools on 