I THINK ∴ I'M DANGEROUS

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

stocks:proof-wtf [2016/07/08 02:20] (current)
Line 1: Line 1:
 +~~NOCACHE~~
 +====== Stock Report ======
 +Generated Thu Jul 07 22:19:53 EDT 2016.
 +
 +Ratings indicate whether a stock should be bought or sold. A rating of 0.5 means a stock should be held. A rating close to 1 means buy. A rating close to 0 means sell.
 +====== Watched Stocks ======
 +^ Symbol ^ Rating ^ Buy ^ Sell ^
 +| [[#​MRO|⬇]][[https://​www.google.com/​finance?​q=MRO|$MRO]] | 0.945| 86| 5| 77| 1.32% |
 +====== Leads ======
 +^ Symbol ^ Rating ^ Buy ^ Sell ^ Mass ^ Open Vs High^
 +
 +
 +
 +<​html>​
 +<​script>​
 +
 +cells = document.getElementsByClassName("​col5"​);​
 +for (var i = 0, len = cells.length;​ i < len; i++)
 +{
 +  if (cells[i].innerHTML == ''​|| cells[i].innerHTML == ' Open Vs High')
 +  {
 +    continue;
 +  }
 +  val = cells[i].innerHTML.replace(/​[^0-9\.]/​g,''​);​
 +  if (val/1 == val) {
 +    if (val < 1) {
 +      cells[i].style.background = '#​FF5F5F';​
 +    }
 +    if (val >= 1 && val < 2) {
 +        cells[i].style.background = '#​F9FF5F';​
 +    }
 +    if (val >= 2) {
 +        cells[i].style.background = '#​32DD37';​
 +    }
 +  }
 +}
 +
 +</​script>​
 +</​html>​
 +