I am trying to get a working script for Williams AD (based on price rather than the typical “volume based”)
I thought this would work (found on a post a couple years back by Darren) but the script below does not seem to create a Williams AD based on price that looks anything like priced based Williams AD that I get on my other trading platforms.
Maybe this is only part of what’s necessary or maybe the formula’s wrong. Can anyone shed some light?
bp1 = HIGH() - OPEN();
sp1 = CLOSE() - LOW();
hl1 = HIGH() - LOW();
(bp1 + sp1) / (2 * hl1)