More Information about: Link: 1) www.incrediblecharts.com/indicators/weighted_close.php Link: 2) www.forexrealm.com/technical-analysis/technical-indicators/weighted-close.html Link: 3) www.mysmp.com/technical-analysis/weighted-close-technical-indicator.html Calculation: (Daily Close * 2) + Daily High + Daily Low / 4 |
Source Code "Weighted Close": |
||
function init() { with (WCP) { createBuffer("WCP"); setBufferColor("WCP", "lime"); setBufferDrawStyle("WCP", DrawStyle.LINE); setAutoChangeMaxMin("WCP"); } } function start() { var num = Shared.numberOfQuotes(); var buf = new Array(num); for (var j = 0; j < num; ++j) { buf[j] = (Shared.close(j)*2 + Shared.high(j) + Shared.low(j))/4; } WCP.setBufferData("WCP", buf); } |