More rebalancing for stock market changes. Transactions now affect second-order forecast (very slightly)

This commit is contained in:
danielyxie
2019-06-09 15:12:33 -07:00
parent 00f8c0a51f
commit a15041da75
7 changed files with 134 additions and 21 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export function StockTickerHeaderText(props: IProps): React.ReactElement {
let plusOrMinus = stock.b; // True for "+", false for "-"
if (stock.otlkMag < 0) { plusOrMinus = !plusOrMinus }
hdrText += (plusOrMinus ? "+" : "-").repeat(Math.floor(Math.abs(stock.otlkMag) / 10) + 1);
// hdrText += ` - ${stock.getAbsoluteForecast()} / ${stock.otlkMagForecast}`;
hdrText += ` - ${stock.getAbsoluteForecast()} / ${stock.otlkMagForecast}`;
}
let styleMarkup = {