The Formula For Williams %R
This is no strategy but given to explain the Williams %R formula:
The indicator works pretty well on most equity ETFs, especially when you add a trend filter.
Amibroker code:
Williams %R = ( ( HHV(H,5) – Close ) / ( HHV(H,5) – LLV(L,5) ) ) * -100 ;
Plot(Williams %R,”Williams %R”,colorRed,styleLine);
Tradestation code:
{
The Formula For Williams %R
https://www.quantifiedstrategies.com/lessons/strategy-x/
}
Inputs:
Lookback(5);
Value1 = (Highest(H, Lookback) - C) / (Highest(H, Lookback) - Lowest(L, Lookback)) * -100;
Plot1( Value1, "Plot1" ) ;
Disclosure: We are not financial advisors. Please do your own due diligence and investment research or consult a financial professional. All articles are our opinions – they are not suggestions to buy or sell any securities.
