name

315f5bdb

date

76d0

open

78

moves

c43b8ac0064e4a0164612b1fce77c869345bfc94c75894edd3

**18 Apr 2021**

We generate a 25-day Candlestick chart
using the

`name`

buffer to compute a random 4-digit stock symbol.
The stock opens at a random value specified by `open`

on a random day generated
from `date`

. For each byte in the `moves`

buffer we generate a
`close`

, `high`

, and `low`

using the following equations. const close = Math.sin(0.1337 * movesBuffer[i]) * closeVariance + open;

const low =
Math.min(open, close) -
Math.abs(Math.sin(0.4242 * movesBuffer[i]) * lowHighVariance);

const high =
Math.max(open, close) +
Math.abs(Math.sin(0.1729 * movesBuffer[i]) * lowHighVariance);

These four numbers are used to draw each candlestick, and the global high and low are
rendered in the bottom right.